Skip to content

Agent Security Scanner Mcp

v3.6.0 Breaking

This release includes breaking changes for platform teams planning a safe upgrade.

Published 5mo MCP Security & Auth
โœ“ No known CVEs patched
Read the diff โ†’ Tool health โ†’ What is this tool? โ†’

✓ No known CVEs patched in this version

Topics

agent-security ai-agent-security ai-security claude-code codex cursor
+14 more
hallucination-detection llm-security mcp mcp-security mcp-server openclaw owasp package-hallucination prompt-injection static-analysis security supply-chain-security vulnerability-scanning windsurf

Affected surfaces

auth

Summary

AI summary

Broad 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_scan parameter
  • 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 evasion
  • generic.prompt.security.crescendo-setup - Persistent behavioral rule injection
  • generic.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 lines
  • mcp-server/package.json - Added test:redteam script

New Files:

  • mcp-server/src/tools/garak-bridge.js - 209 lines
  • mcp-server/tests/promptfoo/promptfooconfig.yaml - 101 lines
  • mcp-server/tests/promptfoo/scan-provider.js - 54 lines
  • mcp-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

Track Agent Security Scanner Mcp

Get notified when new releases ship.

Sign up free

About Agent Security Scanner Mcp

All releases โ†’

Beta — feedback welcome: [email protected]