security-scan · openai — скилл для Claude Code: аудит и установка
Скилл security-scan для Claude Code ищет уязвимости в исходном коде всего репозитория или выбранных путей. Запускает разовый аудит текущего состояния, а не проверку изменений в PR.
Apache-2.0 157 установок ★ 14 254 обновлён 2026-10-25
npx skills add openai/codex-security --skill security-scan -a claude-codeЧто делает security-scan
Скилл проверяет, как недоверенные данные проходят через код к операциям, которые они могут затронуть. Он также анализирует точки контроля доступа и путь от утёкшего секрета до тех, кто может его прочитать и какие права он даёт.
Аудит работает только на чтение и проверяет текущий исходный код офлайн. Скилл передаёт результаты с указанием строк и возможного ущерба, а также фиксирует проверенные области и оставшиеся вопросы. Для изменений в PR, коммите, ветке или рабочем дереве предназначен скилл diff; для явно запрошенного углублённого аудита — deep.
Какие задачи решает
- найти уязвимости во всём репозитории
- проверить выбранные пути исходного кода
- проследить путь от недоверенного ввода до опасной операции
- оценить, кто может прочитать секрет и какие права он открывает
Примеры запросов агенту
- Проведи аудит безопасности текущего репозитория.
- Проверь на уязвимости пути
src/authиsrc/api. - Проследи, как пользовательский ввод из
src/uploadвлияет на операции с файлами.
Как установить security-scan
1Через Skills CLI (Vercel)
npx skills add openai/codex-security --skill security-scan -a claude-code2Вручную: положить файлы
~/.claude/skills/security-scan/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/security-scan/
1Через Skills CLI (Vercel)
npx skills add openai/codex-security --skill security-scan -a codex2Вручную: положить файлы
.agents/skills/security-scan/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/codex-security --skill security-scan -a cursor2Вручную: положить файлы
.cursor/skills/security-scan/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/codex-security plugins/codex-security/skills/security-scan2Вручную: положить файлы
.github/skills/security-scan/SKILL.md1Через Skills CLI (Vercel)
npx skills add openai/codex-security --skill security-scan -a gemini-cli2Командой платформы
gemini skills install https://github.com/openai/codex-security --path plugins/codex-security/skills/security-scanВручную: положить файлы
.devin/skills/security-scan/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add openai/codex-security --skill security-scan -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о security-scan
Как установить security-scan в Claude Code?
Выполни npx skills add openai/codex-security --skill security-scan -a claude-code. Файл скилла находится по пути ~/.claude/skills/security-scan/SKILL.md.
Что делает security-scan?
Скилл проводит разовый аудит исходного кода всего репозитория или выбранных путей и ищет уязвимости, которые можно эксплуатировать.
Чем security-scan отличается от скиллов diff и deep?
security-scan проверяет текущее состояние кода. Для изменений в PR, коммите, ветке или рабочем дереве предназначен diff, а deep запускают по отдельному запросу на углублённый аудит.
Исходный текст
SKILL.md · Apache-2.0
--- name: security-scan description: "Find vulnerabilities in the current source of a whole repository or selected paths. This is the default single-pass audit. Use the diff skill for PR, commit, branch, or working-tree changes and the deep skill for an explicitly requested deep scan." --- # Security Scan Find vulnerabilities an attacker could actually exploit. Start from code that accepts untrusted input or exercises authority. Follow it to the operation it controls. Check the real enforcement point, its callers, and the strongest evidence that the suspected attack is blocked. For an exposed credential, the relevant path is who can read it and what access it grants. Use [the core audit](../../references/core-scan.md) for the independent baseline, focused investigations, and validation. Give reviewers the authorized source and security context. Keep scan administration in the parent. Report findings with source lines and concrete impact. Record what you reviewed and what remains uncertain. ## Run the audit Before reading target source, bind the requested target and scope: - If the SDK supplied `CODEX_SECURITY_SCAN_ID` and `CODEX_SECURITY_SCAN_DIR`, use that registered scan. Follow its launch instructions, or the [SDK handoff](references/scan-results.md) if the SDK provided no instructions. - For a scan without an SDK handoff, use the managed scan tools. With a supplied scan ID, call `get_codex_security_scan_context` using its handoff token when supplied. Without a scan ID, a confirmed Codex desktop host calls `start_codex_security_prompt_only_scan` with `mode: "standard"`. Other hosts call `start_codex_security_standard_scan`. Pass the requested target, scope and exact user context. If deferred, look up just the named tool. Require a running Standard scan. Keep its target, scope, phase and token, follow the [account access advisory](../../references/access-advisory.md) only when directed at launch, and begin the source review. Use [managed scan progress](references/managed-scan.md) at the next phase change. Keep the target read-only and review its current source offline. Preserve exact user context as analysis data. Only the parent may read an explicitly supplied URL, once, if the user explicitly authorized that read. Do not follow links. Keep an existing investigation allowance unchanged across workers and resumes. Only if the user requests a time limit in this conversation and none was supplied, render [the time budget](../../references/investigation-time-budget.md) once before source review using the requested minutes and actual UTC start and deadline. Start the independent audit while mapping the repository. At the first usable threat model, follow [save scan results](references/scan-results.md). Checkpoint candidates as they arrive. Once assigned reviews return, validate each distinct broken control once and submit the findings and honest coverage to the same scan. The SDK owns finalization for its scans.
© openai · Apache-2.0 · openai/codex-security
Похожие скиллы
Все скиллы по теме «Безопасность» →Сначала — security-scan от других авторов.