---
canonical: "https://firewall.lpm.dev/npm/@fidacy/mcp/v/0.24.2"
markdown: "https://firewall.lpm.dev/npm/@fidacy/mcp/v/0.24.2.md"
package: "@fidacy/mcp"
report_status: "published"
title: "@fidacy/mcp@0.24.2 npm security report"
verdict: "suspicious"
version: "0.24.2"
---

# @fidacy/mcp@0.24.2 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 20 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential exfiltration
- **Selected version:** 0.24.2
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

Source inspection found no fixed credential redirect, but both agent hook paths can send saved credentials to an unrestricted HTTPS endpoint selected by FIDACY\_ENGINE\_URL. This supports a warning for conditional credential exposure, not a publish block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-25T23:11:51.656Z
- **Finished:** 2026-10-25T23:14:12.633Z
- **Download time:** 758 ms
- **Static scan time:** 2806 ms
- **AI review time:** 137412 ms
- **Total time:** 140977 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Agent hooks can send a saved Fidacy API key and session records to an HTTPS host selected through FIDACY\_ENGINE\_URL. The default is the Fidacy API, but the source does not restrict the override to a Fidacy-controlled host.

- **Trigger:** A configured agent reaches session end, or a Hermes hook processes a tool event, while FIDACY\_ENGINE\_API\_KEY or a saved account key is available.

- **Impact:** If the environment URL points to an unintended recipient, that recipient can receive the saved account key and session metadata.

- **Evidence paths:** dist/hook-cli.js, dist/hermes-hook-cli.js, dist/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-25T23:14:12.633Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The hooks load the existing key and send it as a bearer credential with session or trace data to the configured engine URL; the URL validation checks HTTPS but not the recipient host.

- **Rationale:** Source inspection found no fixed credential redirect, but both agent hook paths can send saved credentials to an unrestricted HTTPS endpoint selected by FIDACY\_ENGINE\_URL. This supports a warning for conditional credential exposure, not a publish block.

- **Network endpoints:** https://api.fidacy.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The postinstall hook enters setup only on an interactive terminal; setup asks for optional email registration, and the manifest points to that hook., The explicit connect command validates a Fidacy key against the Fidacy API by default, saves it, and then installs agent hooks., At session end, the hook reads an API key from the environment or saved configuration and sends session actions and identity data to the environment-selected engine URL, defaulting to api.fidacy.com., The URL check requires HTTPS but does not restrict the host, so changing FIDACY\_ENGINE\_URL can direct a saved key and session data to another recipient., Hermes similarly uploads trace records with its saved account key after tool events, using the environment-selected engine URL., The core and library credential matches are caller-configured service requests with HTTPS checks; they do not establish a separate hidden credential recipient.

- **Evidence against:** The inspected session-upload default is the package-aligned Fidacy API, and the package does not show a fixed unrelated recipient or a default redirect.

## Affected versions and remediation

This report applies to @fidacy/mcp@0.24.2.

- Review the evidence and your use of @fidacy/mcp@0.24.2 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node -e "try{require('fs').accessSync('dist/postinstall.js')}catch{process.exit(0)};import('./dist/postinstall.js')" || exit 0
```

### 2. Critical: Red Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 95.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/package.json>)

Install-time lifecycle script matches a deterministic static-gate block pattern.

Public source snippet (untrusted):

```json
scripts.postinstall = node -e "try{require('fs').accessSync('dist/postinstall.js')}catch{process.exit(0)};import('./dist/postinstall.js')" || exit 0
```

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

### 4. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/connect.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/connect.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L7365: // src/connect.ts
L7366: import { execFileSync } from "node:child_process";
L7367: import { existsSync as existsSync5, mkdtempSync, readFileSync as readFileSync5, rmSync, writeFileSync as writeFileSync5 } from "node:fs";
```

### 6. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 7. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/index.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L9992: });
L9993: import { spawn } from "node:child_process";
L9994: import { existsSync as existsSync7 } from "node:fs";
...
L9997: function engineBase() {
L9998: return requireSafeBaseUrl(process.env.FIDACY_ENGINE_URL ?? "https://api.fidacy.com");
L9999: }
```

### 10. High: Credential Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/hook-cli.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/hook-cli.js>)

Source combines credential-like environment material and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L325: encoder = new TextEncoder();
L326: decoder = new TextDecoder();
L327: MAX_INT32 = 2 ** 32;
...
L609: }
L610: function isPrivateJWK(key) {
L611: return key.kty !== "oct" && typeof key.d === "string";
...
L1484: if (process.argv.includes("--fidacy-profile")) return (keyOverride ?? readConfig()?.account_api_key ?? "").trim();
L1485: return (keyOverride ?? process.env.FIDACY_ENGINE_API_KEY ?? readConfig()?.account_api_key ?? "").trim();
L1486: }
...
L1490: function configDir() {
L1491: const root = profileRoot(process.argv) ?? process.env.FIDACY_CONFIG_DIR ?? join(homedir(), ".fidacy");
L1492: const index = process.argv.indexOf("--fidacy-profile");
```

