К основному содержанию
скилл CX Codex

secure — скилл для Claude Code: что делает и как установить

Скилл secure проводит аудит безопасности в коде от ИИ. Находит утечки секретов, дыры в изоляции данных пользователей и незащищённые эндпоинты.

MIT 234 установок ★ 269 обновлён 2026-10-16

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add whawkinsiv/solo-founder-skills --skill secure -a claude-code
Открыть на GitHub

Что делает secure

Скилл нацелен на типичные просчёты приложений, собранных нейросетями. Сначала агент составляет карту проекта: серверные маршруты, базу данных и платные внешние API. Затем запускает проверку по цепочке от самых опасных рисков к мелким: ищет секреты в истории git, проверяет клиентские переменные окружения и отслеживает фильтрацию чужих записей по ID пользователя.

Каждую уязвимость скилл обязан доказать на практике перед тем, как внести в отчёт. Например, агент проверяет изоляцию данных, имитируя запрос к чужим записям от имени второго аккаунта. Если в базе лежат медицинские, финансовые или студенческие данные, аудит останавливается: скилл прямо предупредит, что базового чек-листа здесь недостаточно и нужен профильный специалист. Итоговый отчёт выводится в виде таблицы с уровнем опасности, доказательством и файлом с ошибкой.

Какие задачи решает

  • найти забытые API-ключи в кодовой базе и истории коммитов
  • проверить изоляцию данных между клиентами в запросах к базе
  • устранить уязвимости в эндпоинтах вебхуков и серверных экшенах
  • настроить лимиты запросов на затратные маршруты генерации

Примеры запросов агенту

  • Проверь проект на уязвимости и утечки данных
  • Могут ли пользователи в этом приложении увидеть чужие записи?
  • Запусти аудит безопасности перед запуском

Как установить secure

1Через Skills CLI (Vercel)

npx skills add whawkinsiv/solo-founder-skills --skill secure -a claude-code

2Вручную: положить файлы

~/.claude/skills/secure/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/secure/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о secure

Как установить secure в Claude Code?

Выполните npx skills add whawkinsiv/solo-founder-skills --skill secure -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/secure/SKILL.md.

Что именно проверяет скилл secure?

Он ищет открытые ключи в git и коде, проверяет авторизацию на маршрутах, изоляцию клиентов в базе, подписи вебхуков оплаты и лимиты расходов на API.

Подходит ли скилл для проверки медицинских или финансовых сервисов?

Нет. При обнаружении медицинских, банковских данных или сведений о детях аудит останавливается, а скилл рекомендует привлечь профильного специалиста по безопасности.

Исходный текст

SKILL.md · MIT
---
name: secure
description: "Use this skill to find and fix the security holes that AI-built apps most often ship with: 'is my app secure,' 'security check,' 'check my app for security holes,' 'can users see each other's data,' 'did I leak my API keys,' or 'I'm worried about hackers.' Claude runs the audit on the codebase: exposed keys, data isolation between users, auth on every route, webhook signatures, rate and spend limits, and dependencies. Not for the full pre-launch checklist (use go-live) or for privacy policy and legal terms (use legal)."
metadata:
  version: 1.0.0
---

# Secure

Run a security audit on the codebase and fix what matters first. AI-built apps fail in a few predictable places. Check those places, prove each finding, and fix it.

## Step 1: Map the app

Read the code and list, briefly:
- the framework, and where the server code runs
- the database, and whether the browser talks to it directly
- how users log in
- every API route, server action, and webhook endpoint
- every third-party key the app uses
- every call that costs money: AI models, email, SMS

## Step 2: Run the checks, worst damage first

**1. Secrets**
- Search the code and the git history for keys and passwords.
- Check that `.env` files are in `.gitignore`.
- List every environment variable that reaches the browser. Most frameworks mark these with a public prefix. None of them may hold a secret.
- A database key that bypasses access rules (an admin or service key) must never reach the browser.
- A secret that was ever committed must be rotated. Deleting the file does not remove it from git history.

