This repository was archived by the owner on May 23, 2026. It is now read-only.
Repository navigation
v0.7.3 — Security Hardening (Review Follow-up)
Security (Critical)
- Arbitrary file read via tool result JSON:
extractImageFromResultnow delegates tofileToDataURLallowlist - Path traversal via
analysis-status/analysis-resultjob_id: validated againstjob-<digits>pattern - API key no longer exposed in
psoutput: passed viaSHELL_AGENT_API_KEYenv var
Security (High)
IsReadOnlySQLrewritten: regex word boundaries, comment/string-literal stripping, multi-statement rejection, DuckDB extension denylists (LOAD/INSTALL/PRAGMA/EXECUTE/VACUUM)- MCP Guardian
Stop(): mutex-guarded, idempotent,call()refuses after stop - Token-stat data race:
statsMu+ accessor functions
All tests pass with -race flag.
Full changelog: https://github.com/nlink-jp/shell-agent/blob/main/CHANGELOG.md