Tooluck logoTooluck
SKILL.md

analyzing-docker-container-forensics

Agent skill frommukul975/Anthropic-Cybersecurity-Skills

Investigate compromised Docker containers by analyzing images, layers,

How to install analyzing-docker-container-forensics

install analyzing-docker-container-forensics
# install the Anthropic-Cybersecurity-Skills pack with the skills CLI
npx skills add mukul975/Anthropic-Cybersecurity-Skills

# or add only this skill to Claude Code: copy the folder

skills/analyzing-docker-container-forensics/

# into

~/.claude/skills/analyzing-docker-container-forensics/ (all projects)

.claude/skills/analyzing-docker-container-forensics/ (one project)

skills/analyzing-docker-container-forensics/SKILL.md

Apache-2.0Full file
1# Analyzing Docker Container Forensics
2
3## When to Use
4- When investigating a compromised Docker container or container host
5- For analyzing malicious Docker images pulled from registries
6- During incident response involving containerized application breaches
7- When examining container escape attempts or privilege escalation
8- For auditing container configurations and identifying misconfigurations
9
10## Prerequisites
11- Docker CLI access on the forensic workstation
12- Access to the Docker host file system (forensic image or live)
13- Understanding of Docker layered file system (overlay2, aufs)
14- dive, docker-explorer, or container-diff for image analysis
15- Knowledge of Docker daemon configuration and socket security
16- Trivy or Grype for vulnerability scanning of container images
17
18## Workflow
19
20### Step 1: Preserve Container State and Evidence
21
22```bash
23# List all containers (including stopped)
24docker ps -a --no-trunc > /cases/case-2024-001/docker/container_list.txt
25
26# Inspect the compromised container
27CONTAINER_ID="abc123def456"
28docker inspect $CONTAINER_ID > /cases/case-2024-001/docker/container_inspect.json
29
30# Export container filesystem as tarball (preserves current state)
31docker export $CONTAINER_ID > /cases/case-2024-001/docker/container_export.tar
32
33# Create an image from the container's current state
34docker commit $CONTAINER_ID forensic-evidence:case-2024-001
35docker save forensic-evidence:case-2024-001 > /cases/case-2024-001/docker/container_image.tar
36
37# Capture container logs
38…

Excerpt shown under the repository's Apache-2.0 license.

More skills in Anthropic-Cybersecurity-Skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates