exposure-analysis
БесплатноЗапускает вложенные скриптыНе проверенRead-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and…
от jmagly★ 233 звезды на GitHubОб этом скилле
Exposure Analysis
Purpose
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.
Triggers
- "firewall analysis"
- "docker published ports"
- "UFW says closed but Docker publishes it"
- "CDN origin exposure" / "stale firewall rules"
Behavior
- Confirm host, interface/address inventory, capture time in UTC, permitted
collection scope and artifact destination (
aiwg artifacts path --json --check-write). Loadevidence-integrity,non-destructive,ops-safetyandops-information-governancebefore collection. Keep this workflow read-only even when a caller asks to fix findings. - Reuse the existing host inventory when available. Within authorized scope,
collect bounded metadata using
ss -ltnup,ip -j address show,iptables-save,ip6tables-save,ufw status numbered,nft -j list rulesetorfirewall-cmd --list-all-zonesas 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. - Narrow Docker inspection to Name, NetworkMode, PortBindings,
NetworkSettings.Ports and Networks. NEVER capture full
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. - Classify every listener by address family, protocol and bind scope: loopback, private, named VPN address, all interfaces, public or unknown. Record owning process/PID from ss and correlate its unit/container using approved inventory metadata. Missing process/unit ownership stays unknown.
- Trace new inbound traffic in actual rule order. Docker rootful bridge traffic normally traverses PREROUTING DNAT → FORWARD → DOCKER-USER → DOCKER. INPUT/UFW denies do not protect this forwarding path. Include earlier raw, mangle and native nft hooks, interface matches, conntrack and default policies. Record each rule's listener/publish match; flag missing bind addresses, empty DOCKER-USER guards, unused allows, earlier covering terminal rules, public-IP allow-all and CDN ranges permitting ports beyond the reviewed 80/443 scope. A stale rule is a review candidate: check socket activation, maintenance and standby services before recommending removal.
- Review IPv4 and IPv6 independently, including IPv6 Docker publishing, wildcard dual-stack sockets and differing defaults. Different family rules are a review signal, not proof of equivalent reachability. Never infer IPv6 closure from an IPv4-only capture.
- External verification is optional and requires the operator to name the vantage, source addresses, target and bounded port set. Compare the probe's actual public egress/NAT source to all source allowlists, including CDN/VPN and both address families. If the source matches an allow rule, explicitly warn that a closed result proves nothing about ordinary internet sources. A clean probe is still limited to that vantage/protocol/time. The helper consumes supplied results; it never launches probes.
- Hash-check evidence before analysis and again before report finalization. Include capture times, commands, collection failures, custody links and rule paths. For "reachable on date X", use dated config history/backups with their own hashes and distinguish reconstructed historical configuration from observed reachability; today's captures cannot establish past exposure.
Offline helper
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 iptabl
Установить exposure-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashWriteВложенные файлы
FAQ
Что делает скилл exposure-analysis?
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
Как установить скилл exposure-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл exposure-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic