Skip to content
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

add Cortex XDR check #430

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crowdstrike
ctl
CUSTOMERID
CYAAAAAAAKEY
cyserver
deactivateduser
decomp
dhe
Expand Down Expand Up @@ -127,6 +128,7 @@ opensuse
opscode
Ossec
otp
paloaltonetworks
partlabel
passcode
Passfilt
Expand Down
45 changes: 32 additions & 13 deletions core/mondoo-edr-policy.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,24 @@ queries:
package('Falcon').installed ||
package('SentinelOne Extensions').installed ||
package('ESET Endpoint Security').installed ||
file('/Library/Ossec').exists
file('/Library/Ossec').exists ||
['Cortex XDR"', 'Cortex XDR Agent'].all(package(_).installed)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atomic111 There's an extra double quote here too

- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-linux
filters: asset.family.contains('linux')
mql: |
package('falcon-sensor').installed || package('SentinelAgent').installed || package('sentinelagent').installed || file('/opt/eset/RemoteAdministrator/Agent').exists
package('falcon-sensor').installed ||
['SentinelAgent', 'sentinelagent'].all(package(_).installed) ||
file('/opt/eset/RemoteAdministrator/Agent').exists
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-windows
filters: asset.family.contains('windows')
mql: |
package('CrowdStrike Sensor Platform').installed ||
package('Sentinel Agent').installed ||
package('ESET Endpoint Security').installed ||
package('ESET Server Security').installed ||
service('WinDefend').installed ||
package('CrowdStrike Sensor Platform').installed ||
package('Sentinel Agent').installed ||
['ESET Endpoint Security', 'ESET Server Security'].one(package(_).installed) ||
service('WinDefend').installed ||
package('Wazuh Agent').installed ||
['Sophos Endpoint Defense', 'Sophos Endpoint Agent'].all(package(_).installed)

['Sophos Endpoint Defense', 'Sophos Endpoint Agent'].all(package(_).installed) ||
packages.where(name == /Cortex XDR/i).any(installed)
- uid: mondoo-edr-policy-ensure-edr-agent-is-running
title: Ensure EDR Agent is running
impact: 100
Expand All @@ -129,15 +131,16 @@ queries:
- uid: mondoo-edr-policy-ensure-wazuh-agent-is-running-macos
- uid: mondoo-edr-policy-ensure-wazuh-agent-is-running-windows
- uid: mondoo-edr-policy-ensure-sophos-endpoint-defense-is-running-windows
- uid: mondoo-edr-policy-ensure-cortex-xdr-agent-is-running-macos
- uid: mondoo-edr-policy-ensure-cortex-xdr-agent-is-running-windows

- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-macos
title: Ensure CrowdStrike Agent is running
filters: |
asset.platform == 'macos'
package('Falcon').installed
mql: |
services.where(name == /crowdstrike\.falcon\.Agent/).any(running == true)
services.where(name == /crowdstrike\.falcon\.Agent/).any(enabled == true)
macos.systemExtensions.where(identifier == "com.crowdstrike.falcon.Agent").all(enabled == true && active == true && state == "activated_enabled")
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-linux
title: Ensure CrowdStrike Agent is running
filters: |
Expand Down Expand Up @@ -207,8 +210,8 @@ queries:
- uid: mondoo-edr-policy-ensure-eset-agent-is-running-windows
title: Ensure ESET Agent is running
filters: |
asset.family.contains('windows')
package('ESET Endpoint Security').installed || package('ESET Server Security').installed
asset.family.contains('windows') &&
['ESET Endpoint Security', 'ESET Server Security'].one(package(_).installed)
mql: |
service('EraAgentSvc').running
service('EraAgentSvc').enabled
Expand Down Expand Up @@ -247,3 +250,19 @@ queries:
service('Sophos Endpoint Defense Service').enabled
service('Sophos MCS Agent').running
service('Sophos MCS Agent').enabled
- uid: mondoo-edr-policy-ensure-cortex-xdr-agent-is-running-macos
title: Ensure Cortex XDR Agent is running
filters: |
asset.platform == 'macos' &&
['Cortex XDR', 'Cortex XDR Agent'].all(package(_).installed)
mql: |
service('com.paloaltonetworks.cortex.agent').running
service('com.paloaltonetworks.cortex.agent').enabled
- uid: mondoo-edr-policy-ensure-cortex-xdr-agent-is-running-windows
title: Ensure Cortex XDR Agent is running
filters: |
asset.family.contains('windows') &&
packages.where(name == /Cortex XDR/i).any(installed)
mql: |
service('cyserver').running
service('cyserver').enabled
Loading