@phren/cli
npm
v0.2.10
Source verified
Published by alaarab — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.
Knowledge layer for AI agents — CLI, MCP server, and data layer
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 0 = 100. What the published surface and source actually contain:
The deterministic scan raised no scored threat in the surface it inspected — the threat score stayed at 100. Capability observations and advisory notes are recorded but never lower it.
2. Client adoption risk — 100 − 10 = 90. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −10 | capability blast radius (critical) — client exposure if the model is manipulated |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
This server (without client built-ins) exposes a complete data-exfiltration chain: get_memory_detail → add_custom_hook → remove_custom_hook. Untrusted input is ingested, private data is read, and it can be sent to an external sink via the agent composing the tools (→). Static analysis proves the primitive exists, not that a specific run will occur.
Fix: Remove one leg of the trifecta: isolate untrusted-input tools from secret-reading tools and from egress tools, or require human approval between them.
Location: flow get_memory_detail → add_custom_hook → remove_custom_hook
Tool "add_custom_hook" can both read sensitive data and send data to an external destination. Even without an explicit untrusted-input leg, this is a single-call data-exfiltration path if the model is ever manipulated.
Fix: Separate reading from sending; require explicit user confirmation before egress of file/secret contents.
Location: flow add_custom_hook
In the server's implementation (`dist/generated/memory-ui-graph.browser.js:2`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/generated/memory-ui-graph.browser.js
In the server's implementation (`dist/memory-ui-graph.runtime.js:2`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/memory-ui-graph.runtime.js
Tool "add_custom_hook" appears to run shell commands or evaluate code (parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.
Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.
Location: tool add_custom_hook
Tool "remove_custom_hook" appears to run shell commands or evaluate code (parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.
Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.
Location: tool remove_custom_hook
In the server's implementation (`dist/generated/memory-ui-graph.browser.js:2`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/generated/memory-ui-graph.browser.js
In the server's implementation (`dist/memory-ui-graph.runtime.js:2`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/memory-ui-graph.runtime.js
In the server's implementation (`dist/agents/providers/herdr.js:11`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { clampInt, resolveExecCommand } from "../../utils-helpers.js"; import {
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/agents/providers/herdr.js
In the server's implementation (`dist/cli/extract.js:15`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { resolveRuntimeProfile } from "../runtime-profile.js"; import { buildCit
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/extract.js
In the server's implementation (`dist/cli/govern.js:156`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: eSync } = await import("child_process"); const report = { gitGcRan: false, commitsSquashed: 0,
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/govern.js
In the server's implementation (`dist/cli/namespaces-store.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { getPhrenPath } from "../shared.js"; import { isValidProjectName, errorM
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/namespaces-store.js
In the server's implementation (`dist/cli/ops.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { EXEC_TIMEOUT_MS, findProjectNameCaseInsensitive, getPhrenPath, normaliz
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/ops.js
In the server's implementation (`dist/cli/session-git.js:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import * as fs from "fs"; import * as path from "path"; import { EXEC_TIMEOUT_MS
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/session-git.js
In the server's implementation (`dist/cli/team.js:7`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { getPhrenPath } from "../shared.js"; import { FINDINGS_FILENAME } from "
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/team.js
In the server's implementation (`dist/content/validate.js:4`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { debugLog, EXEC_TIMEOUT_MS, getProjectDirs } from "../shared.js"; import
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/content/validate.js
In the server's implementation (`dist/editor/launch.js:14`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { resolveExecCommand } from "../utils-helpers.js"; import { errorMessage
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/editor/launch.js
In the server's implementation (`dist/hooks.js:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execFileSync } from "child_process"; import { isIP } from "net"; import { fileURLToPath } from "url"; import { EXEC_T
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/hooks.js
In the server's implementation (`dist/embedding.js:178`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const response = await fetch("https://api.openai.com/v1/embeddings", { method: "POST", headers: {
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/embedding.js
Tool "add_custom_hook" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.
Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.
Location: tool add_custom_hook · inputSchema.properties.command
Tool "remove_custom_hook" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.
Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.
Location: tool remove_custom_hook · inputSchema.properties.command
Tool "add_custom_hook" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.
Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.
Location: tool add_custom_hook
Tool "remove_custom_hook" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.
Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.
Location: tool remove_custom_hook
Each tool and what it can reach — statically extracted from the published source.
add_custom_hooknetwork egressruns code / shellreads sensitive dataget_memory_detailingests untrusted inputremove_custom_hookruns code / shelladd_findingno sensitive capabilityadd_noteno sensitive capabilityadd_projectno sensitive capabilityadd_taskno sensitive capabilityauto_extract_findingsno sensitive capabilitycomplete_taskno sensitive capabilitycross_project_fragmentsno sensitive capabilitydoctor_fixno sensitive capabilityedit_findingno sensitive capabilityedit_noteno sensitive capabilityexport_projectno sensitive capabilityget_configno sensitive capabilityget_contradictionsno sensitive capabilityget_findingsno sensitive capabilityget_notesno sensitive capabilityget_project_summaryno sensitive capabilityget_related_docsno sensitive capabilityget_review_queueno sensitive capabilityget_tasksno sensitive capabilityget_topic_summariesno sensitive capabilityget_truthsno sensitive capabilityhealth_checkno sensitive capabilityimport_projectno sensitive capabilitylink_findingsno sensitive capabilitylist_hook_errorsno sensitive capabilitylist_hooksno sensitive capabilitylist_projectsno sensitive capabilitylist_skillsno sensitive capabilitymanage_projectno sensitive capabilitymanage_review_itemno sensitive capabilitymemory_feedbackno sensitive capabilitypin_memoryno sensitive capabilitypin_taskno sensitive capabilitypromote_noteno sensitive capabilitypush_changesno sensitive capabilityread_graphno sensitive capabilityread_skillno sensitive capabilityremove_findingno sensitive capabilityremove_noteno sensitive capabilityremove_skillno sensitive capabilityremove_taskno sensitive capabilityresolve_contradictionno sensitive capabilityretract_findingno sensitive capabilitysearch_fragmentsno sensitive capabilitysearch_knowledgeno sensitive capabilitysession_contextno sensitive capabilitysession_endno sensitive capabilitysession_historyno sensitive capabilitysession_startno sensitive capabilityset_configno sensitive capabilityset_topic_summaryno sensitive capabilitystore_listno sensitive capabilitysupersede_findingno sensitive capabilitytidy_done_tasksno sensitive capabilitytoggle_hooksno sensitive capabilitytoggle_skillno sensitive capabilityupdate_taskno sensitive capabilitywrite_skillno sensitive capabilityCross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).
Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v0.2.10 latest |
A 90/100 | 23 | 1.13.0 | 2026-09-07 |
v0.2.9 |
B 89/100 | 23 | 1.13.0 | 2026-09-06 |
v0.1.52 |
A 90/100 | 23 | 1.13.0 | 2026-09-05 |
v0.1.51 |
A 90/100 | 23 | 1.13.0 | 2026-09-04 |
v0.1.44 |
A 90/100 | 23 | 1.13.0 | 2026-09-01 |
v0.1.42 |
A 90/100 | 23 | 1.12.1 | 2026-08-25 |
v0.1.41 |
B 89/100 | 23 | 1.12.1 | 2026-08-02 |
v0.1.40 |
A 90/100 | 23 | 1.12.1 | 2026-08-01 |
v0.1.39 |
A 90/100 | 23 | 1.9.0 | 2026-07-24 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan @phren/cli --online
Hotel booking MCP server — 300K+ properties, real confirmation numbers, loyalty programs. Builders monetize every booking via Stripe Connect. The first MCP server that completes real hotel reservations inside AI conversations.
Manage AdGuard Home through AI assistants
Read-only Azure DevOps for MCP clients using only your existing browser session — no PAT, no Azure CLI. Browse work items, pull requests, comments, attachments and Artifacts feeds across every project, repo and feed you can access.
MCP server for Adobe Experience Manager Assets integration development
Servidor MCP para el tiempo oficial de España (API pública OpenData de AEMET). Predicción, observación y avisos como herramientas MCP tipadas.
A standalone MCP stdio bridge for Affinity by Canva's local MCP SSE server.