-
Notifications
You must be signed in to change notification settings - Fork 609
[New Rule] Enumeration of Users or Groups using Built-In Commands #848
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f8f8957
[New Rule] Enumeration of Users or Groups using Built-In Commands
Samirbous 2bfcf9a
Update discovery_users_domain_built_in_commands.toml
Samirbous 857fbd5
added search option
Samirbous 6e80976
excluded some noisy processes
Samirbous d47d852
Update discovery_users_domain_built_in_commands.toml
Samirbous 92eb1ae
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous 84fbf85
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous 2aa617a
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous a020855
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous b69fad9
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous 9b82591
Update rules/macos/discovery_users_domain_built_in_commands.toml
Samirbous 8cf84f0
Merge branch 'main' into users-discovery-dscl
Samirbous 2802c6f
Merge branch 'main' into users-discovery-dscl
Samirbous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| [metadata] | ||
| creation_date = "2021/01/12" | ||
| maturity = "production" | ||
| updated_date = "2021/01/12" | ||
|
|
||
| [rule] | ||
| author = ["Elastic"] | ||
| description = """ | ||
| Identifies the execution of macOS built-in commands related to account or group enumeration. | ||
| """ | ||
| from = "now-9m" | ||
| index = ["auditbeat-*", "logs-endpoint.events.*"] | ||
| language = "eql" | ||
| license = "Elastic License" | ||
| name = "Enumeration of Users or Groups via Built-in Commands" | ||
| risk_score = 21 | ||
| rule_id = "6e9b351e-a531-4bdc-b73e-7034d6eed7ff" | ||
| severity = "low" | ||
| tags = ["Elastic", "Host", "macOS", "Threat Detection", "Discovery"] | ||
| type = "eql" | ||
|
|
||
| query = ''' | ||
| process where event.type in ("start", "process_started") and | ||
| not process.parent.executable : ("/Applications/NoMAD.app/Contents/MacOS/NoMAD", | ||
| "/Applications/ZoomPresence.app/Contents/MacOS/ZoomPresence") and | ||
| process.name : ("ldapsearch", "dsmemberutil") or | ||
| (process.name : "dscl" and | ||
| process.args : ("read", "-read", "list", "-list", "ls", "search", "-search") and | ||
| process.args : ("/Active Directory/*", "/Users*", "/Groups*")) | ||
|
|
||
| ''' | ||
|
|
||
|
|
||
| [[rule.threat]] | ||
| framework = "MITRE ATT&CK" | ||
| [[rule.threat.technique]] | ||
| id = "T1069" | ||
| name = "Permission Groups Discovery" | ||
| reference = "https://attack.mitre.org/techniques/T1069/" | ||
|
|
||
| [[rule.threat.technique]] | ||
| id = "T1087" | ||
| name = "Account Discovery" | ||
| reference = "https://attack.mitre.org/techniques/T1087/" | ||
|
|
||
|
|
||
| [rule.threat.tactic] | ||
| id = "TA0007" | ||
| name = "Discovery" | ||
| reference = "https://attack.mitre.org/tactics/TA0007/" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.