[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7K9CD2NKB384H11SZNARQ":3,"skill-same:01M7A7K9CD2NKB384H11SZNARQ":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A7K9CD2NKB384H11SZNARQ","hunting-for-suspicious-scheduled-tasks",null,"Hunts for adversary persistence and execution via Windows scheduled tasks (T1053.005) by analyzing Security Event ID 4698 task-creation events, suspicious task properties, and unusual execution patterns from schtasks.exe\u002Fat.exe. Use after detecting schtasks or at.exe in process creation logs, during incident response to enumerate persistence on compromised hosts, or when Event ID 4698 fires for an unusual task.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hunting-for-suspicious-scheduled-tasks\ndescription: Hunts for adversary persistence and execution via Windows scheduled tasks (T1053.005) by analyzing Security Event ID 4698 task-creation events, suspicious task properties, and unusual execution patterns from schtasks.exe\u002Fat.exe. Use after detecting schtasks or at.exe in process creation logs, during incident response to enumerate persistence on compromised hosts, or when Event ID 4698 fires for an unusual task.\ndomain: cybersecurity\nsubdomain: threat-hunting\ntags:\n- threat-hunting\n- scheduled-tasks\n- persistence\n- mitre-t1053-005\n- windows\n- endpoint-detection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.CM-01\n- DE.AE-02\n- DE.AE-07\n- ID.RA-05\nmitre_attack:\n- T1046\n- T1057\n- T1082\n- T1083\n- T1547\n---\n\n# Hunting for Suspicious Scheduled Tasks\n\n## When to Use\n\n- When proactively hunting for persistence mechanisms in Windows environments\n- After detecting schtasks.exe or at.exe usage in process creation logs\n- When investigating malware that survives reboots and user logoffs\n- During incident response to enumerate all persistence on compromised systems\n- When Windows Security Event ID 4698 (Scheduled Task Created) fires for unusual tasks\n\n## Prerequisites\n\n- Windows Security Event ID 4698\u002F4699\u002F4702 (Task Created\u002FDeleted\u002FUpdated)\n- Sysmon Event ID 1 for schtasks.exe process creation with command lines\n- Windows Task Scheduler operational log (Microsoft-Windows-TaskScheduler\u002FOperational)\n- PowerShell logging for Register-ScheduledTask cmdlet usage\n- Access to Task Scheduler XML definitions on endpoints\n\n## Workflow\n\n1. **Enumerate All Scheduled Tasks**: Collect complete task inventory from target systems using `schtasks \u002Fquery \u002Ffo CSV \u002Fv` or `Get-ScheduledTask` PowerShell cmdlet.\n2. **Monitor Task Creation Events**: Track Event ID 4698 for new task creation, correlating with the creating process and user account context.\n3. **Analyze Task Actions**: Examine what each task executes. Flag tasks running scripts (PowerShell, cmd, wscript), binaries from user-writable paths (TEMP, AppData, Downloads), or encoded\u002Fobfuscated commands.\n4. **Check Task Triggers**: Review trigger conditions. Tasks triggered by system startup, user logon, or short intervals (1-5 minutes) warrant investigation.\n5. **Identify Hidden or Disguised Tasks**: Hunt for tasks with names mimicking legitimate Windows tasks, tasks with Security Descriptor modifications hiding them from standard enumeration, or tasks stored in non-standard registry locations.\n6. **Correlate with Process Execution**: Match scheduled task execution events with process creation logs to confirm what actually runs.\n7. **Baseline and Diff**: Compare current task inventory against known-good baselines to identify new, modified, or unexpected tasks.\n\n## Detection Queries\n\n### Splunk -- Scheduled Task Creation\n```spl\nindex=wineventlog EventCode=4698\n| spath output=TaskName path=EventData.TaskName\n| spath output=TaskContent path=EventData.TaskContent\n| where NOT match(TaskName, \"(?i)(\\\\\\\\Microsoft\\\\\\\\|\\\\\\\\Windows\\\\\\\\)\")\n| table _time Computer SubjectUserName TaskName TaskContent\n```\n\n### Splunk -- Schtasks.exe Suspicious Usage\n```spl\nindex=sysmon EventCode=1 Image=\"*\\\\schtasks.exe\"\n| where match(CommandLine, \"(?i)\u002Fcreate\")\n| where match(CommandLine, \"(?i)(powershell|cmd|wscript|cscript|mshta|rundll32|regsvr32|http|https|\\\\\\\\temp\\\\\\\\|\\\\\\\\appdata\\\\\\\\)\")\n| table _time Computer User CommandLine ParentImage\n```\n\n### KQL -- Microsoft Sentinel\n```kql\nSecurityEvent\n| where EventID == 4698\n| extend TaskName = tostring(EventData.TaskName)\n| extend TaskContent = tostring(EventData.TaskContent)\n| where TaskContent has_any (\"powershell\", \"cmd.exe\", \"wscript\", \"http:\u002F\u002F\", \"https:\u002F\u002F\", \"\\\\Temp\\\\\", \"\\\\AppData\\\\\")\n| project TimeGenerated, Computer, Account, TaskName, TaskContent\n```\n\n## Common Scenarios\n\n1. **Cobalt Strike Persistence**: Creates scheduled tasks via schtasks.exe to execute PowerShell download cradles at user logon intervals.\n2. **Ransomware Staging**: Task created to run encryption payload at a future time, often during off-hours for maximum impact.\n3. **Hidden Task via SD Modification**: Attacker modifies Security Descriptor of scheduled task to hide it from normal enumeration while maintaining execution.\n4. **COM Handler Abuse**: Task uses COM handler rather than direct executable path, making action inspection more complex.\n5. **Lateral Movement via Tasks**: Remote scheduled task creation using `schtasks \u002Fcreate \u002Fs REMOTE_HOST` for execution on other systems.\n\n## Output Format\n\n```\nHunt ID: TH-SCHTASK-[DATE]-[SEQ]\nHost: [Hostname]\nTask Name: [Full task path]\nAction: [Command\u002FScript executed]\nTrigger: [Startup\u002FLogon\u002FTimer\u002FEvent]\nCreated By: [User account]\nCreated From: [Local\u002FRemote]\nCreation Time: [Timestamp]\nRun As: [Execution account]\nRisk Level: [Critical\u002FHigh\u002FMedium\u002FLow]\n```\n","# Hunting for Suspicious Scheduled Tasks\n\n## When to Use\n\n- When proactively hunting for persistence mechanisms in Windows environments\n- After detecting schtasks.exe or at.exe usage in process creation logs\n- When investigating malware that survives reboots and user logoffs\n- During incident response to enumerate all persistence on compromised systems\n- When Windows Security Event ID 4698 (Scheduled Task Created) fires for unusual tasks\n\n## Prerequisites\n\n- Windows Security Event ID 4698\u002F4699\u002F4702 (Task Created\u002FDeleted\u002FUpdated)\n- Sysmon Event ID 1 for schtasks.exe process creation with command lines\n- Windows Task Scheduler operational log (Microsoft-Windows-TaskScheduler\u002FOperational)\n- PowerShell logging for Register-ScheduledTask cmdlet usage\n- Access to Task Scheduler XML definitions on endpoints\n\n## Workflow\n\n1. **Enumerate All Scheduled Tasks**: Collect complete task inventory from target systems using `schtasks \u002Fquery \u002Ffo CSV \u002Fv` or `Get-ScheduledTask` PowerShell cmdlet.\n2. **Monitor Task Creation Events**: Track Event ID 4698 for new task creation, correlating with the creating process and user account context.\n3. **Analyze Task Actions**: Examine what each task executes. Flag tasks running scripts (PowerShell, cmd, wscript), binaries from user-writable paths (TEMP, AppData, Downloads), or encoded\u002Fobfuscated commands.\n4. **Check Task Triggers**: Review trigger conditions. Tasks triggered by system startup, user logon, or short intervals (1-5 minutes) warrant investigation.\n5. **Identify Hidden or Disguised Tasks**: Hunt for tasks with names mimicking legitimate Windows tasks, tasks with Security Descriptor modifications hiding them from standard enumeration, or tasks stored in non-standard registry locations.\n6. **Correlate with Process Execution**: Match scheduled task execution events with process creation logs to confirm what actually runs.\n7. **Baseline and Diff**: Compare current task inventory against known-good baselines to identify new, modified, or unexpected tasks.\n\n## Detection Queries\n\n### Splunk -- Scheduled Task Creation\n```spl\nindex=wineventlog EventCode=4698\n| spath output=TaskName path=EventData.TaskName\n| spath output=TaskContent path=EventData.TaskContent\n| where NOT match(TaskName, \"(?i)(\\\\\\\\Microsoft\\\\\\\\|\\\\\\\\Windows\\\\\\\\)\")\n| table _time Computer SubjectUserName TaskName TaskContent\n```\n\n### Splunk -- Schtasks.exe Suspicious Usage\n```spl\nindex=sysmon EventCode=1 Image=\"*\\\\schtasks.exe\"\n| where match(CommandLine, \"(?i)\u002Fcreate\")\n| where match(CommandLine, \"(?i)(powershell|cmd|wscript|cscript|mshta|rundll32|regsvr32|http|https|\\\\\\\\temp\\\\\\\\|\\\\\\\\appdata\\\\\\\\)\")\n| table _time Computer User CommandLine ParentImage\n```\n\n### KQL -- Microsoft Sentinel\n```kql\nSecurityEvent\n| where EventID == 4698\n| extend TaskName = tostring(EventData.TaskName)\n| extend TaskContent = tostring(EventData.TaskContent)\n| where TaskContent has_any (\"powershell\", \"cmd.exe\", \"wscript\", \"http:\u002F\u002F\", \"https:\u002F\u002F\", \"\\\\Temp\\\\\", \"\\\\AppData\\\\\")\n| project TimeGenerated, Computer, Account, TaskName, TaskContent\n```\n\n## Common Scenarios\n\n1. **Cobalt Strike Persistence**: Creates scheduled tasks via schtasks.exe to execute PowerShell download cradles at user logon intervals.\n2. **Ransomware Staging**: Task created to run encryption payload at a future time, often during off-hours for maximum impact.\n3. **Hidden Task via SD Modification**: Attacker modifies Security Descriptor of scheduled task to hide it from normal enumeration while maintaining execution.\n4. **COM Handler Abuse**: Task uses COM handler rather than direct executable path, making action inspection more complex.\n5. **Lateral Movement via Tasks**: Remote scheduled task creation using `schtasks \u002Fcreate \u002Fs REMOTE_HOST` for execution on other systems.\n\n## Output Format\n\n```\nHunt ID: TH-SCHTASK-[DATE]-[SEQ]\nHost: [Hostname]\nTask Name: [Full task path]\nAction: [Command\u002FScript executed]\nTrigger: [Startup\u002FLogon\u002FTimer\u002FEvent]\nCreated By: [User account]\nCreated From: [Local\u002FRemote]\nCreation Time: [Timestamp]\nRun As: [Execution account]\nRisk Level: [Critical\u002FHigh\u002FMedium\u002FLow]\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":7,"mitre_attack":40},[26,27,28,29,30,31],"threat-hunting","scheduled-tasks","persistence","mitre-t1053-005","windows","endpoint-detection","mahipal","cybersecurity","1.0",[36,37,38,39],"DE.CM-01","DE.AE-02","DE.AE-07","ID.RA-05",[41,42,43,44,45],"T1046","T1057","T1082","T1083","T1547","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add NeelakshSaxena\u002FVayu --skill hunting-for-suspicious-scheduled-tasks",{"tool":59,"command":60},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill hunting-for-suspicious-scheduled-tasks",{"tool":62,"command":63},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill hunting-for-suspicious-scheduled-tasks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FSKILL.md",true,[67,73,77,83,87,91,97],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"assets\u002Ftemplate.md","ASSET","资产文件",786,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fassets\u002Ftemplate.md",{"path":74,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fapi-reference.md","REFERENCE","参考文档",1931,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fapi-reference.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fstandards.md",1418,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fstandards.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fworkflows.md",1279,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fworkflows.md",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fagent.py","SCRIPT","脚本",6998,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fscripts\u002Fagent.py",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fprocess.py",4762,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fscripts\u002Fprocess.py",[102,109,116,123,130,137],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]