Skip to content

Commit 7bb12d8

Browse files
Mikaayensongithub-actions[bot]
authored andcommitted
[Rule Tuning] Persistence via Folder Action Script (#2174)
* Exclude FPs for iterm Co-authored-by: Justin Ibarra <[email protected]> (cherry picked from commit d1bc53e)
1 parent 4eab1e8 commit 7bb12d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rules/macos/persistence_folder_action_scripts_runtime.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
creation_date = "2020/12/07"
33
maturity = "production"
4-
updated_date = "2022/02/28"
4+
updated_date = "2022/07/26"
55

66
[rule]
77
author = ["Elastic"]
@@ -25,7 +25,9 @@ type = "eql"
2525
query = '''
2626
sequence by host.id with maxspan=5s
2727
[process where event.type in ("start", "process_started", "info") and process.name == "com.apple.foundation.UserScriptService"] by process.pid
28-
[process where event.type in ("start", "process_started") and process.name in ("osascript", "python", "tcl", "node", "perl", "ruby", "php", "bash", "csh", "zsh", "sh")] by process.parent.pid
28+
[process where event.type in ("start", "process_started") and process.name in ("osascript", "python", "tcl", "node", "perl", "ruby", "php", "bash", "csh", "zsh", "sh") and
29+
not process.args : "/Users/*/Library/Application Support/iTerm2/Scripts/AutoLaunch/*.scpt"
30+
] by process.parent.pid
2931
'''
3032

3133

0 commit comments

Comments
 (0)