AI Security Review
scanned 4h ago · by lpm-firewall-aiNo confirmed malicious install-time or import-time attack surface was found. Risky primitives are package-aligned runtime features for a Claude/Telegram agent orchestrator and require explicit user CLI actions.
Decision evidence
public snapshot- dist/cli/switchroom.js sends opt-out CLI telemetry to PostHog on command invocation.
- dist/cli/switchroom.js has explicit user commands that write Claude agent config/trust and hostd compose files.
- dist/cli/switchroom.js hostd install can run docker compose and pull ghcr.io/switchroom/switchroom-hostd.
- package.json has no preinstall/install/postinstall hook; only prepublishOnly build/lint/test.
- dist/cli/switchroom.js crypto/decrypt logic is local vault storage, not embedded payload execution.
- telegram-plugin/start.js only imports bundled dist/server.js or local server.ts fallback.
- telegram-plugin/shared/bot-runtime.ts uses execFileSync/spawnSync argv arrays for switchroom CLI calls, not shell eval.
- vendor/hindsight-memory/tests/conftest.py is pytest fixture code, not a hidden executable payload.
Source & flagged code
15 flagged · loading sourcePackage source references child process execution.
dist/host-control/main.jsView on unpkg · L10429Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/host-control/main.jsView on unpkg · L2457Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/host-control/main.jsView on unpkg · L2457Package source references a known benign dynamic code generation pattern.
telegram-plugin/dist/server.jsView on unpkg · L12703Package source references dynamic require/import behavior.
telegram-plugin/start.jsView on unpkg · L25Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
telegram-plugin/shared/bot-runtime.tsView on unpkg · L175Package source references weak cryptographic algorithms.
telegram-plugin/shared/bot-runtime.tsView on unpkg · L8Source decrypts an embedded payload, writes it to disk, and executes it through a child process.
dist/cli/switchroom.jsView on unpkgPackage contains source files above the static scanner size ceiling.
dist/cli/switchroom.jsView on unpkgPackage contains an oversized executable-looking CLI entrypoint.
dist/cli/switchroom.jsView on unpkgPackage ships non-JavaScript build or shell helper files.
bin/turn-pacing-hook.shView on unpkgPackage hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
vendor/hindsight-memory/tests/conftest.pyView on unpkgThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/vault/broker/server.jsView on unpkgRSA private key in telegram-plugin/tests/secret-detect.test.ts
telegram-plugin/tests/secret-detect.test.tsView on unpkg · L198