Loading npm security reports…
Loading npm security reports…
@leviyuan/lodestar@0.20.5: AI-agent capability abuse – flagged | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Oct 10, 2026, 18:51 UTC · by lpm-firewall-ai Source inspection shows a user-invoked utility that modifies Claude Code provider settings. This warrants a warning for agent configuration capability, but no concrete malicious behavior or hidden credential exfiltration was established.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
A user invokes the setup utility and supplies provider configuration.
Impact
Subsequent Claude Code use can send the supplied credential to the configured provider endpoint.
Mechanism
The utility merges provider environment values, including the supplied authentication token and base URL, into Claude Code settings.
Evidence
Claude Code settings.json
Decision evidencepublic snapshot Evidence for warning
The package has a postinstall hook that runs its cleanup script. The setup utility writes a supplied authentication token and base URL into Claude Code settings. The setup utility configures Claude model slots for the selected provider. The daemon contains a corresponding Claude settings configuration path. Evidence against
The inspected setup flow writes provider configuration into Claude Code settings; it does not establish a hidden credential recipient. The inspected postinstall hook is a cleanup script, not the interactive setup utility. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest Wildcard dependency
Scanned 10 files · 2.66 MB of source
12 external domains referenced
127.0.0.1 api.anthropic.com api.deepseek.com api.z.ai cf.api.fan github.com open.bigmodel.cn open.feishu.cn openrouter.ai registry.npmjs.org www.packyapi.ai www.w3.org Findings3 critical · 17 high · 6 medium · 5 low Source & flagged code22 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 scripts/postinstall.cjs
Critical Hardcoded runtime data exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/lodestar.js View on unpkg · L1 Code excerpt · 5 lines Source sends the broad process environment to a literal external destination.
1 #!/usr/bin/env node
2 import {createRequire as HL}from "node:module" ;var e_=Object.create;var {getPrototypeOf:$L,defineProperty:t6,getOwnPropertyNames:ZL}=Object;var JL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function TL($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
4 `),Q=DL(J[0]??""),Y=(J[1]??"").trim();if(Q===null)throw Error(` PID 文件格式坏: ${$}`);if(!Y)return K5(Q)?{state:"exit",pid:Q}:{state:"continue"};return TL(Q,Y)?{state:"exit",pid:Q}:{sta...
5 ${qL ()}`)}var UL,ML,OL,AL;var B5=R(()=>{UL=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions",
High Child process
Package source references child process execution.
dist/lodestar.js View on unpkg · L1 Shared code excerpt · 2 findings · 3 lines 1 #!/usr/bin/env node
2 import {createRequire as HL}from "node:module" ;var e_=Object.create;var {getPrototypeOf:$L,defineProperty:t6,getOwnPropertyNames:ZL}=Object;var JL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function TL($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/lodestar.js View on unpkg · L1 High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/lodestar.js View on unpkg · L1 Shared code excerpt · 2 findings · 6 lines 1 #!/usr/bin/env node
2 import {createRequire as HL}from "node:module" ;var e_=Object.create;var {getPrototypeOf:$L,defineProperty:t6,getOwnPropertyNames:ZL}=Object;var JL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function TL($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
4 `),Q=DL(J[0]??""),Y=(J[1]??"").trim();if(Q===null)throw Error(` PID 文件格式坏: ${$}`);if(!Y)return K5(Q)?{state:"exit",pid:Q}:{state:"continue"};return TL(Q,Y)?{state:"exit",pid:Q}:{sta...
5 ${qL ()}
High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/lodestar.js View on unpkg · L44 Code excerpt · 5 lines 44 }
45 `;SV=IL()});import{Agent as gL}from"node:http";import{Agent as mL}from"node:https";import{Readable as bV}from"node:stream";import pL from"node-fetch";import{HttpProxyAgent as cL}fr...
46 `;if(process.stderr.write(J),!q5())return;try{let Q=mV(Z);if(fV!==Q)fV=Q,cV(r,Z);hV(pV(Z),J)}catch{}}var eL=7,L5="daemon-",P5=".log",fV=null;var I=R(()=>{H0();if(q5())try{aL(r,{rec...
47 `)}var KP=384,BP=448,jP=448;var x0=()=>{};import{execFile as LP}from"node:child_process";import{spawn as PP}from"cross-spawn";function DP($){if(!Number.isSafeInteger($)||$<=0)retur...
48 ${Y}${V}`));else Z()})})}async function M5($,Z,J={}){Z?.throwIfAborted();let Q=J.platform??process.platform,Y=J.timeoutMs??300000,V=J.terminationTimeoutMs??1e4;return await new Pro...
High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/lodestar.js View on unpkg · L44 Code excerpt · 5 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/lodestar.js
44 }
45 `;SV=IL()});import{Agent as gL}from"node:http";import{Agent as mL}from"node:https";import{Readable as bV}from"node:stream";import pL from"node-fetch";import{HttpProxyAgent as cL}fr...
46 `;if(process.stderr.write(J),!q5())return;try{let Q=mV(Z);if(fV!==Q)fV=Q,cV(r,Z);hV(pV(Z),J)}catch{}}var eL=7,L5="daemon-",P5=".log",fV=null;var I=R(()=>{H0();if(q5())try{aL(r,{rec...
47 `)}var KP=384,BP=448,jP=448;var x0=()=>{};import{execFile as LP}from"node:child_process";import{spawn as PP}from"cross-spawn";function DP($){if(!Number.isSafeInteger($)||$<=0)retur...
48 ${Y}${V}`));else Z()})})}async function M5($,Z,J={}){Z?.throwIfAborted();let Q=J.platform??process.platform,Y=J.timeoutMs??300000,V=J.t
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/lodestar.js View on unpkg · L18 Code excerpt · 3 lines 18 }
19 [DllImport ("winhttp.dll" , SetLastError = true )]
20 [return : MarshalAs (UnmanagedType.Bool)]
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
src/managed-skill-cleanup.cjs View on unpkg · L12 Code excerpt · 14 lines Install-time code directly mutates a foreign AI-agent control surface:
12 const targetRoots = roots ?? [
13 join (homedir (), '.codex' , 'skills' ),
14 join (homedir (), '.claude' , 'skills' ),
15 join (managedClaudePluginDir (), 'skills' ),
Write operation from scripts/postinstall.cjs:
22 } else {
node_modules/@xmldom/xmldom/lib/dom-parser.js View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
node_modules/@xmldom/xmldom/lib/dom-parser.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 26
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lodestar-version.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = dist/lodestar-version.js
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/mathjax-full/components/bin/makeAll View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/mathjax-full/components/bin/makeAll View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = node_modules/mathjax-full/components/bin/makeAll
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/mathjax-full/components/bin/pack View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/mathjax-full/components/bin/pack View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = node_modules/mathjax-full/components/bin/pack
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
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.
dist/lodestar-update.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = dist/lodestar-update.js
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
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.
dist/lodestar-agent.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = dist/lodestar-agent.js
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
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.
dist/lodestar-setup.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = dist/lodestar-agent.js
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/mathjax-full/components/bin/version View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/mathjax-full/components/bin/version View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = node_modules/mathjax-full/components/bin/version
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
similarity = 1.000
summary = normalized source hash matched finalized malicious source
2 findings
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Medium Wildcard dependency
Low Non install lifecycle scripts
`)}var UL,ML,OL,AL;var B5=R(()=>{UL=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions","-C","--inspect-port","--title","--icu-data-dir","...
23
fs.writeFileSync ('/dev/tty' , msg)
Foreign user/project scope from src/managed-sk[redacted]:
12 const targetRoots = roots ?? [
13 join (homedir (), '.codex' , 'skills' ),
14 join (homedir (), '.claude' , 'skills' ),
15 join (managedClaudePluginDir (), 'skills' ),
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/managed-skill-cleanup.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @leviyuan/lodestar@0.18.22
matchedPath = src/managed-sk[redacted]
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.18.22
similarity = 1.000
summary = normalized source hash matched finalized malicious source