fix: explicitly escape { to make it clear that it is a literal (#3737)
This commit is contained in:
committed by
GitHub
parent
82afa90499
commit
76fece654a
@@ -18,7 +18,7 @@ logsource:
|
||||
definition: Script block logging must be enabled
|
||||
detection:
|
||||
selection_4104:
|
||||
ScriptBlockText|re: '.*cmd.{0,5}(?:\/c|\/r).+powershell.+(?:\$\{?input\}?|noexit).+\"'
|
||||
ScriptBlockText|re: '.*cmd.{0,5}(?:\/c|\/r).+powershell.+(?:\$?\{?input\}?|noexit).+\"'
|
||||
condition: selection_4104
|
||||
falsepositives:
|
||||
- Unknown
|
||||
|
||||
@@ -18,7 +18,7 @@ logsource:
|
||||
definition: Script block logging must be enabled
|
||||
detection:
|
||||
selection_4104:
|
||||
ScriptBlockText|re: '(?i).*(set).*&&\s?set.*(environment|invoke|\${?input).*&&.*"'
|
||||
ScriptBlockText|re: '(?i).*(set).*&&\s?set.*(environment|invoke|\$\{?input).*&&.*"'
|
||||
condition: selection_4104
|
||||
falsepositives:
|
||||
- Unknown
|
||||
|
||||
Reference in New Issue
Block a user