Command Palette

Search for a command to run...

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

secure-agents

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

30-second basic security check for AI agents. Three plain checks any non-engineer can run — leaked credentials, prompt injection sinks, missing audit trail…

teklinerот tekliner★ 17 звёзд на GitHub

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

secure-agents — 3-Check Audit for AI Agents

🛡️ This is a quick check, not a full security audit. It catches the three things every team forgets: leaked credentials, agent inputs from untrusted sources, and missing trail for when something breaks. Run it before you wish you had.

Who this is for

You hired an AI agent (Claude, Cursor, ChatGPT, a custom flow) to do real work — write campaign briefs, query data, send emails, build small tools. You're not a security engineer. This skill takes 30 seconds and tells you, in plain English, whether you're one bad day away from a credential leak, a prompt-injection incident, or a "we can't reproduce what the agent did yesterday" disaster.

When to invoke

  • User says: /secure-agents
  • User says: "audit my agent" / "check my agent for security" / "АУДИТ"
  • User installed the skill after a "safe agents" LinkedIn post

How to run

Step 0 — Banner (print verbatim)

If the trigger word was АУДИТ (Cyrillic) or the user wrote in Russian, print this two-line preface FIRST, then the English banner:

🛡️ Secure Agents · аудит за 30 секунд
Запускаю 3 проверки: креды / prompt injection / audit trail. Отчёт будет на английском — техническая часть стандартная.

Then always print the English banner:

🛡️ Secure Agents · 3-Check Audit

Safe to run on any project — read-only, no telemetry, nothing leaves your machine.
For extra peace of mind, run on a fresh clone with rotated/dummy keys first.

This skill reads files in your project to find secret patterns. It redacts
anything it finds before writing the report.

You will only see HIGH-confidence findings. No noise.

Step 0.1 — Auto-detect

Probe the working dir for: .env*, .git/, package.json, requirements.txt, *.py, *.ts, *.js. Tell user one line: "Detected: .env file, git repo, Python project." Don't ask the user what stack — figure it out.

Step 0.2 — Confirm path

Run on the current directory? (default Y — say "n" to point at a different one)

The skill is always read-only — it never edits files, only writes the report. No need to ask the user about that.


Step 1 — Check 1: Credentials in the wrong places

Plain question: Are API keys, OAuth tokens, or database passwords sitting in files that anyone with repo access can see?

Scope:

  • All tracked files in the repo
  • .env, .env.*, *.env
  • *.pem, *.key, credentials*.json, secrets.{yaml,yml,json}
  • Last 50 commits in git history (light scan)

HIGH-confidence detectors (only these get reported as ❌):

Detection algorithm — apply in this order, FIRST MATCH WINS per line: Implementation: read the file, split by \n, then for each line try the patterns top-to-bottom and break on the first hit. Record at most ONE finding per line — the most specific one. If a more specific pattern matches (e.g. sk-ant-), DO NOT also fire the generic sk- pattern on the same line.

  • Provider key prefixes (try in this order; the first to match wins for the line):
    • sk-ant-[A-Za-z0-9_-]{20,} (Anthropic — try FIRST, before generic sk-)
    • sk-(?!ant-|test_|live_placeholder|XXXX|REPLACE|REDACTED|YOUR_)[A-Za-z0-9_-]{20,} (OpenAI / generic — ant- in lookahead so the Anthropic pattern owns its own keys)
    • sk-or-v1-[A-Za-z0-9]{64} (OpenRouter)
    • (AKIA|ASIA)[A-Z0-9]{16} (AWS Access Key ID — ASIA* covers temporary STS creds)
    • gh[posur]_[A-Za-z0-9]{36} (GitHub tokens — ghp_ PAT, gho_ OAuth, ghu_ user-to-server, ghs_ server-to-server, ghr_ refresh)
    • glpat-[A-Za-z0-9_-]{20} (GitLab personal access token)
    • AIza[A-Za-z0-9_-]{35} (Google API key)
    • GOCSPX-[A-Za-z0-9_-]{28} (Google OAuth client_secret — fires on tracked credentials.json)
    • xox[baprs]-[A-Za-z0-9-]{10,} (Slack)
    • (sk|rk|pk|whsec)_(live|test)_[A-Za-z0-9]{24,} (Stripe)
    • SG\.[A-Za-z0-9_-]{22}\.[A-Za-z0-9_-]{43} (SendGrid)
    • SK[a-f0-9]{32} (Twilio API key SID)
    • npm_[A-Za-z0-9]{36} (npm publish token)
    • hf_[A-Za-z0-9]{34} (HuggingFace)
    • dckr_pat_[A-Za-z0-9_-]{27} (Docker Hub)
    • -----BEGIN (RSA |EC |DSA |OPENSSH |PGP |)PRIVATE KEY----- (any PEM private key — covers GCP service-account JSON private_key field, SSH keys, etc.)
    • Bearer\s+[A-Za-z0-9._-]{20,}
  • DB connection string with embedded password (capture the password):
    • (?i)(postgres(?:ql)?|mysql|mongodb|redis)://[^:\s]+:(?<pw>[^@\s]+)@ — apply suppression to the captured pw group ONLY, not the whole line. So postgres://admin:[email protected]/prod correctly fires (suppression check runs on supersecret, not on db.example.com). Engine note: named-group syntax is (?<pw>...) (RE2 / JS / modern PCRE). If your scanner uses the older Python-style (?P<pw>...), both forms work in Python — use whichever your engine supports; the spec is (?<pw>...) for portability.
  • .env file git-status check (separate finding, no regex — ASK GIT, don't grep .gitignore):
    • For each .env / `.env
Полный SKILL.md на GitHub

Установить secure-agents в Claude Code и Claude Desktop

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

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

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

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

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

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

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

LICENSEREADME.md

FAQ

Что делает скилл secure-agents?

30-second basic security check for AI agents. Three plain checks any non-engineer can run — leaked credentials, prompt injection sinks, missing audit trail. Marketing-friendly report, no jargon, no false-positive noise. Works on Claude Code, Cursor, Cline, Codex, custom Python/TS agents. Triggers on "secure agents", "agent audit", "check my agent", "AI security check", or "АУДИТ", or after seeing the "If you don't give your team safe agents, they'll build unsafe ones" LinkedIn post.

Как установить скилл secure-agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл secure-agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить secure-agents с