Loading npm security reports…
Loading npm security reports…
@leviyuan/lodestar@0.21.27: npm security report – allowed | LPM Firewall
npm / @leviyuan/lodestar / 0.21.27
@leviyuan/lodestar@0.21.27 Lodestar (夜航星) — IM-native frontend for Codex, Claude Agent SDK and DeepSeek Harness via Feishu Card Kit
Allowed — no malicious behavior detected
33 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 4, 2026, 07:40 UTC · by lpm-firewall-ai The flagged credential and network behavior belongs to the package’s configurable AI-provider and relay features; the source shows relay keys sent to the configured relay address. The install hook’s file operations are local and limited to plugin-cache migration and cleanup of a skill whose ownership is checked.
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
Installation runs the postinstall hook; runtime network requests occur when the user configures and uses a relay or provider.
Impact
No unauthorized credential collection, external agent-control mutation, or unrelated execution was identified.
Mechanism
The hook migrates local Codex plugin caches and removes a skill only when its declared name matches the package-owned skill. Relay requests use the configured address and API key.
Evidence
scripts/postinstall.cjs src/codex-plugin-cache.cjs src/managed-skill-cleanup.cjs dist/lodestar.js
api.deepseek.com
cf.api.fan
www.packyapi.ai
Decision evidencepublic snapshot Evidence for AI clean decision
The postinstall hook is limited to local plugin migration and skill cleanup; it says it does not read credentials or start subprocesses. Documentation describes relay credentials and addresses as user-configured settings. Relay model discovery sends the configured API key to the configured relay address. Skill cleanup checks that the skill declares the package-owned name before removing it. Evidence against
The package has a postinstall hook that performs local filesystem migration and cleanup. The daemon supports API calls to configured relay and model-provider endpoints. 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 12 files · 2.84 MB of source
14 external domains referenced
127.0.0.1 api.anthropic.com api.deepseek.com api.z.ai cf.api.fan example.invalid github.com open.bigmodel.cn open.feishu.cn openrouter.ai registry.npmjs.org www.aicost.me www.packyapi.ai www.w3.org Findings4 critical · 18 high · 6 medium · 5 low Source & flagged code24 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Install time lifecycle scriptsCleared
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle scriptCleared
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 exfiltrationCleared
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 FF}from "node:module" ;var WF=Object.create;var {getPrototypeOf:KF,defineProperty:p5,getOwnPropertyNames:BF}=Object;var jF=Object.prototype.hasOwnProperty;func...
3 `).find((Y)=>Y.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function hF($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
⋯
5 ${EF ()}`)}var kF,wF,vF,fF;var XJ=A(()=>{kF=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions","-C","--inspect-port","--title","--icu-data-dir","...
6 `;if(process.stderr.write(J),!HJ())return;try{let Y=VG(Z);if(ZG!==Y)ZG=Y,zG(Q0,Z);JG(XG(Z),J)}catch{}}var uF=7,zJ="daemon-",GJ
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/lodestar.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @leviyuan/lodestar@0.21.26
matchedIdentity = npm:QGxldml5dWFuL2xvZGVzdGFy:0.21.26
similarity = 0.983
summary = stored previous version shares package body but lacks this dangerous source file
High Child processCleared
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 FF}from "node:module" ;var WF=Object.create;var {getPrototypeOf:KF,defineProperty:p5,getOwnPropertyNames:BF}=Object;var jF=Object.prototype.hasOwnProperty;func...
3 `).find((Y)=>Y.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function hF($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
High Same file environment network executionCleared
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 Command output exfiltrationCleared
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/lodestar.js View on unpkg · L1 High Sandbox evasion gated capabilityCleared
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 · 3 findings · 6 lines 1 #!/usr/bin/env node
2 import {createRequire as FF}from "node:module" ;var WF=Object.create;var {getPrototypeOf:KF,defineProperty:p5,getOwnPropertyNames:BF}=Object;var jF=Object.prototype.hasOwnProperty;func...
3 `).find((Y)=>Y.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function hF($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
High Credential redirect persistenceCleared
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/lodestar.js View on unpkg Scanner record · 4 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/lodestar.jsimport{createRequire as FF}from"node:module";var WF=Object.create;var{getPrototypeOf:KF,defineProperty:p5,getOwnPropertyNames:BF}=Object;var jF=Object.prototype.hasOwnProperty;func...
`;PG=HU()});import{Agent as WU}from"node:http";import{Agent as KU}from"node:https";import{Readable as qG}from"node:stream";import BU from"node-fetch";import{HttpProxyAgent as jU}fr...
${H}`));else L()}),Z?.aborted)D()})}var fU="https://registry.npmjs.org",D7;var _J=A(()=>{D7=class D7 extends Error{}});import{createHash as IU,randomUUID as hU}from"node:crypto";im...
`,{mode:384}),await(Z.install??PJ)(V,Z.signal),await EG(V,H),Z.signal?.th
High External AI agent control surface mutationCleared
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/lodestar.js View on unpkg Scanner record · 2 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
cess.env.lodestar_data_dir;if(process.env.xdg_data_home)return y4(process.env.xdg_data_home,"lodestar");if(process.platform==="win32")return y4(process.env.localappdata??y4(gz(),"appdata","local"),"lodestar");return y4(gz(),".local","share","lodestar")}function uf(){return y4(u5(),"managed-claude-plugin")}function df(){return y4(u5(),"codex-accounts")}mz.exports={lodestardatadir:u5,managedclaudeplugindir:uf,codexaccountsdir:df}});import{homedir as of}from"node:os";import{join as j0}from"node:path";function af($,z,j){if($)return $;if(z)return j0(z,"lodestar");return j}function tf(){if(nf)return j0(process.env.appdata??j0(d5,"appdata","roaming"),"lodestar");return j0(d5,".config","lodestar")}var i4,d5,
High Trigger reachable command output exfiltrationCleared
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/lodestar.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/lodestar.js
1 #!/usr/bin/env node
2 import {createRequire as FF}from "node:module" ;var WF=Object.create;var {getPrototypeOf:KF,defineProperty:p5,getOwnPropertyNames:BF}=Object;var jF=Object.prototype.hasOwnProperty;func...
3 `).find((Y)=>Y.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function hF($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
⋯
5 ${EF ()}`)}var kF,wF,vF,fF;var XJ=A(()=>{kF=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions","-C","--inspect-port","--title","--icu-data-dir","...
6 `;if(process.stderr.write(J),!HJ())return;try{let Y=VG(Z);if(ZG!==Y)ZG=Y,zG(Q0,Z);JG(XG(Z),J)}catch{}}var uF=7,zJ="dae
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/lodestar.js View on unpkg · L19 Code excerpt · 3 lines 19 }
20 [DllImport ("winhttp.dll" , SetLastError = true )]
21 [return : MarshalAs (UnmanagedType.Bool)]
Critical AI agent control hijackCleared
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
src/codex-plugin-cache.cjs View on unpkg · L22 Code excerpt · 18 lines Install-time code directly mutates a foreign AI-agent control surface:
67 const candidate = join (home, `${LOCK}.${randomUUID()}` )
68 fs.writeFileSync (candidate, JSON.stringify ({ pid: process.pid }), { flag: 'wx' , mode: 0o600 })
69 try {
⋯
111 } else if (info.isDirectory ()) {
112 fs.mkdirSync (target, { mode: 0o700 })
113 for (const child of fs. (source)) ( (source, child), (target, child), sourceRoot, targetRoot, finalRoot)
node_modules/@xmldom/xmldom/lib/dom-parser.js View file High Semantic analysis limitedCleared
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 similarityCleared
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 similarityCleared
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 similarityCleared
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 similarityCleared
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
High Known malware source similarityCleared
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 similarityCleared
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 similarityCleared
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
Sandbox evasion gated capability
Code↓ Cleared
Package metadata 9 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Medium Wildcard dependency Cleared
Low Non install lifecycle scripts Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
5 ${EF ()}`)}var kF,wF,vF,fF;var XJ=A(()=>{kF=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions","-C","--inspect-port","--title","--icu-data-dir","...
6 `;if(process.stderr.write(J),!HJ())return;try{let Y=VG(Z);if(ZG!==Y)ZG=Y,zG(Q0,Z);JG(XG(Z),J)}catch{}}var uF=7,zJ="daemon-",GJ=".log",ZG=null,GG,nF,aF,p4,sF=600000,oF=256;var d=A((...
readdirSync
copyTree
join
join
114 } else if (info.isFile ()) {
115 fs.copyFileSync (source, target, fs.constants.COPYFILE_EXCL)
142 fs.mkdirSync (plugins, { mode: 0o700 })
Write operation from scripts/postinstall.cjs:
23 fs.writeFileSync ('/dev/tty' , msg)
Foreign user/project scope fr