---
canonical: "https://firewall.lpm.dev/npm/@tritard/waterbrother/v/0.17.7"
markdown: "https://firewall.lpm.dev/npm/@tritard/waterbrother/v/0.17.7.md"
package: "@tritard/waterbrother"
report_status: "published"
title: "@tritard/waterbrother@0.17.7 npm security report"
verdict: "malicious"
version: "0.17.7"
---

# @tritard/waterbrother@0.17.7 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
**Blocked & quarantined** — A third party can receive and potentially use the active API credential, plus spoken response text.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 0.17.7
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

Speak mode sends the active model-provider API key and response text to a fixed xAI TTS endpoint. The active key can belong to OpenAI or Anthropic rather than xAI.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-09-13T15:04:37.767Z
- **Finished:** 2026-09-13T15:05:54.606Z
- **Download time:** 767 ms
- **Static scan time:** 3945 ms
- **AI review time:** 72126 ms
- **Total time:** 76839 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:** Speak mode sends the active model-provider API key and response text to a fixed xAI TTS endpoint. The active key can belong to OpenAI or Anthropic rather than xAI.

- **Trigger:** A user enables /speak in an interactive session and the assistant produces a response.

- **Impact:** A third party can receive and potentially use the active API credential, plus spoken response text.

- **Evidence paths:** src/cli.js, src/voice.js, src/model-catalog.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-13T15:05:54.606Z

### AI review details

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

- **Mechanism:** Cross-provider API credential disclosure through fixed TTS authorization.

- **Attack narrative:** The CLI exposes an interactive speak mode. When enabled, each assistant response calls speakFull with context.runtime.apiKey. That function ignores the selected provider URL and posts the response text to api.x.ai using that key as a Bearer token. The provider catalog shows that the same runtime key may instead be an OpenAI or Anthropic key. Thus enabling TTS can disclose a credential to an unrelated fixed service.

- **Rationale:** The fixed xAI TTS request forwards the active runtime credential without ensuring it is an xAI credential. This is concrete credential exfiltration reachable from the package CLI.

- **Network endpoints:** api.x.ai

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The /speak feature passes the active runtime API key into the TTS call., The TTS call always posts that key as Bearer authorization to api.x.ai., The runtime supports separate OpenAI and Anthropic credentials, so this can disclose a non-xAI key., The key transfer occurs after a user enables speak mode and receives a response.

- **Evidence against:** package.json has no npm install lifecycle hook., The listen-agent persistence path is only reached by an explicit listen install command.

## Affected versions and remediation

This report applies to @tritard/waterbrother@0.17.7.

- Avoid installing @tritard/waterbrother@0.17.7. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

Package declares npm scripts.

### 2. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** src/codebase-index.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/codebase-index.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L3: import { shouldSkipCodebaseIndex } from "./ios-attach-contract.js";
L4: import { execFile } from "node:child_process";
L5: import { promisify } from "node:util";
...
L249: const raw = await fs.readFile(indexPath, "utf8");
L250: existingIndex = JSON.parse(raw);
L251: } catch {}
```

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

Package source references network APIs.

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

Package source references environment variables.

### 5. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** src/listen-agent.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/listen-agent.js>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L3: import path from "node:path";
L4: import { spawnSync } from "node:child_process";
L5: import { fileURLToPath } from "node:url";
...
L9: export function agentPlistPath() {
L10: return path.join(os.homedir(), "Library/LaunchAgents", `${LABEL}.plist`);
L11: }
...
L13: export async function installListenAgent() {
L14: if (process.platform !== "darwin") {
L15: throw new Error("Launch agent install is macOS only.");
...
L22: const fallbackPath = [path.dirname(node), "/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin"].join(path.delimiter);
L23: const rawPath = process.env.PATH
L24: ? `${path.dirname(node)}${path.delimiter}${process.env.PATH}`
```

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

Package source references filesystem APIs.

### 7. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/cli.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/cli.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
L1: import { execFile, spawn } from "node:child_process";
L2: import fs from "node:fs/promises";
...
L139: const BIN_PATH = path.join(PACKAGE_ROOT, "bin", "waterbrother.js");
L140: const DOCS_BASE_URL = String(process.env.WATERBROTHER_DOCS_BASE_URL || "https://waterbrother.app").trim().replace(/\/+$/, "");
L141: const TELEGRAM_BRIDGE_SERVICE = "telegram";
...
L542: }
L543: return Buffer.concat(chunks).toString("utf8").trim();
L544: }
...
L647: let codeLineNo = 1;
L648: const columns = clampColumns(process.stdout.columns || 100);
L649: const contentWidth = Math.max(20, columns - (ASSISTANT_PREFIX.length + 4));
...
L1053: const clearLine = () => {
```

### 8. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/cli.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/cli.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.
src/cli.js:
import readline from "node:readline";
getSuggestedLocalBaseUrl,
shouldRetryDefaultLocalBaseUrl
{ name: "/onboarding", description: "Print onboarding/API key guide" },
--api-key <key>           Provider API key
baseUrl: context.runtime.baseUrl,
baseUrl: context.runtime.baseUrl,
baseUrl: runtime.baseUrl,
```

### 9. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** src/tsnet-join.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/tsnet-join.js>)

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

Public source snippet (untrusted):

```javascript
L1: import { execFile, spawn } from "node:child_process";
L2: import { createWriteStream } from "node:fs";
...
L16: 
L17: export function tsnetHome(home = os.homedir()) {
L18: return path.join(home, ".waterbrother", "tsnet");
...
L28: 
L29: export function linuxTarballURL({ arch = process.arch, version = TSNET_VERSION } = {}) {
L30: const cpu = arch === "arm64" ? "arm64" : "amd64";
L31: return `https://pkgs.tailscale.com/stable/tailscale_${version}_${cpu}.tgz`;
L32: }
...
L70: env: opts.env
L71: }).then((result) => String(typeof result === "string" ? result : result?.stdout || "").trim());
```

### 10. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/cli.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/cli.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: scripts.start -> bin/waterbrother.js -> src/cli.js
L1: import { execFile, spawn } from "node:child_process";
L2: import fs from "node:fs/promises";
...
L139: const BIN_PATH = path.join(PACKAGE_ROOT, "bin", "waterbrother.js");
L140: const DOCS_BASE_URL = String(process.env.WATERBROTHER_DOCS_BASE_URL || "https://waterbrother.app").trim().replace(/\/+$/, "");
L141: const TELEGRAM_BRIDGE_SERVICE = "telegram";
...
L542: }
L543: return Buffer.concat(chunks).toString("utf8").trim();
L544: }
...
L647: let codeLineNo = 1;
L648: const columns = clampColumns(process.stdout.columns || 100);
L649: const contentWidth = Math.max(20, columns - (ASSISTANT_PREFIX.length + 4));
...
L1053: const clearLine = () => {
```

### 11. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/listen-agent.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/listen-agent.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: scripts.start -> bin/waterbrother.js -> src/cli.js -> src/listen-agent.js
L3: import path from "node:path";
L4: import { spawnSync } from "node:child_process";
L5: import { fileURLToPath } from "node:url";
...
L9: export function agentPlistPath() {
L10: return path.join(os.homedir(), "Library/LaunchAgents", `${LABEL}.plist`);
L11: }
...
L13: export async function installListenAgent() {
L14: if (process.platform !== "darwin") {
L15: throw new Error("Launch agent install is macOS only.");
...
L22: const fallbackPath = [path.dirname(node), "/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin"].join(path.delimiter);
L23: const rawPath = process.env.PATH
L24: ? `${path.dirname(node)}${path.delimiter}${process.env.PATH}`
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 14. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** vendor/tmux/linux-arm64/tmux
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/vendor/tmux/linux-arm64/tmux>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = vendor/tmux/linux-arm64/tmux
kind = native_binary
sizeBytes = 2307584
magicHex = [redacted]
```

### 15. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** src/terminal-shell-hooks.zsh
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/terminal-shell-hooks.zsh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = src/terminal-shell-hooks.zsh
kind = build_helper
sizeBytes = 1282
magicHex = [redacted]
```

### 16. 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.

### 17. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** src/acp-proxy.js\#virtual:string-array:round1
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/acp-proxy.js%23virtual%3Astring-array%3Around1>)

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 = 3
```

### 18. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** src/voice.js
- **Public source:** [View source](<https://unpkg.com/@tritard/waterbrother@0.17.7/src/voice.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = @tritard/waterbrother@0.17.4
matchedIdentity = npm:QHRyaXRhcmQvd2F0ZXJicm90aGVy:0.17.4
similarity = 0.776
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 2
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 1
- **Published dependency-graph edges:** 2

### Published dependency entries
- @neondatabase/serverless 1.0.2 (Dependency)
- ws 8.21.3 (Dependency)

## Package metadata
- **Package:** @tritard/waterbrother
- **Ecosystem:** npm
- **Version:** 0.17.7
- **License:** MIT
- **Version published:** 2026-09-13T00:59:36.496Z
- **Package first seen:** 2026-09-04T19:50:23.247Z
- **Package last seen:** 2026-09-14T10:56:01.883Z
- **Known versions:** 4
- **Latest version:** 0.17.11
- **Appeal under review:** No
- **Description:** Waterbrother: bring-your-own-model coding CLI with local tools, sessions, operator modes, and approval controls
- **Keywords:** cli, coding-agent, terminal, ai, mcp
- **Runtime engines:** node: \>=22.13.0 \<23 || \>=24.0.0 \<25 || \>=26.0.0 \<27
- **Artifact files:** 132
- **Artifact unpacked size:** 10,325,912 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@tritard/waterbrother/v/0.17.7>)
- [Repository](<https://github.com/PhillipHolland/waterbrother.git>)
- [Homepage](<https://waterbrother.app/>)
- [Issues](<https://github.com/PhillipHolland/waterbrother/issues>)
