Repository navigation
v2.8.3
Features
-
Improved Claude Leaked Tool Call Parsing: Added new robust parser for extracting leaked tool calls from Claude model responses
- New
leaked_tool_parsermodule with quote-aware brace counting for accurate dict boundary detection - Handle Anthropic content array format (mixed text+tool_use blocks)
- Extract ALL leaked tool calls, not just the first one
- Proper handling of braces inside strings (code snippets)
- Support for escaped quotes in tool arguments
- Added comprehensive unit tests (24 tests)
- New
-
Attack Logging Module: Added dedicated security logging for malicious HTTP requests
- Create
attack_logger.pymodule for security logging - Log concise warning messages with attack type and source IP
- Save detailed attack logs to
{config_dir}/attack_logs/directory - Classify attacks: struts2_ognl, directory_traversal, ssti_probe, etc.
- Store logs as compressed JSONL files organized by date
- Create
Bug Fixes
- Streaming UTF-8 Handling: Fixed incomplete UTF-8 sequences in streaming responses
- Add
StreamDecoderutility class to safely decode UTF-8 byte streams where multi-byte characters may be split across network packets - Update chat, completions, and responses endpoints to use StreamDecoder
- Fixes intermittent
ValueError: 'utf-8' codec can't decode byteerrors
- Add
Full Changelog: v2.8.2...v2.8.3