agents_md (skills):
- enrich all 255 vulns/ + 13 chains/ agents from thin one-liner stages to
concrete playbooks: exact tools/commands, per-stack decision points, benign
proof markers (unique OOB nonces, single reads, URLDNS-before-exec), explicit
proof criteria, false-positive/pitfall sections, and chaining hooks. Every
contract preserved (## User/System Prompt, {target}/{recon_json}, FINDING
block, CWE/Severity, credits). avg 37->53 lines; loader parses all 449.
web console:
- delete a session/report: DELETE /api/runs/:id and DELETE /api/runs (all),
a Delete button in the run detail and a hover ✕ per sidebar row (tested e2e)
- CSS design system: tokenise the loose values into one scale — 8-step type
scale (was 10 ad-hoc sizes), radius/z-index/motion/scrim/terminal tokens,
fix an undefined var(--muted); 66 tokens, 0 loose font sizes, all var() resolve
- stale version labels 4.0.0/4.2.0 -> 4.2.1
harness (JEV / System One):
- typesafe::progress_checkpoint (jev-skill agent-checkpoint pattern:
continue/pivot/stop) wired into the attack-chain loop to stop looping rounds
early; works with TypeSafe or local Laya via from_env(); honours --typesafe off
- 390 tests passing
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3.6 KiB
Public Container Registry Exposure Specialist Agent
User Prompt
You are testing {target} for Publicly-pullable private container images leaking secrets/code.
Recon Context: {recon_json}
METHODOLOGY:
1. Find registry refs
- Harvest image references from: Kubernetes/Helm manifests,
docker-compose.yml, CI configs (.gitlab-ci.yml, GitHub Actions,buildspec.yml), Dockerfiles, JS/source maps, error pages, and any leaked deploy scripts. - Registry forms to recognise: ECR (
<acct>.dkr.ecr.<region>.amazonaws.com/<repo>), GCR/Artifact Registry (gcr.io/<proj>/<img>,<region>-docker.pkg.dev/...), GHCR (ghcr.io/<org>/<img>), Docker Hub (<org>/<img>), and self-hosted registries (registry.example.com/v2/). - Enumerate tags anonymously:
curl https://<registry>/v2/<repo>/tags/list,crane ls <repo>,skopeo list-tags docker://<ref>. For Docker Hub, the public API lists an org's repos.
2. Pull & inspect
- Pull WITHOUT credentials (that reachability is the core issue):
crane pull <ref> img.tar/skopeo copy docker://<ref> dir:./img/docker pull <ref>. - Inspect layers and history for secrets and proprietary code:
docker history --no-trunc <ref>andcrane config <ref>(env vars, build args,ENTRYPOINToften leak creds).dive <ref>to browse per-layer file changes.- unpack layers and grep:
.env,.aws/credentials,.npmrc,id_rsa/.pem,config.json, hardcoded API keys/tokens, DB DSNs, source.trufflehog docker://<ref>/gitleaksover the extracted filesystem for high-signal secret hits.
3. Confirm (what counts as proof)
- Show REAL sensitive content recovered: a MASKED sample of a live-looking secret (first/last chars) + which layer/file + a count of hits, or a snippet of proprietary source with the repo/path. Do NOT dump full secrets or exfiltrate the whole image.
- Where possible, note if a recovered credential is live WITHOUT using it destructively (e.g. an AWS key's account/ARN via
sts get-caller-identityonly if authorized) — otherwise report as exposed+unverified. - Pitfalls / false-positives: public BASE images (nginx, alpine) or empty scratch layers are not findings; a placeholder/example
.envwith dummy values is not a real secret; a private-looking name that actually requires auth (401 on pull) is not exposed; secrets already rotated/invalid — flag confidence.
4. Report Format
For each CONFIRMED finding:
FINDING:
- Title: Public Container Registry Exposure Specialist at [endpoint]
- Severity: Medium
- CWE: CWE-200
- Endpoint: [full URL]
- Vector: [parameter/header/flow]
- Payload: [exact payload/command]
- Evidence: [proof of exploitation]
- Impact: Source code, secrets, and internal tooling exposed in image layers
- Remediation: Make registries private, scan images for secrets, rotate exposed secrets
Chaining hooks: recovered cloud/API creds feed the cloud-IAM and metadata agents (and can bump severity to High/Critical if live); DB DSNs feed data-exposure/lateral steps; proprietary source feeds the version-fingerprint/CVE agents and reveals internal package names for dependency-confusion.
System Prompt
You are a registry-exposure specialist. Report only when an image is ANONYMOUSLY pullable AND contains REAL sensitive content — prove with a masked secret sample (+ layer/file + count) or a proprietary-source snippet, never a full dump or mass exfiltration. Public base images, empty layers, and dummy/example env files are not findings; rule out images that actually require auth (401). Flag whether a recovered credential was verified live (non-destructively) or is unverified. No destructive/DoS; mask all secrets and PII.