返回顶部
m

memory-forensics内存取证

Memory forensics with Volatility and related tools. Acquire RAM dumps, extract processes and DLLs, investigate rootkits and fileless malware, recover credentials from memory, and reconstruct timelines from memory images.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
224
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

memory-forensics

内存取证

用于从内存转储中获取、分析和提取痕迹的全面技术,适用于事件响应和恶意软件分析。

使用此技能的场景

  • - 处理内存取证任务或工作流时
  • 需要内存取证的指导、最佳实践或检查清单时

不使用此技能的场景

  • - 任务与内存取证无关时
  • 需要此范围之外的其他领域或工具时

使用说明

  • - 明确目标、约束条件和所需输入。
  • 应用相关最佳实践并验证结果。
  • 提供可操作的步骤和验证方法。
  • 如需详细示例,请打开 resources/implementation-playbook.md。

内存获取

实时获取工具

Windows

powershell

WinPmem(推荐)

winpmemminix64.exe memory.raw

DumpIt

DumpIt.exe

Belkasoft RAM Capturer

基于GUI,输出raw格式

Magnet RAM Capture

基于GUI,输出raw格式

Linux

bash

LiME(Linux内存提取器)

sudo insmod lime.ko path=/tmp/memory.lime format=lime

/dev/mem(有限制,需要权限)

sudo dd if=/dev/mem of=memory.raw bs=1M

/proc/kcore(ELF格式)

sudo cp /proc/kcore memory.elf

macOS

bash

osxpmem

sudo ./osxpmem -o memory.raw

MacQuisition(商业软件)

虚拟机内存

bash

VMware:.vmem文件即为原始内存


cp vm.vmem memory.raw

VirtualBox:使用调试控制台

vboxmanage debugvm VMName dumpvmcore --filename memory.elf

QEMU

virsh dump memory.raw --memory-only

Hyper-V

检查点包含内存状态

Volatility 3框架

安装与设置

bash

安装Volatility 3


pip install volatility3

安装符号表(Windows)

从 https://downloads.volatilityfoundation.org/volatility3/symbols/ 下载

基本用法

vol -f memory.raw <插件>

指定符号路径

vol -f memory.raw -s /path/to/symbols windows.pslist

核心插件

进程分析

bash

列出进程

vol -f memory.raw windows.pslist

进程树(父子关系)

vol -f memory.raw windows.pstree

隐藏进程检测

vol -f memory.raw windows.psscan

进程内存转储

vol -f memory.raw windows.memmap --pid --dump

进程环境变量

vol -f memory.raw windows.envars --pid

命令行参数

vol -f memory.raw windows.cmdline

网络分析

bash

网络连接

vol -f memory.raw windows.netscan

网络连接状态

vol -f memory.raw windows.netstat

DLL与模块分析

bash

每个进程加载的DLL

vol -f memory.raw windows.dlllist --pid

查找隐藏/注入的DLL

vol -f memory.raw windows.ldrmodules

内核模块

vol -f memory.raw windows.modules

模块转储

vol -f memory.raw windows.moddump --pid

内存注入检测

bash

检测代码注入

vol -f memory.raw windows.malfind

VAD(虚拟地址描述符)分析

vol -f memory.raw windows.vadinfo --pid

转储可疑内存区域

vol -f memory.raw windows.vadyarascan --yara-rules rules.yar

注册表分析

bash

列出注册表配置单元

vol -f memory.raw windows.registry.hivelist

打印注册表键值

vol -f memory.raw windows.registry.printkey --key Software\Microsoft\Windows\CurrentVersion\Run

转储注册表配置单元

vol -f memory.raw windows.registry.hivescan --dump

文件系统痕迹

bash

扫描文件对象

vol -f memory.raw windows.filescan

从内存中转储文件

vol -f memory.raw windows.dumpfiles --pid

MFT分析

vol -f memory.raw windows.mftscan

