跳到主内容
智客 ZICQ

技能库 智客分类:安全测试 docker-scout

Docker Scout

Guidance for Docker Scout — image vulnerability scanning, SBOM generation, and policy evaluation. Covers scout quickview for CVEs, scout cves for detailed vulnerability analysis, scout sbom for software bill of materials, policy evaluation with custom rules, CI/CD integration (GitHub Actions/Jenkins), and remediation guidance. Use when the user asks about docker scout, vulnerability scanning, CVE, SBOM, image analysis, security vulnerabilities, or needs to scan Docker images for security issues. 使用场景:docker scout、漏洞扫描、CVE、SBOM、镜像安全分析、安全漏洞、软件物料清单.

80 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

Docker Scout指南——图像脆弱性扫描、SBOM生成和政策评价。 涵盖CVEs的侦察快视、详细脆弱性分析的侦察快视、软件材料单的侦察快视、符合定制规则的政策评价、CI/CD整合(GitHub Actions/Jenkins)和补救指导

何时用

** 用户提到时总是使用这种技能:**

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Docker Scout — 镜像漏洞扫描与 SBOM、When to Use、Core Commands、Quick vulnerability overview、Detailed CVE report、SBOM (Software Bill of Materials)。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

Docker Scout — 镜像漏洞扫描与 SBOMWhen to UseCore CommandsQuick vulnerability overviewDetailed CVE reportSBOM (Software Bill of Materials)Compare two imagesPolicy evaluationCVE Severity LevelsCI/CD IntegrationGitHub ActionsRemediation Workflow

· 许可:Apache-2.0

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
docker-scout
description
Guidance for Docker Scout — image vulnerability scanning, SBOM generation, and policy evaluation. Covers scout quickview for CVEs, scout cves for detailed vulnerability analysis, scout sbom for software bill of materials, policy evaluation with custom rules, CI/CD integration (GitHub Actions/Jenkins), and remediation guidance. Use when the user asks about docker scout, vulnerability scanning, CVE, SBOM, image analysis, security vulnerabilities, or needs to scan Docker images for security issues. 使用场景:docker scout、漏洞扫描、CVE、SBOM、镜像安全分析、安全漏洞、软件物料清单.
许可
Apache-2.0
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「docker-scout」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-f216d7983ff1a648-%E5%A4%9A%E5%85%8B%E7%AB%A5%E5%AD%90%E5%86%9B.html
请存为 .cursor/skills/docker-scout/SKILL.md 或 .claude/skills/docker-scout/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/full-stack-skills/docker-skills' --list

