Git Product home page Git Product logo

c3-protect's People

Contributors

ajdavis8 avatar jgstew avatar mbrownr avatar strawgate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

c3-protect's Issues

Applocker log analysis generates a lot of records

Location: https://github.com/strawgate/C3-Protect/blob/master/Analyses/Whitelisting%20-%20Applocker%20-%20Logs%20-%20Windows.bes

Because this relevance includes the "time generated" then every log entry is a new record returned by the analysis that is unique for every computer and event. This will significantly grow the BFEnterprise database and is problematic for any large deployments.

Using something like this would just give the unique event types:

 unique values of ( ( (if (event id of it = 8006) then ("Warned: ") else ("Blocked: ")) of it ) & (preceding text of last " was " of description of it) ) of records ((integers in(item 0 of it + item 1 of it - 1,maximum of (item 0 of it + item 1 of it - 500;item 1 of it))) of (record count of it, oldest record number of it)) whose (event id of it = 8006 or event id of it = 8007) of event log "Microsoft-Windows-AppLocker/MSI and Script"

This would give the count, which would often be unique per endpoint, but less verbose than the current state:

(multiplicity of it as string & it) of unique values of ( ( (if (event id of it = 8006) then ("Warned: ") else ("Blocked: ")) of it ) & (preceding text of last " was " of description of it) ) of records ((integers in(item 0 of it + item 1 of it - 1,maximum of (item 0 of it + item 1 of it - 500;item 1 of it))) of (record count of it, oldest record number of it)) whose (event id of it = 8006 or event id of it = 8007) of event log "Microsoft-Windows-AppLocker/MSI and Script"

Related:

Bitlocker Protection Status seems to provide unclear information

Sample results:
Bitlocker - Encryptable Volume # - Windows 1
Bitlocker - Encryptable Volumes - Windows C:
Bitlocker - Encryption Finished - Windows
Bitlocker - Encryption Method - WIndows AES 128
Bitlocker - Encryption Started - Windows
Bitlocker - Protection Status - Windows Protection Off
Bitlocker - Status - Windows Fully Encrypted
Bitlocker - Volume Type - Windows VolumeType=0

Copy/paste bug in Firewall - State - Windows property

Unless I am missing something, it appears that the Firewall - State - Windows property has a copy/paste issue. I believe the Public section should be looking at the HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile registry key, however it is looking at StandardProfile instead.

32-bit Java.exe breaks with -Xmx parameters with EMET policy

Not an issue with the Fixlet itself, but probably worth a warning. Java.exe command line parameters -Xms and -Xmx configure minimum and maximum memory allocations available to Java. When using 32-bit Java.exe with a -Xmx1024m (or any value larger than ~ 750 MB), java.exe fails to launch with a message
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap

There is a warning on Microsoft's EMET policy page that EMET may not be compatible with the -Xmx parameter, but it's not clear that the only workaround is to completely remove java.exe from the configuration baseline. Disabling every available mitigation on the java.exe definition was not effective in working around the problem, I had to remove java.exe entirely.

I've tested 64-bit Java with allocations up to -Xmx16535m successfully with the EMET policy in place, only reproduced this on 32-bit Java.

McAfee EPO analysis doesn't cover x64

Use this:
values "DisplayVersion" of keys whose (value "DisplayName" of it as string is "McAfee Agent") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registry; (if exists x64 registry then x64 registry else nothing))

McAfee Endpoint Security Analyses

Would like to see Policy names and any other info brought into the Analyses.

Policy names in particular are stored in plain text in the registry which is... Perfect!

Let me know if you've got time this next week to work on this @mbrownr

Memory leak caused by WMI calls on WinServer2008R2 "Hyper-V Platform - Enable"

Reported: https://forum.bigfix.com/t/potential-memory-leak-bf-agent-and-server-2008-r2/24807/15


This is how I would try rewriting the relevance to be more efficient:

Enable:

not exists string values whose(it = "Hyper-V Platform") of selects "Caption from win32_optionalfeature where installstate= 1" of wmis

AND:

exists string values whose(it = "Hyper-V Platform") of selects "Caption from win32_optionalfeature" of wmis

Disable:

exists string values whose(it = "Hyper-V Platform") of selects "Caption from win32_optionalfeature where installstate= 1" of wmis

Deploy - EMET - 5.51 does not check EMET version

The Relevance on "Deploy - EMET - 5.51" at https://bigfix.me/fixlet/details/21265 does not check for the version number of an existing EMET. The presence of EMET 5.5 (or earlier) will cause EMET 5.51 to be non-relevant.

Recommend Relevance change to add a check for "DisplayVersion" registry key

From:

(windows of operating system) and (version of operating system >= "6.1") and (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0" of registry) and (if exists property "in proxy agent context" then ( not in proxy agent context ) else true) and (free space of drive of client > 26808320 * 2) and (not exists (key of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of ( x32 registry; (if exists x64 registry then x64 registry else nothing) )) whose (value "DisplayName" of it as string starts with "EMET"))

To:

(windows of operating system) and (version of operating system >= "6.1") and (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0" of registry) and (if exists property "in proxy agent context" then ( not in proxy agent context ) else true) and (free space of drive of client > 26808320 * 2) and (not exists (key of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of ( x32 registry; (if exists x64 registry then x64 registry else nothing) )) whose (value "DisplayName" of it as string starts with "EMET" and value "DisplayVersion" of it as string as version >= version "5.51"))

EMET 5.51 reports DisplayVersion 5.51 in the Registry.
EMET 5.5 reports DisplayVersion 5.5
I haven't checked with any earlier EMET versions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.