Scheduled Task Executed Uncommon LOLBIN

Detects the execution of Scheduled Tasks where the program being run is located in a suspicious location or where it is an unusual program to be run from a Scheduled Task

Sigma rule (View on GitHub)

 1title: Scheduled Task Executed Uncommon LOLBIN
 2id: f0767f15-0fb3-44b9-851e-e8d9a6d0005d
 3status: test
 4description: Detects the execution of Scheduled Tasks where the program being run is located in a suspicious location or where it is an unusual program to be run from a Scheduled Task
 5references:
 6    - Internal Research
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2022-12-05
 9modified: 2023-02-07
10tags:
11    - attack.persistence
12    - attack.t1053.005
13logsource:
14    product: windows
15    service: taskscheduler
16    definition: 'Requirements: The "Microsoft-Windows-TaskScheduler/Operational" is disabled by default and needs to be enabled in order for this detection to trigger'
17detection:
18    selection:
19        EventID: 129 # Created Task Process
20        Path|endswith:
21            - '\calc.exe'
22            - '\cscript.exe'
23            - '\mshta.exe'
24            - '\mspaint.exe'
25            - '\notepad.exe'
26            - '\regsvr32.exe'
27            # - '\rundll32.exe'
28            - '\wscript.exe'
29    # filter_system:
30    #     Path|endswith: '\rundll32.exe'
31    #     TaskName|startswith: '\Microsoft\Windows\'
32    # condition: selection and not 1 of filter_*
33    condition: selection
34falsepositives:
35    - False positives may occur with some of the selected binaries if you have tasks using them (which could be very common in your environment). Exclude all the specific trusted tasks before using this rule
36level: medium

References

Related rules

to-top