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

New policy to check if the EDR solution is running #359

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
add checks to test if SentinelOne and CrowdStrike are running
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
  • Loading branch information
atomic111 committed Mar 1, 2024
commit f83ae884ea88a69c439e200bb0415ca392d0eb72
5 changes: 5 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ COMNAP
COMNODE
controlcenter
crio
crowdstrike
ctl
CUSTOMERID
CYAAAAAAAKEY
Expand All @@ -53,6 +54,7 @@ dumpable
ecdh
ecdhe
EDE
edr
efg
efi
enduser
Expand Down Expand Up @@ -153,6 +155,9 @@ secboot
seconduser
secretkey
secureboot
sentinelagent
sentineld
sentinelone
setxattr
shosts
Signin
Expand Down
95 changes: 68 additions & 27 deletions core/mondoo-edr-policy.mql.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Read more about the policy structure at https://mondoo.com/docs
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1
policies:
- uid: mondoo-edr-policy
name: Endpoint Detection and Response (EDR) Policy
version: 0.1.0
version: 1.0.0
license: BUSL-1.1
tags:
mondoo.com/category: security
mondoo.com/platform: windows,linux,macos
Expand Down Expand Up @@ -54,7 +56,8 @@ policies:
If you have any suggestions for how to improve this policy, or if you need support, [join the community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
groups:
- title: Endpoint Detection and Response (EDR)
filters: asset.family.contains("unix") || asset.family.contains("windows")
filters: |
asset.family.contains("unix") || asset.family.contains('windows')
checks:
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed
- uid: mondoo-edr-policy-ensure-edr-agent-is-running
Expand All @@ -69,23 +72,23 @@ queries:
audit: Please ensure that the EDR agent is installed on the system.
remediation:
- desc: |-
Please install the EDR agent on the system, e.g. SentinelOne, CrowdStrike.
variants:
Please install an EDR agent on the system, e.g. SentinelOne, CrowdStrike.
variants:
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-macos
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-linux
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-windows
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-macos
filters: asset.platform == "macos"
filters: asset.platform == 'macos'
mql: |
package("Falcon").installed || package('SentinelOne Extensions').installed
package('Falcon').installed || package('SentinelOne Extensions').installed
- uid: mondoo-edr-policy-ensure-edr-agent-is-installed-linux
filters: asset.family.contains("linux")
filters: asset.family.contains('linux')
mql: |
package("falcon-sensor").installed || package('SentinelAgent').installed || package('sentinelagent').installed
package('falcon-sensor').installed || package('SentinelAgent').installed || package('sentinelagent').installed
- 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('CrowdStrike Sensor Platform').installed || package('Sentinel Agent').installed

- uid: mondoo-edr-policy-ensure-edr-agent-is-running
title: Ensure EDR Agent is running
Expand All @@ -97,26 +100,64 @@ queries:
remediation:
- desc: |-
Please install the EDR agent on the system, e.g. SentinelOne, CrowdStrike.
variants:
- uid: mondoo-edr-policy-ensure-edr-agent-is-running-macos
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-linux
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-linux
- uid: mondoo-edr-policy-ensure-edr-agent-is-running-windows
- uid: mondoo-edr-policy-ensure-edr-agent-is-running-macos
filters: asset.platform == "macos"
variants:
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-macos
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-linux
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-windows
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-macos
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-linux
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-windows
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-macos
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)
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-linux
filters: |
asset.family.contains('linux')
package('falcon-sensor').installed
mql: |
service('falcon-sensor').running
service('falcon-sensor').enabled
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-windows
filters: |
asset.family.contains('windows')
package('CrowdStrike Sensor Platform').installed
mql: |
service('CSFalconService').running
service('CSFalconService').enabled
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-macos
filters: |
asset.platform == 'macos'
package('SentinelOne Extensions').installed
mql: |
package("Falcon").installed || package('SentinelOne Extensions').installed
service('com.sentinelone.sentineld-helper').running
service('com.sentinelone.sentineld-helper').enabled
service('com.sentinelone.sentineld-shell').running
service('com.sentinelone.sentineld-shell').enabled
service('com.sentinelone.sentinel-extensions').running
service('com.sentinelone.sentinel-extensions').enabled
service('com.sentinelone.sentineld-updater').running
service('com.sentinelone.sentineld-updater').enabled
service('com.sentinelone.sentineld').running
service('com.sentinelone.sentineld').enabled
service('com.sentinelone.sentineld-guard').running
service('com.sentinelone.sentineld-guard').enabled
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-linux
filters: package('SentinelAgent').installed || package('sentinelagent').installed
filters: |
asset.family.contains('linux')
package('SentinelAgent').installed || package('sentinelagent').installed
mql: |
service('sentinelone').enabled
service('sentinelone').running
- uid: mondoo-edr-policy-ensure-crowdstrike-agent-is-running-linux
filters: package('SentinelAgent').installed || package('sentinelagent').installed
mql: |
service('sentinelone').enabled
service('sentinelone').running
- uid: mondoo-edr-policy-ensure-edr-agent-is-running-windows
filters: asset.family.contains('windows')
- uid: mondoo-edr-policy-ensure-sentinelone-agent-is-running-windows
filters: |
asset.family.contains('windows')
package('Sentinel Agent').installed
mql: |
package("CrowdStrike Sensor Platform").installed || package('Sentinel Agent').installed
services.where( name == /SentinelAgent/ ).any(running == true)
services.where( name == /SentinelAgent/ ).any(enabled == true)
services.where( name == /SentinelStaticEngine/ ).any(running == true)
services.where( name == /SentinelStaticEngine/ ).any(enabled == true)
Loading