Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions rules/windows/defense_evasion_amsi_bypass_dllhijack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["windows", "endpoint", "sentinel_one_cloud_funnel", "m365_defende
maturity = "production"
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
min_stack_version = "8.14.0"
updated_date = "2024/10/15"
updated_date = "2024/12/12"

[transform]
[[transform.osquery]]
Expand Down Expand Up @@ -114,12 +114,15 @@ query = '''
file where host.os.type == "windows" and event.type != "deletion" and file.path != null and
file.name : ("amsi.dll", "amsi") and
not file.path : (
"?:\\$SysReset\\CloudImage\\Package_for_RollupFix*",
"?:\\Windows\\system32\\amsi.dll",
"?:\\Windows\\Syswow64\\amsi.dll",
"?:\\$WINDOWS.~BT\\DUImageSandbox\\*",
"?:\\$WINDOWS.~BT\\NewOS\\Windows\\WinSXS\\*",
"?:\\$WINDOWS.~BT\\NewOS\\Windows\\servicing\\LCU\\*",
"?:\\$WINDOWS.~BT\\Work\\*\\*",
"?:\\$WINDOWS.~BT\\Store\\Offline\\File\\C$\\Windows\\SoftwareDistribution\\Download.bak\\*",
"?:\\Windows\\CbsTemp\\*\\f\\amsi.dll",
"?:\\Windows\\SoftwareDistribution\\Download\\*",
"?:\\Windows\\WinSxS\\amd64_microsoft-antimalware-scan-interface_*\\amsi.dll"
) and
Expand All @@ -129,7 +132,10 @@ file where host.os.type == "windows" and event.type != "deletion" and file.path
file.path : (
"\\Device\\HarddiskVolume??\\Windows\\system32\\amsi.dll",
"\\Device\\HarddiskVolume??\\Windows\\syswow64\\amsi.dll",
"\\Device\\HarddiskVolume??\\Windows\\WinSxS\\*\\amsi.dll"
"\\Device\\HarddiskVolume??\\Windows\\WinSxS\\*\\amsi.dll",
"\\\\?\\Volume{*}\\Windows\\WinSxS\\*\\amsi.dll",
"\\\\?\\Volume{*}\\Windows\\system32\\amsi.dll",
"\\\\?\\Volume{*}\\Windows\\syswow64\\amsi.dll"
)
)
'''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2020/11/03"
integration = ["endpoint"]
maturity = "production"
updated_date = "2024/09/23"
updated_date = "2024/12/12"

[transform]
[[transform.osquery]]
Expand Down Expand Up @@ -148,6 +148,15 @@ sequence with maxspan=1m
(
process.executable : "?:\\ProgramData\\Sophos\\AutoUpdate\\Cache\\sophos_autoupdate1.dir\\SophosUpdate.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "Sophos Ltd"
) or
/* Elastic processes */
(
process.executable : (
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\previous\\elastic-endpoint.exe",
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\elastic-agent.exe",
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\agentbeat.exe"
) and
process.code_signature.trusted == true and process.code_signature.subject_name : "Elasticsearch, Inc."
)
)
] by host.id, process.executable
Expand Down
Loading