Skip to content

ci: scan skills with SkillSpector and the skill text audit - #57

Open
glebedel wants to merge 6 commits into
mainfrom
feat/skill-security-scans
Open

glebedel wants to merge 6 commits into
mainfrom
feat/skill-security-scans

Conversation

@glebedel

@glebedel glebedel commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

agent-plugins had no skill security scan in CI: validate.yml only ran plugin validate and the Defender tests. This PR adds the two scans our other marketplaces run, on every PR and on main:

  • SkillSpector (NVIDIA), pinned and configured exactly as in StackOneHQ/powerful-plugins (.github/skillspector/, scripts/scan-skills.sh). A PR fails when a changed skill scores as high risk; main scans every skill and uploads SARIF.
  • Skill text audit (scripts/audit_skill_text.py, vendored from powerful-plugins#51 at the commit in scripts/audit_skill_text.pin, where three Codex security passes hardened it). It reads the instructions each skill gives the agent. Guardrail-evasion text, a download run by a shell (piped, bash -c "$(curl ...)" or <(curl ...)) and an unreadable file fail; an unpinned package run or a curl upload to a host other than stackone.com is a warning annotation. It audits each plugin a PR changes, including a new or repointed catalog entry. A second step fails if the vendored copy differs from powerful-plugins at the pin.

Picked by s2d2's Agent meta watch at Guillaume Lebedel's request.

Results on this repository today

Scan Result
SkillSpector, all 10 skill folders (SKILL_ROOTS=plugins scripts/scan-skills.sh all) Result: PASS. The two Defender skills raise P1 and P6 errors because they describe prompt injection, and stay under the fail threshold.
Skill text audit, 7 catalog plugins 0 failing, 2 warnings: the Connect Sessions and RPC examples in stackone-connect and stackone-connectors open a JSON body that closes on a later line, so the audit cannot prove every destination is StackOne. Warnings only.

Files

File Why
.github/workflows/scan-skills.yml New. powerful-plugins' SkillSpector job without its Codex-sync dispatch input, scanning plugins/.
.github/skillspector/*, scripts/scan-skills.sh From powerful-plugins: hash-pinned SkillSpector and its runner, with pydantic 2.14.4 and truststore 0.10.5 (CVE fixes Aikido reported; no other pin moved). The runner here also treats a root plugin.json as a plugin root, so the Antigravity plugin's scripts/ is scanned, and reads changed paths unquoted.
.github/workflows/validate.yml New skill-text-audit job. Also sets persist-credentials: false on the existing validate checkout, which Aikido flagged.
scripts/audit_skill_text.py, scripts/audit_skill_text.pin The vendored audit and the commit it came from.
README.md A Security checks section with the local commands.
.gitignore Ignores skillspector-reports/.

ci: commits only, so release-please does not cut a plugin release.

Merge order and post-merge validation

  1. Merge StackOneHQ/powerful-plugins#51 first, then update scripts/audit_skill_text.pin here to its squash commit (the file is byte-identical, so only the pin moves).
  2. After merge, the main runs show Scan Skills (SkillSpector) passing with 10 skills and Audit skill instructions printing Audited 7 local plugins: 0 failing, 2 warnings.

🤖 Generated with Claude Code

Review gates and proof

Recorded by s2d2 on 35cc8f6. Kind of change: high risk.

gate result
forge not run
security_scan ran
codex_security ran
security_review ran
code_review ran
eng_review not run
demo not run
local_stack not run

s2d2-s1 and others added 2 commits November 29, 2026 23:48
Adds powerful-plugins' pinned SkillSpector job and its vendored instruction-text audit. Guardrail
evasion, pipe-to-shell and unreadable files fail; unpinned package runs and uploads to hosts other
than stackone.com are warning annotations. A step fails if the vendored audit differs from
powerful-plugins at scripts/audit_skill_text.pin. The validate checkout no longer persists
credentials (Aikido).

Requested by [email protected]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: Guillaume Lebedel <[email protected]>
@glebedel glebedel self-assigned this Nov 30, 2026
Comment thread .github/skillspector/requirements.txt Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/audit_skill_text.py Resolved
Comment thread README.md Resolved
Comment thread scripts/scan-skills.sh Resolved
Comment thread scripts/scan-skills.sh Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/audit_skill_text.py Resolved
Comment thread scripts/audit_skill_text.py Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval blocked by 5 unresolved issues from previous reviews.

View guided diff | Turn on auto-fix | Re-trigger cubic

…gin roots

pydantic 2.14.4 and truststore 0.10.5 fix the CVEs Aikido reported; the
other pins are unchanged. scan-skills.sh now treats a root plugin.json
(Antigravity) as a plugin root and reads changed paths unquoted. Also
vendor the skill text audit at powerful-plugins e879ed5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread .github/skillspector/requirements.txt Resolved
Only the pydantic, pydantic-core and truststore entries differ from the
previous lock now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: Guillaume Lebedel <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds hash-pinned SkillSpector and vendored skill-text-audit CI scans (PR enforcement, main report-only) with docs and pin verification; no runtime/product behavior change, and the dismissed sudo pipe finding is fixed in the vendored script.

View guided diff | Turn on auto-fix | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants