hunting-ransomware-precursor-behavior
Hunts for ransomware precursor behavior that precedes encryption — shadow-copy and
v1.0.03 installs+3 in 7 days24 StarsApache-2.0synced 10 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/hunting-ransomware-precursor-behaviorWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Package29d11740…9268ed7c
29d11740a96d…3b219268ed7c4 files · 3.4 KBScanMedium2 findings
- Executable script shipped with the skillscripts/analyst.py
- Links to outside domains
Sourcegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/hunting-ransomware-precursor-behavior@da7600a
On this page
When to Use
- You have endpoint process/command telemetry and want to catch the steps ransomware takes before encrypting — deleting shadow copies, disabling recovery, killing security tools, and stopping backup/database services.
- You want early warning to intervene before payload detonation.
Do not use this as a substitute for blocking the encryption itself — it is an early-warning hunt for the preparation phase, not a recovery procedure.
Prerequisites
- Process-creation telemetry (with command line) and optionally service/file telemetry.
Workflow
Step 1: Hunt recovery-inhibition commands
python scripts/analyst.py hunt events.csvFlags vssadmin delete shadows, wmic shadowcopy delete, wbadmin delete catalog,
bcdedit /set recoveryenabled no / bootstatuspolicy ignoreallfailures, and wevtutil cl.
Step 2: Detect defense and service tampering
Surface stopping/killing of AV/EDR and backup/DB services (net stop, taskkill,
sc stop) targeting veeam, sql, backup, sophos, defender, etc.
Step 3: Correlate and prioritize
A host showing recovery-inhibition + service-stop in a short window is a high-priority pre-encryption signal — escalate immediately.
Step 4: Operationalize
Write a high-severity detection for shadow-copy deletion and recovery disabling.
Validation
- Recovery-inhibition commands are detected with their specific syntax.
- Security/backup service tampering is identified by target service names.
- Findings map to ATT&CK T1490 / T1489 (and precede T1486).
Pitfalls
- Admins occasionally delete shadow copies legitimately — corroborate with co-occurring tampering.
- LOLBin variants (
wmic, PowerShellGet-WmiObject Win32_ShadowCopy | Remove) evadingvssadmin-only rules. - Fast attacks where precursor and encryption are near-simultaneous — alert must be real-time.
References
- See
references/api-reference.mdfor the hunter. - ATT&CK T1490 and T1486 (linked in frontmatter).
Files in this version
references/11.4 KB
- api-reference.md1.4 KB
scripts/13.1 KB
- analyst.py3.1 KB
- LICENSE340 B
- SKILL.md3.0 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | No | No |
| Writes files | No | No |
| Runs shell commands | Yes | Yes |
| Uses the network | Yes | Yes |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
- MediumFile · Executable script shipped with the skillscripts/analyst.py
- InfoLink · Links to outside domains
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v1.0.0 | Nov 13, 2026 | da7600a | 29d11740 | Signed | – |
More from meltedinhex
All from this publisher- writing-yara-rules-from-reversed-codemeltedinhex/writing-yara-rules-from-reversed-code4
- validating-detections-with-atomic-testsmeltedinhex/validating-detections-with-atomic-tests4
- writing-suricata-and-snort-rulesmeltedinhex/writing-suricata-and-snort-rules3
- writing-sigma-detection-rulesmeltedinhex/writing-sigma-detection-rules3
More in Malware and ransomware analysis
See the category- yara-sigsdariushoule/yara-sigs4
- monitoring-darkweb-sourcesmukul975/monitoring-darkweb-sources3
- deploying-ransomware-canary-filesmukul975/deploying-ransomware-canary-files3
- implementing-honeypot-for-ransomware-detectionmukul975/implementing-honeypot-for-ransomware-detection3
- yaraaeondave/yara3
- testing-ransomware-recovery-proceduresmukul975/testing-ransomware-recovery-procedures3
Ask anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login