Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-heap-spray-exploitation -a claude-code
Open on GitHub

What 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 0x90 and 0x0c0c0c0c signatures
  • 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-code

2Manually: put the files in place

~/.claude/skills/analyzing-heap-spray-exploitation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/analyzing-heap-spray-exploitation/

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

Similar skills

All skills for Security →

From the same set90

analyzing-malicious-pdf-with-peepdf This skill statically inspects suspicious PDFs with peepdf, pdfid.py, and pdf-parser.py. Use it to triage attachments, inspect exploit documents, and collect detection indicators. CX Codex +1 387installs testing-api-for-mass-assignment-vulnerability Tests APIs for mass assignment by adding undocumented request fields and checking whether they persist. Use it for profile, registration, and object-creation endpoints. CX Codex +1 385installs analyzing-network-covert-channels-in-malware Reads a PCAP for DNS tunneling, ICMP exfiltration and C2 hidden in HTTP. Useful during incident response or a hunt for exfiltration channels. CX Codex +1 372installs analyzing-network-flow-data-with-netflow This skill parses NetFlow v9 and IPFIX records to spot volumetric anomalies, port scanning, data exfiltration and C2 beaconing. CX Codex +1 372installs analyzing-malware-sandbox-evasion-techniques Reads Cuckoo and AnyRun behavioral reports and flags the signs that a sample spotted the sandbox and played dead. CX Codex +1 363installs exploiting-idor-vulnerabilities Guides authorized testing of IDOR vulnerabilities across API endpoints using Burp Suite, the Authorize extension, and curl scripts. CX Codex +1 365installs analyzing-malware-behavior-with-cuckoo-sandbox A skill that detonates samples in Cuckoo Sandbox and walks through what they do at runtime: processes, files, registry, network. CX Codex +1 361installs testing-for-sensitive-data-exposure A skill that walks an agent through checks for leaked secrets, PII in API responses, and unencrypted data transmission. Useful during authorized pentests and data protection audits. CX Codex +1 356installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor