analyzing-docker-container-forensics

Featured

Investigate compromised Docker containers by analyzing images, layers, volumes, logs, and runtime artifacts to identify malicious activity and evidence.

DevOps & Infrastructure 40 stars 10 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Analyzing Docker Container Forensics ## When to Use - When investigating a compromised Docker container or container host - For analyzing malicious Docker images pulled from registries - During incident response involving containerized application breaches - When examining container escape attempts or privilege escalation - For auditing container configurations and identifying misconfigurations ## Prerequisites - Docker CLI access on the forensic workstation - Access to the Docker host file system (forensic image or live) - Understanding of Docker layered file system (overlay2, aufs) - dive, docker-explorer, or container-diff for image analysis - Knowledge of Docker daemon configuration and socket security - Trivy or Grype for vulnerability scanning of container images ## Workflow ### Step 1: Preserve Container State and Evidence ```bash # List all containers (including stopped) docker ps -a --no-trunc > /cases/case-2024-001/docker/container_list.txt # Inspect the compromised container CONTAINER_ID="abc123def456" docker inspect $CONTAINER_ID > /cases/case-2024-001/docker/container_inspect.json # Export container filesystem as tarball (preserves current state) docker export $CONTAINER_ID > /cases/case-2024-001/docker/container_export.tar # Create an image from the container's current state docker commit $CONTAINER_ID forensic-evidence:case-2024-001 docker save forensic-evidence:case-2024-001 > /cases/case-2024-001/docker/container_image.tar # Capture container logs ...

Details

Author
26zl
Repository
26zl/cybersec-toolkit
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category