[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73C8QMP6SRYQAT7TVGG98XC":3,"skill-same:01M73C8QMP6SRYQAT7TVGG98XC":106},{"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":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M73C8QMP6SRYQAT7TVGG98XC","hunting-for-suspicious-scheduled-tasks",null,"Hunt for adversary persistence and execution via Windows scheduled tasks by analyzing task creation events, suspicious task properties, and unusual execution patterns that indicate T1053.005 abuse.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: hunting-for-suspicious-scheduled-tasks\ndescription: Hunt for adversary persistence and execution via Windows scheduled tasks\n  by analyzing task creation events, suspicious task properties, and unusual execution\n  patterns that indicate T1053.005 abuse.\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\nsource: https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\nsource_commit: 04450304b12645cb2b974ab96d28c0664758a88d\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,"source":34,"license":15,"version":35,"nist_csf":36,"subdomain":26,"description":7,"mitre_attack":41,"source_commit":47},[26,27,28,29,30,31],"threat-hunting","scheduled-tasks","persistence","mitre-t1053-005","windows","endpoint-detection","mahipal","cybersecurity","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","1.0",[37,38,39,40],"DE.CM-01","DE.AE-02","DE.AE-07","ID.RA-05",[42,43,44,45,46],"T1046","T1057","T1082","T1083","T1547","04450304b12645cb2b974ab96d28c0664758a88d","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa","core\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill hunting-for-suspicious-scheduled-tasks",{"tool":64,"command":65},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill hunting-for-suspicious-scheduled-tasks",{"tool":67,"command":68},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill hunting-for-suspicious-scheduled-tasks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002FSKILL.md",true,[72,78,82,88,92,96,102],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Ftemplate.md","ASSET","资产文件",786,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fassets\u002Ftemplate.md",{"path":79,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fapi-reference.md","REFERENCE","参考文档",1931,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fapi-reference.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fstandards.md",1418,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fstandards.md",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fworkflows.md",1279,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Freferences\u002Fworkflows.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fagent.py","SCRIPT","脚本",6998,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fscripts\u002Fagent.py",{"path":103,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fprocess.py",4762,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fhunting-for-suspicious-scheduled-tasks\u002Fscripts\u002Fprocess.py",[107,115,122,130,138,146],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":111,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":20},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\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":134,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":20},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":142,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":20},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":20},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]