Repository navigation
v0.1.1 — Security Patch
Security patch
Hardening pass against prompt-injection, SQL-injection, and resource exhaustion.
Fixes
- weather.sh — pass region/XML via env vars (was shell-expanded into Python heredoc, allowing code execution if LLM was induced to supply a malicious region string)
- chat — sanitize location before embedding in system prompt (strips control chars/newlines, caps length)
- findings / memory.pinned — sanitize stored content before embedding in system prompt
- analysis — validate file paths and escape SQL strings in
LoadCSV/LoadJSON/LoadJSONL; enforceMaxQueryRows(10000) - agent — propagate cancellation context into shell tool execution; validate MCP guardian binary executable bit and profile path before launch; separate Info/Debug logging (message bodies no longer at Info)
- objstore — tighten new-object file permissions to 0600
Tests
internal/chat/sanitize_test.gointernal/findings/sanitize_test.gointernal/analysis/security_test.go
See CHANGELOG.md for the full list.