image-scanning
Skill0 starsChanged 11 days agoMITView on GitHub
Scan container images for vulnerabilities, secrets, misconfigurations and malware with Trivy, Grype or registry-native scanners; choose minimal base images; gate builds; and continuously rescan registries and running workloads. Use when building or approving container images, triaging image CVE reports, or setting registry admission policy.
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-gateway-controlsSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- asset-inventory-reconciliationSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-activity-investigationSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- data-discoverySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Prefer minimal images: distroless, Chainguard/Wolfi, Alpine (musl caveats), scratch for static binaries.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Container Image Scanning
Scan
trivy image --severity HIGH,CRITICAL --ignore-unfixed ghcr.io/org/app@sha256:<digest>
trivy image --scanners vuln,secret,misconfig --format sarif -o trivy.sarif ghcr.io/org/app:1.4.2
grype ghcr.io/org/app@sha256:<digest> --only-fixed --fail-on high
trivy k8s --report summary cluster # scan workloads running in a cluster (Trivy k8s mode)Registry-native: ECR enhanced scanning (Inspector), Azure Defender for Containers, GCP Artifact Analysis, Harbor (Trivy).
Triage
- Base image vs. app layer:
trivy image --format jsonshows the layer/package; most OS CVEs are fixed by rebuilding on an updated base. - Fixable?
--ignore-unfixedto focus effort; track unfixed criticals with exceptions. - Reachability/runtime relevance: package present but binary never executed (e.g.,
perlin a Go service image) → remove it with a smaller base rather than debating. - KEV/EPSS prioritization (
vuln-prioritization).
Base image strategy
Prefer minimal images: distroless, Chainguard/Wolfi, Alpine (musl caveats), scratch for static binaries; pin by digest; rebuild on a schedule (weekly) and on critical base CVEs; maintain an approved base-image list.
Gates
CI: fail on fixable critical (and KEV) in new images. Registry: block pulls of images with critical findings or no signature (artifact-signing). Runtime: rescan running images daily — new CVEs appear for old images.
Output
Image@digest | Base | Critical/High (fixable) | KEV | Secrets | Misconfig | Decision | Owner
Related skills
dockerfile-hardening, sbom-vulnerability-analysis, artifact-signing, release-gate
References
- Trivy: https://trivy.dev/
- Grype: https://github.com/anchore/grype
- NIST SP 800-190 Application Container Security Guide: https://csrc.nist.gov/pubs/sp/800/190/final
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