**2. Data isolation: one customer can never see another's data**
- Every query that returns customer data must filter by the signed-in user or account on the server.
- If the browser queries the database directly, the database's own access rules must cover every table, for read, create, update, and delete.
- **Prove it:** create two accounts. As account A, request one of B's records by changing the ID in the URL or the API call. The request must fail. This is the most damaging bug in AI-built apps, and it is invisible in normal use.

**3. Auth on every route**
- Every route and server action checks that the user is signed in.
- Every route and server action checks that the user owns the object it touches.
- Admin pages check the user's role on the server. Hiding the link is not protection.

**4. Payments and webhooks**
- Webhook endpoints verify the signature before they act.
- Paid access is granted from the verified webhook, never from the "thank you" page that the browser loads (see **payments**).

**5. Abuse and cost**
- Rate-limit sign-in, sign-up, password reset, and every endpoint that costs money.
- Put a daily per-user cap on AI calls, and a spending limit or alert at the AI provider. One script hitting an open AI endpoint can cost more in a night than the business makes in a month.

**6. Input and output**
- Validate input on the server.
- Use parameterized queries or the ORM, never strings built from user input.
- Never render user input as raw HTML.
- Check the type and size of uploaded files.

**7. Dependencies**
Run the package manager's audit command. Fix the high and critical findings.

**8. Errors and logs**
- Users never see stack traces.
- Logs never contain passwords, tokens, card numbers, or more personal data than needed.

## Step 3: The regulated-data gate

If the app stores health records, financial account data, children's data, or student records, stop and tell the founder plainly that special rules apply. For example, US health data requires a signed agreement with every host that stores it. Recommend a review by a specialist before launch. This checklist is not enough for that data.

## Step 4: Fix

Fix the critical findings now, with the founder's approval. After each fix, re-run the check that found it. List the rest with a plain-language risk for each.

## Rules

- **Prove each finding before you report it.** A finding without evidence wastes the founder's time and teaches them to ignore you.
- **Use a well-known auth library or service.** Never build password storage or sessions from scratch.
- **Not yet:** a paid penetration test (wait for sensitive data or about 1,000 users), single sign-on (wait until customers ask), or a web application firewall (the host covers the basics).

## Output

```
| Severity | Finding | Where (file:line) | Proof | Fix | Status |
```

Severity: **Critical** (data or money can leak now), **High** (likely to be exploited), **Low** (fix when convenient). End with one sentence on whether the app is safe to put in front of paying customers.

© whawkinsiv · MIT · whawkinsiv/solo-founder-skills

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

Все скиллы по теме «Безопасность» →
secure-code-review securityskills Скилл secure-code-review проверяет код на уязвимости по чеклистам классов атак — трассирует входы до SQL и команд, проверяет права доступа и границы доверия. CX Codex +1 1 900установок gsd-secure-phase open-gsd Скилл gsd-secure-phase для Claude Code проверяет закрытие угроз безопасности после завершения фазы проекта. Запускает аудит мер защиты и обновляет файл SECURITY.md. CX Codex +1 567установок api-auth-key-management Samuel Berthe Скилл api-auth-key-management помогает спроектировать систему API-ключей для внешних клиентов сервиса. Пригодится при настройке ротации без простоя и разграничении сервисных доступов. CX Codex +1 10 500установок pci-secure-software transilienceai Скилл pci-secure-software прогоняет приложение по каталогу Test Requirement из PCI SSS v2.0 и выдаёт по каждому вердикт со ссылкой на строку кода или документ. CX Codex +1 141установок security-auditor Samarth Gupta Субагент security-auditor ищет эксплуатируемые уязвимости в аутентификации, обработке недоверенных данных, хранении секретов и зависимостях. Запускается после изменений в auth, API-эндпоинтах или работе с файлами. CX Codex ★ 276звёзд репо supabase-audit-auth-signup yoanbernabeu Скилл supabase-audit-auth-signup для Claude Code тестирует, открыта ли регистрация в Supabase и какие уязвимости есть в процессе создания аккаунта. Проверяет валидацию email, политику паролей, rate limiting и утечки информации. CX Codex +1 517установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой