-
Notifications
You must be signed in to change notification settings - Fork 431
adding adfind detection rule #3725
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
Draft
thegreatmhn
wants to merge
1
commit into
splunk:develop
Choose a base branch
from
thegreatmhn:adfind
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
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
93 changes: 93 additions & 0 deletions
93
detections/endpoint/windows_active_directory_enumeration_via_adfind.yml
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,93 @@ | ||
| name: Windows Active Directory Enumeration Via AdFind | ||
| id: ca807910-0a93-4403-bc2d-d9a74b17fa81 | ||
| version: 1 | ||
| date: '2025-10-15' | ||
| author: Mahdi Hamedani Nezhad | ||
| status: production | ||
| type: Anomaly | ||
| description: | | ||
| This detection identifies potential Active Directory enumeration behavior by observing the use of `AdFind.exe` | ||
| with the "Attr" flag along with specific parameters such as, "-f", "-b", etc. | ||
| These terms often indicate an attempt to enumerate domain infrastructure or trust relationships. | ||
| If confirmed malicious, this behavior could allow attackers to map out domain controllers, facilitating | ||
| further attacks such as privilege escalation or lateral movement within the network. | ||
| data_source: | ||
| - Sysmon EventID 1 | ||
| - Windows Event Log Security 4688 | ||
| - CrowdStrike ProcessRollup2 | ||
| search: |- | ||
| | tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime | ||
| from datamodel=Endpoint.Processes where | ||
| (Processes.process_name=AdFind.exe OR Processes.original_file_name=AdFind.exe) Processes.process="* QUERY *" | ||
| Processes.process IN ("* -f *", "* -b *", "* attr *") | ||
| by Processes.action Processes.dest Processes.original_file_name | ||
| Processes.parent_process Processes.parent_process_exec Processes.parent_process_guid | ||
| Processes.parent_process_id Processes.parent_process_name Processes.parent_process_path | ||
| Processes.process Processes.process_exec Processes.process_guid Processes.process_hash | ||
| Processes.process_id Processes.process_integrity_level Processes.process_name Processes.process_path | ||
| Processes.user Processes.user_id Processes.vendor_product | ||
| | `drop_dm_object_name(Processes)` | ||
| | `security_content_ctime(firstTime)` | ||
| | `security_content_ctime(lastTime)` | ||
| | `windows_active_directory_enumeration_via_adfind_filter` | ||
| how_to_implement: | | ||
| The detection is based on data that originates from Endpoint Detection | ||
| and Response (EDR) agents. These agents are designed to provide security-related | ||
| telemetry from the endpoints where the agent is installed. To implement this search, | ||
| you must ingest logs that contain the process GUID, process name, and parent process. | ||
| Additionally, you must ingest complete command-line executions. These logs must | ||
| be processed using the appropriate Splunk Technology Add-ons that are specific to | ||
| the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` | ||
| data model. Use the Splunk Common Information Model (CIM) to normalize the field | ||
| names and speed up the data modeling process. | ||
| known_false_positives: | | ||
| AdFind is a legitimate tool and may be used by administrators for valid purposes. Filtering may be necessary based on known admin hosts or service accounts. | ||
| references: | ||
| - https://attack.mitre.org/software/S0552/ | ||
| - https://attack.mitre.org/techniques/T1069/002/ | ||
| drilldown_searches: | ||
| - name: View the detection results for - "$dest$" | ||
| search: '%original_detection_search% | search dest = "$dest$"' | ||
| earliest_offset: $info_min_time$ | ||
| latest_offset: $info_max_time$ | ||
| - name: View risk events for the last 7 days for - "$dest$" | ||
| search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") | ||
| starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime | ||
| values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) | ||
| as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) | ||
| as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | ||
| | `security_content_ctime(lastTime)`' | ||
| earliest_offset: $info_min_time$ | ||
| latest_offset: $info_max_time$ | ||
| rba: | ||
| message: An instance of $process_name$ was identified performing domain enumeration on endpoint $dest$ by user $user$. | ||
| risk_objects: | ||
| - field: user | ||
| type: user | ||
| score: 40 | ||
| - field: dest | ||
| type: system | ||
| score: 40 | ||
| threat_objects: | ||
| - field: process_name | ||
| type: process_name | ||
| tags: | ||
| analytic_story: | ||
| - Active Directory Discovery | ||
| - Domain Trust Discovery | ||
| asset_type: Endpoint | ||
| atomic_guid: [] | ||
| mitre_attack_id: | ||
| - T1069.002 | ||
| - T1482 | ||
| product: | ||
| - Splunk Enterprise | ||
| - Splunk Enterprise Security | ||
| - Splunk Cloud | ||
| security_domain: endpoint | ||
| tests: | ||
| - name: True Positive Test | ||
| attack_data: | ||
| - data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/active_directory/command_line/netdom_enum.log | ||
| source: WinEventLog:Security | ||
| sourcetype: XmlWinEventLog | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have an AdFin analytic covering the most common use cases - https://github.com/splunk/security_content/blob/3caff36345a08e54a3eefc34e03746d40321055d/detections/endpoint/windows_adfind_exe.yml
Can you provide examples logs of what you are trying to cover here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thegreatmhn ping