You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix all 42 red team findings — full security hardening pass
CRITICAL fixes:
- Request body size limit (50MB) on HTTP server
- Sync re-validates all memories from remote DBs before insert
- Panic-safe ID display (id_short helper, UTF-8 boundary safe)
- MCP validates arguments field exists and is object
- MCP validates JSON-RPC version == "2.0"
- MCP validates tool name is present and non-empty
- Touch errors logged in recall instead of silently swallowed
- Hook script hardened (set -euo pipefail, input validation)
HIGH fixes:
- FTS sanitizer now strips (), :, -, AND/OR/NOT/NEAR operators
- ID validation added to promote HTTP endpoint
- Consolidate verifies all IDs exist before proceeding
- Consolidate rejects duplicate IDs
- Export handler propagates DB errors instead of unwrap_or_default
- MCP consolidate validates all array elements are strings
- MCP checkpoints WAL on shutdown
MEDIUM fixes:
- CORS layer (permissive for localhost service)
- ROLLBACK failures logged in touch() and consolidate()
- Migration uses PRAGMA table_info instead of error string matching
- access_count capped at 1,000,000
- UTF-8 safe tag error message truncation
- Release profile opt-level raised to 3
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments