AI Security Review
scanned 22h ago · by lpm-firewall-aiNo confirmed malicious attack surface by source inspection. The package is an AI/Telegram orchestration CLI with user-invoked setup, vault, MCP, telemetry, and agent-management capabilities aligned with its stated purpose.
Decision evidence
public snapshot- package.json has no install/postinstall/prepare hook; only prepublishOnly for publisher-side build/lint/test.
- dist/cli/switchroom.js decrypt logic is for ~/.switchroom/vault/vault.enc, not an embedded payload executor.
- dist/cli/switchroom.js registers user-invoked switchroom CLI commands; program.parse() is the main runtime entrypoint.
- Claude/.claude writes are under switchroom agent setup paths such as agentDir/.claude and ~/.switchroom/agents, not npm lifecycle mutation.
- telegram-plugin/start.js only imports bundled dist/server.js or local server.ts fallback.
- Trojan-source bidi scan found no bidi control characters in telegram-plugin/shared/bot-runtime.ts.
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