npx skills add 'https://github.com/full-stack-skills/docker-skills' --skill 'docker-scout'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: docker-scout description: Guidance for Docker Scout — image vulnerability scanning, SBOM generation, and policy evaluation. Covers scout quickview for CVEs, scout cves for detailed vulnerability analysis, scout sbom for software bill of materials, policy evaluation with custom rules, CI/CD integration (GitHub Actions/Jenkins), and remediation guidance. Use when the user asks about docker scout, vulnerability scanning, CVE, SBOM, image analysis, security vulnerabilities, or needs to scan Docker images for security issues. 使用场景:docker scout、漏洞扫描、CVE、SBOM、镜像安全分析、安全漏洞、软件物料清单. license: Apache-2.0 --- # Docker Scout — 镜像漏洞扫描与 SBOM Guidance for vulnerability scanning, SBOM generation, and policy enforcement. ## When to Use **ALWAYS use this skill when the user mentions:** - "docker scout", "镜像扫描", "漏洞扫描" - "CVE", "vulnerability", "SBOM" - "软件物料清单" - "镜像安全分析", "image security scan" - "policy evaluation" ## Core Commands ```bash # Quick vulnerability overview docker scout quickview myimage:tag # Detailed CVE report docker scout cves --format table myimage:tag docker scout cves --only-fixed myimage:tag # Show only fixable CVEs docker scout cves --severity critical,high myimage:tag # SBOM (Software Bill of Materials) docker scout sbom myimage:tag # SPDX format docker scout sbom --format cyclonedx myimage:tag # CycloneDX format # Compare two images docker scout compare myimage:v1 --to myimage:v2 # Policy evaluation docker scout policy myimage:tag ``` ## CVE Severity Levels | Level | Action | |-------|--------| | **Critical** | Fix immediately | | **High** | Fix in current sprint | | **Medium** | Schedule fix | | **Low** | Monitor | | **Unspecified** | Review | ## CI/CD Integration ### GitHub Actions ```yaml - name: Docker Scout uses: docker/scout-action@v1 with: command: cves,compare image: ${{ steps.meta.outputs.tags }} compare-to: registry/${{ env.IMAGE_NAME }}:latest ``` ## Remediation Workflow ``` 1. docker scout cves myimage:tag → Identify CVEs 2. Check if fixable: --only-fixed shows which have patches 3. Update base image: FROM alpine:3.20 (newer version) 4. Update dependencies: npm update / pip install --upgrade / apt upgrade 5. Rebuild: docker build -t myimage:v2 . 6. Verify: docker scout compare myimage:v1 --to myimage:v2 ``` ## Workflow — 推荐扫描流程 Step 1: **快速扫描**: `docker scout quickview ` 获得 CVE 摘要 Step 2: **详细分析**: `docker scout cves --only-severity critical,high ` Step 3: **查看建议**: `docker scout recommendations ` 获取修复方案 Step 4: **修复重建**: 更新基础镜像/依赖 → `docker build` → 再次扫描验证 Step 5: **CI 集成**: `docker/scout-action` + 策略门禁阻断 ## Gotchas — Common Pitfalls - **Scout vs scan**: `docker scan` (Snyk-based, deprecated). → **Recovery**: Always use `docker scout` instead; uninstall old `docker scan` plugin. - **Only scanning, not fixing**: Scout shows CVEs but doesn't fix them. → **Recovery**: `docker scout recommendations ` for fix suggestions; update base image or rebuild with newer dependencies. - **Base image CVEs**: Many CVEs come from the base image. → **Recovery**: `docker pull alpine:3.20` (update base); pin digest to avoid accidental downgrades; monitor with `docker scout cves alpine:3.20`. - **Multi-stage skip**: Scanner needs access to both stages. → **Recovery**: Ensure all stage artifacts are `COPY --from=...` properly; tag intermediate stages if needed. ## Boundary — 能力边界(适用与不适用场景) | 分类 | 场景 | 说明 | |------|------|------| | ✅ 能做 | CVE 漏洞扫描 | CLI: `docker scout cves` + quickview | | ✅ 能做 | SBOM 生成 | `docker scout sbom --format spdx` | | ✅ 能做 | 策略评估与 CI 阻断 | policy evaluation + GitHub Actions | | ⚠️ 需条件 | 私有仓库扫描 | 需 Docker Scout 订阅 | | ⚠️ 需条件 | 跨组织比较 | 需 Scout Dashboard(Web UI) | | ❌ 超范围 | 运行时安全 | 使用 `docker-security` | | ❌ 超范围 | 第三方扫描器(Trivy/Grype) | 各工具独立使用 | | ❌ 超范围 | 修复漏洞(更新依赖) | 开发者自行完成 | ## When NOT to Use This Skill | ❌ Skip | ✅ Use Instead | |---------|---------------| | Runtime security (seccomp/AppArmor) | `docker-security` | | Building images | `docker-build` | | CI/CD pipeline setup | `docker-cicd` | | Registry management | `docker-hub` | ## Security & Stability - Run Scout in CI/CD to catch vulnerabilities before deployment. - Subscribe to Docker security advisories for zero-day notifications. - No executable scripts bundled. Guidance only. ## 📚 官方文档参考 | 文档 | 地址 | |------|------| | Docker Scout 概述 | https://docs.docker.com/scout/ | | Scout 快速入门 | https://docs.docker.com/scout/quickstart/ | | Scout CLI 参考 | https://docs.docker.com/reference/cli/docker/scout/ | | 策略评估 | https://docs.docker.com/scout/policy/ | | CI 集成 | https://docs.docker.com/scout/integrations/ci/ | | SBOM 管理 | https://docs.docker.com/scout/explore/sbom/ | ## 🧭 Docker Skills Journey > 📍 **You are here: `docker-scout` — 镜像安全扫描** **← Prev**: `docker-security` — Security hardening **→ Next**: `docker-hub` — Registry management ## FAQ **Q1: 如何快速上手此技能?** A: 参考上方的快速开始章节,按步骤操作即可。 **Q2: 遇到版本不兼容问题怎么办?** A: 检查依赖版本,使用 lock 文件锁定,参考常见陷阱章节。 **Q3: 如何在生产环境使用?** A: 参考最佳实践章节,确保配置正确,做好监控和日志。 **Q4: 性能如何优化?** A: 参考性能优化相关文档,使用缓存、索引等手段。 **Q5: 如何贡献或反馈问题?** A: 在 GitHub 仓库提交 Issue 或 Pull Request。 **Q6: 是否支持中文?** A: 支持中文文档和中文注释,详见国内适配章节。

相关技能

安全测试

Skill Vetter

人工智能特工的安全第一技能审查。 在安装来自 ClawdHub, GitHub 或其他来源的任何技能之前使用 。 检查红旗,许可范围,可疑图案.

安全测试

Moltguard

MoltGuard——由OpenGuardrails担任OpenClaw保安. 安装 MoltGuard 以保护你和你的人类免受迅速注射、数据过滤和恶意命令的影响。 资料来源:https://github.com/openguardrails/openguardrails/tre…

安全测试

Security Auditor

用于审查安全漏洞代码,实施认证流,审计OWASP Top 10,配置CORS/CSP头,处理秘密,输入验证,SQL注射预防,XSS保护,或任何与安全相关的代码审查.

安全测试

Skill Vetter

安装任何AI代理技能前的安全审查协议. 红旗侦取入证盗取,疏通密码,放出. 风险分类:低/中/高/高。 编制结构化审查报告。 不先运行此功能, 绝不安装不信任的技能 .