{"id":"7a02e22e-b885-4404-b38b-1ddc7e65258a","title":"Suspicious Schtasks Schedule Type With High Privileges","description":"Detects scheduled task creations or modification to be run with high privileges on a suspicious schedule type","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-08-31","modified":"","tags":["attack.privilege-escalation","attack.persistence","attack.execution","attack.t1053.005"],"technique_ids":["T1053.005"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Some installers were seen using this method of creation unfortunately. Filter them in your environment"],"references":["https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-change","https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-create"],"source_path":"rules/windows/process_creation/proc_creation_win_schtasks_schedule_type_system.yml","source_sha256":"2b24b6a6baa316648a5ce08564e1e91de2d086f2100fea9b178971526708a8a6","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_schtasks_schedule_type_system.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Schtasks Schedule Type With High Privileges\nid: 7a02e22e-b885-4404-b38b-1ddc7e65258a\nrelated:\n    - id: 24c8392b-aa3c-46b7-a545-43f71657fe98\n      type: similar\nstatus: test\ndescription: Detects scheduled task creations or modification to be run with high privileges on a suspicious schedule type\nreferences:\n    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-change\n    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-create\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-08-31\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.execution\n    - attack.t1053.005\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_img:\n        - Image|endswith: '\\schtasks.exe'\n        - OriginalFileName: 'schtasks.exe'\n    selection_time:\n        CommandLine|contains:\n            - ' ONLOGON '\n            - ' ONSTART '\n            - ' ONCE '\n            - ' ONIDLE '\n    selection_privs:\n        CommandLine|contains:\n            - 'NT AUT' # This covers the usual NT AUTHORITY\\SYSTEM\n            - ' SYSTEM' # SYSTEM is a valid value for schtasks hence it gets it's own value with space\n            - 'HIGHEST'\n    condition: all of selection_*\nfalsepositives:\n    - Some installers were seen using this method of creation unfortunately. Filter them in your environment\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1053.005","id":"T1053.005","name":"Scheduled Task","page":"techniques/enterprise/T1053.005/"}],"data_path":"data/detection-rules/7a02e22e-b885-4404-b38b-1ddc7e65258a.json","kind":"sigma"}
