kruschstack@1.3.1
CAUTIONPublisher claims: "A local SQLite-backed MCP server that gives AI coding agents persistent cross-session memory and invariants, Turn-0 workspace grounding with spin-loop and output-defect guards, and two-phase-commit staging so file edits are audited and applied atomically. It also exposes AST symbol/call-graph search, bounded page memory, and workspace document retrieval, letting agents work safely across sessions without any cloud dependency." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Server started and answered tools/list.- Tested
- MCP initialize and tools/list · every tool description, for hidden instructions · every file read, file written and host contacted by what ran
- Not tested
- what the tools do when called with real credentials
Before you give it your token
- It will ask for
DATABASE_URLEMBEDDING_API_KEYGITHUB_WEBHOOK_SECRETHYDRADB_TOKENKRUSCH_EMBED_API_KEYKRUSCH_STACK_API_TOKENOPENAI_API_KEYPRIVATE_NET_HOST_PATSLACK_SIGNING_SECRETConfiguration, not credentials: BEAM_DATASET_CACHE_PATH, BEAM_EMBED_CACHE_PATH, CLEAN_EMBED_CACHE_PATH, DATASET_CACHE_PATH, DB_PATH, EMBED_MODEL, EMBEDDING_MODEL, EMBEDDING_URL, GIT_DIR, HYDRADB_GRAPH_ID, HYDRADB_URL, KRUSCH_ALLOWED_HOSTS, KRUSCH_DISABLE_EMBEDDINGS, KRUSCH_EMBED_MODEL, KRUSCH_EMBED_URL, KRUSCH_ENABLE_TEST_HOOKS, KRUSCH_EPHEMERAL, KRUSCH_MAX_ACTIVE_SCAN, KRUSCH_MAX_BODY_BYTES, KRUSCH_STACK_DEFER_TOOLS, KRUSCH_STACK_HOST, KRUSCH_STACK_INCLUDE_EXTENDED, KRUSCH_STACK_PORT, KRUSCH_STACK_PROFILE, KRUSCH_TEST_HOOK_MARKER_FILE, KRUSCH_TEST_HOOK_PAUSE_AFTER_FIRST_RENAME, KRUSCH_TEST_HOOK_SELF_SIGKILL, KRUSCH_WORKSPACE_ROOT, MOCK_EMBEDDINGS, npm_lifecycle_event, OLLAMA_BURST_HOST- Where it talks to
- no vendor host named in the codeAlso huggingface.co, githubusercontent.com, vercel.sh — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- no credential files read · no network
- What we could not test
- what the tools do when called with real credentials
Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names huggingface.co, githubusercontent.com, vercel.sh as well as its own vendor. The guard injects DATABASE_URL, EMBEDDING_API_KEY, GITHUB_WEBHOOK_SECRET, HYDRADB_TOKEN, KRUSCH_EMBED_API_KEY, KRUSCH_STACK_API_TOKEN, OPENAI_API_KEY, PRIVATE_NET_HOST_PAT, SLACK_SIGNING_SECRET only into requests to the host you bind (and its subdomains) and refuses the rest.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios) on 2026-11-21 and scored it 68/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Destructive command against a filesystem root or device; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 25 s · 2 scenarios · 0 deviationsStatic findings
path.join(groundedDir, '.env'),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.'rm -rf /',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.* Gate 5: Tier 3B Turn-0 Grounded Harness CSV `"NA"` Hazard, `.env` Exclusion, Memoized Hash & Defect Gate (`INV-STACK-11`).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.".env.example",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// 10 languages / 16 source & config extensions + Markdown + .env templatesFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose./\b(?:dict\s*\(\s*os\.environ\s*\)|os\.environ\.copy\s*\(\s*\)|JSON\.stringify\s*\(\s*process\.env\b)/;Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.return base === '.env' || base.startsWith('.env.');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Format a concise (<25 lines) terminal report for `npx krusch-stack demo`.Fix: Pin versions and sources; vendor anything fetched at install time.title: 'Tier 3B Turn-0 CSV "NA" Hazard, .env Exclusion, Memoized Call Hashing & Output Defect Gate',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const ENV_TEMPLATE_NAMES = new Set(['.env.example', '.env.sample', '.env.template']);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.'cat .env'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.entry.name === '.env' ||Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Skips `.env` and secret files automatically.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* 2. Spawn Worker Process 1 running `applyDiff()` and kill it with `SIGKILL` immediately after file 1 is renamed + fsynced.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.base === '.netrc'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.console.log(` Postgres : ${report.data.postgres_configured ? 'Companion URL set (runtime uses node:sqlite)' : 'Not set (using zero-setup SQLite)'}`);Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.(entry.name.startsWith('.env.') && entry.name !== '.env.example')Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.for (const m of src.matchAll(/\bprocess\.env\.([A-Z][A-Z0-9_]{1,80})\b/g)) {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Unified CLI for KruschStack (`npx krusch-stack <command>`).Fix: Pin versions and sources; vendor anything fetched at install time./(?:\brm\s+-[a-zA-Z]*r[a-zA-Z]*f\s+\/(?:\s|["';|&)]|$)|\bgit\s+reset\s+--hard\b|\bgit\s+clean\s+-[a-zA-Z]*f|\bgit\s+push\s+--force\b|\bDROP\s+DATABASE\b|\bcat\s+\.env\b)/i;Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Zero-cloud 3-act progressive onboarding walkthrough for KruschStack (`npx krusch-stack demo`).Fix: Pin versions and sources; vendor anything fetched at install time.> Tip: Upgrade anytime to AST symbol navigation and 2PC staged execution with \`npx krusch-stack init --profile coding-agent\`.Fix: Pin versions and sources; vendor anything fetched at install time.* enforces .env KEYS_ONLY redaction & pre-write secret shielding (INV-STACK-08),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Format human-readable CLI output for `npx krusch-stack explain`.Fix: Pin versions and sources; vendor anything fetched at install time.if (base === '.env' || base.startsWith('.env.')) {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Determine whether a file path targets a sensitive .env file whose values must be redacted.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.!Object.prototype.hasOwnProperty.call(digests, '.env') &&Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.'rm -rf /',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.* Execute a subprocess with hard timeout while preserving partial stdout emitted before kill (`INV-GH-10`).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.RUN mkdir -p /workspace /app/.krusch-stack && chown -R node:node /workspace /appFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.'.env',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.npx krusch-stack <command> [options]Fix: Pin versions and sources; vendor anything fetched at install time.path.join(dir, '.env.example'),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.args: { cmd: 'rm -rf /' },Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// 5c. Secret files (.env.production, credentials.json, *.pem) and symlink escaping workspaceRoot are NEVER read or suggestedFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// Sensitive .env files vs safe .env.example templateFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.path.join(dir, '.env'),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.args: { cmd: 'rm -rf /' },Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.const envProdAbs = writeRel(ws, '.env.production', `${secretQuote}\n`);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.path.join(dir, '.env.production'),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.file: '../../etc/passwd',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.args: { path: '~/.ssh/id_ed25519' }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…of a project, then fail in three predictable ways: 1. **Silent Rule Rot**: You write *"Always validate Stripe webhooks in `src/api/stripe.ts`"* in `CLAUDE.md`. Two months later, someone refactors that handler or changes its signature. Th…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.const badUrl = stack.polyglotAudit.normalizeRepoInput('http://169.254.169.254/latest/meta-data');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* Safely write/merge IDE MCP configurations and scaffold `.agent/AGENTS.md` if missing.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.fs.writeFileSync(path.join(tmpDir, '.env'), `OPENAI_API_KEY=${dummyEnvSecret}\n`, 'utf8');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…eader, footer-deadbolt, cyber-grid, deadbolt-svg, nav-back, lego-node-api, lego-mcp-server, lego-sse-route, lego-react-shell, lego-fastapi-app, lego-cloudflare-worker, lego-webhook-route, lego-vercel-nextjs-shell, lego-vercel-edge-sse, leg…Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.test('INV-GH-01 & INV-GH-08: Turn-0 grounding extracts CSV "NA" keep_default_na=False, JSON null/[] hazards, SQLite DDL, excludes .env, and pins prefixHash', () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.test('INV-STACK-15: `npx krusch-stack demo` runs all 3 acts offline in <2s with zero cloud calls', async () => {Fix: Pin versions and sources; vendor anything fetched at install time.// Policy floor blocks rm -rf /Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// 5. Path-traversal containment in INV-12 provenance (../../etc/passwd -> STALE_DRIFT, never read outside workspaceRoot)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// Policy floor blocks rm -rf /Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.assert.equal(Object.keys(g1.data.fileDigests).some((f) => f.endsWith('.env')), false);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.args: { path: '~/.ssh/id_ed25519' }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Destructive command against a filesystem root or device≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- Unclaimed publisher≈ +8 on the totalClaim kruschdev: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- npx invocation of non-well-known package≈ +2 on the totalPin versions and sources; vendor anything fetched at install time.
- Process kill command≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.