Cloud docker registry

From NoorQureshi/security-skills · View interactive version

Cloud docker registry is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Find and loot exposed container registries — image pull/push, secrets baked in layers, and registry misconfig. Load on exposed Docker registry (port 5000, /v2/), a registry URL, harbor/ECR/ GCR/ACR references, or "container registry". Signals: /v2/_catalog, registry:2, unauth pull/push.

How to use this skill

Skill file

Exposed container registry

When it applies

A Docker/OCI registry is reachable — a self-hosted registry (:5000, /v2/), or a cloud one

(ECR/GCR/ACR/Harbor) with weak auth. Images are goldmines: source, configs, and baked-in secrets.

Why it works

Registries are often deployed without auth ("internal only") or with over-broad pull access. Image

layers preserve everything added at build time — .env files, cloud keys, private source,

tokens — even if a later layer deletes them, earlier layers keep them.

Method

  1. Detect & enumerate: curl -s https://registry:5000/v2/_catalog (repo list) and

.../v2/<repo>/tags/list. registry:2 banner / an unauth /v2/ = exposed.

  1. Pull images: docker pull registry:5000/<repo>:<tag> or crane pull (no docker daemon).

Anonymous pull of private images is the finding.

  1. Mine layers for secrets: crane export/docker save then scan with trufflehog filesystem

/ grep for keys, .env, kubeconfig, cloud creds (→ validate with code-review-secrets-detection).

  1. Push (critical): if anonymous/weak push works, you can poison images (supply-chain) — prove

with a harmless tag, don't tamper real images.

  1. Cloud registries: test misconfigured ECR/GCR/ACR policies; leaked registry creds → pull private images.

Gotchas

Verify success

Anonymous/unauthorized pull of a private image, a live secret extracted from its layers, or a

successful (harmless) push proving write access.

References

Docker registry API docs; crane/trufflehog; "hacking Docker registries" write-ups.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.