Skip to content
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

[Rule Tuning] Tuning Process Termination followed by Deletion #4173

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2020/11/04"
integration = ["endpoint"]
maturity = "production"
updated_date = "2024/05/21"
updated_date = "2024/10/18"

[transform]
[[transform.osquery]]
Expand Down Expand Up @@ -109,22 +109,27 @@ query = '''
sequence by host.id with maxspan=5s
[process where host.os.type == "windows" and event.type == "end" and
process.code_signature.trusted != true and
not process.executable : ("C:\\Windows\\SoftwareDistribution\\*.exe", "C:\\Windows\\WinSxS\\*.exe")
not process.executable like
("C:\\Windows\\SoftwareDistribution\\*.exe",
"C:\\Windows\\WinSxS\\*.exe",
"?:\\Windows\\Postillion\\Office\\*.exe")
] by process.executable
[file where host.os.type == "windows" and event.type == "deletion" and file.extension : ("exe", "scr", "com") and
not process.executable :
[file where host.os.type == "windows" and event.type == "deletion" and file.extension in ("exe", "scr", "com") and
Samirbous marked this conversation as resolved.
Show resolved Hide resolved
not process.executable like
("?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\System32\\svchost.exe",
"?:\\Windows\\System32\\drvinst.exe") and
not file.path : (
"?:\\Windows\\System32\\drvinst.exe",
"?:\\Windows\\Postillion\\Office\\*.exe") and
not file.path like (
"?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\Temp\\*\\DismHost.exe",
"?:\\$WINDOWS.~BT\\Work\\*\\DismHost.exe",
"?:\\$WinREAgent\\Scratch\\*\\DismHost.exe",
"?:\\Windows\\tenable_mw_scan_*.exe",
"?:\\Users\\*\\AppData\\Local\\Temp\\LogiUI\\Pak\\uninstall.exe"
"?:\\Users\\*\\AppData\\Local\\Temp\\LogiUI\\Pak\\uninstall.exe",
"?:\\ProgramData\\chocolatey\\*.exe"
)
] by file.path
'''
Expand Down
Loading