Loading npm security reports…
Loading npm security reports…
@nxuss/lemma@1.47.0: Credential exfiltration – blocked | LPM Firewall
npm / Credential exfiltration / @nxuss/lemma / 1.47.0 Local MCP server that gives coding agents a verifiable project memory, trims what enters their context, and masks secrets — with honest accounting of what it saves and costs.
Blocked & quarantined
The Anthropic credential is exposed to a different provider, which may enable unauthorized use of that key.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security reviewscanned on Nov 7, 2026, 18:15 UTC · by lpm-firewall-ai The proxy can send an Anthropic credential to OpenAI on a normal Anthropic request because its key-prefix check is broader than the OpenAI-only case described in its comment. This is concrete cross-provider credential disclosure, so the package should be blocked.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
A user sends an Anthropic request through the Lemma proxy with an ANTHROPIC_API_KEY beginning with sk-.
Mechanism
The proxy reads the Anthropic key, classifies any sk- key as an OpenAI key for non-OpenAI providers, then sends it in an Authorization Bearer header to api.openai.com.
Attack narrative
When handling a request, the proxy loads ANTHROPIC_API_KEY for the Anthropic provider. Its broad sk- prefix check also matches Anthropic keys, then routes the request to OpenAI and places the key in an Authorization Bearer header. This exposes the Anthropic credential to api.openai.com during ordinary proxy use.
Evidence
dist/esm/cli/lemma-proxy.js
Network endpoints2
api.openai.com /v1/chat/completionsapi.anthropic.com /v1/messages
Decision evidencepublic snapshot Evidence for block
The proxy handles an incoming provider request by calling callUpstream with that provider. For Anthropic requests, callUpstream reads ANTHROPIC_API_KEY. Any non-OpenAI provider key beginning with sk- enters the OpenAI multiplexing branch. That branch sends the key as a Bearer token to api.openai.com; the normal Anthropic destination is api.anthropic.com. Evidence against
The proxy’s default bind address is 127.0.0.1. The postinstall hook only installs the package’s own Muse skill when Muse is available; this is a separate warning-level lifecycle risk. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Telemetry · URL strings
Manifest No manifest risk signals triggered.
Scanned 536 files · 5.47 MB of source
21 external domains referenced
127.0.0.1 api.anthropic.com api.github.com api.lemma.dev api.openai.com api.resend.com api.stripe.com bit.ly dev.azure.com docs.subconscious-router.dev fb.me generativelanguage.googleapis.com github.com gitlab.com lemma.nxus.studio opencode.ai reactjs.org socket.io www.apple.com www.npmjs.com www.w3.org Findings21 high · 7 medium · 8 low Source & flagged code26 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/postinstall.js || true
High Child process
Package source references child process execution.
bin/postinstall.js View on unpkg · L14 Code excerpt · 2 lines 15 const { execSync, execFileSync } = require ('child_process' );
16 const fs = require ('fs' );
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/postinstall.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = bin/postinstall.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Shell
Package source references shell execution.
dist/esm/core/GhostListener.js View on unpkg · L20 Code excerpt · 3 lines 20 this .currentProcess = spawn (command, args, {
21 shell: true ,
22 stdio: ['inherit' , 'pipe' , 'pipe' ],
sdks/crewai/dist/crewai/src/memory.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
sdks/crewai/dist/crewai/src/memory.js View on unpkg · L15 Code excerpt · 3 lines 15 */
16 const index_1 = require ("../../ts/src/index" );
17 const STATE_SEVERITY = {
Medium Unsafe vm context
Package source executes code through a VM context API.
dist/esm/utils/WorkspaceSearch.js View on unpkg · L197 Code excerpt · 5 lines 197 continue ;
198 const content = buf.toString ("utf8" );
199 if (lineRe) {
200 const timeoutMs = Number (process.env.LEMMA_REGEX_TIMEOUT_MS) || DEFAULT_REGEX_FILE_TIMEOUT_MS;
201 const hits = matchingLineIndexes (lineRe, fileRe, content, timeoutMs, rel);
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/esm/proxy/ProjectStore.js View on unpkg · L4 Code excerpt · 12 lines 4 * Project-aware storage resolver:
5 * - Detects project identity from package.json → cwd basename fallback
6 * - Hashes project name to a 12 -char hex prefix for path safety
⋯
24 // ─── Constants ────────────────────────────────────────────────────────────────
25 const HOME = process.env.HOME || process.env.USERPROFILE || '~' ;
26 export const CACHE_DIR = path.join (HOME, '.lemma-cache' );
⋯
67 detectProjectName () {
68 const cwd = process. ();
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/init.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = bin/init.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
bin/init.js View on unpkg · L6 Code excerpt · 12 lines 6 const os = require ('os' );
7 const { execSync, execFileSync, spawn } = require ('child_process' );
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/esm/cli/lemma-proxy.js View on unpkg · L2361 Code excerpt · 9 lines 2361 if (BIND_HOST !== '127.0.0.1' && BIND_HOST !== 'localhost' ) {
2362 const authEnabled = process.env.AUTH_ENABLED === 'true' ;
2363 if (!authEnabled) {
⋯
2373 if (this .dashboardPath && fs.existsSync (this .dashboardPath)) {
2374 console.log (`📊 Dashboard UI : \x1b[36mhttp://localhost:${this.port}/dashboard/\x1b[0m` );
2375 if (this .openBrowser) {
2376 setTimeout (() => {
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
bin/doctor.js View on unpkg · L10 High Spawned bundled service listener
Source launches a detached bundled service that exposes a broad-bound HTTP listener.
bin/doctor.js View on unpkg · L10 Shared code excerpt · 2 findings · 12 lines Cross-file remote execution chain: bin/doctor.js spawns dist/cjs/embed/index.js; helper contains network access plus dynamic code execution.
10
11 const { execFileSync } = require ('child_process' );
12 const fs = require ('fs' );
⋯
17
18 function ok (msg) { process.stdout.write (` ${GREEN}✓${RESET} ${msg}\n` ); }
High Runtime package install
Package source invokes a package manager install command at runtime.
bin/lemma-call.js View on unpkg · L13 Code excerpt · 6 lines 13 * Also via npx:
14 * npx @nxuss/lemma call search_memory '{"query":"hello"}'
15 *
⋯
22 const path = require ('path' );
23 const { spawn } = require ('child_process' );
24
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/lemma-call.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
dist/esm/observability/IdeContextSync.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.
dist/esm/observability/IdeContextSync.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 1
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/cli.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.12.0
matchedPath = bin/cli.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.12.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.
dist/cjs/autopilot/Notifier.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = dist/cjs/autopilot/Notifier.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.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/cloud.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = bin/cloud.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.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.
dist/cjs/subconscious/TheBrainV2.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = [redacted].js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.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.
lemma-proxy.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = lemma-proxy.cjs
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.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.
dist/cjs/cloud/CloudConfig.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = dist/cjs/cloud/CloudConfig.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.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.
dist/cjs/proxy/ContextInjector.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.12.0
matchedPath = dist/cjs/proxy/ContextInjector.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.12.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.
dist/cjs/utils/LocalPrefilter.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.12.0
matchedPath = dist/cjs/utils/LocalPrefilter.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.12.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
bin/doctor.js
3 findings
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
cwd
69 const pkgPath = path.join (cwd, 'package.json' );
72 const pkg = JSON.parse (fs.readFileSync (pkgPath, 'utf8' ));
9 const LEMMA_CACHE = path.join (os.homedir (), '.lemma-cache' );
10 const BRAIN_FILE = path.join (LEMMA_CACHE, 'lemma_brain.json' );
24 function step (msg) { process.stderr.write (` ${CYAN}✦${RESET} ${msg}\n` ); }
45 let config = JSON.parse (fs.readFileSync (configFile, 'utf8' ));
46 if (!config.models) config.models = [];
47 const already = config.models.some (m => m.apiBase === `http://localhost:${PORT}` );
2377 const { exec } = require ('child_process' );
2378 const opener = process.platform === 'darwin' ? 'open' : (process.platform === 'win32' ? 'start' : 'xdg-open' );
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/esm/cli/lemma-proxy.js View on unpkg · L8 Code excerpt · 12 lines 8 import { ChromaClient } from 'chromadb' ;
9 import https from 'https' ;
10 import http from 'http' ;
⋯
15 const paths = [
16 path.join (__dirname, '../../package.json' ),
17 path.join (__dirname, '../../../package.json' ),
⋯
22 try {
23 const pkg = JSON.parse (fs.readFileSync (p, 'utf8' ));
24 if (pkg.version)
⋯
33 function ask (query) {
34 const rl = readline.createInterface ({ input: process.stdin, output: process.stdout });
35 return new Promise (resolve => rl.question (query, ans => { rl.close (); resolve (ans); }));
19 function warn (msg) { process.stdout.write (` ${YELLOW}!${RESET} ${msg}\n` ); }
34 if (process.platform === 'win32' ) return true ;
35 require ('child_process' ).execSync ('command -v muse' , { stdio: 'ignore' , timeout: 10000 });
50 async function main () {
51 const pkgRoot = path.join (__dirname, '..' );
52 const cwd = process.cwd ();
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/doctor.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = bin/doctor.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
matchedPackage = @nxuss/lemma@1.44.0
matchedPath = bin/lemma-call.js
matchedIdentity = npm:QG54dXNzL2xlbW1h:1.44.0
summary = normalized source hash matched finalized malicious source