[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HKS9BNZWZCPJXPATW0ZDFD":3,"skill-same:01M6HKS9BNZWZCPJXPATW0ZDFD":124},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":6,"ownerHtmlUrl":72,"ownerBlogUrl":6,"ownerDescription":73,"updatedAt":74,"install":75,"resources":88},"01M6HKS9BNZWZCPJXPATW0ZDFD","hunting-for-persistence-mechanisms-in-windows",null,"Systematically hunt for adversary persistence mechanisms across Windows endpoints including registry, services, startup folders, and WMI subscriptions.","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"for","windows","persistence","hunting","hunting for persistence mechanisms in windows","cm","consistency","de","id","across","hunt","endpoints","conversion","cybersecurity","analysis","execution","mitre-attack","services","file","siem","2026-11-10 10:12:30",false,"---\nname: hunting-for-persistence-mechanisms-in-windows\ndescription: Systematically hunt for adversary persistence mechanisms across Windows endpoints including registry, services, startup folders, and WMI subscriptions.\ndomain: cybersecurity\nsubdomain: threat-hunting\ntags:\n- threat-hunting\n- mitre-attack\n- persistence\n- windows\n- registry\n- siem\n- proactive-detection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Executable Denylisting\n- Execution Isolation\n- File Metadata Consistency Validation\n- Content Format Conversion\n- File Content Analysis\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\ncategory: hunting-for-persistence-mechanisms-in-windows\n---\n# Hunting for Persistence Mechanisms in Windows\n\n## When to Use\n\n- During periodic proactive threat hunts for dormant backdoors\n- After an incident to identify all persistence mechanisms an attacker planted\n- When investigating unusual services, scheduled tasks, or startup entries\n- When threat intel reports describe new persistence techniques in the wild\n- During security posture assessments to identify unauthorized persistent software\n\n## Prerequisites\n\n- Sysmon deployed with Event IDs 12\u002F13\u002F14 (Registry), 19\u002F20\u002F21 (WMI), 1 (Process Creation)\n- Windows Security Event forwarding for 4697 (Service Install), 4698 (Scheduled Task)\n- EDR with registry and file monitoring capabilities\n- PowerShell script block logging enabled (Event ID 4104)\n- Autoruns or equivalent baseline of legitimate persistent entries\n\n## Workflow\n\n1. **Enumerate Known Persistence Locations**: Build a comprehensive list of Windows persistence points (Run keys, services, scheduled tasks, WMI, startup folder, DLL search order, COM hijacks, AppInit DLLs, Image File Execution Options).\n2. **Collect Endpoint Data**: Use EDR, Sysmon, or Velociraptor to collect current persistence artifacts from endpoints across the environment.\n3. **Baseline Legitimate Persistence**: Compare collected data against known-good baselines (Autoruns snapshots, GPO-deployed entries, SCCM configurations).\n4. **Identify Anomalies**: Flag new, unsigned, or unknown entries in persistence locations that deviate from the baseline.\n5. **Investigate Suspicious Entries**: For each anomaly, examine the binary it points to, its digital signature, file hash, and creation timestamp.\n6. **Correlate with Process Activity**: Link persistence entries to process execution, network activity, and user login events.\n7. **Document and Remediate**: Record findings, remove malicious persistence, and update detection rules.\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| T1547.001 | Registry Run Keys \u002F Startup Folder |\n| T1543.003 | Windows Service (Create or Modify) |\n| T1053.005 | Scheduled Task |\n| T1546.003 | WMI Event Subscription |\n| T1546.015 | Component Object Model (COM) Hijacking |\n| T1546.012 | Image File Execution Options Injection |\n| T1546.010 | AppInit DLLs |\n| T1547.004 | Winlogon Helper DLL |\n| T1547.005 | Security Support Provider |\n| T1574.001 | DLL Search Order Hijacking |\n| TA0003 | Persistence Tactic |\n| Autoruns | Sysinternals tool showing persistent entries |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Sysinternals Autoruns | Comprehensive persistence enumeration |\n| Velociraptor | Endpoint-wide persistence artifact collection |\n| CrowdStrike Falcon | Real-time persistence monitoring |\n| Sysmon | Registry and WMI event monitoring |\n| OSQuery | SQL-based persistence queries |\n| RECmd | Registry Explorer for forensic analysis |\n| Splunk | SIEM correlation of persistence events |\n\n## Common Scenarios\n\n1. **Registry Run Key Backdoor**: Malware adds `HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run` entry pointing to payload in `%APPDATA%`.\n2. **WMI Event Subscription**: Adversary creates WMI consumer\u002Ffilter pair that executes PowerShell on system boot.\n3. **Malicious Service**: Attacker creates Windows service with `sc create` pointing to a backdoor binary.\n4. **COM Object Hijack**: Legitimate COM CLSID InprocServer32 path replaced with malicious DLL.\n5. **IFEO Debugger Injection**: Image File Execution Options key set with debugger pointing to implant for common utilities.\n\n## Output Format\n\n```\nHunt ID: TH-PERSIST-[DATE]-[SEQ]\nPersistence Type: [Registry\u002FService\u002FTask\u002FWMI\u002FCOM\u002FOther]\nMITRE Technique: T1547.xxx \u002F T1543.xxx \u002F T1053.xxx\nLocation: [Full registry key \u002F service name \u002F task path]\nValue: [Binary path \u002F command line]\nHost(s): [Affected endpoints]\nSigned: [Yes\u002FNo]\nHash: [SHA256]\nCreation Time: [Timestamp]\nRisk Level: [Critical\u002FHigh\u002FMedium\u002FLow]\nVerdict: [Malicious\u002FSuspicious\u002FBenign]\n```\n","# Hunting for Persistence Mechanisms in Windows\n\n## When to Use\n\n- During periodic proactive threat hunts for dormant backdoors\n- After an incident to identify all persistence mechanisms an attacker planted\n- When investigating unusual services, scheduled tasks, or startup entries\n- When threat intel reports describe new persistence techniques in the wild\n- During security posture assessments to identify unauthorized persistent software\n\n## Prerequisites\n\n- Sysmon deployed with Event IDs 12\u002F13\u002F14 (Registry), 19\u002F20\u002F21 (WMI), 1 (Process Creation)\n- Windows Security Event forwarding for 4697 (Service Install), 4698 (Scheduled Task)\n- EDR with registry and file monitoring capabilities\n- PowerShell script block logging enabled (Event ID 4104)\n- Autoruns or equivalent baseline of legitimate persistent entries\n\n## Workflow\n\n1. **Enumerate Known Persistence Locations**: Build a comprehensive list of Windows persistence points (Run keys, services, scheduled tasks, WMI, startup folder, DLL search order, COM hijacks, AppInit DLLs, Image File Execution Options).\n2. **Collect Endpoint Data**: Use EDR, Sysmon, or Velociraptor to collect current persistence artifacts from endpoints across the environment.\n3. **Baseline Legitimate Persistence**: Compare collected data against known-good baselines (Autoruns snapshots, GPO-deployed entries, SCCM configurations).\n4. **Identify Anomalies**: Flag new, unsigned, or unknown entries in persistence locations that deviate from the baseline.\n5. **Investigate Suspicious Entries**: For each anomaly, examine the binary it points to, its digital signature, file hash, and creation timestamp.\n6. **Correlate with Process Activity**: Link persistence entries to process execution, network activity, and user login events.\n7. **Document and Remediate**: Record findings, remove malicious persistence, and update detection rules.\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| T1547.001 | Registry Run Keys \u002F Startup Folder |\n| T1543.003 | Windows Service (Create or Modify) |\n| T1053.005 | Scheduled Task |\n| T1546.003 | WMI Event Subscription |\n| T1546.015 | Component Object Model (COM) Hijacking |\n| T1546.012 | Image File Execution Options Injection |\n| T1546.010 | AppInit DLLs |\n| T1547.004 | Winlogon Helper DLL |\n| T1547.005 | Security Support Provider |\n| T1574.001 | DLL Search Order Hijacking |\n| TA0003 | Persistence Tactic |\n| Autoruns | Sysinternals tool showing persistent entries |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Sysinternals Autoruns | Comprehensive persistence enumeration |\n| Velociraptor | Endpoint-wide persistence artifact collection |\n| CrowdStrike Falcon | Real-time persistence monitoring |\n| Sysmon | Registry and WMI event monitoring |\n| OSQuery | SQL-based persistence queries |\n| RECmd | Registry Explorer for forensic analysis |\n| Splunk | SIEM correlation of persistence events |\n\n## Common Scenarios\n\n1. **Registry Run Key Backdoor**: Malware adds `HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run` entry pointing to payload in `%APPDATA%`.\n2. **WMI Event Subscription**: Adversary creates WMI consumer\u002Ffilter pair that executes PowerShell on system boot.\n3. **Malicious Service**: Attacker creates Windows service with `sc create` pointing to a backdoor binary.\n4. **COM Object Hijack**: Legitimate COM CLSID InprocServer32 path replaced with malicious DLL.\n5. **IFEO Debugger Injection**: Image File Execution Options key set with debugger pointing to implant for common utilities.\n\n## Output Format\n\n```\nHunt ID: TH-PERSIST-[DATE]-[SEQ]\nPersistence Type: [Registry\u002FService\u002FTask\u002FWMI\u002FCOM\u002FOther]\nMITRE Technique: T1547.xxx \u002F T1543.xxx \u002F T1053.xxx\nLocation: [Full registry key \u002F service name \u002F task path]\nValue: [Binary path \u002F command line]\nHost(s): [Affected endpoints]\nSigned: [Yes\u002FNo]\nHash: [SHA256]\nCreation Time: [Timestamp]\nRisk Level: [Critical\u002FHigh\u002FMedium\u002FLow]\nVerdict: [Malicious\u002FSuspicious\u002FBenign]\n```\n",{"name":5,"tags":44,"author":48,"domain":32,"license":15,"version":49,"category":5,"nist_csf":50,"subdomain":45,"description":7,"mitre_attack":55,"d3fend_techniques":61},[45,35,21,20,46,38,47],"threat-hunting","registry","proactive-detection","mahipal","1.0",[51,52,53,54],"DE.CM-01","DE.AE-02","DE.AE-07","ID.RA-05",[56,57,58,59,60],"T1046","T1057","T1082","T1083","T1547",[62,63,64,65,66],"Executable Denylisting","Execution Isolation","File Metadata Consistency Validation","Content Format Conversion","File Content Analysis","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fhunting-for-persistence-mechanisms-in-windows",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":76,"prompt":86,"zipAvailable":87},[77,80,83],{"tool":78,"command":79},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill hunting-for-persistence-mechanisms-in-windows",{"tool":81,"command":82},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill hunting-for-persistence-mechanisms-in-windows",{"tool":84,"command":85},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill hunting-for-persistence-mechanisms-in-windows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002FSKILL.md",true,[89,95,100,106,110,114,120],{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"assets\u002Ftemplate.md","ASSET","资产文件",2012,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Fassets\u002Ftemplate.md",{"path":96,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002FLICENSE",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fapi-reference.md","REFERENCE","参考文档",2099,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Freferences\u002Fapi-reference.md",{"path":107,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fstandards.md",4408,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Freferences\u002Fstandards.md",{"path":111,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fworkflows.md",3400,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Freferences\u002Fworkflows.md",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fagent.py","SCRIPT","脚本",6333,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Fscripts\u002Fagent.py",{"path":121,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fprocess.py",14290,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fhunting-for-persistence-mechanisms-in-windows\u002Fscripts\u002Fprocess.py",[125,150,176,196,212,230],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[132,133,134,135,19,136,32,137,138,139,140,141,142,143,144,145,146,147,148,149],"integrity","backup","recovery","validating backup integrity for recovery","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1078","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[157,158,159,160,161,32,162,163,164,165,166,167,168,169,170,171,172,173,174,175],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","with","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[183,184,147,32,185,186,187,143,144,33,188,189,190,191,192,31,193,194,195,25],"security","triaging security incident","actions","soc","NIST","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","isolation","scope","impact",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[183,203,204,184,147,161,32,205,186,140,206,207,143,144,208,188,171,209,210,211],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":213,"name":214,"nameZh":6,"description":215,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":216,"categories":217,"keywords":218,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[183,219,220,221,222,223,32,38,224,225,186,226,143,227,228,229,191,24,147,26],"security alerts","splunk","triaging security alerts in splunk","alerts","review","dashboard","search","correlation-search","t1566","notable-events","incident-review",{"skillNo":231,"name":232,"nameZh":6,"description":233,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":234,"categories":235,"keywords":236,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[237,238,239,240,32,241,35,242,243,244,245,227,246,247,24,248,26,249,250,251],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]