### 11. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/index.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js:
throw new Error("FIDACY_API_URL must be https:// (the API key is sent to it)");
baseUrl;
// otherwise exfiltrate the API key in the Authorization header.
constructor(baseUrl, apiKey, subjectPub = "") {
this.baseUrl = requireHttpsBase(baseUrl);
const res = await fetch(`${this.baseUrl}${path}`, {
headers: { "content-type": "application/json", authorization: `Bearer ${this.apiKey}` },
fs.writeFileSync(this.path, clean2);
```

### 12. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/index.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L75: function loadOrGenerateKeyPair() {
L76: const b64 = process.env.FIDACY_SIGNING_KEY_B64;
L77: if (b64) {
L78: const pem = Buffer.from(b64, "base64").toString("utf8");
L79: const privateKey2 = crypto.createPrivateKey(pem);
L80: const publicKey2 = crypto.createPublicKey(privateKey2);
...
L279: if (u.protocol !== "https:" && !localHttp) {
L280: throw new Error("FIDACY_API_URL must be https:// (the API key is sent to it)");
L281: }
...
L450: headers: { "content-type": "application/json", authorization: `Bearer ${this.apiKey}` },
L451: body: JSON.stringify(body)
L452: });
```

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/hook-cli.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/hook-cli.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L325: encoder = new TextEncoder();
L326: decoder = new TextDecoder();
L327: MAX_INT32 = 2 ** 32;
...
L609: }
L610: function isPrivateJWK(key) {
L611: return key.kty !== "oct" && typeof key.d === "string";
...
L1484: if (process.argv.includes("--fidacy-profile")) return (keyOverride ?? readConfig()?.account_api_key ?? "").trim();
L1485: return (keyOverride ?? process.env.FIDACY_ENGINE_API_KEY ?? readConfig()?.account_api_key ?? "").trim();
L1486: }
...
L1490: function configDir() {
L1491: const root = profileRoot(process.argv) ?? process.env.FIDACY_CONFIG_DIR ?? join(homedir(), ".fidacy");
L1492: const index = process.argv.indexOf("--fidacy-profile");
```

### 14. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/connect.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/connect.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/connect.js spawns dist/index.js; helper contains network access plus dynamic code execution.
L2608: if (typeof node_buffer.Buffer === "function") {
L2609: return node_buffer.Buffer.from(src, "base64");
L2610: } else if (typeof atob === "function") {
...
L5221: yield* this.next(token);
L5222: yield* this.end(forceDoc, endOffset);
L5223: }
...
L5225: *next(token) {
L5226: if (node_process.env.LOG_STREAM)
L5227: console.dir(token, { depth: null });
...
L7365: // src/connect.ts
L7366: import { execFileSync } from "node:child_process";
L7367: import { existsSync as existsSync5, mkdtempSync, readFileSync as readFileSync5, rmSync, writeFileSync as writeFileSync5 } from "node:fs";
```

### 15. High: Trigger Reachable Credential Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/hook-cli.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/hook-cli.js>)

A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.bin -> dist/hook-cli.js
L325: encoder = new TextEncoder();
L326: decoder = new TextDecoder();
L327: MAX_INT32 = 2 ** 32;
...
L609: }
L610: function isPrivateJWK(key) {
L611: return key.kty !== "oct" && typeof key.d === "string";
...
L1484: if (process.argv.includes("--fidacy-profile")) return (keyOverride ?? readConfig()?.account_api_key ?? "").trim();
L1485: return (keyOverride ?? process.env.FIDACY_ENGINE_API_KEY ?? readConfig()?.account_api_key ?? "").trim();
L1486: }
...
L1490: function configDir() {
L1491: const root = profileRoot(process.argv) ?? process.env.FIDACY_CONFIG_DIR ?? join(homedir(), ".fidacy");
L1492: const index = process.argv.indexOf("--fidacy-profile");
```

### 16. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 17. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 18. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** package.json\#scripts.postinstall
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/package.json%23scripts.postinstall>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/connect.js
- **Public source:** [View source](<https://unpkg.com/@fidacy/mcp@0.24.2/dist/connect.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = trace-mcp@3.25.1
matchedPath = dist/extract-worker.js
matchedIdentity = npm:dHJhY2UtbWNw:3.25.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, prepublishOnly
- **Dependencies:** 2
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 6
- **Published dependency-graph edges:** 2

### Published dependency entries
- @modelcontextprotocol/sdk ^1.29.0 (Dependency)
- zod ^3.25.0 (Dependency)

## Package metadata
- **Package:** @fidacy/mcp
- **Ecosystem:** npm
- **Version:** 0.24.2
- **License:** Apache-2.0
- **Version published:** 2026-10-25T23:09:41.135Z
- **Package first seen:** 2026-07-04T08:23:26.695Z
- **Package last seen:** 2026-11-14T01:28:48.823Z
- **Known versions:** 44
- **Latest version:** 0.24.13
- **Appeal under review:** No
- **Description:** The AI Agent Firewall. Enforce signed authority before consequential actions and protect sensitive data at the execution boundary. Free API key required.
- **Author:** Fidacy
- **Maintainers:** lucasdelima
- **Keywords:** mcp, model-context-protocol, ai-agents, payments, firewall, mandate, trust, verdict, ed25519, fidacy
- **Runtime engines:** node: \>=18
- **Artifact files:** 76
- **Artifact unpacked size:** 1,339,330 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@fidacy/mcp/v/0.24.2>)
- [Repository](<https://github.com/lucaslubi/fidacy-mcp>)
- [Homepage](<https://fidacy.com/>)
- [Issues](<https://github.com/lucaslubi/fidacy-mcp/issues>)
