Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Script interpreter host or untrusted process persistence
id: cc41ee3a-6e44-4903-85a4-0147ec6a7eea
version: 1.0.4
version: 1.1.0
description: |
Identifies the script interpreter or untrusted process writing
to commonly abused run keys or the Startup folder locations.
Identifies the script interpreter or untrusted process writing to commonly
abused run keys or the Startup folder locations.
labels:
tactic.id: TA0006
tactic.name: Persistence
Expand All @@ -16,19 +16,33 @@ labels:
subtechnique.ref: https://attack.mitre.org/techniques/T1547/001/

condition: >
(modify_registry or create_file)
(((modify_registry) or (create_file)) and kevt.pid != 4)
and
(ps.name in script_interpreters or ps.parent.name in script_interpreters or pe.is_trusted = false)
and
(registry.path imatches registry_run_keys or file.path imatches startup_locations)
and
not
ps.exe imatches
(
'?:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
'?:\\Program Files (x86)\\Microsoft\\Edge\\Application\\*\\msedge.exe',
'?:\\Program Files\\Microsoft\\Edge\\Application\\*\\msedge.exe'
)
(
ps.exe imatches
(
'?:\\Windows\\explorer.exe',
'?:\\Windows\\System32\\services.exe',
'?:\\Windows\\System32\\svchost.exe',
'?:\\Windows\\System32\\msiexec.exe',
'?:\\Program Files*\\Google\\Chrome\\Application\\chrome.exe',
'?:\\Program Files*\\Mozilla Firefox\\firefox.exe',
'?:\\Program Files*\\Opera\\*\\opera.exe',
'?:\\Program Files*\\Microsoft\\Edge\\Application\\msedge.exe',
'?:\\Program Files\\Microsoft\\Edge\\Application\\*\\msedge.exe',
'?:\\Program Files (x86)\\Microsoft\\Edge\\Application\\*\\msedge.exe',
'?:\\Users\\*\\AppData\\Local\\Microsoft\\OneDrive\\OneDrive.exe',
'?:\\Program Files\\Google\\Drive File Stream\\*\\GoogleDriveFS.exe',
'?:\\Users\\*\\AppData\\Local\\Dropbox\\Dropbox.exe'
)
or
(pe.is_signed = true and pe.cert.subject imatches '*Microsoft*')
)
action:
- name: kill

Expand Down