Repository navigation
GoldPan AI v3.3.0: Repo Context Firewall (goldpan scan), SARIF 2.1.0 & Triple-Track Benchmark
Latestπ‘οΈ What's New in GoldPan AI v3.3.0
1. Repo Context Firewall (goldpan scan)
- Codebase Prompt Injection Defense: Recursively inspects codebases for Trojan Source Bidirectional overrides (
U+202E), ASCII smuggling via Unicode Tags (U+E0000βU+E007F), stray zero-width characters (U+200BβU+200D), fake chat/system tokens (<|im_start|>,[INST]), and Markdown image exfiltration beacons. - Code Profile vs Text Profile (
--profile code|--profile text): Understands fenced code blocks (```and~~~) and inline backticks. Accurately distinguishes legitimate developer documentation from unescaped, active injection attacks. - Emoji ZWJ Whitelisting: Preserves legitimate multi-codepoint compound emojis (e.g.
π¨βπ©βπ§βπ¦,π§βπ»,π³οΈβπ) while flagging malicious zero-width characters hidden between ASCII tokens. - Line- & Column-Exact Finding Telemetry: Pinpoints every security signal down to 1-based line number, column offset, and context snippet.
2. Synergy with Context Packaging Tools (Repomix Integration)
GoldPan does not duplicate generic file packagers; instead, it provides the essential security verification firewall:
# Verify repo and export verified clean files to Repomix
goldpan scan . --list-clean > clean_files.txt
repomix --include "$(cat clean_files.txt)"3. Industry-Standard SARIF 2.1.0 Export
Emits native OASIS SARIF (goldpan scan . --format sarif -o results.sarif) for automated upload to GitHub Code Scanning alerts and DevSecOps pipelines.
4. 9th Model Context Protocol (MCP) Tool
Adds goldpan_scan_repo to goldpan-mcp, allowing autonomous coding agents (Claude Code, Cursor, Copilot, Antigravity) to audit repositories on-the-fly before ingesting untrusted files.
5. Triple-Track Empirical Benchmark (GoldPan Bench)
- Track A (Document Firewall):
100.0%TPR |0.0%FPR (0.21 ms/doc). - Track B (Multilingual Retrieval):
93.8%Recall@3 |0.8958MRR@5. - Track C (Repo Context Firewall):
100.0%TPR |0.0%FPR (1.77 ms/file).
6. Full Cross-Platform CI Verification
All 17 test suites and benchmarks verified 100% green on Ubuntu, Windows, and macOS.