refactor: scheduled task patterns
This commit is contained in:
@@ -6,9 +6,10 @@ references:
|
||||
- https://app.any.run/tasks/512c1352-6380-4436-b27d-bb62f0c020d6/
|
||||
tags:
|
||||
- attack.execution
|
||||
- attack.t1053.005
|
||||
- attack.t1053.005
|
||||
author: Florian Roth
|
||||
date: 2022/02/23
|
||||
modified: 2022/03/23
|
||||
logsource:
|
||||
product: windows
|
||||
category: process_creation
|
||||
@@ -16,22 +17,26 @@ detection:
|
||||
selection_schtasks:
|
||||
Image|endswith: 'schtasks.exe'
|
||||
CommandLine|contains: '/Create '
|
||||
selection_rare:
|
||||
selection_pattern1:
|
||||
CommandLine|contains:
|
||||
- '/sc minute '
|
||||
- '/ru system '
|
||||
selection_pattern:
|
||||
selection_pattern2:
|
||||
CommandLine|contains:
|
||||
- 'cmd.exe /c '
|
||||
- 'cmd /c'
|
||||
- ' -w hidden '
|
||||
selection_rare:
|
||||
CommandLine|contains:
|
||||
- ' bypass '
|
||||
- ' IEX'
|
||||
- ' -enc '
|
||||
- ' -decode '
|
||||
- '.DownloadString'
|
||||
- '.DownloadFile'
|
||||
- 'FromBase64String'
|
||||
- ' -w hidden '
|
||||
- ' IEX'
|
||||
- ' -enc '
|
||||
- ' -decode '
|
||||
- '/c start /min ' # https://twitter.com/RedDrip7/status/1506480588827467785
|
||||
- ' curl ' # https://twitter.com/RedDrip7/status/1506480588827467785
|
||||
selection_anomaly:
|
||||
- CommandLine|contains|all:
|
||||
- '/xml C:\Users\'
|
||||
@@ -39,7 +44,7 @@ detection:
|
||||
- CommandLine|contains|all:
|
||||
- 'wscript.exe'
|
||||
- '\AppData\'
|
||||
condition: selection_schtasks and ( selection_rare and selection_pattern or selection_anomaly )
|
||||
condition: selection_schtasks and ( all of selection_pattern* or selection_rare or selection_anomaly )
|
||||
falsepositives:
|
||||
- Software installers that run from temporary folders and also install scheduled tasks
|
||||
level: high
|
||||
|
||||
Reference in New Issue
Block a user