Loading npm security reports…
Loading npm security reports…
@agentprojectcontext/apx@1.127.0: Agent extension lifecycle risk | 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 Oct 26, 2026, 02:53 UTC · by lpm-firewall-ai The automatic lifecycle hook updates global agent skills and refreshes one from mutable upstream content, creating a concrete agent extension lifecycle risk. The inspected credential paths serve configured transcription providers and the local APX daemon; no independent malicious behavior was established.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall during package installation or update.
Impact
Agent context can change globally without a separate skill-install command or install-time consent.
Mechanism
The hook refreshes the APC skill from a mutable upstream branch, then writes bundled skills to global agent skill directories, replacing changed files and pruning retired APX skills.
Evidence
package.json src/interfaces/cli/postinstall.js src/core/apc/skill-sync.js src/core/apc/scaffold.js skills/apc-context/SKILL.md src/core/runtime-skills/apc-context/SKILL.md ~/.claude/skills/<slug>/SKILL.md ~/.cursor/skills/<slug>/SKILL.md ~/.codex/skills/<slug>/SKILL.md
~/.agents/skills/<slug>/SKILL.md
Network endpoints1
raw.githubusercontent.com /agentprojectcontext/agentprojectcontext/main/skills/apc-context/SKILL.md
Decision evidencepublic snapshot Evidence for warning
The manifest runs a postinstall script that refreshes the APC skill and calls the global skill installer without an install-time consent prompt; the skip flag affects only the refresh. The refresh fetches the APC skill from a mutable GitHub branch, writes it into package skill files, and the installer copies bundled skills into global agent directories, replacing changed copies and pruning retired ones. The global destinations include Claude, Cursor, Codex, and shared agent skill directories, where installed skills can affect agent context across projects. The cited APC context write in the project skill installer is part of an explicit project-scoped CLI command, distinct from the automatic global postinstall path. Transcription sends audio and an optional API key to the configured OpenAI-compatible endpoint; provider selection comes from configuration or caller overrides. The CLI reads its daemon token and sends it to the APX daemon URL, which defaults to loopback and uses the APX host and port settings. Evidence against
The inspected source shows first-party APX/APC skill setup, not collection or transmission of credentials to the package publisher. No malicious skill content, arbitrary code execution, or other concrete attack behavior was established by the inspected source. 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 1,212 files · 10.6 MB of source
50 external domains referenced
127.0.0.1 192.168.1.50 accounts.google.com agentprojectcontext.com agentprojectcontext.github.io api.anthropic.com api.cerebras.ai api.elevenlabs.io api.example.com api.github.com api.groq.com api.openai.com api.search.brave.com api.telegram.org app.asana.com auth.openai.com base-ui.com box.lan bun.sh cdn.discordapp.com cdn.tailwindcss.com chatgpt.com claude.ai console.anthropic.com console.cloud.google.com discord.com discord.gg example.com generativelanguage.googleapis.com github.com html.duckduckgo.com maquina.lan mcp.example.com nominatim.openstreetmap.org oauth2.googleapis.com opencode.ai opencode.internal openrouter.ai platform.claude.com raw.githubusercontent.com react.dev reactrouter.com registry.npmjs.org router.project-osrm.org routing.openstreetmap.de t.me tailscale.com unpkg.com valhalla1.openstreetmap.de Findings22 high · 8 medium · 8 low Source & flagged code29 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 src/interfaces/cli/postinstall.js
High Child process
Package source references child process execution.
src/core/artifacts/tunnel.js View on unpkg · L12 Code excerpt · 3 lines 12 // on daemon exit.
13 import { spawn, spawnSync } from "node:child_process" ;
14 import { randomUUID } from "node:crypto" ;
High Runtime package install
Package source invokes a package manager install command at runtime.
src/core/artifacts/tunnel.js View on unpkg · L6 Code excerpt · 6 lines 6 // (no account needed; prints an https://*.trycloudflare.com URL)
7 // - localtunnel → `npx -y localtunnel --port PORT`
8 // (prints https://*.loca.lt; fallback when cloudflared absent)
⋯
12 // on daemon exit.
13 import { spawn, spawnSync } from "node:child_process" ;
14 import { randomUUID } from "node:crypto" ;
Code excerpt · 3 lines 45 try {
46 const found = execFileSync ("command" , ["-v" , "tailscale" ], { shell: true , encoding: "utf8" }).trim ();
47 if (found) return (cachedBinary = found);
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/core/net/tailscale.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
src/core/voice/transcription.js#virtual:normalized:round1 View file Medium Dynamic require
Package source references dynamic require/import behavior.
src/core/voice/transcription.js#virtual:normalized:round1 View on unpkg · L52 Code excerpt · 3 lines 52 * else faster-whisper cpu.
53 * Safety net: if the chosen mlx model isn"t downloaded yet, fall back to\n * faster-whisper so a live voice turn never stalls on a multi-GB download —\n * the model-manager UI hand...
54 }
Low Weak crypto
Package source references weak cryptographic algorithms.
src/core/mcp/catalog.js View on unpkg · L1 Code excerpt · 2 lines 1 // What each MCP server offers, remembered from the last time its tools were
2 // listed. The agent cannot use a server it does not know exists, and starting
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
src/core/desktop/autostart.js View on unpkg · L7 Code excerpt · 12 lines Trigger-reachable persistence chain: scripts.start -> src/host/daemon/index.js -> src/host/daemon/api.js -> src/host/daemon/api/desktop.js -> src/core/desktop/autostart.js
7 //
8 // macOS → ~/Library/LaunchAgents/dev.apx.desktop.plist + launchctl load -w
9 // win32 → HKCU\Software\Microsoft\Windows\CurrentVersion\Run\APXDesktop
⋯
19 import { DESKTOP_AUTOSTART_LOG_PATH } from "#core/config/paths.js" ;
20 import { execFileSync } from "node:child_process" ;
21 import { fileURLToPath } from "node:url" ;
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
src/interfaces/cli/http.js View on unpkg · L7 Code excerpt · 9 lines 7 import fs from "node:fs" ;
8 import nodeHttp from "node:http" ;
9 import os from "node:os" ;
⋯
11 import { TOKEN_PATH, LOG_PATH, PID_PATH, APX_HOME } from "#core/config/paths.js" ;
12 import { spawn } from "node:child_process" ;
13 import { fileURLToPath } from "node:url" ;
src/interfaces/cli/http.js#virtual:normalized:round1 View file High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
src/interfaces/cli/http.js#virtual:normalized:round1 View on unpkg · L52 High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
src/interfaces/cli/http.js#virtual:normalized:round1 View on unpkg · L52 Shared code excerpt · 2 findings · 6 lines 52 const FORBIDDEN_CODES = new Set(["EPERM", "EACCES", "EROFS"]);
53 const SANDBOX_DOCS = "https://agentprojectcontext.github.[redacted]/#using-apx-from-a-sandboxed-coding-cli";
54
⋯
62
63 /** The pid in the daemon"s pid file, when that process is alive; else null. */\nfunction liveDaemonPid() {\n try {\n const pid = parseInt(fs.readFileSync(PID_PATH, \"utf8\"), ...
64 //
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
src/host/daemon/pty-bridge.py View on unpkg Scanner record · 4 lines path = src/host/daemon/pty-bridge.py
kind = build_helper
sizeBytes = 3335
magicHex = [redacted]
Medium Ships compressed blob
Package ships compressed or archive-like blobs.
src/interfaces/web/dist/sw.js.gz View on unpkg Scanner record · 4 lines path = src/interfaces/web/dist/sw.js.gz
kind = compressed_blob
sizeBytes = 1818
magicHex = [redacted]
src/interfaces/web/dist/modules/blobs/onyx.svg.br View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
src/interfaces/web/dist/modules/blobs/onyx.svg.br View on unpkg Scanner record · 4 lines path = [redacted].svg.br
kind = high_entropy_blob
sizeBytes = 37288
magicHex = [redacted]
src/core/agent/shell/background.js#virtual:normalized: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.
src/core/agent/shell/background.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 12
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/host/daemon/api/admin.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/host/daemon/api/admin.js
matchedIdentity = npm:[redacted]:1.123.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.
src/core/agent/shell/background.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/agent/shell/background.js
matchedIdentity = npm:[redacted]:1.123.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.
src/core/desktop/process.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/desktop/process.js
matchedIdentity = npm:[redacted]:1.123.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.
src/core/routines/runner.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/routines/runner.js
matchedIdentity = npm:[redacted]:1.123.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.
src/core/voice/engines/gemini.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/voice/engines/gemini.js
matchedIdentity = npm:[redacted]:1.123.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.
src/host/daemon/api/skills.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/host/daemon/api/skills.js
matchedIdentity = npm:[redacted]:1.123.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.
src/host/daemon/deck-exec.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/host/daemon/deck-exec.js
matchedIdentity = npm:[redacted]:1.123.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.
src/host/daemon/terminal-ws.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/host/daemon/terminal-ws.js
matchedIdentity = npm:[redacted]:1.123.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.
src/host/daemon/whisper-server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/host/daemon/whisper-server.js
matchedIdentity = npm:[redacted]:1.123.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.
src/core/android-release.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/android-release.js
matchedIdentity = npm:[redacted]:1.123.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
wttr.in src/interfaces/cli/http.js#virtual:normalized:round12 findings
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/net/tailscale.js
matchedIdentity = npm:[redacted]:1.123.1
summary = normalized source hash matched finalized malicious source
⋯
24 const __filename = fileURLToPath (import .meta.url);
25 const __dirname = path.dirname (__filename);
91 // The three functions below take `platform` instead of reading process.platform
92 // inline so the unsupported-platform branch is reachable fro
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/core/desktop/autostart.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @agentprojectcontext/apx@1.123.1
matchedPath = src/core/desktop/autostart.js
matchedIdentity = npm:[redacted]:1.123.1
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.
src/core/desktop/autostart.js View on unpkg · L7 Code excerpt · 12 lines 7 //
8 // macOS → ~/Library/LaunchAgents/dev.apx.desktop.plist + launchctl load -w
9 // win32 → HKCU\Software\Microsoft\Windows\CurrentVersion\Run\APXDesktop
⋯
19 import { DESKTOP_AUTOSTART_LOG_PATH } from "#core/config/paths.js" ;
20 import { execFileSync } from "node:child_process" ;
21 import { fileURLToPath } from "node:url" ;
⋯
24 const __filename = fileURLToPath (import .meta.url);
25 const __dirname = path.dirname (__filename);
26
⋯
90
91 // The three functions below take `platform` instead of reading process.platform
92 // inline so the unsupported-platform branch is reachable from a test on any
18 const DEFAULT_PORT = parseInt (process.env.APX_PORT || "7430" , 10 );
19 const DEFAULT_HOST = process.env.APX_HOST || "127.0.0.1" ;