[Rule Tuning] Remove File Quarantine Attribute (#2129)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[metadata]
|
||||
creation_date = "2020/08/14"
|
||||
maturity = "production"
|
||||
updated_date = "2022/07/18"
|
||||
updated_date = "2022/07/20"
|
||||
|
||||
[rule]
|
||||
author = ["Elastic"]
|
||||
@@ -32,20 +32,12 @@ type = "eql"
|
||||
|
||||
query = '''
|
||||
process where event.type in ("start", "process_started") and
|
||||
process.args : "xattr" and
|
||||
process.name : "xattr" and
|
||||
(
|
||||
(process.args : "com.apple.quarantine" and process.args : ("-d", "-w")) or
|
||||
(process.args : "-c" and process.command_line :
|
||||
(
|
||||
"/bin/bash -c xattr -c *",
|
||||
"/bin/zsh -c xattr -c *",
|
||||
"/bin/sh -c xattr -c *"
|
||||
)
|
||||
)
|
||||
) and not process.args : (
|
||||
"/Applications/Google Chrome.app",
|
||||
"/Applications/Microsoft Edge.app"
|
||||
)
|
||||
(process.args : "-c") or
|
||||
(process.command_line : ("/bin/bash -c xattr -c *", "/bin/zsh -c xattr -c *", "/bin/sh -c xattr -c *"))
|
||||
) and not process.args_count > 12
|
||||
'''
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user