analyzing-heap-spray-exploitation — Claude Code skill: heap spray
A skill that reads memory dumps and finds heap spray artifacts: NOP sleds, executable injected regions and embedded shellcode.
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a claude-codeWhat analyzing-heap-spray-exploitation does
Heap spraying fills a process heap with attacker-controlled bytes so an exploit lands more reliably. This skill walks a memory dump and points at where that happened.
The procedure runs in steps. windows.malfind flags processes with executable injected memory, then windows.vadinfo inspects the VAD tree for large contiguous allocations with RWX permissions. From there the skill scans those regions for NOP sled signatures (0x90, 0x0c0c0c0c), dumps them and picks apart byte patterns to identify shellcode. Output is a JSON report: suspicious processes, spray indicators, NOP sled locations, region sizes and hashes of the extracted shellcode.
You need Python 3.9+ with the volatility3 framework and a dump in .raw, .vmem or .dmp format. Some grasp of virtual memory layout and VAD trees helps, because the vadinfo step is hard to read without it.
What it helps with
- spot processes with executable injected memory in a dump
- separate large RWX allocations from ordinary heap noise
- locate NOP sleds by
0x90and0x0c0c0c0csignatures - dump a suspicious region and hash the shellcode inside
- produce a JSON incident report for SOC triage
Example prompts for the agent
- analyze this memory dump for heap spray, start with malfind
- check the VAD tree for large RWX allocations in this dump
- find NOP sleds in the suspicious regions and dump the shellcode
How to install analyzing-heap-spray-exploitation
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a claude-code2Manually: put the files in place
~/.claude/skills/analyzing-heap-spray-exploitation/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/analyzing-heap-spray-exploitation/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a codex2Manually: put the files in place
.agents/skills/analyzing-heap-spray-exploitation/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a cursor2Manually: put the files in place
.cursor/skills/analyzing-heap-spray-exploitation/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-heap-spray-exploitation2Manually: put the files in place
.github/skills/analyzing-heap-spray-exploitation/SKILL.md1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a gemini-cli2Platform CLI
gemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills --path skills/analyzing-heap-spray-exploitationManually: put the files in place
.devin/skills/analyzing-heap-spray-exploitation/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about analyzing-heap-spray-exploitation
How do I install analyzing-heap-spray-exploitation in Claude?
Run npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a claude-code. The skill file then sits at ~/.claude/skills/analyzing-heap-spray-exploitation/SKILL.md.
What does analyzing-heap-spray-exploitation do?
It scans a memory dump for heap spray artifacts: executable injected regions, large RWX allocations, NOP sleds and embedded shellcode. You get a JSON report with addresses, region sizes and hashes.
What do I need to run it?
Python 3.9+ with volatility3 installed, plus a memory dump in .raw, .vmem or .dmp format. Familiarity with virtual memory layout and VAD trees is useful.
Source text
SKILL.md · Apache-2.0
--- name: analyzing-heap-spray-exploitation description: Detect and analyze heap spray attacks in memory dumps using Volatility3 plugins to identify NOP sled patterns, shellcode landing zones, and suspicious large allocations in process virtual address space. domain: cybersecurity subdomain: malware-analysis tags: - malware-analysis - memory-forensics - heap-spray - volatility3 - exploit-analysis version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - DE.AE-02 - RS.AN-03 - ID.RA-01 - DE.CM-01 mitre_attack: - T1203 - T1059.007 - T1106 --- # Analyzing Heap Spray Exploitation ## Overview Heap spraying is an exploitation technique that fills large regions of a process's heap with attacker-controlled data (typically NOP sleds followed by shellcode) to increase the reliability of code execution exploits. This skill covers detecting heap spray artifacts in memory dumps using Volatility3's malfind, vadinfo, and memmap plugins, identifying suspicious contiguous memory allocations, scanning for NOP sled patterns (0x90, 0x0c0c0c0c), and extracting embedded shellcode for analysis. ## When to Use - When investigating security incidents that require analyzing heap spray exploitation - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Python 3.9+ with `volatility3` framework installed - Memory dump file (.raw, .vmem, .dmp format) - Understanding of virtual memory layout and VAD (Virtual Address Descriptor) trees - Familiarity with common shellcode patterns and NOP sled encodings ## Steps ### Step 1: Identify Suspicious Processes Use Volatility3 windows.malfind to scan for processes with executable injected memory regions. ### Step 2: Analyze VAD Entries Examine VAD tree entries using windows.vadinfo for large contiguous allocations with RWX permissions. ### Step 3: Scan for NOP Sled Patterns Search suspicious memory regions for NOP sled signatures (0x90 sequences, 0x0c0c0c0c patterns). ### Step 4: Extract and Analyze Shellcode Dump suspicious memory regions and identify shellcode using byte pattern analysis. ## Expected Output JSON report with suspicious processes, heap spray indicators, NOP sled locations, memory region sizes, and extracted shellcode hashes.
© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills