security-audit-eval
БесплатноБез исполняемых скриптовНе проверенAudit a third-party Inspect AI evaluation for security risks before running it locally. Decide whether the eval is safe by checking for malicious host-side…
от UKGovernmentBEIS★ 763 звезды на GitHubОб этом скилле
Security Audit: Third-Party Evaluation
This skill produces a security audit report for an Inspect AI evaluation that the user is considering running. The output is a single Markdown report in agent_artefacts/security_audits/<eval_name>/SECURITY_AUDIT_REPORT.md with a clear verdict (safe / safe-with-caveats / unsafe) backed by file:line evidence.
The audit is read-only — it does not run the evaluation, does not clone repositories to disk, and does not modify any files outside the report directory.
Identifying the target
The eval may be supplied as:
- A GitHub URL (most common for third-party audits) — use
gh api repos/<owner>/<repo>/contents/<path>andgh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1to read content. Do not clone. - A local path to a directory the user already has — use
ReadandBashdirectly. - An eval already inside
src/inspect_evals/— same as local path; treat the eval directory as the target.
If the user is ambiguous, ask which one.
Set <eval_name> to the repo name (for URLs) or the directory name (for local paths). Set <commit> to the audited commit SHA: gh api repos/<owner>/<repo>/commits/HEAD --jq '.sha' for URLs, git rev-parse HEAD for local repos. If neither is a git repo, omit <commit> and note "uncommitted working tree" in the report.
Setup
- Create the output directory:
agent_artefacts/security_audits/<eval_name>/ - Create
NOTES.mdin that directory for raw observations as you work. Err on the side of taking lots of notes — they are the source material for the report. - Get the full file tree (note sizes — large unexplained binaries are red flags):
- URL:
gh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1 --jq '.tree[] | "\(.type)\t\(.size // "")\t\(.path)"' - Local:
find . -type f -not -path './.git/*' -printf '%s\t%p\n'
- URL:
- Note any unexpected files: archives (
.tar.gz,.zip), executables (.so,.dylib,.exe), pickle (.pkl,.joblib,.pt,.pth), encoded blobs, files >5 MB without an obvious dataset purpose.
The audit: 8 categories
Apply each category in order. For each, read actual file contents — do not trust top-level summaries or READMEs alone. Malicious behaviour hides in detail (one eval() call, one suspicious URL). Record each finding in NOTES.md with file:line evidence.
1. Host-side code execution
The eval module is imported into the user's Python environment. Anything that runs at import or install time runs with the user's privileges, outside any sandbox.
Read in full:
pyproject.tomlandsetup.py(if present) — look forcmdclass, custom build hooks,entry_pointsbeyond the package itself, scripts- All
__init__.pyfiles conftest.py(any pytest fixture runs at test collection time)- Top-level code in any module that gets imported by the
@taskdefinition
Grep for, on the whole repo (excluding the dataset and lockfiles):
grep -rEn "subprocess|os\.system|os\.popen|pty\.spawn|exec\(|eval\(|compile\(|__import__\(|importlib|base64\.b64decode|codecs\.decode|marshal\.loads|pickle\.load|exec_module|getattr\(.*?,.*?env|socket\.|ctypes" --include='*.py'
For each hit, decide: is this a legitimate use (e.g. subprocess inside a function only called within a sandbox abstraction), or could it run on import / on the host? Distinguish sandbox().exec(...) (Inspect's sandbox abstraction — runs in container) from raw subprocess.run(...) (runs on host).
Also check:
package.json'sscriptsforpreinstall,postinstall,preparepyproject.toml[build-system].requiresand[project.dependencies]forgit+,file:, private indexes, unpinned versionsrequirements.txtif present
Severity guidance:
- Any
subprocess/os.system/execat module top level or in__init__.py→ High, requires explanation before passing eval()orexec()on a string built from a remote source → Highpickle.load/torch.loadon a remote URL → High (arbitrary code execution)- Postinstall hooks in
package.json→ Medium - Unpinned or
git+dependencies → Medium
2. Sandbox configuration
Read compose.yaml / docker-compose.yml / Dockerfile in full.
Red flags:
sandbox="local"paired with model-produced code (e.g. abashorpythontool) → Highprivileged: trueor anycap_add(especiallySYS_ADMIN,NET_ADMIN) → High- Host-path volume mounts:
/,/var/run/docker.sock,~,${HOME}, anything outside the eval's own dir → High - Image from non-official registry, or floating tag like
:latest→ Medium - Custom Dockerfile with
RUN curl ... | shorRUN wget ... && chmod +x→ High - Missing
mem_limitandcpus→ Low (DoS surface) - Exposed host ports the agent shouldn't need → Medium
- Network configuration: note whether
network_mode: noneis set; if not, the container has outbound internet. This is sometimes legitimate (ev
Установить security-audit-eval в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security-audit-eval?
Audit a third-party Inspect AI evaluation for security risks before running it locally. Decide whether the eval is safe by checking for malicious host-side code, externally-fetched files that aren't quality-controlled, sandbox-breakout instructions, weak sandbox configuration, supply-chain hazards, credential exposure, resource exhaustion, and provenance signals. Use when the user asks to audit / vet / security-review an eval repo (GitHub URL or local path), or asks "is it safe to run X". Do NOT use for assessing whether an eval *measures what it claims* (use eval-validity-review) or for general code-quality review (use eval-quality-workflow / code-quality-review-all).
Как установить скилл security-audit-eval?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-audit-eval запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic