memory-management

Warn

Audited by Socket on Aug 14, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/memory-hook.mjs

This file primarily acts as a subprocess-based hook runner. The most significant security exposure is that it can execute an arbitrary Node script determined by the unvalidated environment variable AI_MEMORY_SCRIPT; combined with full environment passthrough (env: process.env) and forwarding of untrusted prompt/config text as CLI arguments, this creates a high-impact supply-chain/sandboxing risk in threat models where attackers can influence environment variables or the executed child script. The wrapper itself shows no direct malware behaviors, but it materially increases the likelihood of compromise through controllable child execution.

Confidence: 62%Severity: 67%
AnomalyLOW
scripts/mcp-server.mjs

No explicit obfuscation or direct malicious payload is visible in this fragment. However, it provides a powerful request-driven execution bridge: it parses untrusted input and, for recognized tool calls, spawns a Node.js child script with attacker-controlled CLI flags and a potentially attacker-influenced working directory, while also passing through the entire environment. The security impact and likelihood of malicious behavior depend heavily on the unseen toolCommands/memoryScript implementation and any access control, which are not fully shown. From this snippet alone, the dominant concern is abuse of the spawned child’s behavior and potential data leakage via returned stdout/stderr.

Confidence: 45%Severity: 62%
Audit Metadata
Analyzed At
Aug 14, 2026, 03:44 AM
Package URL
pkg:socket/skills-sh/soden46%2Fsyarif-laravel-ai-skills%2Fmemory-management%2F@87884f91ea81c750c701fc255eab6ffee23269cccf4bca4729427882d93aa036
Security Audit — socket — memory-management