analyzing-heap-spray-exploitation
它能做什么
这个工具可以帮你在内存文件中查找并分析“堆喷射”(heap spray)攻击。它会寻找黑客用来运行程序的恶意代码模式。
适用场景
- ✓调查安全事件时。
- ✓编写攻击检测规则时。
- ✓检验安全防护能否抵御这类攻击时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-heap-spray-exploitation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析这个内存文件中是否存在堆喷射攻击,并告诉我你的发现。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具使用 Volatility3 来检查内存。它会查找可疑区域和已知的攻击代码特征,并尝试提取出恶意代码,以便进行分析。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
volatility3framework 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.
常见问题
什么是“堆喷射”?
“堆喷射”是黑客用来确保恶意代码能被执行的一种技术。他们会用自己控制的数据填满大片内存,从而提高攻击成功的几率。
什么是“NOP 雪橇”?
“NOP 雪橇”是由一连串什么都不做的指令组成的(NOP 即“无操作”,No Operation)。它们被放在恶意代码之前,让程序的执行流程“滑”到主攻击代码上。
什么是 Volatility3?
Volatility3 是一款用于分析计算机内存的工具,能帮助你了解系统在安全事件发生期间或之后的运行情况。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 35k
- 排名
- #7615
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。