Skip to content

Commit 3f6ae10

Browse files
[Security Rules] Update security rules package to v8.17.7-beta.1 (#13079)
1 parent a549f5c commit 3f6ae10

File tree

271 files changed

+29424
-1731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+29424
-1731
lines changed

packages/security_detection_engine/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# newer versions go on top
22
# NOTE: please use pre-release versions (e.g. -beta.0) until a package is ready for production
3+
- version: 8.17.7-beta.1
4+
changes:
5+
- description: Release security rules update
6+
type: enhancement
7+
link: https://github.com/elastic/integrations/pull/13079
38
- version: 8.17.6
49
changes:
510
- description: Release security rules update
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
{
2+
"attributes": {
3+
"author": [
4+
"Elastic"
5+
],
6+
"description": "Identifies the execution of known Windows utilities often abused to dump LSASS memory or the Active Directory database (NTDS.dit) in preparation for credential access.",
7+
"from": "now-9m",
8+
"index": [
9+
"endgame-*",
10+
"logs-endpoint.events.process-*",
11+
"logs-m365_defender.event-*",
12+
"logs-sentinel_one_cloud_funnel.*",
13+
"logs-system.security*",
14+
"logs-windows.forwarded*",
15+
"logs-windows.sysmon_operational-*",
16+
"winlogbeat-*"
17+
],
18+
"language": "eql",
19+
"license": "Elastic License v2",
20+
"name": "Potential Credential Access via Windows Utilities",
21+
"note": "## Triage and analysis\n\n### Investigating Potential Credential Access via Windows Utilities\n\nLocal Security Authority Server Service (LSASS) is a process in Microsoft Windows operating systems that is responsible for enforcing security policy on the system. It verifies users logging on to a Windows computer or server, handles password changes, and creates access tokens.\n\nThe `Ntds.dit` file is a database that stores Active Directory data, including information about user objects, groups, and group membership.\n\nThis rule looks for the execution of utilities that can extract credential data from the LSASS memory and Active Directory `Ntds.dit` file.\n\n#### Possible investigation steps\n\n- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.\n- Investigate abnormal behaviors observed by the subject process, such as network connections, registry or file modifications, and any spawned child processes.\n- Investigate other alerts associated with the user/host during the past 48 hours.\n- Examine the command line to identify what information was targeted.\n- Identify the target computer and its role in the IT environment.\n\n### False positive analysis\n\n- This activity is unlikely to happen legitimately. Any activity that triggered the alert and is not inherently malicious must be monitored by the security team.\n\n### Response and remediation\n\n- Initiate the incident response process based on the outcome of the triage.\n- If the host is a domain controller (DC):\n - Activate your incident response plan for total Active Directory compromise.\n - Review the privileges assigned to users that can access the DCs, to ensure that the least privilege principle is being followed and to reduce the attack surface.\n- Isolate the involved hosts to prevent further post-compromise behavior.\n- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.\n- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.\n- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.\n- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).\n",
22+
"query": "process where host.os.type == \"windows\" and event.type == \"start\" and\n(\n (\n (?process.pe.original_file_name : \"procdump\" or process.name : \"procdump.exe\") and process.args : \"-ma\"\n ) or\n (\n process.name : \"ProcessDump.exe\" and not process.parent.executable regex~ \"\"\"C:\\\\Program Files( \\(x86\\))?\\\\Cisco Systems\\\\.*\"\"\"\n ) or\n (\n (?process.pe.original_file_name : \"WriteMiniDump.exe\" or process.name : \"WriteMiniDump.exe\") and\n not process.parent.executable regex~ \"\"\"C:\\\\Program Files( \\(x86\\))?\\\\Steam\\\\.*\"\"\"\n ) or\n (\n (?process.pe.original_file_name : \"RUNDLL32.EXE\" or process.name : \"RUNDLL32.exe\") and\n (process.args : \"MiniDump*\" or process.command_line : \"*comsvcs.dll*#24*\")\n ) or\n (\n (?process.pe.original_file_name : \"RdrLeakDiag.exe\" or process.name : \"RdrLeakDiag.exe\") and\n process.args : \"/fullmemdmp\"\n ) or\n (\n (?process.pe.original_file_name : \"SqlDumper.exe\" or process.name : \"SqlDumper.exe\") and\n process.args : \"0x01100*\") or\n (\n (?process.pe.original_file_name : \"TTTracer.exe\" or process.name : \"TTTracer.exe\") and\n process.args : \"-dumpFull\" and process.args : \"-attach\") or\n (\n (?process.pe.original_file_name : \"ntdsutil.exe\" or process.name : \"ntdsutil.exe\") and\n process.args : \"create*full*\") or\n (\n (?process.pe.original_file_name : \"diskshadow.exe\" or process.name : \"diskshadow.exe\") and process.args : \"/s\")\n)\n",
23+
"references": [
24+
"https://lolbas-project.github.io/",
25+
"https://www.elastic.co/security-labs/elastic-protects-against-data-wiper-malware-targeting-ukraine-hermeticwiper"
26+
],
27+
"related_integrations": [
28+
{
29+
"package": "endpoint",
30+
"version": "^8.2.0"
31+
},
32+
{
33+
"package": "windows",
34+
"version": "^2.0.0"
35+
},
36+
{
37+
"package": "m365_defender",
38+
"version": "^2.0.0"
39+
},
40+
{
41+
"package": "sentinel_one_cloud_funnel",
42+
"version": "^1.0.0"
43+
},
44+
{
45+
"package": "system",
46+
"version": "^1.6.4"
47+
}
48+
],
49+
"required_fields": [
50+
{
51+
"ecs": true,
52+
"name": "event.type",
53+
"type": "keyword"
54+
},
55+
{
56+
"ecs": true,
57+
"name": "host.os.type",
58+
"type": "keyword"
59+
},
60+
{
61+
"ecs": true,
62+
"name": "process.args",
63+
"type": "keyword"
64+
},
65+
{
66+
"ecs": true,
67+
"name": "process.command_line",
68+
"type": "wildcard"
69+
},
70+
{
71+
"ecs": true,
72+
"name": "process.name",
73+
"type": "keyword"
74+
},
75+
{
76+
"ecs": true,
77+
"name": "process.parent.executable",
78+
"type": "keyword"
79+
},
80+
{
81+
"ecs": true,
82+
"name": "process.pe.original_file_name",
83+
"type": "keyword"
84+
}
85+
],
86+
"risk_score": 73,
87+
"rule_id": "00140285-b827-4aee-aa09-8113f58a08f3",
88+
"severity": "high",
89+
"tags": [
90+
"Domain: Endpoint",
91+
"OS: Windows",
92+
"Use Case: Threat Detection",
93+
"Tactic: Credential Access",
94+
"Tactic: Defense Evasion",
95+
"Resources: Investigation Guide",
96+
"Data Source: Elastic Endgame",
97+
"Data Source: Elastic Defend",
98+
"Data Source: Windows Security Event Logs",
99+
"Data Source: Microsoft Defender for Endpoint",
100+
"Data Source: SentinelOne",
101+
"Data Source: Sysmon"
102+
],
103+
"threat": [
104+
{
105+
"framework": "MITRE ATT&CK",
106+
"tactic": {
107+
"id": "TA0006",
108+
"name": "Credential Access",
109+
"reference": "https://attack.mitre.org/tactics/TA0006/"
110+
},
111+
"technique": [
112+
{
113+
"id": "T1003",
114+
"name": "OS Credential Dumping",
115+
"reference": "https://attack.mitre.org/techniques/T1003/",
116+
"subtechnique": [
117+
{
118+
"id": "T1003.001",
119+
"name": "LSASS Memory",
120+
"reference": "https://attack.mitre.org/techniques/T1003/001/"
121+
},
122+
{
123+
"id": "T1003.003",
124+
"name": "NTDS",
125+
"reference": "https://attack.mitre.org/techniques/T1003/003/"
126+
}
127+
]
128+
}
129+
]
130+
},
131+
{
132+
"framework": "MITRE ATT&CK",
133+
"tactic": {
134+
"id": "TA0005",
135+
"name": "Defense Evasion",
136+
"reference": "https://attack.mitre.org/tactics/TA0005/"
137+
},
138+
"technique": [
139+
{
140+
"id": "T1218",
141+
"name": "System Binary Proxy Execution",
142+
"reference": "https://attack.mitre.org/techniques/T1218/",
143+
"subtechnique": [
144+
{
145+
"id": "T1218.011",
146+
"name": "Rundll32",
147+
"reference": "https://attack.mitre.org/techniques/T1218/011/"
148+
}
149+
]
150+
}
151+
]
152+
}
153+
],
154+
"timestamp_override": "event.ingested",
155+
"type": "eql",
156+
"version": 316
157+
},
158+
"id": "00140285-b827-4aee-aa09-8113f58a08f3_316",
159+
"type": "security-rule"
160+
}
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"attributes": {
3+
"author": [
4+
"Elastic"
5+
],
6+
"description": "Windows services typically run as SYSTEM and can be used as a privilege escalation opportunity. Malware or penetration testers may run a shell as a service to gain SYSTEM permissions.",
7+
"from": "now-9m",
8+
"index": [
9+
"endgame-*",
10+
"logs-crowdstrike.fdr*",
11+
"logs-endpoint.events.process-*",
12+
"logs-m365_defender.event-*",
13+
"logs-sentinel_one_cloud_funnel.*",
14+
"logs-system.security*",
15+
"logs-windows.forwarded*",
16+
"logs-windows.sysmon_operational-*",
17+
"winlogbeat-*"
18+
],
19+
"language": "eql",
20+
"license": "Elastic License v2",
21+
"name": "System Shells via Services",
22+
"note": "## Triage and analysis\n\n### Investigating System Shells via Services\n\nAttackers may configure existing services or create new ones to execute system shells to elevate their privileges from administrator to SYSTEM. They can also configure services to execute these shells with persistence payloads.\n\nThis rule looks for system shells being spawned by `services.exe`, which is compatible with the above behavior.\n\n> **Note**:\n> This investigation guide uses the [Osquery Markdown Plugin](https://www.elastic.co/guide/en/security/current/invest-guide-run-osquery.html) introduced in Elastic Stack version 8.5.0. Older Elastic Stack versions will display unrendered Markdown in this guide.\n\n#### Possible investigation steps\n\n- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.\n- Identify how the service was created or modified. Look for registry changes events or Windows events related to service activities (for example, 4697 and/or 7045).\n - Examine the created and existent services, the executables or drivers referenced, and command line arguments for suspicious entries.\n - !{osquery{\"label\":\"Osquery - Retrieve All Services\",\"query\":\"SELECT description, display_name, name, path, pid, service_type, start_type, status, user_account FROM services\"}}\n - !{osquery{\"label\":\"Osquery - Retrieve Services Running on User Accounts\",\"query\":\"SELECT description, display_name, name, path, pid, service_type, start_type, status, user_account FROM services WHERE\\nNOT (user_account LIKE '%LocalSystem' OR user_account LIKE '%LocalService' OR user_account LIKE '%NetworkService' OR\\nuser_account == null)\\n\"}}\n - !{osquery{\"label\":\"Osquery - Retrieve Service Unsigned Executables with Virustotal Link\",\"query\":\"SELECT concat('https://www.virustotal.com/gui/file/', sha1) AS VtLink, name, description, start_type, status, pid,\\nservices.path FROM services JOIN authenticode ON services.path = authenticode.path OR services.module_path =\\nauthenticode.path JOIN hash ON services.path = hash.path WHERE authenticode.result != 'trusted'\\n\"}}\n - Retrieve the referenced files' SHA-256 hash values using the PowerShell `Get-FileHash` cmdlet and search for the existence and reputation of the hashes in resources like VirusTotal, Hybrid-Analysis, CISCO Talos, Any.run, etc.\n- Identify the user account that performed the action and whether it should perform this kind of action.\n- Contact the account owner and confirm whether they are aware of this activity.\n- Investigate other alerts associated with the user/host during the past 48 hours.\n- Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts.\n- Check for commands executed under the spawned shell.\n\n### False positive analysis\n\n- This activity should not happen legitimately. The security team should address any potential benign true positive (B-TP), as this configuration can put the user and the domain at risk.\n\n### Response and remediation\n\n- Initiate the incident response process based on the outcome of the triage.\n- Isolate the involved host to prevent further post-compromise behavior.\n- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.\n- Delete the service or restore it to the original configuration.\n- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.\n- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.\n- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).\n",
23+
"query": "process where host.os.type == \"windows\" and event.type == \"start\" and\n process.parent.name : \"services.exe\" and\n process.name : (\"cmd.exe\", \"powershell.exe\", \"pwsh.exe\", \"powershell_ise.exe\") and\n\n /* Third party FP's */\n not process.args : \"NVDisplay.ContainerLocalSystem\"\n",
24+
"related_integrations": [
25+
{
26+
"package": "endpoint",
27+
"version": "^8.2.0"
28+
},
29+
{
30+
"package": "windows",
31+
"version": "^2.0.0"
32+
},
33+
{
34+
"package": "system",
35+
"version": "^1.6.4"
36+
},
37+
{
38+
"package": "sentinel_one_cloud_funnel",
39+
"version": "^1.0.0"
40+
},
41+
{
42+
"package": "m365_defender",
43+
"version": "^2.0.0"
44+
},
45+
{
46+
"package": "crowdstrike",
47+
"version": "^1.1.0"
48+
}
49+
],
50+
"required_fields": [
51+
{
52+
"ecs": true,
53+
"name": "event.type",
54+
"type": "keyword"
55+
},
56+
{
57+
"ecs": true,
58+
"name": "host.os.type",
59+
"type": "keyword"
60+
},
61+
{
62+
"ecs": true,
63+
"name": "process.args",
64+
"type": "keyword"
65+
},
66+
{
67+
"ecs": true,
68+
"name": "process.name",
69+
"type": "keyword"
70+
},
71+
{
72+
"ecs": true,
73+
"name": "process.parent.name",
74+
"type": "keyword"
75+
}
76+
],
77+
"risk_score": 47,
78+
"rule_id": "0022d47d-39c7-4f69-a232-4fe9dc7a3acd",
79+
"severity": "medium",
80+
"tags": [
81+
"Domain: Endpoint",
82+
"OS: Windows",
83+
"Use Case: Threat Detection",
84+
"Tactic: Persistence",
85+
"Tactic: Execution",
86+
"Resources: Investigation Guide",
87+
"Data Source: Elastic Endgame",
88+
"Data Source: Elastic Defend",
89+
"Data Source: SentinelOne",
90+
"Data Source: Microsoft Defender for Endpoint",
91+
"Data Source: Windows Security Event Logs",
92+
"Data Source: Crowdstrike",
93+
"Data Source: Sysmon"
94+
],
95+
"threat": [
96+
{
97+
"framework": "MITRE ATT&CK",
98+
"tactic": {
99+
"id": "TA0003",
100+
"name": "Persistence",
101+
"reference": "https://attack.mitre.org/tactics/TA0003/"
102+
},
103+
"technique": [
104+
{
105+
"id": "T1543",
106+
"name": "Create or Modify System Process",
107+
"reference": "https://attack.mitre.org/techniques/T1543/",
108+
"subtechnique": [
109+
{
110+
"id": "T1543.003",
111+
"name": "Windows Service",
112+
"reference": "https://attack.mitre.org/techniques/T1543/003/"
113+
}
114+
]
115+
}
116+
]
117+
},
118+
{
119+
"framework": "MITRE ATT&CK",
120+
"tactic": {
121+
"id": "TA0002",
122+
"name": "Execution",
123+
"reference": "https://attack.mitre.org/tactics/TA0002/"
124+
},
125+
"technique": [
126+
{
127+
"id": "T1059",
128+
"name": "Command and Scripting Interpreter",
129+
"reference": "https://attack.mitre.org/techniques/T1059/",
130+
"subtechnique": [
131+
{
132+
"id": "T1059.001",
133+
"name": "PowerShell",
134+
"reference": "https://attack.mitre.org/techniques/T1059/001/"
135+
},
136+
{
137+
"id": "T1059.003",
138+
"name": "Windows Command Shell",
139+
"reference": "https://attack.mitre.org/techniques/T1059/003/"
140+
}
141+
]
142+
}
143+
]
144+
}
145+
],
146+
"timestamp_override": "event.ingested",
147+
"type": "eql",
148+
"version": 417
149+
},
150+
"id": "0022d47d-39c7-4f69-a232-4fe9dc7a3acd_417",
151+
"type": "security-rule"
152+
}

0 commit comments

Comments
 (0)