Skip to content

feat(security): block trojan-source unicode, symlinks, binaries, and path traversal (closes #191) - #197

Merged
OdevMatheus merged 1 commit into
mainfrom
feat/catalog-trojan-and-boundary-guards
Nov 9, 2026
Merged

OdevMatheus merged 1 commit into
mainfrom
feat/catalog-trojan-and-boundary-guards

Conversation

@OdevMatheus

Copy link
Copy Markdown
Owner

Closes #191

Summary

  • Extends \src/auditor/security.ts\ and \src/auditor/parser.ts\ to detect and block Trojan-Source (CVE-2021-42574) bidirectional control characters, LLM invisible Unicode Tag smuggling (\U+E0000..U+E007F), and zero-width script identifier spoofing.
  • Rejects symbolic links and opaque binary/archive files (.exe, .dll, .so, .dylib, .bin, .wasm, .pyc, .zip, .tar.gz) inside Skill and Subagent directories.
  • Adds
    esolveSafeRepoTargetPath\ in \src/sync/adapters.ts\ to enforce strict repository boundary containment on all file writes and removals.
  • Updates .github/workflows/ai-ci.yml\ and unit tests in \ ests/npx_core.test.ts.

@github-actions github-actions Bot added 📄 docs Documentation, ADRs, templates, and guides ⚙️ ci GitHub Actions workflows, Node.js/TypeScript CI (tsc, vitest, tsup), and governance automation 🔄 multi-runtime Context-aware repo router and multi-runtime sync adapters (Claude, AGY, Cursor, Codex, Copilot) 🐍 core-engine labels Nov 9, 2026
@OdevMatheus
OdevMatheus merged commit 365664b into main Nov 9, 2026
9 checks passed
@OdevMatheus
OdevMatheus deleted the feat/catalog-trojan-and-boundary-guards branch November 9, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ ci GitHub Actions workflows, Node.js/TypeScript CI (tsc, vitest, tsup), and governance automation 🐍 core-engine 📄 docs Documentation, ADRs, templates, and guides 🔄 multi-runtime Context-aware repo router and multi-runtime sync adapters (Claude, AGY, Cursor, Codex, Copilot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(security): block trojan-source hidden unicode, symlinks, forbidden binaries, and path traversal in catalog

1 participant