Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2407be5
feat(security): audit the instructions plugins give the agent
s2d2-s1 Nov 29, 2026
b844948
fix(security): close audit bypasses found in the Codex security pass
s2d2-s1 Nov 29, 2026
f823605
docs: name only public repositories that vendor the audit
s2d2-s1 Nov 29, 2026
02348fa
fix(audit): close the second review round of bypasses
s2d2-s1 Nov 29, 2026
d2d38b9
fix(audit): bind reviewed local findings to their whole source line
s2d2-s1 Nov 30, 2026
2c8c147
fix(audit): close the third review round of bypasses
s2d2-s1 Nov 30, 2026
7c362c5
fix(audit): end a piped command at shell punctuation
s2d2-s1 Nov 30, 2026
4476462
perf(audit): keep hostile inputs fast under CI coverage
s2d2-s1 Nov 30, 2026
9eeb40e
fix(audit): address the Aikido and cubic review of #51
s2d2-s1 Nov 30, 2026
260e0eb
fix(audit): cache only short commands when parsing destinations
s2d2-s1 Nov 30, 2026
1aa2847
fix(audit): judge hidden sends per command, not per line
s2d2-s1 Nov 30, 2026
e879ed5
fix(audit): recheck every plugin when the audit or its exceptions change
s2d2-s1 Nov 30, 2026
7954dac
ci: bump SkillSpector's pydantic and truststore, read changed paths u…
s2d2-s1 Nov 30, 2026
8d73b7d
ci: restore the zstandard hashes dropped from the SkillSpector lock
s2d2-s1 Nov 30, 2026
ba1eaf1
test(audit): cover each audit-control path in the recheck-all test
s2d2-s1 Nov 30, 2026
cd2d560
fix(audit): close the security gate round of bypasses
s2d2-s1 Nov 30, 2026
ad1fa72
fix(audit): close the eng-review round of bypasses
s2d2-s1 Nov 30, 2026
1f87213
fix(audit): close the third review round of bypasses
glebedel Nov 30, 2026
10c7640
fix(audit): close the code-review and Codex round of bypasses
s2d2-s1 Nov 30, 2026
a16704d
fix(audit): read npx option values and fd-prefixed redirections
glebedel Nov 30, 2026
84b0de0
fix(audit): follow substitutions across lines and past quoted parenth…
s2d2-s1 Nov 30, 2026
3314818
fix(audit): close the review-bot round on 84b0de0
s2d2-s1 Nov 30, 2026
113decc
fix(audit): an escaped backtick does not end a backtick substitution
s2d2-s1 Nov 30, 2026
0190554
fix(audit): read curl arguments as shell words, keep prose quotes per…
s2d2-s1 Nov 30, 2026
f20983f
fix(audit): even backslashes, a later literal curl, and split upload …
s2d2-s1 Nov 30, 2026
4b0652b
fix(audit): code-block backticks, indented code, comments on joined l…
s2d2-s1 Nov 30, 2026
9c510aa
fix(audit): keep the outer quote after a disguised name, prose fences
s2d2-s1 Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .external-skill-audit-allowlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"reviewed": [
{
"plugin": "remotion-best-practices",
"sha": "eed702478ce34eff4eb77230b748375332c536ae",
"rule": "unpinned-package-run",
"file": "remotion-create/REFERENCE.md",
"rationale": "npx create-video@latest scaffolds a new, empty Remotion project in a fresh folder when the user asks for one. @latest runs whatever Remotion publishes next, so this trusts Remotion's own release of its scaffolder rather than one reviewed version; the releases read so far read no existing code and send nothing."
}
]
}
274 changes: 147 additions & 127 deletions .github/skillspector/requirements.txt

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .github/workflows/validate-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ jobs:
# Passes without network access while the catalog has no external plugins.
run: python scripts/validate_external_sources.py --jobs 4

- name: Audit the instructions this repository's plugins give the agent
# Guardrail evasion, pipe-to-shell and unauditable files fail; the other rules annotate the pull request.
# A pull request audits the plugins it changes, including the runs Sync Codex Plugins
# dispatches for one (which have no GITHUB_BASE_REF); main audits them all.
env:
AUDIT_BASE: ${{ github.base_ref || (inputs.pr_number && 'main') || '' }}
run: python scripts/audit_skill_text.py --catalog . ${AUDIT_BASE:+--base "origin/$AUDIT_BASE"}

- name: Validate shell scripts
run: |
shellcheck --version
Expand Down
39 changes: 39 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ python3 -m unittest discover -s tests
ruff check scripts/*.py tests/*.py && mypy scripts
claude plugin validate --strict .
scripts/scan-skills.sh changed origin/main # security scan; needs `skillspector`
python3 scripts/audit_skill_text.py --catalog . --base origin/main # skill text audit
```

The tufte-viz plugin has a self-test that CI does not run. When you touch that plugin, run it:
Expand Down Expand Up @@ -199,6 +200,44 @@ packaging, add a compact compatibility mapping to `.agents/plugins/source-overri
Then run `python3 scripts/validate_external_sources.py`. `docs/creating-plugins.md` has the
full procedure.

A pin fixes the text of an upstream skill, not what that text runs or sends, so the validator
also reads every Markdown file a pinned plugin ships, except repository material at its root
Comment thread
glebedel marked this conversation as resolved.
Resolved
such as `README.md`, `docs/` and `tests/` that no manifest or entrypoint mapping declares and no
audited file points at by path (`${CLAUDE_PLUGIN_ROOT}/docs/setup.md`, `../../examples/`,
`${CLAUDE_PLUGIN_ROOT}/AGENTS.md`)
(`scripts/audit_skill_text.py`). It fails on text
that tells the agent to get a command past a safety classifier or permission prompt, a download
piped into a shell or into an interpreter that runs its input
(`| python3`, `| node - arg`, `| source /dev/stdin`), a package run that downloads whatever
version is newest (`npx x@latest`, `npx -y x`, `pnpm dlx x`, `uvx --from x cmd`), a `curl` that
sends data to a remote host (a body or upload, any value the shell fills in such as `$TOKEN` or
`$(cat f)` in a header or the URL, or anything after a proxy or `CURL_HOME` set earlier in the
file), and a file it cannot
read (too large, not UTF-8 text, a manifest that is not valid JSON, a symlinked folder, or a
link out of the plugin). Read the flagged passage, then
either accept it in `.external-skill-audit-allowlist.json` (plugin, pinned `sha`, rule, file
and a rationale) or drop the plugin. Entries are bound to the commit: when you bump a pin,
every finding of that plugin fails again until you have read the new text and renewed or
removed its entries.

The `validate` check runs the same audit on the plugins in this repository that a pull request
changes, including uncommitted files and plugins whose catalog source is new or points at another folder
(`--catalog . --base origin/main`). Guardrail evasion, a download run by a shell or interpreter (piped, or
through `bash -c "$(curl ...)"`, `eval "$(curl ...)"`, `<(curl ...)` and `bash <<< "$(curl ...)"`) and an unauditable file fail the check; the
other rules are warnings on the pull request, so fix or explain each one. When a blocking finding
in a plugin here is the point of that plugin, accept it under `reviewed_local` in
`.external-skill-audit-allowlist.json` (plugin, rule, file, the whole trimmed source
line and a rationale; a finding that spans several lines, such as a sentence or a command
continued after a trailing `|` or `\`, joins them with spaces, and so does every further line a
trailing `\` continues it onto; a `$(`, `<(` or backtick substitution that does not close on its
own line, or that holds a here-document or `case`, binds every line to the end of its code
block). The entry stops matching when any of those lines changes, and an
entry that no longer matches fails.

`scripts/audit_skill_text.py` is the canonical copy. Other marketplaces, such as
`StackOneHQ/agent-plugins`, vendor it unchanged at a pinned commit of this repository, so after
changing it here, bump their copies.

## Naming and versions

- Name a plugin after what it does, lowercase with hyphens, no owner or company prefix:
Expand Down
Loading
Loading