Skip to content

Commit 9fadc4c

Browse files
Samirbouspeasead
andauthored
[New Rule] Complementary Rules for Recent REvil TTPs (elastic#1329)
* [New Rule] Complementary Rules for Recent REvil TTPs * added OFN * relinted and added T1574.002 * removed new line * Update defense_evasion_disabling_windows_defender_powershell.toml * corrected rule name * added a reference url * Update rules/windows/defense_evasion_disabling_windows_defender_powershell.toml Co-authored-by: Andrew Pease <[email protected]> * Update rules/windows/defense_evasion_enable_network_discovery_with_netsh.toml Co-authored-by: Andrew Pease <[email protected]> * Update rules/windows/defense_evasion_execution_windefend_unusual_path.toml Co-authored-by: Andrew Pease <[email protected]> * Update rules/windows/defense_evasion_execution_windefend_unusual_path.toml Co-authored-by: Andrew Pease <[email protected]> Co-authored-by: Andrew Pease <[email protected]>
1 parent 63a3966 commit 9fadc4c

3 files changed

+150
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[metadata]
2+
creation_date = "2021/07/07"
3+
maturity = "production"
4+
updated_date = "2021/07/07"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = "Identifies use of the Set-MpPreference PowerShell command to disable or weaken certain Windows Defender settings."
9+
false_positives = ["Planned Windows Defender configuration changes."]
10+
from = "now-9m"
11+
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
12+
language = "eql"
13+
license = "Elastic License v2"
14+
name = "Disabling Windows Defender Security Settings via PowerShell"
15+
references = [
16+
"https://docs.microsoft.com/en-us/powershell/module/defender/set-mppreference?view=windowsserver2019-ps",
17+
]
18+
risk_score = 47
19+
rule_id = "c8cccb06-faf2-4cd5-886e-2c9636cfcb87"
20+
severity = "medium"
21+
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"]
22+
timestamp_override = "event.ingested"
23+
type = "eql"
24+
25+
query = '''
26+
process where event.type == "start" and
27+
(process.name : ("powershell.exe", "pwsh.exe") or process.pe.original_file_name == "PowerShell.EXE") and
28+
process.args : "Set-MpPreference" and process.args : ("-Disable*", "Disabled", "NeverSend", "-Exclusion*")
29+
'''
30+
31+
32+
[[rule.threat]]
33+
framework = "MITRE ATT&CK"
34+
[[rule.threat.technique]]
35+
id = "T1562"
36+
reference = "https://attack.mitre.org/techniques/T1562/"
37+
name = "Impair Defenses"
38+
[[rule.threat.technique.subtechnique]]
39+
id = "T1562.001"
40+
reference = "https://attack.mitre.org/techniques/T1562/001/"
41+
name = "Disable or Modify Tools"
42+
43+
44+
45+
[rule.threat.tactic]
46+
id = "TA0005"
47+
reference = "https://attack.mitre.org/tactics/TA0005/"
48+
name = "Defense Evasion"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[metadata]
2+
creation_date = "2021/07/07"
3+
maturity = "production"
4+
updated_date = "2021/07/07"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
Identifies use of the netsh.exe program to enable host discovery via the network. Attackers can use this command-line tool to
10+
weaken the host firewall settings.
11+
"""
12+
false_positives = ["Host Windows Firewall planned system administration changes."]
13+
from = "now-9m"
14+
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
15+
language = "eql"
16+
license = "Elastic License v2"
17+
name = "Enable Host Network Discovery via Netsh"
18+
risk_score = 47
19+
rule_id = "8b4f0816-6a65-4630-86a6-c21c179c0d09"
20+
severity = "medium"
21+
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"]
22+
timestamp_override = "event.ingested"
23+
type = "eql"
24+
25+
query = '''
26+
process where event.type == "start" and
27+
process.name : "netsh.exe" and
28+
process.args : ("firewall", "advfirewall") and process.args : "group=Network Discovery" and process.args : "enable=Yes"
29+
'''
30+
31+
32+
[[rule.threat]]
33+
framework = "MITRE ATT&CK"
34+
[[rule.threat.technique]]
35+
reference = "https://attack.mitre.org/techniques/T1562/"
36+
id = "T1562"
37+
name = "Impair Defenses"
38+
[[rule.threat.technique.subtechnique]]
39+
reference = "https://attack.mitre.org/techniques/T1562/001/"
40+
id = "T1562.001"
41+
name = "Disable or Modify Tools"
42+
43+
44+
45+
[rule.threat.tactic]
46+
reference = "https://attack.mitre.org/tactics/TA0005/"
47+
id = "TA0005"
48+
name = "Defense Evasion"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[metadata]
2+
creation_date = "2021/07/07"
3+
maturity = "production"
4+
updated_date = "2021/07/07"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
Identifies a Windows trusted program that is known to be vulnerable to DLL Search Order Hijacking
10+
starting after being renamed or from a non-standard path. This is uncommon behavior and may indicate an attempt to evade
11+
defenses via side-loading a malicious DLL within the memory space of one of those processes.
12+
"""
13+
false_positives = ["Microsoft Antimalware Service Executable installed on non default installation path."]
14+
from = "now-9m"
15+
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
16+
language = "eql"
17+
license = "Elastic License v2"
18+
name = "Potential DLL Side-Loading via Microsoft Antimalware Service Executable"
19+
references = [
20+
"https://news.sophos.com/en-us/2021/07/04/independence-day-revil-uses-supply-chain-exploit-to-attack-hundreds-of-businesses/",
21+
]
22+
risk_score = 73
23+
rule_id = "053a0387-f3b5-4ba5-8245-8002cca2bd08"
24+
severity = "high"
25+
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"]
26+
timestamp_override = "event.ingested"
27+
type = "eql"
28+
29+
query = '''
30+
process where event.type == "start" and
31+
(process.pe.original_file_name == "MsMpEng.exe" and not process.name : "MsMpEng.exe") or
32+
(process.name : "MsMpEng.exe" and not
33+
process.executable : ("?:\\ProgramData\\Microsoft\\Windows Defender\\*.exe",
34+
"?:\\Program Files\\Windows Defender\\*.exe",
35+
"?:\\Program Files (x86)\\Windows Defender\\*.exe"))
36+
'''
37+
38+
39+
[[rule.threat]]
40+
framework = "MITRE ATT&CK"
41+
[[rule.threat.technique]]
42+
id = "T1574"
43+
name = "Hijack Execution Flow"
44+
reference = "https://attack.mitre.org/techniques/T1574/"
45+
[[rule.threat.technique.subtechnique]]
46+
id = "T1574.002"
47+
name = "DLL Side-Loading"
48+
reference = "https://attack.mitre.org/techniques/T1574/002/"
49+
50+
51+
[rule.threat.tactic]
52+
name = "Defense Evasion"
53+
reference = "https://attack.mitre.org/tactics/TA0005/"
54+
id = "TA0005"

0 commit comments

Comments
 (0)