analyzing-heap-spray-exploitation
$
npx mdskill add mukul975/Anthropic-Cybersecurity-Skills/analyzing-heap-spray-exploitationDetect heap spray artifacts in memory dumps to analyze potential code execution exploits.
- Identifies NOP sleds, shellcode zones, and large allocations from memory images.
- Integrates with the Volatility3 framework for deep memory inspection.
- Analyzes process virtual address space using specific memory forensics plugins.
- Outputs structured findings detailing suspicious memory regions for review.
SKILL.md
.github/skills/analyzing-heap-spray-exploitationView on GitHub ↗
--- 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 --- # 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.
More from mukul975/Anthropic-Cybersecurity-Skills
- acquiring-disk-image-with-dd-and-dcflddCreate forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.
- analyzing-active-directory-acl-abuseDetect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and WriteOwner abuse paths
- analyzing-android-malware-with-apktoolPerform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source recovery, and androguard for permission analysis, manifest inspection, and suspicious API call detection.
- analyzing-api-gateway-access-logs>
- analyzing-apt-group-with-mitre-navigatorAnalyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps of adversary TTPs for detection gap analysis and threat-informed defense.
- analyzing-azure-activity-logs-for-threats>
- analyzing-bootkit-and-rootkit-samples>
- analyzing-browser-forensics-with-hindsightAnalyze Chromium-based browser artifacts using Hindsight to extract browsing history, downloads, cookies, cached content, autofill data, saved passwords, and browser extensions from Chrome, Edge, Brave, and Opera for forensic investigation.
- analyzing-campaign-attribution-evidenceCampaign attribution analysis involves systematically evaluating evidence to determine which threat actor or group is responsible for a cyber operation. This skill covers collecting and weighting attr
- analyzing-certificate-transparency-for-phishingMonitor Certificate Transparency logs using crt.sh and Certstream to detect phishing domains, lookalike certificates, and unauthorized certificate issuance targeting your organization.