{"id":"c5c00f49-b3f9-45a6-997e-cfdecc6e1967","title":"Suspicious Schtasks Execution AppData Folder","description":"Detects the creation of a schtask that executes a file from C:\\Users\\<USER>\\AppData\\Local","author":"pH-T (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2022-03-15","modified":"2022-07-28","tags":["attack.privilege-escalation","attack.execution","attack.persistence","attack.t1053.005","attack.t1059.001"],"technique_ids":["T1053.005","T1059.001"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://thedfirreport.com/2022/02/21/qbot-and-zerologon-lead-to-full-domain-compromise/"],"source_path":"rules/windows/process_creation/proc_creation_win_schtasks_appdata_local_system.yml","source_sha256":"8d6f6fbcb908a156dd7cc67d4f47ec32b428861900ef59c58d4c404d4dbcd699","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_schtasks_appdata_local_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 Execution AppData Folder\nid: c5c00f49-b3f9-45a6-997e-cfdecc6e1967\nstatus: test\ndescription: 'Detects the creation of a schtask that executes a file from C:\\Users\\<USER>\\AppData\\Local'\nreferences:\n    - https://thedfirreport.com/2022/02/21/qbot-and-zerologon-lead-to-full-domain-compromise/\nauthor: pH-T (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-03-15\nmodified: 2022-07-28\ntags:\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.persistence\n    - attack.t1053.005\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection:\n        Image|endswith: '\\schtasks.exe'\n        CommandLine|contains|all:\n            - '/Create'\n            - '/RU'\n            - '/TR'\n            - 'C:\\Users\\'\n            - '\\AppData\\Local\\'\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    filter:\n        # FP from test set in SIGMA\n        ParentImage|contains|all:\n            - '\\AppData\\Local\\Temp\\'\n            - 'TeamViewer_.exe'\n        Image|endswith: '\\schtasks.exe'\n        CommandLine|contains: '/TN TVInstallRestore'\n    condition: selection and not filter\nfalsepositives:\n    - Unknown\nlevel: high\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/"},{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"}],"data_path":"data/detection-rules/c5c00f49-b3f9-45a6-997e-cfdecc6e1967.json","kind":"sigma"}
