Loading npm security reports…
Loading npm security reports…
@kl-c/matrixos: AI-agent control-surface risk | LPM Firewall
npm / AI-agent control-surface risk / @kl-c/matrixos MaTrixOS — Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.
This report shows the evidence for @kl-c/matrixos@0.3.65 . 14 of 21 known versions are blocked or flagged. The newest version, 0.3.81, is flagged.
Soft block: AI-agent control surface
Warn by default; block when configured. Subsequent OpenCode sessions can load package-authored instructions under generic command names, including commands directing repository and release actions.
AI security reviewscanned on Jul 26, 2026, 10:52 UTC · by lpm-firewall-ai The lifecycle hook establishes persistent, package-controlled global agent commands without an explicit user command. This meets the install-time AI-agent control-hijack blocking boundary.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm installation executes the postinstall lifecycle hook.
Impact
Subsequent OpenCode sessions can load package-authored instructions under generic command names, including commands directing repository and release actions.
Mechanism
global OpenCode command injection via postinstall
Policy narrative
On install, postinstall.mjs copies bundled Markdown commands into the global OpenCode command directory with overwrite enabled, then clears OpenCode caches. The injected commands are interpreted as agent instructions; for example, publish.md directs Git/GitHub release actions and remove-deadcode.md directs parallel code-removal workflows. This is unconsented install-time mutation of a broad AI-agent control surface.
Evidence
package.json postinstall.mjs .agents/command/publish.md .agents/command/remove-deadcode.md .opencode/command/*.md .agents/command/*.md
~/.config/opencode/command/*.md
~/.cache/opencode
~/.cache/opencode/packages
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 96.0% confidence with low false-positive risk.
Evidence for policy risk
package.json runs postinstall.mjs on npm install. postinstall.mjs copies bundled .md files into ~/.config/opencode/command automatically. Copies overwrite same-named user-level commands with force:true. postinstall.mjs clears OpenCode package caches. .agents/command/publish.md directs an agent to run git/GitHub publishing workflows. Evidence against
postinstall.mjs contains no network or credential-exfiltration logic. CLI child-process use is user-invoked runtime behavior. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Telemetry · URL strings
Manifest No license
Scanned 211 files · 3.12 MB of source
13 external domains referenced
127.0.0.1 api.github.com biomejs.dev bun.sh clangd.llvm.org clojure-lsp.io deno.land github.com gleam.run primeradiant.com registry.npmjs.org sentry.io us.i.posthog.com Oversized source lightweight scan
dist/cli/index.js 5.80 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Shell High entropy strings Telemetry URL strings 127.0.0.1 api.github.com github.com registry.npmjs.org
dist/cli-node/index.js 6.32 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Shell High entropy strings Telemetry URL strings 127.0.0.1 github.com registry.npmjs.org
dist/index.js 26.7 MB file, sampled 256 KB
Filesystem Network Child process Environment variables
Findings4 critical · 11 high · 8 medium · 8 low Source & flagged code21 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 postinstall.mjs
High Child process
Package source references child process execution.
bin/oh-my-opencode.js View on unpkg · L4 Code excerpt · 2 lines 5 import { spawnSync } from "node:child_process" ;
6 import { existsSync, readFileSync } from "node:fs" ;
Medium Dynamic require
Package source references dynamic require/import behavior.
bin/oh-my-opencode.js View on unpkg · L16 Code excerpt · 2 lines 17 const require = createRequire (import .meta.url);
18
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/tui.js View on unpkg · L681 Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/tui.js View on unpkg · L681 High Obfuscated payload loader
Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
dist/tui.js View on unpkg · L681 Shared code excerpt · 3 findings · 12 lines 681 for (;index < max; index++) {
682 if (!isHexCode (data.charCodeAt (index)))
683 return false ;
⋯
4234 const osProvider = options.osProvider ?? os;
dist/skills/superpowers-brainstorming/scripts/server.cjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/skills/superpowers-brainstorming/scripts/server.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @kl-c/matrixos@0.3.53
matchedPath = dist/cli/skills/superpowers-brainstorming/scripts/server.cjs
matchedIdentity = npm:QGtsLWMvbWF0cml4b3M:0.3.53
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/skills/superpowers-brainstorming/scripts/server.cjs View on unpkg · L1 Code excerpt · 12 lines 1 const crypto = require ( );
Critical Encrypted payload temp execution
Source decrypts an embedded payload, writes it to disk, and executes it through a child process.
dist/cli-node/index.js View on unpkg Scanner record · 1 line context = *: Use \`getAISnapshot()\` to discover elements and \`selectSnapshotRef()\` to interact with them\n- **Visual feedback**: Take screenshots to see what the user sees\n\n## Setup\n\n**IMPORTANT**: Before using this skill, ensure the server is running. See [references/installation.md](references/installation.md) for platform-specific setup instructions (macOS, Linux, Windows).\n\nTwo modes available. Ask the user if unclear which to use.\n\n### Standalone Mode (Default)\n\nLaunches a new Chromium browser for fresh automation sessions.\n\n**macOS/Linux:**\n\`\`\`bash\n./skills/dev-browser/server.sh &\n\`\`\`\n\n**Windows (PowerShell):**\n\`\`\`powershell\nStart-Process -NoNewWindow -FilePath "node" -ArgumentList "skills/dev-browser/server.js"\n\`\`\`\n\nAdd \`--headless\` flag if use
Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
dist/cli-node/index.js View on unpkg Scanner record · 4 lines path = dist/cli-node/index.js
kind = oversized_source_file
sizeBytes = 6627422
magicHex = [redacted]
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
postinstall.mjs View on unpkg · L1 Code excerpt · 15 lines Install-time AI-agent control hijack evidence:
3
4 import { readdirSync, rmSync, cpSync, mkdirSync, existsSync } from "node:fs" ;
5 import { createRequire } from "node:module" ;
⋯
19 * so OpenCode discovers them at startup. OpenCode scans
20 * `~/.config/opencode/command/*.md` (user-level) and `.opencode/command/*.md`
21 * (project-level), but NOT package internals under node_modules. Without this
⋯
28 const commandSources = [
29 join (__dirname, , ),
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
dist/cli/skills/ast-grep/install.sh View on unpkg Scanner record · 4 lines path = dist/cli/skills/ast-grep/install.sh
kind = build_helper
sizeBytes = 7581
magicHex = [redacted]
dist/cli/skills/ast-grep/tests/smoke.ps1 View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
dist/cli/skills/ast-grep/tests/smoke.ps1 View on unpkg Scanner record · 4 lines path = dist/cli/skills/ast-grep/tests/smoke.ps1
kind = payload_in_excluded_dir
sizeBytes = 5701
magicHex = [redacted]
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/matrixos.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @kl-c/matrixos@0.3.53
matchedPath = bin/matrixos.js
matchedIdentity = npm:QGtsLWMvbWF0cml4b3M:0.3.53
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/cli/skills/superpowers-brainstorming/scripts/server.cjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/cli/skills/superpowers-brainstorming/scripts/server.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @kl-c/matrixos@0.3.53
matchedPath = dist/cli/skills/superpowers-brainstorming/scripts/server.cjs
matchedIdentity = npm:QGtsLWMvbWF0cml4b3M:0.3.53
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.
packages/lsp-daemon/dist/cli.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @kl-c/matrixos@0.3.53
matchedPath = packages/lsp-daemon/dist/cli.js
matchedIdentity = npm:QGtsLWMvbWF0cml4b3M:0.3.53
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.
packages/lsp-daemon/dist/client.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @kl-c/matrixos@0.3.53
matchedPath = packages/lsp-daemon/dist/client.js
matchedIdentity = npm:QGtsLWMvbWF0cml4b3M:0.3.53
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Versions21 known versions Version Verdict Type Firewall Report Released
0.3.81 latest Suspicious Agent extension lifecycle risk Warn Published Aug 1, 2026 0.3.80 Suspicious Agent extension lifecycle risk Warn Published Jul 29, 2026 0.3.65 Malicious Soft block: AI-agent control surface Block Published Jul 26, 2026 0.3.53 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.52 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.51 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.50 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.48 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.46 Suspicious Agent extension lifecycle risk Warn Published Jul 25, 2026 0.3.44 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.43 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.3.42 Malicious Soft block: AI-agent control surface Block Published Jul 25, 2026 0.1.26 Malicious Soft block: AI-agent control surface Block Published Jul 20, 2026 0.1.24 Malicious Soft block: AI-agent control surface Block Published Jul 20, 2026 0.1.21 Malicious Soft block: AI-agent control surface Block Published Jul 20, 2026 0.1.19 Malicious Soft block: AI-agent control surface Block Published Jul 20, 2026 0.1.15 Malicious Soft block: AI-agent control surface Block Published Jul 20, 2026 0.1.11 Suspicious Destructive action Warn Published Jul 20, 2026 0.1.10 Clean — Allow Published Jul 20, 2026 0.1.2 Clean — Allow Published Jul 19, 2026 0.1.0 Clean — Allow Published Jul 19, 2026 Show 11 more versions Show fewer versions
AI assessment confidence 96%
Certainty of the verdict, not severity.
Verdict details False-positive risk, Review stage, Firewall policy This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.
Package metadata npm Author KL-Consulting
Version 0.3.65
Published Jul 26, 2026
License SEE LICENSE IN LICENSE.md
Dependencies 27
Integrity verified
Package size 11.6 MB
Files 2,808
Keywords opencode plugin agentic-os agents ai llm matrixos
Runtime surface package.json Entrypoints main → ./dist/index.js types → dist/index.d.ts exports map bin → matrixos
Runtime No engine / OS / CPU constraints
Artifact 52.4 MB unpacked · 2,808 files 1 signature
Install lifecycle postinstall prepare prepublishOnly
On this report AI security review Decision evidence Findings31 Flagged code21 Remediation Versions Crypto
Shell
High entropy strings
Telemetry
URL strings
sentry.io
us.i.posthog.com
dist/tui.js 3.62 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Crypto High entropy strings
Code↓
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
4235
const env = options.env ?? process.env;
4236 const preferredDir = env.XDG_DATA_HOME ?? path.join (osProvider.homedir (), ".local" , "share" );
4237 return resolveWritableDirectory (preferredDir, `${appName}-data` , osProvider);
4519 import { execFile } from "child_process" ;
4520 import { promisify } from "util" ;
6322 error: new (_Err ?? $ZodError)(result.issues.map ((iss) => finalizeIssue (iss, ctx, config ())))
6323 } : { success: true , data: result.value };
Code excerpt · 3 lines 63414 this .args = manager.shardArgs ?? [];
63415 this .execArgv = manager.execArgv;
63416 this .env = Object.assign ({}, process3.env, {
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/tui.js View on unpkg · L4518 Code excerpt · 6 lines 4518 // [redacted].ts
4519 import { execFile } from "child_process" ;
4520 import { promisify } from "util" ;
⋯
117943 return url2;
117944 }, getUrl = ({ baseUrl, path: path4, query, querySerializer, url: _url2 }) => {
117945 const pathUrl = _url2.startsWith ("/" ) ? _url2 : `/${_url2}` ;
'crypto'
2 const http = require ('http' );
3 const fs = require ('fs' );
12 function computeAcceptKey (clientKey) {
13 return crypto.createHash ('sha1' ).update (clientKey + WS_MAGIC).digest ('base64' );
85 const PORT_FILE = process.env.BRAINSTORM_PORT_FILE || null ;
86 const randomPort = () => 49152 + Math.floor (Math.random () * 16383 );
195 try { sessionStorage.setItem ('brainstorm-session-key' , ${jsonKey}); } catch (e) {}
196 location.replace ('/' );
Medium Oversized CLI entrypoint
Package contains an oversized executable-looking CLI entrypoint.
dist/cli-node/index.js View on unpkg Scanner record · 4 lines path = dist/cli-node/index.js
kind = oversized_cli_entrypoint
sizeBytes = 6627422
magicHex = [redacted]
".opencode"
"command"
30 join (__dirname, ".agents" , "command" ),
35 if (!existsSync (sourceDir)) continue ;
36 mkdirSync (targetDir, { recursive: true });
37 for (const entry of readdirSync (sourceDir, { withFileTypes: true })) {
Payload evidence from dist/features/builtin-skills/skills/playwright-mcp-skill.d.ts: