readability-check
Warn
Audited by Socket on Oct 29, 2026
1 alert found:
AnomalyAnomalyhooks/readability_hook.py
LOWAnomalyLOW
hooks/readability_hook.py
This fragment appears to be a guardrail/readability gate rather than explicit malware: it performs local scoring on content and outputs advisory/block decisions. However, it creates a tangible security risk if an attacker can influence payload routing or tool_input.file_path: it may read unintended local files (only suffix-filtered) and then disclose extracted excerpts in stdout JSON (additionalContext/reason). Additionally, it dynamically executes a packaged scorer resource, which could become critical if that file is tampered with in the deployed environment.
Confidence: 70%Severity: 50%
Audit Metadata