Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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> and gh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1 to read content. Do not clone.
  • A local path to a directory the user already has — use Read and Bash directly.
  • 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

  1. Create the output directory: agent_artefacts/security_audits/<eval_name>/
  2. Create NOTES.md in 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.
  3. 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'
  4. 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.toml and setup.py (if present) — look for cmdclass, custom build hooks, entry_points beyond the package itself, scripts
  • All __init__.py files
  • conftest.py (any pytest fixture runs at test collection time)
  • Top-level code in any module that gets imported by the @task definition

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's scripts for preinstall, postinstall, prepare
  • pyproject.toml [build-system].requires and [project.dependencies] for git+, file:, private indexes, unpinned versions
  • requirements.txt if present

Severity guidance:

  • Any subprocess/os.system/exec at module top level or in __init__.py → High, requires explanation before passing
  • eval() or exec() on a string built from a remote source → High
  • pickle.load/torch.load on 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. a bash or python tool) → High
  • privileged: true or any cap_add (especially SYS_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 ... | sh or RUN wget ... && chmod +x → High
  • Missing mem_limit and cpus → Low (DoS surface)
  • Exposed host ports the agent shouldn't need → Medium
  • Network configuration: note whether network_mode: none is set; if not, the container has outbound internet. This is sometimes legitimate (ev
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

Сравнить security-audit-eval с