<feed xmlns='http://www.w3.org/2005/Atom'>
<title>trailofbits-skills-curated.git/scripts/scan_plugin.py, branch main</title>
<subtitle>Reviewed community skills and plugins
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/trailofbits-skills-curated.git/'/>
<entry>
<title>Scope security scanner to changed plugins and rename skill-importer to trailofbits (#7)</title>
<updated>2026-02-12T06:19:29+00:00</updated>
<author>
<name>Dan Guido</name>
<email>dan@trailofbits.com</email>
</author>
<published>2026-02-12T06:19:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/trailofbits-skills-curated.git/commit/?id=2a6f519f2896103fbf161250d8ea0fa05fb57227'/>
<id>2a6f519f2896103fbf161250d8ea0fa05fb57227</id>
<content type='text'>
Scanner changes:
- Accept multiple target paths (nargs='+')
- Workflow extracts changed plugin dirs from PR via gh API
- Only scans plugins modified in the PR, not the entire repo
- Label fallback scans all plugins if no plugin files changed

Plugin rename:
- Rename skill-importer -&gt; trailofbits so command becomes
  /trailofbits:import-skill
- Update marketplace.json, README, plugin.json references

Co-authored-by: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Scanner changes:
- Accept multiple target paths (nargs='+')
- Workflow extracts changed plugin dirs from PR via gh API
- Only scans plugins modified in the PR, not the entire repo
- Label fallback scans all plugins if no plugin files changed

Plugin rename:
- Rename skill-importer -&gt; trailofbits so command becomes
  /trailofbits:import-skill
- Update marketplace.json, README, plugin.json references

Co-authored-by: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add deterministic security scanner for imported plugins (#6)</title>
<updated>2026-02-12T06:08:09+00:00</updated>
<author>
<name>Dan Guido</name>
<email>dan@trailofbits.com</email>
</author>
<published>2026-02-12T06:08:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/trailofbits-skills-curated.git/commit/?id=86b054f3e9cdee3ef898b487dccf4dbff506eaa8'/>
<id>86b054f3e9cdee3ef898b487dccf4dbff506eaa8</id>
<content type='text'>
* Add deterministic security scanner for imported plugins

Scans plugin directories for external network access (URLs, curl, Python
network imports), unicode tricks (bidi overrides, zero-width chars,
homoglyphs in code, punycode domains), and destructive operations (rm -rf,
force push, chmod 777). BLOCK findings fail CI; WARN findings surface for
human review.

- scripts/scan_plugin.py: zero-dependency stdlib scanner (~440 lines)
- .github/workflows/security-scan.yml: CI workflow running on push/PR
- plugins/skill-importer/commands/import-skill.md: insert scan as Step 17

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* fix: resolve code review findings for PR #6

- Fix fence marker length bug: store full fence length so 4-backtick
  fences aren't closed by 3-backtick lines
- Fix CI always failing: use distinct exit codes (0=clean, 1=usage,
  2=BLOCK, 3=WARN) and allow WARN to pass in CI
- Fix double PUNYCODE_RE.search: capture match once, remove type: ignore
- Fix silent error swallowing: warn on stderr for unreadable files
- Use Literal type for Finding.level instead of bare str
- Add line.isascii() fast-path to skip unicode checks on ASCII lines
- Precompute frozenset of code lines for O(1) lookup instead of O(R)
- Detect rm -Rf (capital R) and rm --recursive --force
- Extract _discover_plugins and _read_file_text helpers from main
- Pass precomputed suffix string instead of Path objects to check fns
- Add docstrings to all public and non-trivial functions
- Add summary line to stderr output

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* Add 7 security check categories to plugin scanner

New detections: code execution (pipe-to-shell, eval/exec, subprocess),
credential access, encoded payloads, privilege escalation, and compiled
bytecode (.pyc/__pycache__).

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* Convert security scanner from CI gate to PR comment

Surface findings as an idempotent PR comment instead of failing CI,
so reviewers can see them inline and merge at their discretion.

- Add --format=markdown output mode to scan_plugin.py (argparse CLI)
- Post/update a single comment using &lt;!-- security-scan --&gt; marker
- Auto-trigger only when plugins/ files change (gh API path check)
- Manual trigger via 'security-scan' label on any PR

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

---------

Co-authored-by: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add deterministic security scanner for imported plugins

Scans plugin directories for external network access (URLs, curl, Python
network imports), unicode tricks (bidi overrides, zero-width chars,
homoglyphs in code, punycode domains), and destructive operations (rm -rf,
force push, chmod 777). BLOCK findings fail CI; WARN findings surface for
human review.

- scripts/scan_plugin.py: zero-dependency stdlib scanner (~440 lines)
- .github/workflows/security-scan.yml: CI workflow running on push/PR
- plugins/skill-importer/commands/import-skill.md: insert scan as Step 17

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* fix: resolve code review findings for PR #6

- Fix fence marker length bug: store full fence length so 4-backtick
  fences aren't closed by 3-backtick lines
- Fix CI always failing: use distinct exit codes (0=clean, 1=usage,
  2=BLOCK, 3=WARN) and allow WARN to pass in CI
- Fix double PUNYCODE_RE.search: capture match once, remove type: ignore
- Fix silent error swallowing: warn on stderr for unreadable files
- Use Literal type for Finding.level instead of bare str
- Add line.isascii() fast-path to skip unicode checks on ASCII lines
- Precompute frozenset of code lines for O(1) lookup instead of O(R)
- Detect rm -Rf (capital R) and rm --recursive --force
- Extract _discover_plugins and _read_file_text helpers from main
- Pass precomputed suffix string instead of Path objects to check fns
- Add docstrings to all public and non-trivial functions
- Add summary line to stderr output

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* Add 7 security check categories to plugin scanner

New detections: code execution (pipe-to-shell, eval/exec, subprocess),
credential access, encoded payloads, privilege escalation, and compiled
bytecode (.pyc/__pycache__).

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

* Convert security scanner from CI gate to PR comment

Surface findings as an idempotent PR comment instead of failing CI,
so reviewers can see them inline and merge at their discretion.

- Add --format=markdown output mode to scan_plugin.py (argparse CLI)
- Post/update a single comment using &lt;!-- security-scan --&gt; marker
- Auto-trigger only when plugins/ files change (gh API path check)
- Manual trigger via 'security-scan' label on any PR

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

---------

Co-authored-by: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;</pre>
</div>
</content>
</entry>
</feed>
