{"id":"2daa93a0-a5fb-41c5-8cd8-3c11294bfd1f","title":"Potential SSH Tunnel Persistence Install Using A Scheduled Task","description":"Detects the creation of new scheduled tasks via commandline, using Schtasks.exe. This rule detects tasks creating that call OpenSSH, which may indicate the creation of reverse SSH tunnel to the attacker's server.","author":"Rory Duncan","status":"experimental","level":"high","date":"2025-07-14","modified":"","tags":["attack.privilege-escalation","attack.persistence","attack.execution","attack.t1053.005","attack.command-and-control"],"technique_ids":["T1053.005"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://thedfirreport.com/2023/10/30/netsupport-intrusion-results-in-domain-compromise/","https://www.kroll.com/en/insights/publications/cyber/cactus-ransomware-prickly-new-variant-evades-detection"],"source_path":"rules/windows/process_creation/proc_creation_win_schtasks_openssh_tunnelling.yml","source_sha256":"ba65d54c0dceae6d62ffcc4215d103d42336bd6162b70a0f6fc10991d85f4803","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_schtasks_openssh_tunnelling.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential SSH Tunnel Persistence Install Using A Scheduled Task\nid: 2daa93a0-a5fb-41c5-8cd8-3c11294bfd1f\nstatus: experimental\ndescription: Detects the creation of new scheduled tasks via commandline, using Schtasks.exe. This rule detects tasks creating that call OpenSSH, which may indicate the creation of reverse SSH tunnel to the attacker's server.\nreferences:\n    - https://thedfirreport.com/2023/10/30/netsupport-intrusion-results-in-domain-compromise/\n    - https://www.kroll.com/en/insights/publications/cyber/cactus-ransomware-prickly-new-variant-evades-detection\nauthor: Rory Duncan\ndate: 2025-07-14\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.execution\n    - attack.t1053.005\n    - attack.command-and-control\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_img:\n        - Image|endswith: '\\schtasks.exe'\n        - OriginalFileName: 'schtasks.exe'\n    selection_cli_sshd:\n        CommandLine|contains|all:\n            - ' /create '\n            - 'sshd.exe'\n            - '-f'\n    selection_cli_ssh:\n        CommandLine|contains|all:\n            - ' /create '\n            - 'ssh.exe'\n            - '-i'\n    condition: selection_img and 1 of selection_cli_*\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/"}],"data_path":"data/detection-rules/2daa93a0-a5fb-41c5-8cd8-3c11294bfd1f.json","kind":"sigma"}
