In short.
Analyzing Docker Container Forensics is a Docker investigation skill for developers and incident responders, but its command-line helper provides basic triage rather than the complete documented forensic workflow. The helper uses Docker inspection data and filesystem changes to flag risky settings and suspicious paths, then prints findings and a JSON summary. Export, hashing, log retrieval and Trivy functions exist but are not called by its command-line entry point. Runtime compatibility, detection accuracy and evidence completeness are unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises skills/analyzing-docker-container-forensics/SKILL.md, references/api-reference.md, scripts/agent.py and the folder LICENSE, together with the repository-level LICENSE, at revision 54a798831d2266a3ca61ce68a7acb80b81160d57. Other repository skills, assistant integrations, external tool implementations and downloaded binaries are outside this scope. No code or commands were executed. Installation success, runtime compatibility, detection accuracy, collection completeness and forensic outcomes remain unassessed.
The overview
Identity
The resource is the skills/analyzing-docker-container-forensics folder in mukul975/Anthropic-Cybersecurity-Skills. It contains SKILL.md, a command reference, a Python helper and an Apache-2.0 license. The skill metadata declares version 1.0 and names mahipal as author.
The original source location is [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/skills/analyzing-docker-container-forensics]. The captured version is available at [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/analyzing-docker-container-forensics].
Assessment
The strongest use is as a structured investigation checklist with a small triage helper. The guide connects container configuration, image layers, filesystem changes and host artifacts to practical scenarios such as a compromised web application or an unauthorized mining process.
The automation is substantially narrower than the guide. Its command-line path does not collect exports, preserve logs, analyze image layers or run vulnerability scans. No execution results, detection benchmarks or completed forensic case establish its operational reliability.
Users
Incident responders, container administrators and developers investigating their Docker applications can use the material to organize an initial investigation. It is particularly relevant when questions involve privileged containers, sensitive host mounts, changed files or suspicious image contents.
Beginners get explanations of image layers, mounts, namespaces and filesystem-change codes, but the guide assumes Docker administration and command-line knowledge. Experienced investigators will need to supply their own evidence-handling procedures and interpret findings in the context of the application.
Capabilities
Given a container identifier, the helper checks privileged mode, selected added capabilities, shared host namespaces, certain sensitive mounts, Docker socket mounts, root-user configuration and environment-variable names associated with secrets. It counts added, changed and deleted paths, flags selected path patterns and prints a JSON summary.
The wider guide provides commands for exporting a filesystem, committing and saving an image, capturing logs and processes, hashing archives, examining image layers, comparing images and scanning with Trivy. Separate Python functions implement export with SHA-256 hashing, log retrieval and a Trivy scan, but the command-line entry point does not invoke them.
Using it
Requirements
The helper requires Python 3, the Docker command-line client and permission to access the relevant Docker daemon. Its imports are from Python's standard library. Exact supported Python and Docker versions are unspecified, and the code contains no model or AI API client.
The broader workflow requires access to Docker host artifacts, suitable evidence storage and additional tools such as dive, container-diff, docker-explorer and Trivy. Examples use Linux filesystem paths, while the dive installation example assumes a Debian-compatible system and an amd64 package. Cross-platform compatibility is not established.
Mechanism
The Python helper launches local commands through subprocess. Without an argument, it lists containers. With an identifier, it parses docker inspect output, applies configuration rules, parses docker diff output and matches added or changed paths against fixed strings. There is no language-model reasoning in this implementation.
Findings are rule-based indicators. For example, an added path containing .php or /tmp/ can be flagged without examining its contents. Environment checks inspect variable names and report the matching names without their values. The report contains configuration findings, filesystem-change counts and suspicious paths; it does not include file contents or vulnerability results.
Setup
Acquire the folder from the pinned source revision and inspect SKILL.md, references/api-reference.md and scripts/agent.py. No assistant-specific installation procedure, skill-loader configuration or compatibility statement is supplied.
The helper's entry point accepts a container identifier as its first argument; python3 scripts/agent.py lists containers, while python3 scripts/agent.py <container_id> requests the configuration and filesystem analysis. Replace the placeholder with an actual identifier. Output combines human-readable text with JSON and is not saved as a report file automatically.
For the manual workflow, create the case directories before commands redirect output into them, replace sample identifiers and paths, and prepare the additional tools required by the steps you intend to use. Installation and command compatibility remain unassessed.
Example
For a suspected web-application container compromise, the helper could identify an added /tmp/reverse.sh path and a changed /etc/crontab path because those match its rules. These would be investigation leads, not proof that a reverse shell or persistence mechanism exists.
The guide then offers manual steps for collecting the filesystem and logs, inspecting image layers and running scans. Its sample report contains example file findings and vulnerability counts; those figures are illustrative and do not establish results from an actual investigation.
Assessment & evidence
Limitations
Error handling can obscure incomplete analysis. A nonzero docker diff result produces empty change lists without a reported failure, and a failed container-listing command can appear as an empty list. Subprocess calls have a 120-second timeout, but timeout and missing-executable exceptions are not caught. These are source-code observations; their runtime effects are untested.
Detection is limited to fixed settings and path strings. It does not inspect suspicious file contents, establish attacker activity or demonstrate detection accuracy. Sensitive mount checks largely use exact source paths, and the root-user check explicitly handles an empty user setting or the literal name root.
The documentation does not establish complete collection of mounted-volume contents, memory or a coordinated live-state snapshot. Its instructions include running a command inside the container and creating a new image, so users must account for changes caused by collection. Full inspection output and exports may contain sensitive data; reporting environment-variable names without their values does not sanitize those artifacts.
Reasoning
The resource is most useful when its automated findings guide a deeper investigation. A risky capability, secret-like environment name or changed script path identifies something to examine; none independently establishes compromise. The manual guide supplies broader collection and inspection steps that the helper omits.
Image comparisons also need a trustworthy baseline. The example compares against nginx:latest, but the resource does not establish that this is the investigated container's original image. A known original image digest would make differences easier to interpret. NIST CSF and MITRE ATT&CK identifiers in the metadata do not establish measured coverage or conformity.
Alternatives
For a small investigation, the documented docker inspect and docker diff commands provide the helper's underlying data directly. This gives an investigator access to fields and changes that its fixed rules may not flag.
For narrower specialist tasks, the guide identifies dive for image-layer inspection, container-diff for image comparison, docker-explorer for offline Docker artifacts and Trivy for vulnerability and secret scanning. These tools cover different parts of the workflow. No comparative accuracy, performance, compatibility or cost results are supplied.
Evidence
SKILL.md documents the intended investigation workflow and scenarios. references/api-reference.md supplies command syntax and field descriptions. scripts/agent.py establishes the helper's implemented rules and command-line behavior. The folder and repository license files establish the supplied redistribution terms.
The captured Python source is available at [https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/analyzing-docker-container-forensics/scripts/agent.py]. The supplied material contains no execution receipts, accuracy evaluation or completed case evidence. Runtime behavior and investigation outcomes remain unassessed.
Access & freshness
Costs
The supplied Apache-2.0 notices grant no-charge copyright permissions, but the resource gives no operating-cost estimates or support prices. Storage for exported files and images, investigation compute, optional services and any assistant subscription costs are unknown.
The helper contains no model API calls or billing integration. This does not establish a total cost for carrying out the broader investigation workflow.
Rights
Both the repository-level and folder-level license notices provide Apache License 2.0 terms and name mukul975 as the 2026 copyright holder. The license permits reproduction, modification and distribution subject to its conditions.
Redistribution must include the license and preserve applicable notices; modified files must identify changes, and applicable NOTICE attributions must be carried forward. The license provides no warranty and does not grant general trademark rights. Licenses for separately acquired third-party tools are not assessed.
Freshness
The supplied snapshot identifies source revision 54a798831d2266a3ca61ce68a7acb80b81160d57 and capture time 2026-11-16T10:52:38.251Z. SKILL.md declares version 1.0. A release date, change history and tested tool-version matrix are not supplied.
The instructions use latest download locations and an nginx:latest comparison image, so they do not pin a reproducible tool and image set. Dates and vulnerability counts in the example report are sample content, not evidence of current findings.
Actions
Read the pinned guide and helper, then decide whether you need configuration triage or the broader manual investigation. Validate the relevant commands and tool versions in a disposable environment you control before applying them to incident evidence.
For operational use, record command failures explicitly, preserve required volume and host artifacts separately, protect sensitive exports and save reports with their acquisition context. Use a known image baseline for comparisons and examine flagged files before assigning incident conclusions. Empty findings should not be treated as proof that a container is uncompromised.