Linux分析

bash

进程列表


vol -f memory.raw linux.pslist

进程树

vol -f memory.raw linux.pstree

Bash历史

vol -f memory.raw linux.bash

网络连接

vol -f memory.raw linux.sockstat

已加载的内核模块

vol -f memory.raw linux.lsmod

挂载点

vol -f memory.raw linux.mount

环境变量

vol -f memory.raw linux.envars

macOS分析

bash

进程列表


vol -f memory.raw mac.pslist

进程树

vol -f memory.raw mac.pstree

网络连接

vol -f memory.raw mac.netstat

内核扩展

vol -f memory.raw mac.lsmod

分析工作流

恶意软件分析工作流

bash

1. 初始进程调查


vol -f memory.raw windows.pstree > processes.txt
vol -f memory.raw windows.pslist > pslist.txt

2. 网络连接

vol -f memory.raw windows.netscan > network.txt

3. 检测注入

vol -f memory.raw windows.malfind > malfind.txt

4. 分析可疑进程

vol -f memory.raw windows.dlllist --pid vol -f memory.raw windows.handles --pid

5. 转储可疑可执行文件

vol -f memory.raw windows.pslist --pid --dump

6. 从转储中提取字符串

strings -a pid..exe > strings.txt

7. YARA扫描

vol -f memory.raw windows.yarascan --yara-rules malware.yar

事件响应工作流

bash

1. 事件时间线


vol -f memory.raw windows.timeliner > timeline.csv

2. 用户活动

vol -f memory.raw windows.cmdline vol -f memory.raw windows.consoles

3. 持久化机制

vol -f memory.raw windows.registry.printkey \ --key Software\Microsoft\Windows\CurrentVersion\Run

4. 服务

vol -f memory.raw windows.svcscan

5. 计划任务

vol -f memory.raw windows.scheduled_tasks

6. 最近文件

vol -f memory.raw windows.filescan | grep -i recent

数据结构

Windows进程结构

c
// EPROCESS(执行进程)
typedef struct _EPROCESS {
KPROCESS Pcb; // 内核进程块
EXPUSHLOCK ProcessLock;
LARGE_INTEGER CreateTime;
LARGE_INTEGER ExitTime;
// ...
LIST_ENTRY ActiveProcessLinks; // 双向链表
ULONG_PTR UniqueProcessId; // PID
// ...
PEB* Peb; // 进程环境块
// ...
} EPROCESS;

// PEB(进程环境块)
typedef struct _PEB {
BOOLEAN InheritedAddressSpace;
BOOLEAN ReadImageFileExecOptions;
BOOLEAN BeingDebugged; // 反调试检查
// ...
PVOID ImageBaseAddress; // 可执行文件基址
PPEBLDRDATA Ldr; // 加载器数据(DLL列表)
PRTLUSERPROCESS_PARAMETERS ProcessParameters;
// ...
} PEB;

VAD(虚拟地址描述符)

c
typedef struct _MMVAD {
MMVAD_SHORT Core;
union {
ULONG LongFlags;
MMVAD_FLAGS VadFlags;
} u;
// ...
PVOID FirstPrototypePte;
PVOID LastContiguousPte;
// ...
PFILE_OBJECT FileObject;
} MMVAD;

// 内存保护标志
#define PAGE_EXECUTE 0x10
#define PAGEEXECUTEREAD 0x20
#define PAGEEXECUTEREADWRITE 0x40
#define PAGEEXECUTEWRITECOPY 0x80

检测模式

进程注入指标

python

Malfind指标


#

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-forensics-1776079574 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memory-forensics-1776079574 技能

通过命令行安装

skillhub install memory-forensics-1776079574

下载

⬇ 下载 memory-forensics v1.0.1(免费)

文件大小: 4.57 KB | 发布时间: 2026-4-17 15:22

v1.0.1 最新 2026-4-17 15:22
Natural description rewrite

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部