hunting-for-persistence-mechanisms-in-windows

Systematically hunt for adversary persistence mechanisms across Windows endpoints including registry, services, startup folders, and WMI subscriptions.

Works with

Claude CodeCursorClineWindsurfCodexGooseGitHub CopilotZed

0

total installs

0

this week

8.6K

GitHub stars

0

upvotes

Install Skill

Run in your terminal

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/hunting-for-persistence-mechanisms-in-windows

0

installs

0

this week

8.6K

stars

Installation Guide

How to use hunting-for-persistence-mechanisms-in-windows on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your machine
  • Node.js 16+ with npm — verify with node --version
  • Active project directory where you want to add hunting-for-persistence-mechanisms-in-windows
2

Run the install command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/hunting-for-persistence-mechanisms-in-windows

Fetches hunting-for-persistence-mechanisms-in-windows from mukul975/Anthropic-Cybersecurity-Skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI shows a list of agents. Use arrow keys and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ────────────────
│ · Cline · Codex · Goose · Windsurf
│ ●Cursor(selected)
│ · Cursor · Aider · Continue
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/hunting-for-persistence-mechanisms-in-windows

Restart Cursor to activate hunting-for-persistence-mechanisms-in-windows. Access via /hunting-for-persistence-mechanisms-in-windows in your agent's command palette.

Security Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.

Documentation

name
hunting-for-persistence-mechanisms-in-windows
description
Systematically hunt for adversary persistence mechanisms across Windows endpoints including registry, services, startup folders, and WMI subscriptions.
domain
cybersecurity
subdomain
threat-hunting
tags
- threat-hunting - mitre-attack - persistence - windows - registry - siem - proactive-detection
version
'1.0'
author
mahipal
license
Apache-2.0
d3fend_techniques
- Executable Denylisting - Execution Isolation - File Metadata Consistency Validation - Content Format Conversion - File Content Analysis
nist_csf
- DE.CM-01 - DE.AE-02 - DE.AE-07 - ID.RA-05

Hunting for Persistence Mechanisms in Windows

When to Use

  • During periodic proactive threat hunts for dormant backdoors
  • After an incident to identify all persistence mechanisms an attacker planted
  • When investigating unusual services, scheduled tasks, or startup entries
  • When threat intel reports describe new persistence techniques in the wild
  • During security posture assessments to identify unauthorized persistent software

Prerequisites

  • Sysmon deployed with Event IDs 12/13/14 (Registry), 19/20/21 (WMI), 1 (Process Creation)
  • Windows Security Event forwarding for 4697 (Service Install), 4698 (Scheduled Task)
  • EDR with registry and file monitoring capabilities
  • PowerShell script block logging enabled (Event ID 4104)
  • Autoruns or equivalent baseline of legitimate persistent entries

Workflow

  1. 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).
  2. Collect Endpoint Data: Use EDR, Sysmon, or Velociraptor to collect current persistence artifacts from endpoints across the environment.
  3. Baseline Legitimate Persistence: Compare collected data against known-good baselines (Autoruns snapshots, GPO-deployed entries, SCCM configurations).
  4. Identify Anomalies: Flag new, unsigned, or unknown entries in persistence locations that deviate from the baseline.
  5. Investigate Suspicious Entries: For each anomaly, examine the binary it points to, its digital signature, file hash, and creation timestamp.
  6. Correlate with Process Activity: Link persistence entries to process execution, network activity, and user login events.
  7. Document and Remediate: Record findings, remove malicious persistence, and update detection rules.

Key Concepts

ConceptDescription
T1547.001Registry Run Keys / Startup Folder
T1543.003Windows Service (Create or Modify)
T1053.005Scheduled Task
T1546.003WMI Event Subscription
T1546.015Component Object Model (COM) Hijacking
T1546.012Image File Execution Options Injection
T1546.010AppInit DLLs
T1547.004Winlogon Helper DLL
T1547.005Security Support Provider
T1574.001DLL Search Order Hijacking
TA0003Persistence Tactic
AutorunsSysinternals tool showing persistent entries

Tools & Systems

ToolPurpose
Sysinternals AutorunsComprehensive persistence enumeration
VelociraptorEndpoint-wide persistence artifact collection
CrowdStrike FalconReal-time persistence monitoring
SysmonRegistry and WMI event monitoring
OSQuerySQL-based persistence queries
RECmdRegistry Explorer for forensic analysis
SplunkSIEM correlation of persistence events

Common Scenarios

  1. Registry Run Key Backdoor: Malware adds HKCU\Software\Microsoft\Windows\CurrentVersion\Run entry pointing to payload in %APPDATA%.
  2. WMI Event Subscription: Adversary creates WMI consumer/filter pair that executes PowerShell on system boot.
  3. Malicious Service: Attacker creates Windows service with sc create pointing to a backdoor binary.
  4. COM Object Hijack: Legitimate COM CLSID InprocServer32 path replaced with malicious DLL.
  5. IFEO Debugger Injection: Image File Execution Options key set with debugger pointing to implant for common utilities.

Output Format

Hunt ID: TH-PERSIST-[DATE]-[SEQ]
Persistence Type: [Registry/Service/Task/WMI/COM/Other]
MITRE Technique: T1547.xxx / T1543.xxx / T1053.xxx
Location: [Full registry key / service name / task path]
Value: [Binary path / command line]
Host(s): [Affected endpoints]
Signed: [Yes/No]
Hash: [SHA256]
Creation Time: [Timestamp]
Risk Level: [Critical/High/Medium/Low]
Verdict: [Malicious/Suspicious/Benign]

List & Monetize Your Skill

Submit your Claude Code skill and start earning

Get started →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Steps

  1. 1Install skill using provided installation command
  2. 2Test with simple use case relevant to your work
  3. 3Evaluate output quality and relevance
  4. 4Iterate on prompts to improve results
  5. 5Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use when

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid when

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Related Skills

Reviews

4.537 reviews
  • C
    Chaitanya PatilDec 28, 2024

    We added hunting-for-persistence-mechanisms-in-windows from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • N
    Neel HuangDec 8, 2024

    Keeps context tight: hunting-for-persistence-mechanisms-in-windows is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • L
    Liam RamirezDec 4, 2024

    hunting-for-persistence-mechanisms-in-windows fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • L
    Liam MenonNov 23, 2024

    We added hunting-for-persistence-mechanisms-in-windows from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • P
    Piyush GNov 19, 2024

    hunting-for-persistence-mechanisms-in-windows fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • L
    Liam IyerOct 14, 2024

    Solid pick for teams standardizing on skills: hunting-for-persistence-mechanisms-in-windows is focused, and the summary matches what you get after install.

  • S
    Shikha MishraOct 10, 2024

    hunting-for-persistence-mechanisms-in-windows is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • E
    Evelyn AbebeAug 16, 2024

    I recommend hunting-for-persistence-mechanisms-in-windows for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • K
    Kofi HaddadJul 11, 2024

    hunting-for-persistence-mechanisms-in-windows has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • A
    Arya TandonJul 7, 2024

    Keeps context tight: hunting-for-persistence-mechanisms-in-windows is the kind of skill you can hand to a new teammate without a long onboarding doc.

showing 1-10 of 37

1 / 4

Discussion

Comments — not star reviews
  • No comments yet — start the thread.