spark

Warn

Audited by Socket on Aug 28, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/server.cjs

No clear malicious behavior or supply-chain backdoor is present. The code provides a local screen server with expected filesystem, HTTP, WebSocket, and lifecycle operations. Security concerns include unauthenticated WebSocket and HTTP access, direct serving and script injection of stored HTML, and unbounded WebSocket memory allocation. Path traversal is partially mitigated by path.basename. Restrict the host to localhost when possible, authenticate or restrict clients, treat content as untrusted, and enforce frame and request size limits.

Confidence: 97%Severity: 54%
AnomalyLOW
scripts/stop-server.sh

The code appears to implement legitimate server shutdown and cleanup behavior, with no clear malicious functionality. It has moderate security risk when invoked with untrusted input: an attacker who can control the session directory or PID file may cause an unrelated process to be killed and may trigger recursive deletion of an arbitrary directory under /tmp. Validate the PID as numeric, verify process ownership or identity, canonicalize and constrain the session path, and avoid rm -rf on unchecked input.

Confidence: 97%Severity: 58%
Audit Metadata
Analyzed At
Aug 28, 2026, 10:09 AM
Package URL
pkg:socket/skills-sh/bahayonghang%2Fmy-ai-cli-toolkit%2Fspark%2F@628ff6740fbfdb24f2ba6e924a838c78e95c66a671672b1b7535518cc769e26c