This release includes breaking changes for platform teams planning a safe upgrade.
✓ No known CVEs patched in this version
Topics
+14 more
Affected surfaces
Summary
AI summaryBroad release touches ๐ง What Changed Modified:, PromptFoo Red-Team Suite, Unicode Normalization Pipeline, and Enhanced Encoding Detection.
Full changelog
๐ก๏ธ Major Security Enhancements
This release dramatically improves prompt injection detection by closing 5 critical bypass vectors identified in product evaluation. Detection rates improved from 5/10 to comprehensive coverage across all attack categories.
๐ฏ Bypass Fixes
| # | Bypass Vector | Fix |
|---|---------------|-----|
| 1 | Code block delimiter confusion | Extract content from ~~~, <code>, <!-->, <pre>, CDATA blocks |
| 2 | Pattern fragmentation | Collapse string concatenation ("ign" + "ore") and C-style comment separators |
| 3 | Multi-encoding bypass | Cascade decoder supporting base64 (nested), hex, URL encoding, ROT13 |
| 4 | Multi-turn shallow detection | Scan all previous messages, detect Crescendo frame-setting, cross-turn boundary patterns |
| 5 | Composite threshold gaming | Co-occurrence matrix, orthogonal dimension scoring, low-signal accumulation |
โจ New Features
Unicode Normalization Pipeline
- NFKC normalization
- Cyrillic/Greek homoglyph canonicalization (40+ mappings)
- Zero-width character stripping
- Zalgo diacritics removal
- Invisible Unicode detection as obfuscation indicator
Enhanced Encoding Detection
- Multi-encoding cascade replaces base64-only decoder
- Supports nested base64, hex, URL encoding
- Indicator-gated ROT13 (avoids false positives)
- Lowered thresholds: 40โ20 chars, 70%โ55% printability
Composite Scoring Improvements
- Category co-occurrence matrix: 12 suspicious pairs, +40% cap
- Orthogonal dimension scoring: 7 attack dimensions, +40 flat bonus
- Low-signal accumulation: Multiple LOW-confidence findings now trigger
Garak Integration (Optional)
- NVIDIA Garak LLM vulnerability scanner support via
deep_scanparameter - Encoding probes (base64, base16, rot13)
- Latent injection pattern detection
- Graceful degradation when Garak not installed
PromptFoo Red-Team Suite
- 13 automated test cases with custom MCP provider
- Continuous bypass detection validation
- Run with:
npm run test:redteam
๐ New Rules
3 new YAML security rules:
generic.prompt.security.whitespace-fragmentation- Letter-spaced keyword evasiongeneric.prompt.security.crescendo-setup- Persistent behavioral rule injectiongeneric.prompt.security.leetspeak-injection- Character substitution obfuscation
๐งช Testing
- 28 new test cases covering all bypass vectors
- False positive regression suite for benign prompts
- All 102 tests passing โ
- Average test time: ~2.7 seconds per test
๐ Impact
- Detection improvement: 5/10 โ comprehensive coverage
- Code changes: +1,099 additions / -85 deletions
- Files modified: 7 (3 new)
- Breaking changes: None (strictly additive)
๐ง What Changed
Modified:
mcp-server/src/tools/scan-prompt.js- 612 lines of enhanced logic (was 486 lines)mcp-server/rules/prompt-injection.security.yaml- 68 new linesmcp-server/package.json- Addedtest:redteamscript
New Files:
mcp-server/src/tools/garak-bridge.js- 209 linesmcp-server/tests/promptfoo/promptfooconfig.yaml- 101 linesmcp-server/tests/promptfoo/scan-provider.js- 54 linesmcp-server/tests/scan-prompt.test.js- 137 new test cases
๐ฆ Installation
npm install -g [email protected]
# Or update existing installation
npm update -g agent-security-scanner-mcp
๐ Related
- Addresses findings from internal security evaluation
- Inspired by Garak Buff normalization techniques
- Implements PromptFoo red-team methodology
- Builds on Crescendo multi-turn attack research
Full Changelog: https://github.com/sinewaveai/agent-security-scanner-mcp/compare/v3.5.2...v3.6.0
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About Agent Security Scanner Mcp
All releases โRelated context
Related tools
Beta — feedback welcome: [email protected]