Skip to content

GoldPan AI v3.3.0: Repo Context Firewall (goldpan scan), SARIF 2.1.0 & Triple-Track Benchmark

Latest

Choose a tag to compare

@ptai-eng ptai-eng released this 07 Nov 15:47
· 3 commits to main since this release

πŸ›‘οΈ 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.8958 MRR@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.