Loading npm security reports…
Loading npm security reports…
loki-mode@11.112.0: Agent extension lifecycle risk – flagged | LPM Firewall
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Nov 1, 2026, 18:06 UTC · by lpm-firewall-ai The postinstall hook makes user-level skill-link and shell-completion changes without a separate user command, which matches the package policy’s warning for automatic setup of its own extensions. The reviewed behavior does not establish credential theft or unrelated data exfiltration.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall, unless completion setup is skipped by CI or LOKI_NO_COMPLETIONS=1.
Impact
Changes user-level agent skill links and shell completion files during installation without a separate user command.
Mechanism
Runs a local link-repair script and the Loki completion command, which may repoint existing skill symlinks and write completion files.
Evidence
package.json bin/loki-postinstall.js autonomy/lib/skill-link-heal.sh loki-ts/dist/loki.js $HOME/.claude/skills/loki-mode $HOME/.codex/skills/loki-mode $HOME/.cline/skills/loki-mode $HOME/.aider/skills/loki-mode $HOME/.local/share/bash-completion/completions/loki
$HOME/.config/fish/completions/loki.fish
$HOME/.loki/completions-version
/opt/homebrew/share/zsh/site-functions/_loki
/usr/local/share/zsh/site-functions/_loki
$HOME/.zfunc/_loki
Decision evidencepublic snapshot Evidence for warning
The postinstall hook runs a skill-link repair and invokes Loki’s completion command automatically. The skill repair can repoint existing Loki skill symlinks under the user’s Claude, Codex, Cline, or Aider directories. The postinstall completion command writes shell completion files under the user’s home directory. Runtime telemetry is described as anonymous diagnostics and uses an event and property allowlist. Evidence against
The skill repair only considers existing symlinks that already target a Loki installation, and checks that the running installation is durable. The telemetry documentation says collection can be disabled and excludes code, prompts, paths, keys, and repository names. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 219 files · 7.90 MB of source
49 external domains referenced
127.0.0.1 adaptivecards.io adoptium.net api.anthropic.com api.github.com api.honeycomb.io api.linear.app api.npmjs.org app.netlify.com autonomi.dev beacon.claude-ai.staging.ant.dev bun.sh cdn.jsdelivr.net claude-staging.fedstart.com claude.ai claude.com claude.fedstart.com cli.github.com code.claude.com deno.land discord.gg docs.anthropic.com docs.expo.dev dotnet.microsoft.com github.com gradle.org hooks.example.com hooks.slack.com img.shields.io in-toto.io json-schema.org json.schemastore.org maven.apache.org mcp-proxy.anthropic.com my-app.vercel.app nodejs.org npm.example.com openrouter.ai platform.claude.com raw.githubusercontent.com react.dev reactrouter.com registry.npmjs.org reviews.example.com slack.com twitter.com vercel.com www.autonomi.dev www.w3.org Oversized source lightweight scan
packages/control-plane/dist/server.js 4.09 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Crypto Shell High entropy strings URL strings 127.0.0.1 openrouter.ai www.autonomi.dev
Findings2 critical · 23 high · 8 medium · 7 low Source & flagged code31 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node bin/loki-postinstall.js || exit 0
Critical Hardcoded runtime data exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
loki-ts/dist/loki.js View on unpkg · L1 Code excerpt · 5 lines Source sends the broad process environment to a literal external destination.
1 // @bun
2 var V$8=Object.create;var {getPrototypeOf:K$8,defineProperty:Dq,getOwnPropertyNames:L30,getOwnPropertyDescriptor:G$8}=Object,O30=Object.prototype.hasOwnProperty;function j30 ($){retu...
3 `),!0}catch{return!1}}function g$8($){let Z=$.replace(/\\/g,"/");if(Z.includes("/Cellar/"))return"brew upgrade loki-mode";if(/\/pnpm\//.test(Z)||Z.includes("/.pnpm/"))return"pnpm a...
⋯
6 `);return}let Y=await b$8(Z.now,Z.fetcher,Z.cacheFile);if(Y===null)return;if(!xq(Y,$))return;J(` A newer Loki Mode is available: ${Y} (you have ${$}). Update: ${g$8 (Z.installPath??p...
7 `)}catch{}}var R$8="https://registry.npmjs.org/loki-mode/latest",E$8=86400000,w$8=1500,D$8=900000;var Mh=_(()=>{K8()});import{mkdtempSync
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
loki-ts/dist/loki.js View on unpkg · L1 High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
loki-ts/dist/loki.js View on unpkg · L1 High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
loki-ts/dist/loki.js View on unpkg · L1 High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
loki-ts/dist/loki.js View on unpkg · L1 Low Weak crypto
Package source references weak cryptographic algorithms.
loki-ts/dist/loki.js View on unpkg · L1 Shared code excerpt · 5 findings · 6 lines 1 // @bun
2 var V$8=Object.create; {getPrototypeOf:K$8,defineProperty:Dq,getOwnPropertyNames:L30,getOwnPropertyDescriptor:G$8}=Object,O30=Object.prototype.hasOwnProperty; ($){retu...
High Child process
Package source references child process execution.
loki-ts/dist/loki.js View on unpkg · L6 Code excerpt · 3 lines 6 `);return}let Y=await b$8(Z.now,Z.fetcher,Z.cacheFile);if(Y===null)return;if(!xq(Y,$))return;J(` A newer Loki Mode is available: ${Y} (you have ${$}). Update: ${g$8 (Z.installPath??p...
7 `)}catch{}}var R$8="https://registry.npmjs.org/loki-mode/latest",E$8=86400000,w$8=1500,D$8=900000;var Mh=_(()=>{K8()});import{mkdtempSync as c$8,rmSync as d$8,statSync as l$8,lstat...
8 `)[0];if(G38.has(X[Q])&&W)Y.push(W)}return[...new Set(Y)]}function L38($){let Z=$??String(Sq("git",["--version"],{encoding:"utf8",env:bZ()}).stdout??""),J=/(\d+)\.(\d+)/.exec(Z);re...
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
loki-ts/dist/loki.js View on unpkg · L6 Code excerpt · 5 lines 6 `);return}let Y=await b$8(Z.now,Z.fetcher,Z.cacheFile);if(Y===null)return;if(!xq(Y,$))return;J(` A newer Loki Mode is available: ${Y} (you have ${$}). Update: ${g$8 (Z.installPath??p...
7 `)}catch{}}var R$8="https://registry.npmjs.org/loki-mode/latest",E$8=86400000,w$8=1500,D$8=900000;var Mh=_(()=>{K8()});import{mkdtempSync as c$8,rmSync as d$8,statSync as l$8,lstat...
8 `)[0];if(G38.has(X[Q])&&W)Y.push(W)}return[...new Set(Y)]}function L38($){let Z=$??String(Sq("git",["--version"],{encoding:"utf8",env:bZ()}).stdout??""),J=/(\d+)\.(\d+)/.exec(Z);re...
⋯
179 ${" " .repeat (12 )}`)||null}function eJ8($){let Z=[],J=new Map,X=new Set;for(let H of $){if(H.type!=="cost")continue;let q=H.stage||$C;if(!J.has(q))Z.push(q),J.set(q,0);if(tP(H.data....
180 ${J.stderr??"" }`);if(W){if(X.input_t
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
loki-ts/dist/loki.js View on unpkg · L1 Code excerpt · 5 lines Cross-file remote execution chain: loki-ts/dist/loki.js spawns packages/control-plane/dist/server.js; helper contains network access plus dynamic code execution.
1 // @bun
2 var V$8=Object.create;var {getPrototypeOf:K$8,defineProperty:Dq,getOwnPropertyNames:L30,getOwnPropertyDescriptor:G$8}=Object,O30=Object.prototype.hasOwnProperty;function j30 ($){retu...
3 `),!0}catch{return!1}}function g$8($){let Z=$.replace(/\\/g,"/");if(Z.includes("/Cellar/"))return"brew upgrade loki-mode";if(/\/pnpm\//.test(Z)||Z.includes("/.pnpm/"))return"pnpm a...
⋯
6 `);return}let Y=await b$8(Z.now,Z.fetcher,Z.cacheFile);if(Y===null)return;if(!xq(Y,$))return;J(` A newer Loki Mode is available: ${Y} (you have ${$}). Update: ${g$8 (Z.installPath??p...
7 `)}catch{}}var R$8="https://registry.npmjs.org/loki-mo
Medium Dynamic require
Package source references dynamic require/import behavior.
loki-ts/dist/loki.js View on unpkg · L59 Code excerpt · 3 lines 59 `);{let X=A6(Z,fZ8);if(X)process.stderr.write(` Did you mean '${X}' ?
60 `)}return AZ0(),2}}async function PZ0($){let{run:Z}=await Promise.resolve().then(() => (v9(),MZ0)),{resolve:J}=await import("path"),{REPO_ROOT:X}=await Promise.resolve().then(() =>...
61 `),cwd:gh(),timeout:cZ8,encoding:"utf8",env:{PATH:process.env.PATH??"/usr/bin:/bin"},maxBuffer:8388608,stdio:["pipe","pipe","ignore"]});if(J.error||J.status!==0)return[];let X=JSON...
High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
autonomy/api-server.js View on unpkg Scanner record · 23 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
port <= 65535;
}
function parseargs() {
const args = process.argv.slice(2);
let port = null;
for (let i = 0; i < args.length; i++) {
if (args[i] === '--port' || args[i] === '-p') {
if (i + 1 < args.length) {
const val = parseint(args[i + 1], 10);
if (isvalidport(val)) {
port = val;
}
Medium Ships WASM module
Package ships WebAssembly modules.
loki-ts/data/resvg.wasm View on unpkg Scanner record · 4 lines path = loki-ts/data/resvg.wasm
kind = wasm_module
sizeBytes = 2478606
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
web-app/auth.py View on unpkg Scanner record · 4 lines path = web-app/auth.py
kind = build_helper
sizeBytes = 10450
magicHex = [redacted]
High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
tests/detect-test-mutations.sh View on unpkg Scanner record · 4 lines path = tests/detect-test-mutations.sh
kind = payload_in_excluded_dir
sizeBytes = 23449
magicHex = [redacted]
packages/control-plane/dist/server.js View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
packages/control-plane/dist/server.js View on unpkg Scanner record · 4 lines path = packages/control-plane/dist/server.js
kind = oversized_source_file
sizeBytes = 4284884
magicHex = [redacted]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
bin/loki View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 4
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
api/server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = api/server.js
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
autonomy/verify.sh View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = autonomy/verify.sh
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/protocols/mcp-client.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = src/protocols/mcp-client.js
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/protocols/mcp-server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = src/protocols/mcp-server.js
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
tests/detect-mock-problems.sh View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = tests/detect-mock-problems.sh
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
autonomy/playwright-verify.sh View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = autonomy/playwright-verify.sh
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
autonomy/hooks/validate-bash.sh View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = autonomy/hooks/validate-bash.sh
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/loki-mode.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = bin/loki-mode.js
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
packages/control-plane/src/ask/worker.ts View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
packages/control-plane/src/ask/worker.ts View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = packages/control-plane/src/ask/worker.ts
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
packages/control-plane/src/server/routes/integrations.ts View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
packages/control-plane/src/server/routes/integrations.ts View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = packages/control-[redacted].ts
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Medium Dynamic require Code↓
Package metadata 9 findings
High Shell
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
var
function
j30
3 `),!0}catch{return!1}}function g$8($){let Z=$.replace(/\\/g,"/");if(Z.includes("/Cellar/"))return"brew upgrade loki-mode";if(/\/pnpm\//.test(Z)||Z.includes("/.pnpm/"))return"pnpm a...
6 `);return}let Y=await b$8(Z.now,Z.fetcher,Z.cacheFile);if(Y===null)return;if(!xq(Y,$))return;J(` A newer Loki Mode is available: ${Y} (you have ${$}). Update: ${g$8 (Z.installPath??p...
7 `)}catch{}}var R$8="https://registry.npmjs.org/loki-mode/latest",E$8=86400000,w$8=1500,D$8=900000;var Mh=_(()=>{K8()});import{mkdtempSync as c$8,rmSync as d$8,statSync as l$8,lstat...
8 `)[0];if(G38.has(X[Q])&&W)Y.
const makeValidate = new Function (`${names_1.default.self}` , `${names_1.default.scope}` , sourceCode);
2893 const validate2 = makeValidate (this , this .scope.get ());
} else if (args[i].startswith('--port=')) {
const val = parseint(args[i].split('=')[1], 10);
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
autonomy/api-server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = loki-mode@11.91.0
matchedPath = autonomy/api-server.js
matchedIdentity = npm:bG9raS1tb2Rl:11.91.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source