Loading npm security reports…
Loading npm security reports…
@primitive.ai/prim@0.1.0-alpha.124: npm security report – allowed | LPM Firewall
npm / @primitive.ai/prim / 0.1.0-alpha.124
@primitive.ai/prim@0.1.0-alpha.124 CLI for Primitive's decision graph — passive decision capture, conflict gate, and team presence
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 12, 2026, 23:35 UTC · by lpm-firewall-ai The routed execution and credential flows support the CLI’s own service and local credential broker, while agent configuration changes are part of explicit setup. No install-time attack or unrelated credential transfer was found.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Users run CLI commands or explicitly configure integrations; startup may flush an existing pending journal.
Impact
No malicious impact identified; observed network and file operations support the package’s decision capture and integration features.
Mechanism
Journal delivery uses the package client and selected service URL. Agent configuration writes are in setup routines.
Network endpoints2
api.getprimitive.ai 127.0.0.1
public snapshot
Evidence for AI clean decision
The manifest has no install lifecycle hook; its scripts are build and maintenance commands. Startup flush runs only when a pending journal needs flushing and launches the package’s own `prim moves flush` command. API requests send bearer credentials to the selected service URL; the default is `https://api.getprimitive.ai`. Agent and hook installation is exposed through the explicit `prim setup` command. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 50 files · 23.0 MB of source
8 external domains referenced
127.0.0.1 api.getprimitive.ai api.workos.com app.getprimitive.ai empty.invalid registry.npmjs.org www.apple.com www.w3.org Findings3 critical · 16 high · 5 medium · 4 low Source & flagged code20 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Child processCleared
Package source references child process execution.
dist/chunk-Q2PVD5W2.js View on unpkg · L189 Code excerpt · 3 lines 189 // src/lib/git.ts
190 import { execFileSync } from "child_process" ;
191 import { createHash } from "crypto" ;
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/chunk-Q2PVD5W2.js View on unpkg · L1635 Code excerpt · 3 lines 1635 // src/lib/machine-credentials.ts
1636 var require2 = createRequire (import .meta.url);
1637 var SERVICE = "ai.primitive.prim.machine" ;
Critical Download executeCleared
Source downloads or fetches remote code and executes it.
dist/index.js View on unpkg · L235 Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/index.js View on unpkg · L235 High Trigger reachable persistenceCleared
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/index.js View on unpkg · L235 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
dist/index.js View on unpkg · L235 Shared code excerpt · 4 findings · 12 lines 235 function isNonInteractive (globals) {
High Trigger reachable external AI agent control surface mutationCleared
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/chunk-DGZX3MID.js View on unpkg Scanner record · 30 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
from "./chunk-qzwlzh6d.js";
import {
atomicwritefile,
binfile,
comparesemver,
gittoplevel,
githubrepositoryfullname,
isvalidreposyncid,
pinnedhookcommand,
pinnednpxcommand,
primconfigdirectory,
setreposyncid,
setrepositorybindingstate,
withfilelock
} from "./chunk-q2pvd5w2.js";
High Cross file remote execution contextCleared
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/chunk-WLVEXOHC.js View on unpkg · L63 Code excerpt · 12 lines Cross-file remote execution chain: dist/chunk-WLVEXOHC.js spawns dist/hook-runtime/hooks/post-tool-use.js; helper contains network access plus dynamic code execution.
63 ].join ("" );
64 return `/bin/sh -c ${shellQuote(script)} ${GIT_HOOK_ENTRYPOINT_NAME} ${hook} "$@"` ;
65 }
⋯
248 function hookRuntimePaths (options = {}) {
249 const env = options.env ?? process.env;
250 const configDir = primConfigDirectory ({
⋯
299 }
300 ( ( (releaseDir, ), ) !== (manifest)) {
High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/chunk-TS2NX6YT.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 1
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/hook-runtime/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/hook-runtime/index.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/chunk-EER7VG3P.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/chunk-4NUGCUQC.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/chunk-EZXEWFDG.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/chunk-EZXEWFDG.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/hooks/post-commit.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/hooks/post-commit.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/hooks/post-rewrite.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/hooks/post-rewrite.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/hooks/prim-hook.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/hooks/prim-hook.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/hooks/pre-commit.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/hooks/pre-commit.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/daemon/server.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @primitive.ai/prim@0.1.0-alpha.121
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.121
similarity = 0.460
summary = stored previous version shares package body but lacks this dangerous source file
Cleared
Package metadata 8 findings
High Shell Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
236
return Boolean (globals.nonInteractive || process.env.CI || process.env.PRIM_NON_INTERACTIVE);
238 async function askConfirmation (question, output = process.stdout) {
239 if (!process.stdin.isTTY) return false ;
291 raw = await client.post (START_PATH, void 0 , requestOptions);
357 // src/commands/auth.ts
358 import { execFile } from "child_process" ;
359 import { createHash, randomBytes as randomBytes2 } from "crypto" ;
360 import { existsSync, readFileSync } from "fs" ;
import { createhash as createhash3 } from "crypto";
existssync as existssync3,
readfilesync as readfilesync3,
readdirsync as readdirsync3,
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/chunk-DGZX3MID.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @primitive.ai/prim@0.1.0-alpha.123
matchedPath = dist/chunk-NL5VU7EU.js
matchedIdentity = npm:QHByaW1pdGl2ZS5haS9wcmlt:0.1.0-alpha.123
similarity = 1.000
summary = normalized source hash matched finalized malicious source
if
readFileSync
join2
"package.json"
"utf8"
runtimePackageJson
353 const raw = readFileSync (manifestPath, "utf8" );
354 const parsed = JSON.parse (raw);
355 if (!parsed || typeof parsed !== "object" || Array.isArray (parsed)) return null ;