Static Scan Results
scanned 3h ago · by rust-scannerStatic analysis flagged 8 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.
Static reason
One or more suspicious static signals were detected.
Decision evidence
public snapshotBehavioral surface
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
UrlStrings
Source & flagged code
3 flagged · loading sourcepackage.jsonView file
•scripts.postinstall = node scripts/postinstall.mjs || true
High
Install Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg•scripts.postinstall = node scripts/postinstall.mjs || true
Medium
Ambiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgdist/ocm.jsView file
2// bin/ocm.ts
L3: import { spawn as spawn2, spawnSync as spawnSync4 } from "child_process";
L4: import { basename } from "path";
...
L9: import { dirname, join } from "path";
L10: var STATE_DIR = join(homedir(), ".config", "opencode-manager");
L11: var STATE_FILE = join(STATE_DIR, "state.json");
...
L20: const raw = readFileSync(STATE_FILE, "utf-8");
L21: const parsed = JSON.parse(raw);
L22: if (!parsed.managerUrl)
...
L44: class KeychainError extends Error {
L45: exitCode;
L46: constructor(message, exitCode) {
Low
Findings
1 High3 Medium4 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
LowScripts Present
LowWeak Cryptodist/ocm.js
LowFilesystem
LowUrl Strings