I am trying to create a Snare for Windows 4.0.2.0 MSI using WiX (I only need x64, so I do not need to compile the binaries, just copy them from a manual installation). As all the documentation I can find is related to the Enterprise product I was wondering if there was information on how to create the MSI for the Open Source client.
I have more or less created a MSI that:
-places the files in "Program Files"
-creates and configures the Snare service
-starts the service, and
-creates the Registry branch.
I would be especially interested in knowing what does the "Do you want Snare to take control of your EventLog Configuration?" option do.
Thank you for your help.
Yours,
David del Campo
G'day David,
If the 'take control of your eventlog configuration' option is turned on, when Snare is started, it will scan through the 'objectives' you have created, and check the underlying windows audit configuration to make sure that the associated switches are turned on.
For example, if you have defined a 'login' objective within Snare, and 'take control' is turned on, Snare will ask windows to turn on the switch that makes sure login events are generated, so they can be processed and analysed by Snare.
If you have defined a file-related objective, and want to monitor c:\secret_directory, then Snare will ask windows to turn on 'file' events, and also activate file-auditing on the c:\secret_directory path (note though, that due to the way windows works, this tends to happen at objective-creation time, rather than at snare startup, for file-related objectives)
If you do not have 'take control' turned on, Snare will just assume that you know what you're doing, and that you have already configured your local event configuration (either directly, or through policies defined on your AD); it won't attempt to modify your local audit settings to turn on the switches that guarantee delivery of the events that you might need (according to your snare objective list).
Regards,
Leigh.
Dear Leigh,
"Objective0"="1 31 32 Logon_Logoff *** 0 * 0 0 * 0"
"Objective1"="0 31 32 Process_Events *** 0 * 0 0 * 0"
"Objective2"="2 31 32 User_Group_Management_Events *** 0 * 0 0 * 0"
"Objective3"="1 24 32 Reboot_Events *** 0 * 0 0 * 0"
"Objective4"="3 31 32 Security_Policy_Events *** 0 * 0 0 * 0"
"Objective5"="1 31 95 * *** 0 * 0 0 * 0"
and I would like to understand what they mean.
G'day David,
Correct on both counts.
No, outside of the source code itself, there is no documentation on the internal storage format of the objectives. From memory, I used space or tab separated values, and bitmasks to identify what classes of events to turn on - but it has been quite a long time since I looked at that code unfortunately. :)
You may want to use the web-based administrative interface to configure your preferred settings. Snare will save those settings to the registry, at which point you can use tools like regedit.exe in batch mode, to import the settings you require.
Regards,
Leigh.