| name | persistence-hunter |
| description | Windows persistence mechanism scanner. Scans all autorun vectors: Registry Run/RunOnce keys (T1547.001), Startup folders (T1547.004), Scheduled Tasks (T1053.005), and WMI Event Subscriptions (T1546.003). Filters Microsoft-signed noise by default (reduces ~80 legit entries to only suspicious ones). Supports baseline/diff for change detection โ save known-good state, then detect new/modified/removed persistence entries. Tags each entry with MITRE ATT&CK technique. Trigger when user asks to check persistence, autorun, startup items, scheduled tasks, registry run keys, WMI subscriptions, or suspects a malware persistence mechanism. |
| metadata | {"clawdbot":{"emoji":"๐","commands":["scan","baseline","diff"],"arg_template":"scripts/persistence_hunter.py {command} {args}","timeout":45,"requires":{"bins":["python"]},"install":[],"commands_schema":{"scan":{"properties":{"include_ms":{"type":"boolean","default":false,"description":"Include Microsoft-signed entries (default: filtered out to reduce noise)"}},"required":[]},"baseline":{"properties":{},"required":[]},"diff":{"properties":{"include_ms":{"type":"boolean","default":false,"description":"Include Microsoft-signed entries in diff comparison"}},"required":[]}}}} |
Persistence Hunter โ Windows persistence mechanism scanner
ืกืืจืง ืืช ืื ื ืงืืืืช ื-Autorun ื-Windows ืืืืืื ืื ืื ืื ื ืืืฉืจืืืช ืฉื ื ืืืงื.
ืืกื ื ืจืขืฉ ืฉื Microsoft (ื-80 ืจืฉืืืืช ืืืืืืืืืช) ืืื ืืืฆืื ืจืง ืืช ืืืฉืืืืช.
ืืงืืืจืื ื ืกืจืงืื
| ืืงืืืจ | MITRE | ืชืืืืจ |
|---|
| Registry Run/RunOnce | T1547.001 | HKLM + HKCU Run/RunOnce keys |
| Startup folders | T1547.004 | %APPDATA% + %ProgramData% Startup |
| Scheduled Tasks | T1053.005 | ืื ืืืฉืืืืช ืืืชืืืื ืืช |
| WMI Event Subscription | T1546.003 | __EventConsumer (root\subscription) |
Quick start
python {baseDir}/scripts/persistence_hunter.py scan
python {baseDir}/scripts/persistence_hunter.py scan --include-ms
python {baseDir}/scripts/persistence_hunter.py baseline
python {baseDir}/scripts/persistence_hunter.py diff
ืคืงืืืืช ื ืชืืืืช
| ืคืงืืื | ืชืืืืจ | ืคืื |
|---|
scan | ืกืจืืงื ืืืื ืฉื ืื ืืืงืืืจืื | ืจืฉืืืืช ืืงืืืฆืืช ืืคื ืืงืืืจ |
baseline | ืฉืืืจืช ืืฆื ื ืืืื ื-known-good | ืกืืืืก + ืืกืคืจ ืจืฉืืืืช |
diff | ืืฉืืืื ืืื baseline | new/modified/removed |
ืืจืืืช ืขืืืื ืืืืืฆืช
- ืืชืงื ื ื ืงืืื:
baseline โ ืฉืืืจ ืืช ืืืฆื ืื ืงื
- ืืฉื ืืืืืื:
diff โ ืืฆื ืจืง ืื ืฉืืฉืชื ื
- Audit ืืื:
scan --include-ms โ ืืืื ืจืฉืืืืช Microsoft
ืกืื ืื Microsoft
ืืจืืจืช ืืืื: ืจืฉืืืืช ืฉืืฆืืืขืืช ื-C:\Windows\, C:\Program Files\, ืื ืืื ืืจืืื ืืืืขืื ืฉื MS
(OneDrive, Edge, Defender, Teams ืืื') ืืกืื ื ืืช. ืืฉืชืืฉ ื---include-ms ื-audit ืืื.
ืชืืืช
ืืื ืชืืืช ืืืฆืื ืืช โ ืืฉืชืืฉ ื-reg.exe, schtasks.exe, ื-PowerShell (ืืืื ืื ื-Windows).