Memory forensics

From jmagly/aiwg · View interactive version

Memory forensics is an AI agent skill from the GitHub repository jmagly/aiwg. Volatility 3 memory forensics workflows covering acquisition with LiME and WinPmem, and structured analysis using Volatility 3 plugin reference

How to use this skill

Skill file

memory-forensics

Guides memory acquisition and analysis for both Linux and Windows targets. Acquisition uses LiME (Linux) or WinPmem (Windows). Analysis uses Volatility 3 with a structured plugin sequence covering process analysis, network connections, injected code detection, and rootkit indicators.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

Purpose

Memory forensics recovers volatile evidence unavailable on disk: running processes with no on-disk binary, injected shellcode, encryption keys, credential material, and network connections active at time of capture. This skill provides a repeatable acquisition and analysis workflow that produces structured findings from a raw memory image.

Behavior

When triggered, this skill:

  1. Determine acquisition path:
  1. Linux memory acquisition with LiME:

```bash

# Compile LiME against the target kernel headers

make -C /lib/modules/$(uname -r)/build M=$(pwd) modules

```

```bash

# Write to file

insmod lime.ko "path=/mnt/evidence/memory.lime format=lime"

# Stream over network to examiner host

insmod lime.ko "path=tcp:4444 format=lime"

# On examiner: nc -l 4444 > memory.lime

```

  1. Windows memory acquisition with WinPmem:

```

winpmem_multi_x64.exe memory.raw

```

  1. Volatility 3 environment setup:
  1. Process analysis plugins:
  1. Code injection and malicious process detection:
  1. Network connection analysis:
  1. Persistence and rootkit indicators:
  1. Credential and artifact extraction:
  1. Write findings document:

Usage Examples

Example 1 — Analyze existing image

memory dump analysis /evidence/memory.lime

Example 2 — Full acquisition and analysis

acquire memory from user@compromised-host.example.com

Example 3 — Windows target

memory forensics windows /mnt/evidence/win-memory.raw

Output Locations

Configuration

memory_forensics:
  volatility_path: vol
  lime_format: lime
  winpmem_path: winpmem_multi_x64.exe
  hash_algorithm: sha256
  linux_symbol_path: /opt/volatility3/symbols/linux/
  malfind_dump_vads: true
  plugins:
    windows:
      - windows.pslist
      - windows.psscan
      - windows.pstree
      - windows.malfind
      - windows.netstat
      - windows.svcscan
      - windows.cmdline
      - windows.dlllist
    linux:
      - linux.pslist
      - linux.pstree
      - linux.proc_maps
      - linux.sockstat
      - linux.check_syscall
      - linux.check_modules

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.