vulnerability-scanning · aj-geddes — скилл для Claude Code: сканирование
Скилл для поиска уязвимостей в зависимостях, коде, контейнерах и секретах. Пригодится перед деплоем и при аудитах безопасности.
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a claude-codeЧто делает vulnerability-scanning
Скилл ведёт агента по шагам проверки безопасности: сканирование зависимостей, кода, Docker-образов и поиск утёкших секретов. Результаты складываются в отдельные списки по каждой категории, чтобы было видно, где именно проблема.
Внутри — пример на Node.js: класс VulnerabilityScanner вызывает npm audit --json через child_process и разбирает вывод. Полные реализации лежат в references/: сканер для Node.js, сканер на Python с инструментами OWASP и интеграция с CI/CD через GitHub Actions.
Скилл советует автоматизировать сканы в CI/CD, задавать порог по критичности и документировать ложные срабатывания. Опираться на один инструмент не стоит: разные сканеры ловят разное, поэтому расхождения в отчётах — это повод проверить, а не игнорировать.
Какие задачи решает
- найти уязвимые зависимости до релиза
- проверить Docker-образ на известные CVE
- вычистить секреты из репозитория
- встроить сканирование в пайплайн GitHub Actions
- собрать отчёт для аудита PCI-DSS или SOC 2
Примеры запросов агенту
- просканируй зависимости проекта и покажи уязвимости с высокой критичностью
- настрой сканирование уязвимостей в GitHub Actions перед деплоем
- проверь Docker-образ и код на секреты
Как установить vulnerability-scanning
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a claude-code2Вручную: положить файлы
~/.claude/skills/vulnerability-scanning/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vulnerability-scanning/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a codex2Вручную: положить файлы
.agents/skills/vulnerability-scanning/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a cursor2Вручную: положить файлы
.cursor/skills/vulnerability-scanning/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts vulnerability-scanning2Вручную: положить файлы
.github/skills/vulnerability-scanning/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/vulnerability-scanningВручную: положить файлы
.devin/skills/vulnerability-scanning/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о vulnerability-scanning
Как установить vulnerability-scanning в Claude?
Выполните npx skills add aj-geddes/useful-ai-prompts --skill vulnerability-scanning -a claude-code. Скилл появится в ~/.claude/skills/vulnerability-scanning/SKILL.md.
Что делает vulnerability-scanning?
Проводит агента через автоматическое сканирование зависимостей, кода, контейнеров и секретов. Опирается на инструменты OWASP, базы CVE и внешние сканеры.
Какие платформы поддерживаются?
Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Для каждой платформы своя команда установки.
Исходный текст
SKILL.md · MIT
---
name: vulnerability-scanning
description: >
Automated vulnerability detection using OWASP tools, CVE databases, and
security scanners. Use when performing security audits, compliance checks, or
continuous security monitoring.
---
# Vulnerability Scanning
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Systematically identify security vulnerabilities in applications, dependencies, and infrastructure using automated scanning tools and manual security assessments.
## When to Use
- Pre-deployment security checks
- Continuous security monitoring
- Compliance audits (PCI-DSS, SOC 2)
- Dependency vulnerability detection
- Container security scanning
- Infrastructure security assessment
## Quick Start
Minimal working example:
```javascript
// scanner.js - Comprehensive vulnerability scanning
const { exec } = require("child_process");
const util = require("util");
const fs = require("fs").promises;
const execPromise = util.promisify(exec);
class VulnerabilityScanner {
constructor() {
this.results = {
dependencies: [],
code: [],
docker: [],
secrets: [],
};
}
async scanDependencies() {
console.log("Scanning dependencies with npm audit...");
try {
const { stdout } = await execPromise("npm audit --json");
const auditResults = JSON.parse(stdout);
for (const [name, advisory] of Object.entries(
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Node.js Vulnerability Scanner](references/nodejs-vulnerability-scanner.md) | Node.js Vulnerability Scanner |
| [Python OWASP Scanner](references/python-owasp-scanner.md) | Python OWASP Scanner |
| [CI/CD Integration - GitHub Actions](references/cicd-integration-github-actions.md) | CI/CD Integration - GitHub Actions |
## Best Practices
### ✅ DO
- Automate scans in CI/CD
- Scan dependencies regularly
- Use multiple scanning tools
- Set severity thresholds
- Track vulnerability trends
- Scan containers and images
- Monitor CVE databases
- Document false positives
### ❌ DON'T
- Skip vulnerability scanning
- Ignore low severity issues
- Trust single scanning tool
- Bypass security gates
- Commit secrets to repos
© aj-geddes · MIT · aj-geddes/useful-ai-prompts
Похожие скиллы
Всё по теме «Безопасность» →Сначала — vulnerability-scanning от других авторов.