Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Security Agent

ASecurity

Use for pip CVE scanning and auto-patching via OSV.dev API.

5 stars
0 votes
0 copies
0 views
Added 10/4/2026
ai-agentspythongobashgitapidatabasesecurity

Works with

api

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned 10/4/2026

$npx -y skills add openamer/openamer --skill security-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Agent?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Security Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openamer-security-agent/badge)](https://www.skillsdirectory.com/skills/openamer-security-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: security-agent
description: Use for pip CVE scanning and auto-patching via OSV.dev API.
---

# Security Agent – CVE Scanner & Auto-Patcher

Autonomer Security Agent, der alle installierten pip-Pakete gegen die [OSV.dev](https://osv.dev) Vulnerability Database scannt und bei kritischen CVEs automatisch patched.

## Komponenten

### 1. CVE-Scan-Script (`scripts/security-cve-scan.py`)

**Standort:** `$OPENAMER_HOME\scripts\security-cve-scan.py`

**Funktionsweise:**
1. Holt alle installierten pip-Pakete per `pip list --format=json`
2. Batch-Query an OSV.dev API (`/v1/querybatch`) — bis zu 500 Pakete pro Request
3. Extrahiert CVE-IDs, Severity, Fix-Versionen aus den API-Ergebnissen
4. Bei kritischen (`CRITICAL`) oder hohen (`HIGH`) CVEs: automatisches `pip install --upgrade`
5. Speichert Report als JSON in `.security-cve/last-report.json`
6. Dedupliziert bekannte CVEs via `.security-cve/state.json`

**State-Verzeichnis:** `$OPENAMER_HOME\.security-cve\`
- `state.json` – bekannte CVEs, Scan-Stats
- `cve-scan.log` – detailliertes Log
- `last-report.json` – letzter Scan-Report

**Auto-Patching:**
- Nur für CRITICAL/HIGH Severity
- Max 10 Patches pro Run (`MAX_PATCHES_PER_RUN`)
- pip wird automatisch übersprungen (kann sich nicht selbst patchen)
- Zusätzliche Pakete via `SKIP_PACKAGES` konfigurierbar

**Exit-Codes:**
- `0` – Erfolg (keine kritischen CVEs gefunden oder alle gepatched)
- `1` – Kritische CVEs gefunden, die nicht automatisch patcht werden konnten
- `130` – Abbruch durch Benutzer

### 2. Cron-Job (alle 6h)

Der Cron-Job läuft im OpenAmer-Cron-System und führt das Script automatisch aus.

**Schedule:** `0 */6 * * *` (alle 6 Stunden)

**Script-Pfad:** `scripts/security-cve-scan.py`

## Verwendung

### Manueller Scan
```bash
cd /c/Users/damir/AppData/Local/openamer-laptop
python3 scripts/security-cve-scan.py
```

### Letzten Report als JSON ansehen
```bash
python3 scripts/security-cve-scan.py --json
```

### Logs prüfen
```bash
cat /c/Users/damir/AppData/Local/openamer-laptop/.security-cve/cve-scan.log
cat /c/Users/damir/AppData/Local/openamer-laptop/.security-cve/last-report.json
```

## API-Referenz: OSV.dev

- **Endpoint:** `POST https://api.osv.dev/v1/querybatch`
- **Ecosystem:** `PyPI`
- **Payload:** `{"queries": [{"package": {"name": "...", "ecosystem": "PyPI"}, "version": "..."}]}`
- **Dokumentation:** https://google.github.io/osv.dev/post-v1-querybatch/

## Fehlerbehandlung

| Problem | Lösung |
|---------|--------|
| OSV.dev API rate-limited (429) | Automatisches Retry mit exponential backoff |
| pip kann nicht gepatched werden | In `SKIP_PACKAGES` konfiguriert |
| Scan zu langsam | Reduziere `MAX_PATCHES_PER_RUN` im Script |
| Log voll | Log leeren: `> /c/Users/damir/AppData/Local/openamer-laptop/.security-cve/cve-scan.log` |

## Integration mit anderen Agents

Der Security Agent harmoniert mit:
- **Bugbot** – erstellt Issues aus Sicherheitsfunden
- **PR Agent** – reviewed Code auf Sicherheitsmuster

Attribution

openameropenamer
View sourceSee grades on GitHubMore from openamer →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698431 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →