Loading npm security reports…
Loading npm security reports…
pantheon-opencode@2.1.4: Agent extension lifecycle risk – flagged | LPM Firewall
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Nov 14, 2026, 18:02 UTC · by lpm-firewall-ai The postinstall hook automatically refreshes Pantheon's own instructions, skills and runtime files in an existing OpenCode configuration. This is a warning-level agent extension lifecycle risk; the reviewed flow showed no unrelated collection or attack behavior.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
npm install or update, when the postinstall script runs and an OpenCode config directory exists.
Impact
Package-owned agent guidance and runtime behavior can change during package installation without a separate init command.
Mechanism
The postinstall sync copies or updates this package's agents, skills, AGENTS.md, commands, MCP scripts and code-mode files in the user's OpenCode config.
Evidence
package.json scripts/sync-tui.mjs scripts/sync-artifacts.mjs ~/.config/opencode/agents/ ~/.config/opencode/routing.yml ~/.config/opencode/AGENTS.md ~/.config/opencode/commands/ ~/.config/opencode/scripts/ ~/.config/opencode/.pantheon/code-mode/ ~/.opencode/agents/
~/.opencode/routing.yml
~/.opencode/AGENTS.md
~/.opencode/commands/
~/.opencode/scripts/
~/.opencode/.pantheon/code-mode/
Decision evidencepublic snapshot Evidence for warning
The package postinstall script runs scripts/sync-tui.mjs automatically. When an OpenCode config already exists, the postinstall sync refreshes the package's copied agents, skills, instructions, commands, MCP scripts and code-mode files. The sync writes the package's global AGENTS.md instructions into the OpenCode config directory. The sync also copies package MCP scripts and code-mode runtime files into that directory. Evidence against
The sync exits when no OpenCode config directory exists. The files written are this package's own extension artifacts; the source says user content outside its managed AGENTS.md region is preserved. No unrelated data collection or network endpoint was identified in the reviewed install flow. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 219 files · 3.76 MB of source
10 external domains referenced
api.githubcopilot.com api.openai.com api.typesafe.ai github.com mcp.grep.app models.dev nodejs.org opencode.ai registry.npmjs.org www.python.org Findings21 high · 6 medium · 5 low Source & flagged code24 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 && node scripts/sync-tui.mjs
High Child process
Package source references child process execution.
bin/pantheon-init.mjs View on unpkg · L166 Code excerpt · 3 lines 166 if (command === 'prune' ) {
167 const { spawnSync } = await import ('node:child_process' )
168 const pruneScript = path.join (ROOT, 'scripts' , 'prune.mjs' )
Code excerpt · 3 lines 288 cwd,
289 shell: true ,
290 encoding: 'utf8' ,
Medium Dynamic require
Package source references dynamic require/import behavior.
scripts/vision-status.mjs View on unpkg · L38 Code excerpt · 2 lines 39 const require = createRequire (import .meta.url)
40
High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
scripts/install/agents-md.mjs View on unpkg Scanner record · 30 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
ble = generateagentstable(agents)
const sections = [
title,
'',
`this project uses the pantheon multi-agent framework with ${agentcount} specialized agents.`,
'',
'## available agents',
'',
agenttable,
]
if (extrasections) {
sections.push('', extrasections.trimend())
}
sections.push(
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.
scripts/install/opencode.mjs View on unpkg Scanner record · 19 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
if (componentset.has('agents')) {
section('agents')
const srcdir = join(root, 'src', 'agents')
if (!sourcedirvalid(srcdir)) {
warning(`agent source directory not found: ${srcdir}`)
stats.errors++
} else {
const agentstep = step(s.installingagents)
const dstdir = join(target, agentprefix)
assertpathwithin(target, dstdir)
assertnosymlinkancestors(dstdir)
if (!dryrun) {
mkdirsync(dstdir, { recursive: true })
assertnosymlinkancestors(dstdir)
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
scripts/build-plugin.mjs View on unpkg · L9 Code excerpt · 6 lines Cross-file remote execution chain: scripts/build-plugin.mjs spawns src/plugin/index.js; helper contains network access plus dynamic code execution.
9
10 import { execFileSync } from 'node:child_process'
11 import { existsSync } from 'node:fs'
⋯
14
15 const __dirname = dirname (fileURLToPath (import .meta.url))
16 const root = join (__dirname, '..' )
High Runtime package install
Package source invokes a package manager install command at runtime.
scripts/install-mcp.mjs View on unpkg · L119 Code excerpt · 3 lines 119 try {
120 execSync ('npx --yes @upstash/context7-mcp --help 2>&1' , {
121 stdio: 'pipe' ,
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/install-mcp.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/install-mcp.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
similarity = 1.000
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/test-opencode-sandbox.sh View on unpkg Scanner record · 4 lines path = scripts/test-opencode-sandbox.sh
kind = build_helper
sizeBytes = 78454
magicHex = [redacted]
.pantheon/code-mode/compress-inline.py View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
.pantheon/code-mode/compress-inline.py View on unpkg Scanner record · 4 lines path = .pantheon/code-mode/compress-inline.py
kind = payload_in_excluded_dir
sizeBytes = 17142
magicHex = [redacted]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
scripts/manifest-inventory.mjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 3
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/versioning.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/versioning.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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.
src/plugins/tui/dist/tui.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = src/plugins/tui/dist/tui.js
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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.
src/plugins/tui/src/index.tsx View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = src/plugins/tui/src/index.tsx
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
src/plugins/tui/src/pantheon-settings.tsx View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/plugins/tui/src/pantheon-settings.tsx View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = src/plugins/tui/src/pantheon-settings.tsx
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/decision-router-budget.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/decision-router-budget.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/install/shared.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/install/shared.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/optimize.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/optimize.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/package-evidence.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/package-evidence.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/prune.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/prune.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
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/redaction-gate.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.1.3
matchedPath = scripts/redaction-gate.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.1.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Cross file remote execution context Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
'- build: `npm run build`',
'- focused test: run the smallest relevant check for the changed behavior',
'- full suite: `npm test` (ci/release gates or broad/high-risk changes)',
'- lint: `npm run lint`',
'- tdd: write failing test first, then implement',
'- coverage minimum: 80%',
}
if (clean && existssync(dstdir)) {
assertnosymlinkancestors(dstdir)
const existing = readdirsync(dstdir)
for (const f of existing) {
summary = normalized source hash matched finalized malicious source