[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ES50ATP3KG5JJ81VECJDPH":3,"skill-same:01M7ES50ATP3KG5JJ81VECJDPH":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7ES50ATP3KG5JJ81VECJDPH","scanning-container-images-with-grype",null,"Scans container images, filesystems, and SBOMs for known CVEs with Anchore Grype, matching Syft-generated SBOM packages against NVD, GitHub Advisories, and OS-specific feeds with configurable severity thresholds and failure gates. Use when Grype or Syft is the chosen toolchain, when scanning an existing SBOM rather than an image, or when gating a build on severity. Keywords: Grype, Syft, SBOM, NVD, GitHub Advisory, --fail-on, severity threshold. Do not use when the toolchain is Trivy - use scanning-docker-images-with-trivy.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fscanning-container-images-with-grype\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: scanning-container-images-with-grype\ndescription: >-\n  Scans container images, filesystems, and SBOMs for known CVEs with Anchore Grype, matching\n  Syft-generated SBOM packages against NVD, GitHub Advisories, and OS-specific feeds with\n  configurable severity thresholds and failure gates. Use when Grype or Syft is the chosen\n  toolchain, when scanning an existing SBOM rather than an image, or when gating a build on\n  severity. Keywords: Grype, Syft, SBOM, NVD, GitHub Advisory, --fail-on, severity threshold.\n  Do not use when the toolchain is Trivy - use scanning-docker-images-with-trivy.\ndomain: cybersecurity\nsubdomain: container-security\ntags:\n- grype\n- vulnerability-scanning\n- container-security\n- sbom\n- anchore\n- supply-chain\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- PR.IR-01\n- ID.AM-08\n- DE.CM-01\nmitre_attack:\n- T1610\n- T1611\n- T1609\n- T1525\n- T1195\n---\n\n# Scanning Container Images with Grype\n\n## Overview\n\nGrype is an open-source vulnerability scanner from Anchore that inspects container images, filesystems, and SBOMs for known CVEs. It leverages Syft-generated SBOMs to match packages against multiple vulnerability databases including NVD, GitHub Advisories, and OS-specific feeds.\n\n\n## When to Use\n\n- When conducting security assessments that involve scanning container images with grype\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Docker or Podman installed\n- Grype CLI installed (`curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fanchore\u002Fgrype\u002Fmain\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin`)\n- Syft CLI (optional, for SBOM generation)\n- Network access to pull vulnerability databases\n\n## Core Commands\n\n### Install Grype\n\n```bash\n# Install via script\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fanchore\u002Fgrype\u002Fmain\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin\n\n# Verify installation\ngrype version\n\n# Install via Homebrew (macOS\u002FLinux)\nbrew install grype\n```\n\n### Scan Container Images\n\n```bash\n# Scan a Docker Hub image\ngrype nginx:latest\n\n# Scan from Docker daemon\ngrype docker:myapp:1.0\n\n# Scan a local archive\ngrype docker-archive:image.tar\n\n# Scan an OCI directory\ngrype oci-dir:path\u002Fto\u002Foci\u002F\n\n# Scan a Singularity image\ngrype sif:image.sif\n\n# Scan a local directory \u002F filesystem\ngrype dir:\u002Fpath\u002Fto\u002Fproject\n```\n\n### Output Formats\n\n```bash\n# Default table output\ngrype alpine:3.18\n\n# JSON output for pipeline processing\ngrype alpine:3.18 -o json > results.json\n\n# CycloneDX SBOM output\ngrype alpine:3.18 -o cyclonedx\n\n# SARIF output for GitHub Security tab\ngrype alpine:3.18 -o sarif > grype.sarif\n\n# Template-based custom output\ngrype alpine:3.18 -o template -t \u002Fpath\u002Fto\u002Ftemplate.tmpl\n```\n\n### Filtering and Thresholds\n\n```bash\n# Fail if vulnerabilities meet or exceed a severity\ngrype nginx:latest --fail-on critical\n\n# Show only fixed vulnerabilities\ngrype nginx:latest --only-fixed\n\n# Show only non-fixed vulnerabilities\ngrype nginx:latest --only-notfixed\n\n# Filter by severity\ngrype nginx:latest --only-fixed -o json | jq '[.matches[] | select(.vulnerability.severity == \"High\")]'\n\n# Explain a specific CVE\ngrype nginx:latest --explain --id CVE-2024-1234\n```\n\n### Working with SBOMs\n\n```bash\n# Generate SBOM with Syft then scan\nsyft nginx:latest -o spdx-json > nginx-sbom.json\ngrype sbom:nginx-sbom.json\n\n# Scan CycloneDX SBOM\ngrype sbom:bom.json\n```\n\n### Configuration File (.grype.yaml)\n\n```yaml\n# .grype.yaml\ncheck-for-app-update: false\nfail-on-severity: \"high\"\noutput: \"json\"\nscope: \"squashed\"  # or \"all-layers\"\nquiet: false\n\nignore:\n  - vulnerability: CVE-2023-12345\n    reason: \"False positive - not exploitable in our context\"\n  - vulnerability: CVE-2023-67890\n    fix-state: unknown\n\ndb:\n  auto-update: true\n  cache-dir: \"\u002Ftmp\u002Fgrype-db\"\n  max-allowed-built-age: 120h  # 5 days\n\nmatch:\n  java:\n    using-cpes: true\n  python:\n    using-cpes: true\n  javascript:\n    using-cpes: false\n```\n\n### CI\u002FCD Integration\n\n```yaml\n# GitHub Actions\n- name: Scan image with Grype\n  uses: anchore\u002Fscan-action@v4\n  with:\n    image: \"myregistry\u002Fmyapp:${{ github.sha }}\"\n    fail-build: true\n    severity-cutoff: high\n    output-format: sarif\n  id: scan\n\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: ${{ steps.scan.outputs.sarif }}\n```\n\n```yaml\n# GitLab CI\ncontainer_scan:\n  stage: test\n  image: anchore\u002Fgrype:latest\n  script:\n    - grype ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA} --fail-on high -o json > grype-report.json\n  artifacts:\n    reports:\n      container_scanning: grype-report.json\n```\n\n## Database Management\n\n```bash\n# Check database status\ngrype db status\n\n# Manually update vulnerability database\ngrype db update\n\n# Delete cached database\ngrype db delete\n\n# List supported database providers\ngrype db list\n```\n\n## Key Vulnerability Sources\n\n| Source | Coverage |\n|--------|----------|\n| NVD | CVEs across all ecosystems |\n| GitHub Advisories | Open source package vulnerabilities |\n| Alpine SecDB | Alpine Linux packages |\n| Amazon Linux ALAS | Amazon Linux AMI |\n| Debian Security Tracker | Debian packages |\n| Red Hat OVAL | RHEL, CentOS |\n| Ubuntu Security | Ubuntu packages |\n| Wolfi SecDB | Wolfi\u002FChainguard images |\n\n## Best Practices\n\n1. **Pin image tags** - Always scan specific digests, not `latest`\n2. **Fail on severity** - Set `--fail-on high` or `critical` in CI gates\n3. **Use SBOMs** - Generate SBOMs with Syft for reproducible scanning\n4. **Suppress false positives** - Use `.grype.yaml` ignore rules with documented reasons\n5. **Scan all layers** - Use `--scope all-layers` to catch vulnerabilities in intermediate layers\n6. **Automate database updates** - Keep the vulnerability database current in CI runners\n7. **Compare scans** - Track vulnerability count over time for regression detection\n","# Scanning Container Images with Grype\n\n## Overview\n\nGrype is an open-source vulnerability scanner from Anchore that inspects container images, filesystems, and SBOMs for known CVEs. It leverages Syft-generated SBOMs to match packages against multiple vulnerability databases including NVD, GitHub Advisories, and OS-specific feeds.\n\n\n## When to Use\n\n- When conducting security assessments that involve scanning container images with grype\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Docker or Podman installed\n- Grype CLI installed (`curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fanchore\u002Fgrype\u002Fmain\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin`)\n- Syft CLI (optional, for SBOM generation)\n- Network access to pull vulnerability databases\n\n## Core Commands\n\n### Install Grype\n\n```bash\n# Install via script\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fanchore\u002Fgrype\u002Fmain\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin\n\n# Verify installation\ngrype version\n\n# Install via Homebrew (macOS\u002FLinux)\nbrew install grype\n```\n\n### Scan Container Images\n\n```bash\n# Scan a Docker Hub image\ngrype nginx:latest\n\n# Scan from Docker daemon\ngrype docker:myapp:1.0\n\n# Scan a local archive\ngrype docker-archive:image.tar\n\n# Scan an OCI directory\ngrype oci-dir:path\u002Fto\u002Foci\u002F\n\n# Scan a Singularity image\ngrype sif:image.sif\n\n# Scan a local directory \u002F filesystem\ngrype dir:\u002Fpath\u002Fto\u002Fproject\n```\n\n### Output Formats\n\n```bash\n# Default table output\ngrype alpine:3.18\n\n# JSON output for pipeline processing\ngrype alpine:3.18 -o json > results.json\n\n# CycloneDX SBOM output\ngrype alpine:3.18 -o cyclonedx\n\n# SARIF output for GitHub Security tab\ngrype alpine:3.18 -o sarif > grype.sarif\n\n# Template-based custom output\ngrype alpine:3.18 -o template -t \u002Fpath\u002Fto\u002Ftemplate.tmpl\n```\n\n### Filtering and Thresholds\n\n```bash\n# Fail if vulnerabilities meet or exceed a severity\ngrype nginx:latest --fail-on critical\n\n# Show only fixed vulnerabilities\ngrype nginx:latest --only-fixed\n\n# Show only non-fixed vulnerabilities\ngrype nginx:latest --only-notfixed\n\n# Filter by severity\ngrype nginx:latest --only-fixed -o json | jq '[.matches[] | select(.vulnerability.severity == \"High\")]'\n\n# Explain a specific CVE\ngrype nginx:latest --explain --id CVE-2024-1234\n```\n\n### Working with SBOMs\n\n```bash\n# Generate SBOM with Syft then scan\nsyft nginx:latest -o spdx-json > nginx-sbom.json\ngrype sbom:nginx-sbom.json\n\n# Scan CycloneDX SBOM\ngrype sbom:bom.json\n```\n\n### Configuration File (.grype.yaml)\n\n```yaml\n# .grype.yaml\ncheck-for-app-update: false\nfail-on-severity: \"high\"\noutput: \"json\"\nscope: \"squashed\"  # or \"all-layers\"\nquiet: false\n\nignore:\n  - vulnerability: CVE-2023-12345\n    reason: \"False positive - not exploitable in our context\"\n  - vulnerability: CVE-2023-67890\n    fix-state: unknown\n\ndb:\n  auto-update: true\n  cache-dir: \"\u002Ftmp\u002Fgrype-db\"\n  max-allowed-built-age: 120h  # 5 days\n\nmatch:\n  java:\n    using-cpes: true\n  python:\n    using-cpes: true\n  javascript:\n    using-cpes: false\n```\n\n### CI\u002FCD Integration\n\n```yaml\n# GitHub Actions\n- name: Scan image with Grype\n  uses: anchore\u002Fscan-action@v4\n  with:\n    image: \"myregistry\u002Fmyapp:${{ github.sha }}\"\n    fail-build: true\n    severity-cutoff: high\n    output-format: sarif\n  id: scan\n\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: ${{ steps.scan.outputs.sarif }}\n```\n\n```yaml\n# GitLab CI\ncontainer_scan:\n  stage: test\n  image: anchore\u002Fgrype:latest\n  script:\n    - grype ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA} --fail-on high -o json > grype-report.json\n  artifacts:\n    reports:\n      container_scanning: grype-report.json\n```\n\n## Database Management\n\n```bash\n# Check database status\ngrype db status\n\n# Manually update vulnerability database\ngrype db update\n\n# Delete cached database\ngrype db delete\n\n# List supported database providers\ngrype db list\n```\n\n## Key Vulnerability Sources\n\n| Source | Coverage |\n|--------|----------|\n| NVD | CVEs across all ecosystems |\n| GitHub Advisories | Open source package vulnerabilities |\n| Alpine SecDB | Alpine Linux packages |\n| Amazon Linux ALAS | Amazon Linux AMI |\n| Debian Security Tracker | Debian packages |\n| Red Hat OVAL | RHEL, CentOS |\n| Ubuntu Security | Ubuntu packages |\n| Wolfi SecDB | Wolfi\u002FChainguard images |\n\n## Best Practices\n\n1. **Pin image tags** - Always scan specific digests, not `latest`\n2. **Fail on severity** - Set `--fail-on high` or `critical` in CI gates\n3. **Use SBOMs** - Generate SBOMs with Syft for reproducible scanning\n4. **Suppress false positives** - Use `.grype.yaml` ignore rules with documented reasons\n5. **Scan all layers** - Use `--scope all-layers` to catch vulnerabilities in intermediate layers\n6. **Automate database updates** - Keep the vulnerability database current in CI runners\n7. **Compare scans** - Track vulnerability count over time for regression detection\n",{"name":5,"tags":24,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":27,"description":7,"mitre_attack":39},[25,26,27,28,29,30],"grype","vulnerability-scanning","container-security","sbom","anchore","supply-chain","mahipal","cybersecurity","1.0",[35,36,37,38],"PR.PS-01","PR.IR-01","ID.AM-08","DE.CM-01",[40,41,42,43,44],"T1610","T1611","T1609","T1525","T1195","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fscanning-container-images-with-grype",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill scanning-container-images-with-grype",{"tool":59,"command":60},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill scanning-container-images-with-grype",{"tool":62,"command":63},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill scanning-container-images-with-grype","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fscanning-container-images-with-grype\u002FSKILL.md",true,[67,73,77],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",1769,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fscanning-container-images-with-grype\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",2544,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fscanning-container-images-with-grype\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fworkflows.md",4102,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fscanning-container-images-with-grype\u002Freferences\u002Fworkflows.md",[82,91,96,103,110,117],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":92,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":90},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":90},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":90},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":90},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":90},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]