fix: explicitly escape { to make it clear that it is a literal (#3737)

This commit is contained in:
Fukusuke Takahashi
2022-11-30 19:43:49 +09:00
committed by GitHub
parent 82afa90499
commit 76fece654a
5 changed files with 5 additions and 5 deletions
@@ -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