Loading npm security reports…
Loading npm security reports…
@karajan-family/code@5.23.0: AI-agent control-surface risk | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. The package is automatically added as an MCP server available to the user's AI-agent clients.
AI security reviewscanned on Nov 14, 2026, 09:57 UTC · by lpm-firewall-ai The package's postinstall hook automatically edits global Claude and Codex configuration to register its MCP server. The server is related to the package's purpose, but install-time agent configuration changes outside the package directory are unconsented under the review rules.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm installation invokes the postinstall hook.
Impact
The package is automatically added as an MCP server available to the user's AI-agent clients.
Mechanism
The hook edits ~/.claude.json and ~/.codex/config.toml to add a karajan-mcp server entry that runs this package's MCP server.
Policy narrative
During npm installation, scripts/postinstall.js registers this package's MCP server in the user's Claude Code and Codex configuration files. This changes AI-agent settings outside the package directory without an explicit user command, meeting the install-time AI-agent control hijack rule.
Evidence
package.json scripts/postinstall.js ~/.claude.json ~/.codex/config.toml
public snapshot
AI identified this as a dangerous AI-agent capability at 98.0% confidence with low false-positive risk.
Evidence for policy risk
package.json runs scripts/postinstall.js automatically during installation. The postinstall flow calls both Claude and Codex MCP setup functions by default. The Claude setup registers a karajan-mcp server that runs this package's MCP server. The Codex setup writes the registration to the user's config.toml. Evidence against
The registered MCP server points to this package's own src/mcp/server.js, consistent with the package's stated purpose as a coding orchestrator. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · URL strings
Manifest Copyleft license
Scanned 840 files · 4.68 MB of source
35 external domains referenced
aider.chat aistudio.google.com antigravity.google api.github.com api.linear.app cli.github.com console.anthropic.com developers.openai.com docs.anthropic.com docs.docker.com docs.github.com docs.sonarsource.com europe-west1-karajan-code.cloudfunctions.net firestore.googleapis.com fonts.googleapis.com fonts.gstatic.com get.docker.com git-scm.com github.com google.github.io identitytoolkit.googleapis.com karajan-code-default-rtdb.europe-west1.firebasedatabase.app karajan-code.web.app karajancode.com nodejs.org ollama.com opencode.ai platform.openai.com raw.githubusercontent.com registry.npmjs.org securetoken.googleapis.com semgrep.dev sonarcloud.io www.docker.com www.w3.org Findings1 critical · 17 high · 8 medium · 7 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.js
High Child process
Package source references child process execution.
scripts/dual-publish.mjs View on unpkg · L18 Code excerpt · 3 lines 18 import { readFileSync, writeFileSync } from "node:fs" ;
19 import { execFileSync } from "node:child_process" ;
20 import { join, dirname, resolve } from "node:path" ;
Medium Dynamic require
Package source references dynamic require/import behavior.
scripts/verify-pack.mjs View on unpkg · L114 Code excerpt · 3 lines 114 // pattern lookalikes).
115 const { scanPaths, loadPrivacyList } = await import (
116 path.join (repoRoot, "src" , "privacy" , "scan.js" )
Low Weak crypto
Package source references weak cryptographic algorithms.
src/sonar/project-key.js View on unpkg · L83 Code excerpt · 6 lines 83 const explicit = String (
84 options.projectKey || process.env.KJ_SONAR_PROJECT_KEY || config?.sonarqube?.project_key || ""
85 ).trim ();
⋯
99 const remote = await runCommand ("git" , ["config" , "--get" , "remote.origin.url" ]);
100 const remoteUrl = String (remote.stdout || "" ).trim ();
101 if (remote.exitCode !== 0 || !remoteUrl) {
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
scripts/install.js View on unpkg · L4 Code excerpt · 12 lines 4 import path from "node:path" ;
5 import { spawn } from "node:child_process" ;
6 import readline from "node:readline/promises" ;
7 import { stdin as input, stdout as output } from "node:process" ;
8 import { tomlPath } from "./toml-value.js" ;
⋯
10 const rl = readline.createInterface ({ input, output });
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
scripts/postinstall.js View on unpkg · L27 Code excerpt · 12 lines 27 await fs.mkdir (path.dirname (file), { recursive: true });
28 await fs.writeFile (file, `${JSON.stringify(obj, null, 2)}\n` , "utf8" );
29 }
30
31 const CLAUDE_JSON_PATH = path.join (os.homedir (), ".claude.json" );
32
⋯
90 async function setupClaudeMcp (config, kjHome) {
High Runtime package install
Package source invokes a package manager install command at runtime.
src/audit/basal-cost.js View on unpkg · L76 Code excerpt · 3 lines 76 return new Promise ((resolve) => {
77 execFile ("npx" , ["depcheck" , "--json" ], { cwd: projectDir, timeout: 30000 }, (err, stdout) => {
78 if (err && !stdout) {
vendor/tree-sitter-grammars/python.wasm View file Medium Ships WASM module
Package ships WebAssembly modules.
vendor/tree-sitter-grammars/python.wasm View on unpkg Scanner record · 4 lines path = vendor/tree-sitter-grammars/python.wasm
kind = wasm_module
sizeBytes = 457883
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/install-binary.sh View on unpkg Scanner record · 4 lines path = scripts/install-binary.sh
kind = build_helper
sizeBytes = 7790
magicHex = [redacted]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
bin/kj-tail View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 10
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/commands/board.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/commands/board.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/harden/sentinel/posttooluse.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/harden/sentinel/posttooluse.mjs
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
src/harden/sentinel/sentinel-lib.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/harden/sentinel/sentinel-lib.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/harden/sentinel/sentinel-lib.mjs
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/utils/update-check.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/utils/update-check.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
packages/ai-trash/src/git-snapshot.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
packages/ai-trash/src/git-snapshot.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = packages/ai-trash/src/git-snapshot.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/checks/repo-state.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/checks/repo-state.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/commands/audit.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/commands/audit.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/commands/go.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/commands/go.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/commands/link.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/commands/link.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.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.
src/harden/human-act.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = karajan-code@5.22.0
matchedPath = src/harden/human-act.js
matchedIdentity = npm:a2FyYWphbi1jb2Rl:5.22.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 98%
Certainty of the AI review, 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 manufosela
Version 5.23.0
Published Nov 14, 2026
License AGPL-3.0
Dependencies 25
Integrity verified
Package size 1.92 MB
Files 951
Keywords ai orchestrator code-review tdd sonarqube multi-agent mcp cli
Runtime surface package.json Entrypoints bin → karajan-mcp, kj, kj-hook +3
Runtime node >=22.12.0
Artifact 7.13 MB unpacked · 951 files 2 signatures · provenance
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings33 Flagged code24 Remediation Semantic analysis limited
Code↓
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
11
const REGISTRY_PATH = path.join (os.homedir (), ".karajan" , "instances.json" );
12 const INSTALL_STATE_PATH = path.join (os.homedir (), ".karajan" , "install-state.json" );
14 codex: { bin: "codex" , installUrl: "https://developers.openai.com/codex/cli" },
15 claude: { bin: "claude" , installUrl: "https://docs.anthropic.com/en/docs/claude-code" },
120 if (cliValue !== undefined ) return cliValue;
91 config.mcpServers = config.mcpServers || {};
92 // Keep every env key the user added to the entry; only the home is ours,
93 // and it is written under the current name (KJ_HOME is deprecated).
94 const { KJ_HOME: _stale, ...userEnv } = config.mcpServers["karajan-mcp" ]?.env || {};
95 config.mcpServers["karajan-mcp" ] = {