Skip to content

Commit 4c65798

Browse files
authored
Merge branch 'develop' into nterl0k-t1219-rmm-update-2
2 parents 557fdec + be3ab3c commit 4c65798

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Windows Process With NetExec Command Line Parameters
2+
id: adbff89c-c1f2-4a2e-88a4-b5e645856510
3+
version: 1
4+
date: '2024-12-19'
5+
author: Steven Dick, Github Community
6+
status: production
7+
type: TTP
8+
description: The following analytic detects the use of NetExec (formally CrackmapExec) a toolset used for post-exploitation enumeration and attack within Active Directory environments through command line parameters. It leverages Endpoint Detection and Response (EDR) data to identify specific command-line arguments associated with actions like ticket manipulation, kerberoasting, and password spraying. This activity is significant as NetExec is used by adversaries to exploit Kerberos for privilege escalation and lateral movement. If confirmed malicious, this could lead to unauthorized access, persistence, and potential compromise of sensitive information within the network.
9+
data_source:
10+
- Windows Security Event ID 4688
11+
- Sysmon Event ID 1
12+
- CrowdStrike ProcessRollup2
13+
search: '| tstats `security_content_summariesonly` values(Processes.parent_process) as Processes.parent_process, values(Processes.process) as Processes.process values(Processes.process_current_directory) AS process_current_directory, values(Processes.process_id) as Processes.process_id, values(Processes.process_guid) as Processes.process_guid, count min(_time) AS firstTime, max(_time) AS lastTime FROM datamodel=Endpoint.Processes where Processes.process_name IN ("nxc.exe") OR Processes.original_file_name IN ("nxc.exe") OR (Processes.process IN ("* smb *","* ssh *","* ldap *","* ftp *","* wmi *","* winrm *","* rdp *","* vnc *","* mssql *","* nfs *") AND ((Processes.process = "* -p *" AND Processes.process = "* -u *") OR Processes.process IN ("* -x *","* -M *","* --*"))) BY _time span=1h Processes.user Processes.dest Processes.process_name Processes.parent_process_name
14+
|`drop_dm_object_name(Processes)`
15+
| `security_content_ctime(firstTime)`
16+
| `security_content_ctime(lastTime)`
17+
| `windows_process_with_netexec_command_line_parameters_filter`'
18+
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.
19+
known_false_positives: Although unlikely, legitimate applications may use the same command line parameters as NetExec. Filter as needed.
20+
references:
21+
- https://www.netexec.wiki/
22+
- https://www.johnvictorwolfe.com/2024/07/21/the-successor-to-crackmapexec/
23+
- https://attack.mitre.org/software/S0488/
24+
drilldown_searches:
25+
- name: View the detection results for - "$dest$" and "$user$"
26+
search: '%original_detection_search% | search dest = "$dest$" user = "$user$"'
27+
earliest_offset: $info_min_time$
28+
latest_offset: $info_max_time$
29+
- name: View risk events for the last 7 days for - "$dest$" and "$user$"
30+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$","$user$") 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)`'
31+
earliest_offset: $info_min_time$
32+
latest_offset: $info_max_time$
33+
- name: Investigate processes on $dest$
34+
search: '| from datamodel:Endpoint.Processes | search dest=$dest$ process_name = $process_name$'
35+
earliest_offset: $info_min_time$
36+
latest_offset: $info_max_time$
37+
tags:
38+
analytic_story:
39+
- Active Directory Kerberos Attacks
40+
- Active Directory Privilege Escalation
41+
asset_type: Endpoint
42+
confidence: 80
43+
impact: 80
44+
message: NetExec command line parameters were used on $dest$ by $user$
45+
mitre_attack_id:
46+
- T1550
47+
- T1550.003
48+
- T1558
49+
- T1558.003
50+
- T1558.004
51+
observable:
52+
- name: user
53+
type: User
54+
role:
55+
- Victim
56+
- name: dest
57+
type: Hostname
58+
role:
59+
- Victim
60+
- name: parent_process_name
61+
type: Process
62+
role:
63+
- Attacker
64+
product:
65+
- Splunk Enterprise
66+
- Splunk Enterprise Security
67+
- Splunk Cloud
68+
required_fields:
69+
- _time
70+
- Processes.process
71+
- Processes.user
72+
- Processes.dest
73+
- Processes.process_name
74+
- Processes.parent_process_name
75+
risk_score: 64
76+
security_domain: endpoint
77+
tests:
78+
- name: True Positive Test
79+
attack_data:
80+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1550/netexec_toolkit_usage/netexec_toolkit_usage.log
81+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
82+
sourcetype: XmlWinEventLog

0 commit comments

Comments
 (0)