Detection rules › Sigma
Suspicious Scheduled Task Creation via Masqueraded XML File
Detects the creation of a scheduled task using the "-XML" flag with a file without the '.xml' extension. This behavior could be indicative of potential defense evasion attempt during persistence
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1053.005 Scheduled Task/Job: Scheduled Task |
| Persistence | T1053.005 Scheduled Task/Job: Scheduled Task |
| Privilege Escalation | T1053.005 Scheduled Task/Job: Scheduled Task |
| Defense Evasion | T1036.005 Masquerading: Match Legitimate Resource Name or Location |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\schtasks.exe'
OriginalFileName: schtasks.exe
Stage 2: all of selection_cli_create
or:
CommandLine|contains: -create
CommandLine|contains: '/create'
Stage 3: all of selection_cli_xml
or:
CommandLine|contains: -xml
CommandLine|contains: '/xml'
Stage 4: not 1 of filter_main_*
or:
ParentCommandLine|contains: '.tmp,zzzzInvokeManagedCustomActionOutOfProc'
ParentCommandLine|contains: ':\WINDOWS\Installer\MSI'
ParentImage|endswith: '\rundll32.exe'
CommandLine|contains: .xml
IntegrityLevel: S-1-16-16384
IntegrityLevel: System
Stage 5: not 1 of filter_optional_third_party
or:
ParentImage|endswith: ':\Program Files (x86)\Zemana\AntiMalware\AntiMalware.exe'
ParentImage|endswith: ':\Program Files\Axis Communications\AXIS Camera Station\SetupActions.exe'
ParentImage|endswith: ':\Program Files\Axis Communications\AXIS Device Manager\AdmSetupActions.exe'
ParentImage|endswith: ':\Program Files\Dell\SupportAssist\pcdrcui.exe'
ParentImage|endswith: ':\ProgramData\OEM\UpgradeTool\CareCenter_*\BUnzip\Setup_msi.exe'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
IntegrityLevel | eq |
|
OriginalFileName | eq |
|
ParentCommandLine | match |
|
ParentImage | ends_with |
|