-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSSEC agent on 64-bit Windows #301
Comments
Thanks for the information. This is on my short list of things to look at and hopefully fix. Been busy as of late so apologies for the late response. |
Thanks for your answer. The problem is that we already use Windows Many greetings Michael Von: awiddersheim [email protected] Thanks for the information. This is on my short list of things to look at Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Peter Völker Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
The solution is definitely to have a 64-bit build, but in the mean time, you should be able to access files in system32 by using %WINDIR%\Sysnative. This is an alias for 32-bit apps provided by Microsoft which is a way into that directory. I'm not sure if there is an equivalent for the registry. |
This also points out the need to have a customized ossec.conf per Windows platform. Ideally, the installer should be able to detect which Windows version and bitness it is being installed on, and deploy the correct ossec.conf. The binaries and locations for each version may vary slightly so this would ensure a correct and tailored default configuration per environment. |
If we were able to make a x64 bit version of the agent would this still be necessary? I'm trying to think of cases but am not coming up with any right now. |
This one only exists on Vista+ and could be 32-bit or 64-bit: C:\Users/Public/All Users/Microsoft/Windows/Start Menu/Startup, so if the intent is to still support XP, then perhaps it's needed. Then again, XP? Although the argument could be made that OSSEC is better served on XP since it is more likely to be compromised, I am of the opinion that the Project should not support EOL OSes, which have no more security patches coming. People need motivation to move on and as security professionals, we can help to provide that motivation. |
Be careful with dropping support for Windows XP. POSReady 2009 is basically a slimmed down version of Windows XP and has an EOL of April 9, 2019. Point of sale systems will still be running this OS for many years to come. POSReady may not be an explicitly supported OS, but it is at its core Windows XP, minus a few services and utilities. Being that PCI Compliance is one of the major use cases for OSSEC, the decision to drop Windows XP support should be considered carefully. |
Those are some good points, @lostinthetubez! |
Hello Michael, Nevertheless, we need a 64 bit Agent for Windows! Michael Von: Michael Starks [email protected] The solution is definitely to have a 64-bit build, but in the mean time, Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Peter Völker Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
Hello Michael, regards Michael Von: Michael Starks [email protected] This also points out the need to have a customized ossec.conf per Windows Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Peter Völker Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
We absolutely need a 64 bit Windows version. In the near future there will regards Michael Von: awiddersheim [email protected] If we were able to make a x64 bit version of the agent would this still be Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Peter Völker Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
@bvb09michel We got it and understand the request. Thanks. As I said before it is on my short list of things to try and do. |
Hi Michael According to a recent study XP still has a market share of 23%. regards Michael Von: Michael Starks [email protected] This one only exists on Vista+ and could be 32-bit or 64-bit: Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Peter Völker Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
x86_64-w64-mingw32-gcc is where to start :) with src/win32/make.sh (should be made into a real makefile but that is another issue). http://stackoverflow.com/questions/5978722/compile-c-code-for-windows-64 This should be a simple process for anyone to play around with and see what they can do. @awiddersheim works on a lot of great things, but I am sure any help we can give him would be great. Might be some issues that come up with 64bit builds but getting them built would be the start. |
Yeah, first step is to get things building. Second step is to use a real Makefile. I wanted to try and tackle this on my own in hopes of learning more but I may need help there. Last thing is tackling the installer. |
can anyone give me the current status? regards Michael |
I don't think anyone has started working on this. Asking for statuses isn't going to make this happen any faster either. |
I use next workaround for x64 registry if this could help someone (I spent two days to find it :( ): |
Hi 123BLiN, greetings Michael Von: 123BLiN [email protected] I use next workaround for x64 registry if this could help someone (I spent full_command or simple /s for all subkeys 530 My software Log Level settings changed /reg:64 setting is not documented in Microsoft and I dont remeber where Fiducia IT AG Sitz der Gesellschaft: Karlsruhe Vorsitzender des Aufsichtsrats: Jürgen Brinkmann Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de |
Hi, just wondering if there is anything further I can help with - I see that it's tagged 'needs volunteers'. Also it should be noted that regardless of 64bit or 32bit agent there will still be a requirement to access redirected registry keys/system folders while Windows continues to support both architectures. This suggests to me that this issue needs splitting into two - the first a bug, the current 32bit WIndows OSSEC agent is unable to access 64bit registry at the present time, the second is a feature request for a 64bit agent which would also need to be able to access the Windows 32 redirected registry keys and folders. The reason for this is simple - the 32bit configuration and files can still be used as an attack vector in almost exactly the same way the 64bit 'native' keys and files can. This is a fairly important issue as at the moment OSSEC running on 64bit Windows is somewhat handicapped - though I appreciate the above workarounds go some way to addressing the issue. If I can help in testing or some other way please let me know - I'm not a coder but still managed to smash out #639 to attempt to address the issue though I know it's not an elegant solution. Secnerd |
Hi Secnerd, greetings Michael Von: secnerd [email protected] Hi, Fiducia & GAD IT AG | www.fiduciagad.de |
Hi Michael, yep there's no issue with the file system using the sysnative workaround. I'm not sure what you mean by 'implementing no hives'. The 32bit agent only Cheers, Secnerd On 18 September 2015 at 14:46, bvb09michel [email protected] wrote:
|
Hi Mark, greetings Michael Von: secnerd [email protected] Hi Michael, yep there's no issue with the file system using the sysnative workaround. I'm not sure what you mean by 'implementing no hives'. The 32bit agent Cheers, Mark On 18 September 2015 at 14:46, bvb09michel [email protected]
Fiducia & GAD IT AG | www.fiduciagad.de |
All, Saw all the posts about this, thought I would throw up a worked over section of the file ossec.conf to help out, at least for the files section. This takes into consideration both directories, excludes deprecated features as far as I could tell. Includes files that may or may not be loaded as well, depending on if they were installed via programs and features, so there may still be a handful of errors depending on your environment. No warranty or guarantee expressed or implied! It is not perfect but tons better than the stock 32 bit config file section:
|
Ok we now have the solution from @gjyoung for the file monitoring, does the solution provided by @123BLiN for the registry work ? Is the solution then to use the reg command to monitor the registry for 64bit hives and keep the basic registry check for the 32bit part or should everything be moved to using reg.exe? |
are there any plans to establish a 64bit version of the windows agent? I also stumbled upon this telnet.exe not found issue and ended up here... the workarounds might be there but they are workarounds. It would be also great to consider improving the default settings to include the 64bit 'paths' in case the 64bit client might be further away... |
Hi Ives, Greetings Michael Von: Ives Laaf [email protected] are there any plans to establish a 64bit version of the windows agent? I Fiducia & GAD IT AG | www.fiduciagad.de |
There will be windows 2016 soon, i could have one version of it for testing |
Yes very much. thank you Von: marcRBD [email protected] There will be windows 2016 soon, i could have one version of it for Fiducia & GAD IT AG | www.fiduciagad.de |
i could help testing if someone make packages ;) |
still no 64bit windows agent. |
@ienliven Still no pull request. |
@andre-integritas Please test pull requet #1614 |
Is any work being done regarding this issue? |
no, the topic is no longer being worked on
Fiducia & GAD IT AG | www.fiduciagad.de
AG Frankfurt a. M. HRB 102381 | Sitz der Gesellschaft: Frankfurt a. M. |
USt-IdNr. DE 143582320
Vorstand: Martin Beyer (Vorstandssprecher), Birgit Frohnhoff, Jörg Staff
Vorsitzender des Aufsichtsrats: Jürgen Brinkmann
Von: elvarb <[email protected]>
An: ossec/ossec-hids <[email protected]>
Kopie: bvb09michel <[email protected]>, Mention
<[email protected]>
Datum: 02.03.2020 14:00
Betreff: Re: [ossec/ossec-hids] OSSEC agent on 64-bit Windows (#301)
Is any work being done regarding this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@elvarb I started working on it, but there wasn't any real interest. |
There is no 64-bit agent for windows!
The 32-bit agent is not able to access the important windows\system32 directory. The same problem exist for access to some important registry hives.
In the ossec.conf file many are active by default of these important entries.
The reason (32-bit application on 64-bit OS) is described here: https://groups.google.com/forum/#!topic/ossec-list/E7YgAoVcFkU
You can show the problem with the telnet.exe. This file only exists in the windows\system32 directory (64 bit exe) and not in the windows\syswow64 directory (32 bit exe) when the Telnet feature is installed.
The telnet.exe file ist configured in the ossec.conf.
Thus appears permanently in the ossec.log the error:
2014/09/08 03:33:18 ossec-agent: WARN: Error opening directory: 'C:\Windows/System32/telnet.exe': No such file or directory
But in reality it exists, of course.
So the problem is, that are not monitored in the windows\system32 directory in reality.
If the monitored file is defined in the ossec.conf, this is monitored in reality in the windows\syswow64 directory.
The same problem applies to the Registry!
The text was updated successfully, but these errors were encountered: