refactor: simplified and extended expression in CVE-2020-1048 rule

This commit is contained in:
Florian Roth
2020-05-23 09:16:19 +02:00
parent 57c8e63acd
commit 34006d0794
2 changed files with 6 additions and 5 deletions
@@ -15,17 +15,17 @@ logsource:
product: windows
detection:
selection1:
CommandLine|contains|all:
CommandLine|contains:
- 'Add-PrinterPort -Name'
- '.dll'
selection2:
CommandLine|contains|all:
- 'Add-PrinterPort -Name'
CommandLine|contains:
- '.exe'
- '.dll'
- '.bat'
selection3:
CommandLine|contains:
- 'Generic / Text Only'
condition: 1 of them
condition: ( selection1 and selection2 ) or selection3
falsepositives:
- New printer port install on host
level: high
@@ -26,6 +26,7 @@ detection:
TargetObject|contains:
- '.dll'
- '.exe'
- '.bat'
- 'C:'
condition: selection
falsepositives: