extracting-memory-artifacts-with-rekall
它能做什么
这个工具帮助分析电脑内存,查找可疑或恶意活动的迹象。它会寻找隐藏的程序、注入的代码和其他异常情况,这些可能预示着攻击。
适用场景
- ✓调查可能的电脑攻击时。
- ✓在受控环境中测试系统安全性时。
- ✓分析恶意软件,了解它的运作方式时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/extracting-memory-artifacts-with-rekall/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析这个内存文件,找出隐藏的进程和注入的代码。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会加载电脑内存的副本,并使用特定命令查找异常模式。它会比对进程列表,分析程序如何使用内存,从而识别可疑活动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Extracting Memory Artifacts with Rekall
When to Use
- When performing authorized security testing that involves extracting memory artifacts with rekall
- When analyzing malware samples or attack artifacts in a controlled environment
- When conducting red team exercises or penetration testing engagements
- When building detection capabilities based on offensive technique understanding
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Use Rekall to analyze memory dumps for signs of compromise including process injection, hidden processes, and suspicious network connections.
from rekall import session
from rekall import plugins
# Create a Rekall session with a memory image
s = session.Session(
filename="/path/to/memory.raw",
autodetect=["rsds"],
profile_path=["https://github.com/google/rekall-profiles/raw/master"]
)
# List processes
for proc in s.plugins.pslist():
print(proc)
# Detect injected code
for result in s.plugins.malfind():
print(result)
Key analysis steps:
- Load memory image and auto-detect profile
- Run pslist and psscan to find hidden processes
- Use malfind to detect injected/hollowed code in process VADs
- Examine network connections with netscan
- Extract suspicious DLLs and drivers with dlllist/modules
Examples
from rekall import session
s = session.Session(filename="memory.raw")
# Compare pslist vs psscan for hidden processes
pslist_pids = set(p.pid for p in s.plugins.pslist())
psscan_pids = set(p.pid for p in s.plugins.psscan())
hidden = psscan_pids - pslist_pids
print(f"Hidden PIDs: {hidden}")
常见问题
什么是“内存转储”?
它是某一时刻电脑内存(RAM)的完整副本,用于取证分析。
什么是“进程注入”(process injection)?
这是恶意程序使用的一种技术,它把自己的代码插入到另一个正常程序中,从而更难被发现。
我需要是专家才能使用它吗?
建议具备一些基本的电脑安全知识,但这个工具的设计目的是辅助分析。
详情
作者的原始描述
Uses Rekall memory forensics framework to analyze memory dumps for process hollowing, injected code via VAD anomalies, hidden processes, and rootkit detection. Applies plugins like pslist, psscan, vadinfo, malfind, and dlllist to extract forensic artifacts from Windows memory images. Use during incident response memory analysis. '
热度
- GitHub 星标
- 35k
- 排名
- #7934
- 许可证
- 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帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。