elixir-security-review — скилл для Claude Code: обзор и установка
Скилл elixir-security-review проверяет код на Elixir на уязвимости: инъекции кода, переполнение таблицы атомов и утечки секретов.
Apache-2.0 110 установок ★ 89 обновлён 2026-09-15
npx skills add existential-birds/beagle --skill elixir-security-review -a claude-codeЧто делает elixir-security-review
Скилл анализирует Elixir-проекты по чек-листу критических и мажорных угроз. В список блокирующих проверок входят вызовы Code.eval_string/1 и :erlang.binary_to_term/1 без флага :safe над непроверенными данными, String.to_atom/1 на внешнем вводе и захардкоженные секреты. Также проверяются права доступа к таблицам ETS, использование словаря процессов и хранение конфигураций в config/*.exs.
Перед отправкой отчёта агент обязан пройти четыре жёстких фильтра: зафиксировать путь с точной строкой [FILE:LINE], прочитать всю функцию целиком, указать конкретный источник внешних данных вроде conn.params и подтвердить шаги протокола верификации. Если аргумент вычисляется во время компиляции или используется в тестах, предупреждение снимается.
Какие задачи решает
- найти вызовы String.to_atom на непроверенных данных пользователя
- выявить десериализацию через binary_to_term без флага :safe
- обнаружить захардкоженные токены и пароли в кодовой базе
- проверить права доступа к таблицам ETS и словарь процессов
Примеры запросов агенту
- Проверь
lib/my_app_web/controllers/upload_controller.exна уязвимости - Проведи security review модуля аутентификации перед мерджем
Как установить elixir-security-review
1Через Skills CLI (Vercel)
npx skills add existential-birds/beagle --skill elixir-security-review -a claude-code2Вручную: положить файлы
~/.claude/skills/elixir-security-review/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/elixir-security-review/
1Через Skills CLI (Vercel)
npx skills add existential-birds/beagle --skill elixir-security-review -a codex2Вручную: положить файлы
.agents/skills/elixir-security-review/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add existential-birds/beagle --skill elixir-security-review -a cursor2Вручную: положить файлы
.cursor/skills/elixir-security-review/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install existential-birds/beagle plugins/beagle-elixir/skills/elixir-security-review2Вручную: положить файлы
.github/skills/elixir-security-review/SKILL.md1Через Skills CLI (Vercel)
npx skills add existential-birds/beagle --skill elixir-security-review -a gemini-cli2Командой платформы
gemini skills install https://github.com/existential-birds/beagle --path plugins/beagle-elixir/skills/elixir-security-reviewВручную: положить файлы
.devin/skills/elixir-security-review/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add existential-birds/beagle --skill elixir-security-review -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об elixir-security-review
Как установить elixir-security-review в Claude Code?
Выполните команду npx skills add existential-birds/beagle --skill elixir-security-review -a claude-code.
Что делает elixir-security-review?
Скилл выполняет аудит кода на Elixir, выявляя переполнение пула атомов, опасную динамическую оценку строк, открытые таблицы ETS и утечки секретов.
Когда скилл игнорирует вызовы String.to_atom?
Проверка пропускает String.to_atom, если атомы строятся из констант во время компиляции или значение поступает из доверенного внутреннего источника.
Исходный текст
SKILL.md · Apache-2.0
--- name: elixir-security-review description: Reviews Elixir code for security vulnerabilities including code injection, atom exhaustion, and secret handling. Use when reviewing code handling user input, external data, or sensitive configuration. --- # Elixir Security Review ## Quick Reference | Issue Type | Reference | |------------|-----------| | Code.eval_string, binary_to_term | [references/code-injection.md](references/code-injection.md) | | String.to_atom dangers | [references/atom-exhaustion.md](references/atom-exhaustion.md) | | Config, environment variables | [references/secrets.md](references/secrets.md) | | ETS visibility, process dictionary | [references/process-exposure.md](references/process-exposure.md) | ## Review Checklist ### Critical (Block Merge) - [ ] No `Code.eval_string/1` on user input - [ ] No `:erlang.binary_to_term/1` without `:safe` on untrusted data - [ ] No `String.to_atom/1` on external input - [ ] No hardcoded secrets in source code ### Major - [ ] ETS tables use appropriate access controls - [ ] No sensitive data in process dictionary - [ ] No dynamic module creation from user input - [ ] Path traversal prevented in file operations ### Configuration - [ ] Secrets loaded from environment - [ ] No secrets in config/*.exs committed to git - [ ] Runtime config used for deployment secrets ## Valid Patterns (Do NOT Flag) - **String.to_atom on compile-time constants** - Atoms created at compile time are safe - **Code.eval_string in dev/test** - May be needed for tooling - **ETS :public tables** - Valid when intentionally shared - **binary_to_term with :safe** - Explicitly safe option used ## Context-Sensitive Rules | Issue | Flag ONLY IF | |-------|--------------| | String.to_atom | Input comes from external source (user, API, file) | | binary_to_term | Data comes from untrusted source | | ETS :public | Contains sensitive data | ## Hard gates (before reporting) Complete **in order** for each finding you intend to report. Do not advance until the pass condition is satisfied. 1. **Location artifact** — The finding includes `[FILE:LINE]` (or a line range) that you copied from the current file contents; the path resolves in this repo. 2. **Scope read** — You read the full surrounding function or module section that contains the flagged code, not only a diff hunk or summary. 3. **External-data claim** (only if the finding depends on “user/untrusted input”) — You can name one concrete ingress (for example `conn.params`, `Jason.decode!/1` result, uploaded file path, message from another node) **or** you drop the finding because the value is compile-time, test-only, or internal per Context-Sensitive Rules. 4. **Protocol** — Pre-report steps in [review-verification-protocol](../review-verification-protocol/SKILL.md) are satisfied for this item (no finding if they are not). ## Before Submitting Findings Use the issue format: `[FILE:LINE] ISSUE_TITLE` for each finding. Hard gate 4 requires [review-verification-protocol](../review-verification-protocol/SKILL.md); use it as the full pre-report checklist and issue-type verification (it extends beyond this skill’s summary).
© existential-birds · Apache-2.0 · existential-birds/beagle