Loading npm security reports…
Loading npm security reports…
@leviyuan/lodestar@0.21.7: npm security report – allowed | LPM Firewall
npm / @leviyuan/lodestar / 0.21.7
@leviyuan/lodestar@0.21.7 Lodestar (夜航星) — IM-native frontend for Codex, Claude Agent SDK and DeepSeek Harness via Feishu Card Kit
Allowed — no malicious behavior detected
31 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 18, 2026, 15:46 UTC · by lpm-firewall-ai Source inspection found no confirmed attack surface. The postinstall cleanup is scoped to a skill that identifies itself as lodestar-files, while the flagged runtime and dependency matches reflect ordinary helpers and bundled dependency code.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm runs the package postinstall hook.
Impact
No confirmed harmful effect or credential disclosure was established.
Mechanism
The hook calls cleanup for lodestar-files; the cleanup checks the skill frontmatter name before removal and preserves paths with unclear ownership.
Evidence
scripts/postinstall.cjs src/managed-skill-cleanup.cjs
Decision evidencepublic snapshot
Evidence for AI clean decision
package.json runs a postinstall cleanup script; it does not start the daemon or setup wizard. The cited setup and daemon helpers select GLM models for Claude configuration; they do not show credential forwarding. The version utility parses an HTTP proxy response, and the MathJax eval match resolves the ordinary Node require function. The postinstall cleanup removes only a skill whose frontmatter name matches lodestar-files; unclear ownership causes it to preserve the path. The required dependency files are bundled MathJax and XML DOM sources; the inspected excerpts provide no evidence of package attack behavior. 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.72 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 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 CL}from "node:module" ;var ML=Object.create;var {getPrototypeOf:UL,defineProperty:SZ,getOwnPropertyNames:OL}=Object;var NL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function nL($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
4 `),Q=gL(J[0]??""),Y=(J[1]??"").trim();if(Q===null)throw Error(` PID 文件格式坏: ${$}`);if(!Y)return cZ(Q)?{state:"exit",pid:Q}:{state:"continue"};return nL(Q,Y)?{state:"exit",pid:Q}:{sta...
5 ${IL ()}`)}var pL,cL,uL,lL;var uZ=R(()=>{pL=new Set(["-r","--require","--import","--loader","--experimental-loader","--conditions",
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 CL}from "node:module" ;var ML=Object.create;var {getPrototypeOf:UL,defineProperty:SZ,getOwnPropertyNames:OL}=Object;var NL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function nL($,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 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 · 2 findings · 6 lines 1 #!/usr/bin/env node
2 import {createRequire as CL}from "node:module" ;var ML=Object.create;var {getPrototypeOf:UL,defineProperty:SZ,getOwnPropertyNames:OL}=Object;var NL=Object.prototype.hasOwnProperty;func...
3 `).find((Q)=>Q.startsWith("n"))?.slice(1);if(J)return J}throw Error(` 无法确定 PID ${$} 的工作目录,不能核对相对 daemon 入口`)}function nL($,Z){if(!Number.isSafeInteger($)||$<=0||$>2147483647||!Z)ret...
4 `),Q=gL(J[0]??""),Y=(J[1]??"").trim();if(Q===null)throw Error(` PID 文件格式坏: ${$}`);if(!Y)return cZ(Q)?{state:"exit",pid:Q}:{state:"continue"};return nL(Q,Y)?{state:"exit",pid:Q}:{sta...
5
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 · L44 Code excerpt · 5 lines 44 }
45 `;OX=Vq()});import{Agent as Xq}from"node:http";import{Agent as zq}from"node:https";import{Readable as AX}from"node:stream";import Hq from"node-fetch";import{HttpProxyAgent as Gq}fr...
46 `;if(process.stderr.write(J),!aZ())return;try{let Q=wX(Z);if(CX!==Q)CX=Q,yX($0,Z);xX(vX(Z),J)}catch{}}var Mq=7,iZ="daemon-",nZ=".log",CX=null;var g=R(()=>{z0();if(aZ())try{Pq($0,{r...
47 `)}var kq=384,wq=448,vq=448;var x0=()=>{};import{execFile as fq}from"node:child_process";import{spawn as hq}from"cross-spawn";function gq($){if(!Number.isSafeInteger($)||$<=0)retur...
48 ${Y}${V}`));else Z()})})}async function rZ($,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 exfiltrationCleared
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 `;OX=Vq()});import{Agent as Xq}from"node:http";import{Agent as zq}from"node:https";import{Readable as AX}from"node:stream";import Hq from"node-fetch";import{HttpProxyAgent as Gq}fr...
46 `;if(process.stderr.write(J),!aZ())return;try{let Q=wX(Z);if(CX!==Q)CX=Q,yX($0,Z);xX(vX(Z),J)}catch{}}var Mq=7,iZ="daemon-",nZ=".log",CX=null;var g=R(()=>{z0();if(aZ())try{Pq($0,{r...
47 `)}var kq=384,wq=448,vq=448;var x0=()=>{};import{execFile as fq}from"node:child_process";import{spawn as hq}from"cross-spawn";function gq($){if(!Number.isSafeInteger($)||$<=0)retur...
48 ${Y}${V}`));else Z()})})}async function rZ($,Z,J={}){Z?.throwIfAborted();let Q=J.platform??process.platform,Y=J.timeoutMs??300000,V=J.t
Medium Dynamic requireCleared
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 hijackCleared
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 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.
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 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
Dynamic require
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
${IL ()}`)}var pL,cL,uL,lL;var uZ=R(()=>{pL=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 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