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★ 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 genericsk-)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 trackedcredentials.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 JSONprivate_keyfield, 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 capturedpwgroup ONLY, not the whole line. Sopostgres://admin:[email protected]/prodcorrectly fires (suppression check runs onsupersecret, not ondb.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.
.envfile git-status check (separate finding, no regex — ASK GIT, don't grep.gitignore):- For each
.env/ `.env
- For each
Установить secure-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic