Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

slim-container-vulnerability-scanning

БесплатноБез исполняемых скриптовНе проверен

Implement container and dependency vulnerability scanning using Grype for automated security testing in development workflows, CI/CD pipelines, and repository…

NASA-AMMOSот NASA-AMMOS★ 36 звёзд на GitHub17 установок в других каталогах

Об этом скилле

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:

  1. Vulnerability Summary: Note the count of vulnerabilities by severity (Critical, High, Medium, Low)
  2. Package Details: Identify which packages contain vulnerabilities
  3. CVE Information: Review specific CVE details and descriptions
  4. Fix Versions: Check if updated package versions are available
  5. 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 push operation
  • 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-verify if needed

Step 5: Configure CI/CD Integration (Optional)

For automated scanning in your CI/CD pipeline:

GitHub Actions Integration:

  1. Install the Anchore Container Scan action
  2. Add scanning steps to your workflow files
  3. Configure failure thresholds and security policies
  4. 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
Полный SKILL.md на GitHub

Установить slim-container-vulnerability-scanning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/pre-commit-config.yml

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), без исполняемых скриптов.

Похожие скиллы

Сравнить slim-container-vulnerability-scanning с