slim-container-vulnerability-scanning
БесплатноБез исполняемых скриптовНе проверенImplement container and dependency vulnerability scanning using Grype for automated security testing in development workflows, CI/CD pipelines, and repository…
Об этом скилле
Container Vulnerability Scanner
Overview
This skill helps you implement comprehensive vulnerability scanning for containers and software dependencies using Grype, an open-source vulnerability scanner. It provides both manual scanning capabilities and automated integration through pre-commit hooks to detect security vulnerabilities early in the development process.
The skill supports scanning containerized applications, base images, and package manager dependencies (NPM, Maven, PyPI, etc.) to identify known security vulnerabilities before they reach production.
When to Use This Skill
- Setting up security scanning for new or existing projects
- Adding vulnerability detection to development workflows
- Implementing automated security checks in CI/CD pipelines
- Scanning Docker containers and container images for vulnerabilities
- Validating base images for security compliance
- Detecting vulnerable dependencies in package manager files
- Establishing pre-commit security gates for repository protection
- Compliance requirements for security scanning and vulnerability management
Prerequisites
Software:
- Docker or other OCI-compliant container runtime (for container scanning)
- Python 3.6+ with pip (for pre-commit framework)
- Git repository (for automated hooks)
- Grype vulnerability scanner
Skills:
- Basic knowledge of Docker and containerization
- Understanding of Git hooks and pre-commit workflows
- Familiarity with YAML configuration files
- Knowledge of package managers used in your project
Workflow
Step 1: Install and Verify Grype
First, ensure Grype is installed and operational:
Install Grype:
# macOS (via Homebrew)
brew install anchore/grype/grype
# Linux/WSL
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
# Via Go
go install github.com/anchore/grype@latest
Verify installation:
grype version
Step 2: Perform Manual Vulnerability Scans
Start with manual scanning to understand your current security posture:
Scan repository dependencies:
grype dir:.
This scans all package manager dependencies (package.json, requirements.txt, pom.xml, etc.) in the current directory.
Scan a specific container image:
# First build your container
docker build -t my-app:latest .
# Then scan the built image
grype my-app:latest
Scan a remote container image:
grype alpine:latest
grype nginx:1.21
Scan with severity filtering:
# Only show critical and high severity issues
grype dir:. --fail-on critical --fail-on high
Step 3: Interpret Scan Results
Review scan output to understand vulnerabilities:
- Vulnerability Summary: Note the count of vulnerabilities by severity (Critical, High, Medium, Low)
- Package Details: Identify which packages contain vulnerabilities
- CVE Information: Review specific CVE details and descriptions
- Fix Versions: Check if updated package versions are available
- Severity Assessment: Prioritize critical and high-severity issues
Address identified vulnerabilities:
- Update vulnerable packages to patched versions
- Replace vulnerable base images with secure alternatives
- Implement security patches or workarounds
- Document accepted risks for unfixable vulnerabilities
Step 4: Set Up Automated Pre-commit Scanning (Optional)
For automated vulnerability checking before commits, set up pre-commit hooks:
Install pre-commit framework:
pip install pre-commit
Configure pre-commit scanning: Copy the pre-commit configuration to your repository root:
cp assets/pre-commit-config.yml .pre-commit-config.yaml
Initialize pre-commit in your repository:
pre-commit install
Test the setup:
pre-commit run --all-files
The automated scan will:
- Run before each
git pushoperation - Scan repository dependencies using
grype dir:. - Block pushes if CRITICAL vulnerabilities are detected
- Provide detailed output for vulnerability remediation
- Allow bypassing with
git push --no-verifyif needed
Step 5: Configure CI/CD Integration (Optional)
For automated scanning in your CI/CD pipeline:
GitHub Actions Integration:
- Install the Anchore Container Scan action
- Add scanning steps to your workflow files
- Configure failure thresholds and security policies
- Set up vulnerability reporting and notifications
General CI/CD Integration:
- Add Grype scanning commands to your build pipeline
- Configure appropriate failure thresholds
- Implement vulnerability reporting and alerting
- Archive scan results for compliance and auditing
Asset Available
Pre-commit Configuration Template
File: assets/pre-commit-config.yml
This template provides a ready-to-use pre-commit hook configuration that:
- Scans rep
Установить slim-container-vulnerability-scanning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл slim-container-vulnerability-scanning?
Implement container and dependency vulnerability scanning using Grype for automated security testing in development workflows, CI/CD pipelines, and repository maintenance. Use when setting up security scanning, adding vulnerability detection to projects, implementing pre-commit hooks for security, or scanning Docker containers and package dependencies for vulnerabilities.
Как установить скилл slim-container-vulnerability-scanning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл slim-container-vulnerability-scanning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic