Windows registry autorun forensics

From ShulkwiSEC/bb-huge · View interactive version

Windows registry autorun forensics is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. Analyze the Windows Registry to uncover malicious persistence mechanisms. This skill details how to investigate Run keys, Services, Scheduled Tasks registry keys, and Image File Execution Options (IFEO) to locate hidden backdoors.

How to use this skill

Skill file

Windows Registry Autorun Forensics

When to Use

Prerequisites

Workflow

Phase 1: Identifying Run / RunOnce Keys

# Concept: Windows Registry Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run"
Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"

Phase 2: Detecting IFEO (Image File Execution Options) Injection

# Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" | Select-Object Name | Where-Object { $_.Name -match "sethc.exe|utilman.exe" }
# ```

### Phase 3: Inspecting Services Registry Keys

Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Services" | Where-Object { (Get-ItemProperty $_.PSPath).ImagePath -match "C:\\Users\\|C:\\ProgramData\\" } | Select-Object Name, @{Name="ImagePath"; Expression={(Get-ItemProperty $_.PSPath).ImagePath}}


### Phase 4: Offline Analysis using RegRipper

# rip.pl -r /mnt/evidence/Windows/System32/config/SOFTWARE -p run

rip.pl -r /mnt/evidence/Users/Bob/NTUSER.DAT -p userinit


#### Decision Point 🔀

flowchart TD

A[Extract Hives ] --> B{Parse Keys ]}

B -->|Yes| C[Identify Anomalies ]

B -->|No| D[Check Alternate ]

C --> E[Extract Artifacts ]


## 🔵 Blue Team Detection & Defense
- **Sysinternals Autoruns**: **Registry Key Auditing (GPO)**: **Registry Activity Monitoring (Sysmon Event ID 12, 13, 14)**: Key Concepts
| Concept | Description |
|---------|-------------|
## Output Format

Windows Registry Autorun Forensics — Assessment Report

============================================================

Target: [Target identifier]

Assessor: [Operator name]

Date: [Assessment date]

Scope: [Authorized scope]

MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:

[Finding 1]: [Severity] — [Brief description]

[Finding 2]: [Severity] — [Brief description]

Detailed Results:

Phase 1: [Phase name]

Phase 2: [Phase name]

Risk Rating: [Critical/High/Medium/Low/Informational]

Recommendations:

1. [Immediate remediation step]

2. [Long-term hardening measure]

3. [Monitoring/detection improvement]

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.