/forensics:exposure-analysisfrom forensics
Reconstructs effective host exposure by cross-referencing Docker published ports, UFW rules, iptables, and IPv6 asymmetry. Read-only firewall analysis for understanding what is reachable from the internet.
Ships in forensics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Relate listener inventory from sys-host-audit / Sys Host Profiler to host
firewall and Docker paths. Explain why a port is exposed, rather than trusting
ufw status. Use container-forensics for compromise indicators. This skill
produces reports and recommendations only, locally or over explicitly authorized
SSH. Do not install tools, elevate privileges, alter rules or probe unnamed hosts.
aiwg artifacts path --json --check-write).
Load evidence-integrity, non-destructive, ops-safety and
ops-information-governance before collection. Keep this workflow read-only
even when a caller asks to fix findings.ss -ltnup, ip -j address show,
iptables-save, ip6tables-save, ufw status numbered,
nft -j list ruleset or firewall-cmd --list-all-zones as applicable.
Review runtime and persistent firewalld configuration separately. Record
permission failures as UNKNOWN; never interpret a failed command as no rules.
For SSH use the operator-named host with batch mode and a bounded connect
timeout; no fleet expansion or private configuration searches.docker inspect,
process environments, datastore secrets, private keys or container Env.
Route collected bytes through the existing information-governance boundary
before terminal, artifact or report emission. Operator-held raw evidence is
hashed at acquisition; sanitized derivatives have separate hashes and custody
links. The helper only accepts already sanitized snapshots.Run the bundled helper against an operator-supplied JSON snapshot:
node "$AIWG_ROOT/agentic/code/frameworks/forensics-complete/skills/exposure-analysis/scripts/analyze.mjs" --snapshot sanitized-snapshot.json
Required metadata: host, capturedAt (ISO UTC). Capture fields are strings:
ss, docker (JSON array of narrowed inspect records), iptables4,
iptables6, ufw. Supply ingressInterface, vpnAddresses, cdnRanges
(operator-reviewed CIDRs), and hashes mapping capture names to acquisition
SHA-256 values. Omitted hashes are explicitly unverified; a supplied mismatch
stops analysis. Optional external entries contain source, port, protocol,
result, capture time and vantage identity.
The helper supports ordered iptables/ip6tables filter and DNAT paths with simple source/destination, protocol, port, interface and NEW-state selectors. Unsupported selectors/chains, extra hook tables, native nftables/firewalld, rootless/userland proxies and routed/host networks require manual analysis; helper verdicts remain UNKNOWN. A host-path verdict never establishes upstream internet routing or cloud controls. Do not represent the helper as a complete Linux firewall evaluator. Cloud/Kubernetes controls are out of scope; attach separately reviewed adapter findings to the existing network-audit report.
Input: -p 6379:6379, UFW deny 6379, matching DNAT and forwarding accepts,
empty DOCKER-USER. Output: internet-reachable via Docker on the captured
host path; docker-ufw-bypass, missing-bind, empty-docker-user findings.
A DOCKER-USER DROP before the Docker accept instead reports the captured path
blocked. An unused 5432 allow is stale; a CDN source allowing all ports is
over-broad-cdn. See sanitized fixtures in test/fixtures/host-exposure/.
Use the existing network-audit-report template for the human report, storing
it under the resolved .aiwg/forensics/reports/ and evidence/custody under
.aiwg/forensics/evidence/. The helper writes JSON only to stdout; caller owns
sanitization and artifact routing. Include a compact operations-log record:
host, capturedAt, status, failed, unknown, report reference.
Exit codes: 0 PASS, 2 FAIL, 3 UNKNOWN, 1 input/integrity error. Alert on any
nonzero result, not only FAIL. Post-deploy and monthly callers use existing
operator scheduling; every run needs fresh captures. No timer or service is
installed by this skill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin forensics21 skills in this plugin
/cloud-forensicsAWS, Azure, and GCP forensic investigation covering audit logs, IAM review, storage access, network flows, and compute instance forensics/container-forensicsForensic investigation of Docker, containerd/CRI-O, and Kubernetes — inventory, escape detection, eBPF runtime monitoring, RBAC and etcd audit. Use when investigating container compromise./evidence-preservationChain of custody and evidence preservation procedures covering log collection, hash verification, custody documentation, and evidence packaging per RFC 3227Other plugins' skills for the same job