Loading npm security reports…
Loading npm security reports…
shieldcortex@4.47.6: Agent extension lifecycle risk – flagged | LPM Firewall
npm / shieldcortex / 4.47.6 Trustworthy memory and security for AI agents. Recall debugging, review queue, OpenClaw session capture, and memory poisoning defence for Claude Code, Codex, OpenClaw, LangChain, and MCP agents.
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Nov 11, 2026, 19:43 UTC · by lpm-firewall-ai The postinstall hook can update ShieldCortex's own OpenClaw integration without a separate user command when a global install detects an existing integration. This warrants a warning as automatic install-time setup of the package's own agent extension; the reviewed paths do not establish unrelated payload delivery or data theft.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
Global, non-CI package installation with OpenClaw and its ShieldCortex hook or plugin detected; the refresh can be skipped with SHIELDCORTEX_SKIP_AUTO_OPENCLAW=1.
Impact
Agent-loaded integration files can change during package installation without a separate setup command; the behavior is limited to this package's own extension.
Mechanism
The postinstall script invokes the package's OpenClaw installer, which copies the ShieldCortex hook and plugin into OpenClaw's extension locations.
Evidence
package.json scripts/postinstall.mjs dist/setup/openclaw.js ~/.openclaw/extensions/shieldcortex-realtime/ OpenClaw hook directories detected by the installer
public snapshot
Evidence for warning
package.json runs scripts/postinstall.mjs during installation. The postinstall refresh path runs for a global, non-CI install when OpenClaw is detected, unless SHIELDCORTEX_SKIP_AUTO_OPENCLAW=1 is set. When an existing OpenClaw hook is detected, postinstall runs the OpenClaw install command to refresh the package's hook and plugin. The plugin installer copies ShieldCortex plugin files into OpenClaw's extensions directory. Evidence against
The automatic refresh is limited to detected existing OpenClaw installations and skips Docker environments. Cloud sync is disabled by default unless cloudEnabled is configured. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 285 files · 2.44 MB of source
8 external domains referenced
127.0.0.1 api.shieldcortex.ai blocked.invalid github.com json.schemastore.org registry.npmjs.org shieldcortex.ai www.apple.com Findings24 high · 6 medium · 6 low Source & flagged code28 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.mjs
High AI reviewer manipulation
Package text addresses the security reviewer or scanner and tries to influence the review outcome.
README.md View on unpkg Scanner record · 1 line shieldcortex scan "ignore previous instructions"
High Child process
Package source references child process execution.
dist/database/init.js View on unpkg · L8 Code excerpt · 3 lines 8 import { fileURLToPath } from 'url' ;
9 import { execSync } from 'child_process' ;
10 import { runMigrations } from './migrations.js' ;
Code excerpt · 3 lines 53 stdio: ['pipe' , 'inherit' , 'inherit' ],
54 shell: true ,
55 });
dist/database/better-sqlite3-guard.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dist/database/better-sqlite3-guard.js View on unpkg · L18 Code excerpt · 3 lines 18 import { createRequire } from 'module' ;
19 const require = createRequire (import .meta.url);
20 /**
hooks/openclaw/cortex-memory/handler.ts View file Low Weak crypto
Package source references weak cryptographic algorithms.
hooks/openclaw/cortex-memory/handler.ts View on unpkg · L53 Code excerpt · 5 lines 54 const NOVELTY_CACHE_FILE = path.join (homedir (), ".shieldcortex" , "openclaw-memory-cache.json" );
55 const DEFAULT_NOVELTY_THRESHOLD = 0.88 ;
⋯
117 try {
118 const raw = JSON.parse (await fs.readFile (NOVELTY_CACHE_FILE, "utf-8" ));
119 if (!Array.isArray (raw)) return [];
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/setup/deep-clean.js View on unpkg · L19 Code excerpt · 12 lines 19 import os from 'os' ;
20 import { execSync } from 'child_process' ;
21 const PLUGIN_ID = 'shieldcortex-realtime' ;
⋯
27 function resolveHome () {
28 const sudoUser = process.env.SUDO_USER;
29 if (sudoUser) {
⋯
42 }
43 return os.homedir ();
44 }
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/index.js View on unpkg · L346 Code excerpt · 9 lines 346 ║ Starting Next.js dashboard... ║
347 ║ Dashboard: http://localhost:3030 ║
348 ║ API: http://localhost:3001 ║
⋯
358 if (useStandalone && dashboardPath) {
359 return spawn (process.execPath, ['server.js' ], {
360 cwd: dashboardPath.cwd,
361 stdio: ['ignore' , 'pipe' , 'pipe' ],
362 env: { ...process.env, PORT: '3030' , HOSTNAME: '0.0.0.0' },
dashboard/.next/standalone/dashboard/node_modules/next/dist/compiled/edge-runtime/index.js View file High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dashboard/.next/standalone/dashboard/node_modules/next/dist/compiled/edge-runtime/index.js View on unpkg · L1 Code excerpt · 1 line 1 (()=>{var __webpack_modules__={462 :e=>{e.exports='"use strict";var c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,S=Object.prototype.hasOwnP...
High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/setup/uninstall.js View on unpkg Scanner record · 21 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
function blockagentuninstall() {
if (isagentcontext()) {
console.error('\n[shieldcortex] blocked: uninstall attempted from agent context.');
console.error('sub-agents cannot uninstall shieldcortex.');
console.error('only human operators can uninstall via interactive tty.\n');
return true;
}
return false;
}
export async function requireconfirmation(action) {
High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/setup/openclaw.js View on unpkg Scanner record · 25 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
join('/home', username);
try {
if (!fs.statsync(userhome).isdirectory())
continue;
}
catch {
continue;
}
if (fs.existssync(path.join(userhome, '.openclaw')) ||
fs.existssync(path.join(userhome, '.claude'))) {
return userhome;
}
}
}
catch {
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/service/install.js View on unpkg · L11 Code excerpt · 12 lines Trigger-reachable persistence chain: scripts.start -> dist/index.js -> dist/service/install.js
11 import os from 'os' ;
12 import { execSync } from 'child_process' ;
13 import { fileURLToPath } from 'url' ;
⋯
15 const __filename = fileURLToPath (import .meta.url);
16 const __dirname = path.dirname (__filename);
17 function detectPlatform () {
18
dashboard/.next/standalone/dashboard/.next/server/app/apple-icon.png.body View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
dashboard/.next/standalone/dashboard/.next/server/app/apple-icon.png.body View on unpkg Scanner record · 4 lines path = dashboard/.next/standalone/dashboard/.next/server/app/apple-icon.png.body
kind = high_entropy_blob
sizeBytes = 26212
magicHex = [redacted]
High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
dashboard/.next/standalone/dashboard/.next/server/app/apple-icon.png.body View on unpkg Scanner record · 4 lines path = dashboard/.next/standalone/dashboard/.next/server/app/apple-icon.png.body
kind = payload_in_excluded_dir
sizeBytes = 26212
dashboard/.next/standalone/dashboard/node_modules/next/dist/compiled/commander/index.js#virtual:string-array:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/compiled/commander/index.js#virtual:string-array:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 2
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/utils.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/utils.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules/next/dist/build/utils.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/defence/skill-scanner/scan-skill.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/defence/skill-scanner/scan-skill.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dist/defence/skill-scanner/scan-skill.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
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.
scripts/postinstall.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = scripts/postinstall.mjs
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dashboard/.next/standalone/dashboard/node_modules/@next/env/dist/index.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/@next/env/dist/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules/@next/env/dist/index.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/analyze/index.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/analyze/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules/next/dist/build/analyze/index.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/babel/loader/get-config.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/babel/loader/get-config.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules[redacted]-config.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/index.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules/next/dist/build/index.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/next-config-ts/transpile-config.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dashboard/.next/standalone/dashboard/node_modules/next/dist/build/next-config-ts/transpile-config.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dashboard/.next/standalone/dashboard/node_modules/next/dist/build/next-config-ts/transpile-config.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
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/api/routes/xray.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@5.0.1
matchedPath = dist/api/routes/xray.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:5.0.1
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/audit/dependency-scanner.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dist/audit/dependency-scanner.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
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/cli/update.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dist/cli/update.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Command output exfiltration Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
49 const parsed = JSON.parse (fs.readFileSync (file, 'utf-8' ));
50 return typeof parsed === 'object' && parsed !== null
363
});
if (process.argv.includes('--confirm')) {
switch (process.platform) {
19 case 'darwin' : return 'macos' ;
24 function detectDefaultServiceMode (platform) {
25 if (platform === 'linux' && !process.env.DISPLAY && !process.env.WAYLAND_DISPLAY) {
43 // If that absolute path no longer exists, systemd will fail to open it
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/service/install.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = shieldcortex@4.45.2
matchedPath = dist/service/install.js
matchedIdentity = npm:c2hpZWxkY29ydGV4:4.45.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source