show-me
Warn
Audited by Socket on Aug 27, 2026
1 alert found:
AnomalyAnomalyscripts/stop-server.sh
LOWAnomalyLOW
scripts/stop-server.sh
The code appears to be a legitimate server shutdown and cleanup script, not malware. It has security risks if an untrusted caller can control the session directory or its files: the weak path guard can permit unintended rm -rf deletion, and the PID/command-line validation can permit signaling an unintended process. The script should restrict session_dir to a trusted canonical base directory, validate that it is an expected session, parse and validate the PID strictly, and verify process identity using stronger criteria.
Confidence: 97%Severity: 68%
Audit Metadata