---
canonical: "https://firewall.lpm.dev/npm/@threadlines/server/v/0.3.2"
markdown: "https://firewall.lpm.dev/npm/@threadlines/server/v/0.3.2.md"
package: "@threadlines/server"
report_status: "published"
title: "@threadlines/server@0.3.2 npm security report"
verdict: "clean"
version: "0.3.2"
---

# @threadlines/server@0.3.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
**Allowed — no malicious behavior detected** — No malicious behavior detected. 18 low-signal pattern(s) reviewed.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 0.3.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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

Scanner claims of command-output exfiltration are not supported by the inspected source: command output is retained for local provider-update status. The observed process, credential, network, and filesystem capabilities are package-aligned and runtime/user-invoked.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-08-09T03:59:53.260Z
- **Finished:** 2026-08-09T04:01:02.892Z
- **Download time:** 1258 ms
- **Static scan time:** 11940 ms
- **AI review time:** 56432 ms
- **Total time:** 69632 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:** No confirmed malicious attack surface. The user-invoked CLI intentionally runs a local coding-agent server with terminal and workspace capabilities.

- **Trigger:** Explicit execution of the threadlines CLI/server

- **Impact:** No unconsented install-time action, exfiltration chain, or persistence was found.

- **Evidence paths:** package.json, dist/bin.mjs, dist/shell-DamM0QVE.mjs, dist/NodePTY-C16is8Ga.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-08-09T04:01:02.892Z

### AI review details

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

- **Mechanism:** Local agent orchestration, PTY terminal management, and opt-out telemetry

- **Rationale:** Scanner claims of command-output exfiltration are not supported by the inspected source: command output is retained for local provider-update status. The observed process, credential, network, and filesystem capabilities are package-aligned and runtime/user-invoked.

- **Files touched:** package.json, dist/bin.mjs, dist/shell-DamM0QVE.mjs, dist/NodePTY-C16is8Ga.mjs

- **Network endpoints:** https://api.anthropic.com/api/oauth/usage, https://us.i.posthog.com/batch/, https://registry.npmjs.org/

### Review decision

- **Verdict:** Clean

- **Confidence:** 94.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence against:** package.json has no lifecycle scripts; execution is via the user-invoked threadlines CLI., dist/bin.mjs starts only when import.meta.main and runs a local server/CLI., Shell and PTY execution implement the advertised coding-agent terminal feature., Claude OAuth credential reads are used only for an authenticated request to api.anthropic.com usage endpoint., PostHog telemetry uses an anonymous installation ID and feature-event metadata, not command output., No source evidence sends shell command output, harvested credentials, or files to an attacker endpoint.

## Affected versions and remediation

This report applies to @threadlines/server@0.3.2.

- Review the evidence and your use of @threadlines/server@0.3.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: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/shell-DamM0QVE.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/shell-DamM0QVE.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L2: 
L3: import { execFileSync } from "node:child_process";
L4: import { accessSync, constants, statSync } from "node:fs";
```

### 2. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/shell-DamM0QVE.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/shell-DamM0QVE.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L10: const POSIX_PATH_DELIMITER = ":";
L11: const WINDOWS_SHELL_CANDIDATES = ["pwsh.exe", "powershell.exe"];
L12: function trimNonEmpty(value) {
```

### 3. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%

Package source references dynamic require/import behavior.

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

Package source references network APIs.

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

Package source references environment variables.

### 7. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

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

Public source snippet (untrusted):

```javascript
L2: 
L3: import { a as readPathFromLaunchctl, c as resolveWindowsEnvironment, i as readEnvironmentFromWindowsShell, n as listLoginShellCandidates, o as readPathFromLoginShell, r as mergePat...
L4: import { n as PtySpawnError, t as PtyAdapter } from "./PTY-B_NJr7la.mjs";
...
L10: import { Argument, Command, Flag, GlobalFlag } from "effect/unstable/cli";
L11: import * as NodeNet from "node:net";
L12: import * as Data from "effect/Data";
...
L39: import * as Migrator from "effect/unstable/sql/Migrator";
L40: import { execFileSync } from "node:child_process";
L41: import * as Cause from "effect/Cause";
...
L204: //#endregion
L205: //#region package.json
L206: var version = "0.3.2";
```

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

Package source references filesystem APIs.

### 9. Critical: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

Source executes local commands and sends command output to an external endpoint.

Public source snippet (untrusted):

```javascript
L2: 
L3: import { a as readPathFromLaunchctl, c as resolveWindowsEnvironment, i as readEnvironmentFromWindowsShell, n as listLoginShellCandidates, o as readPathFromLoginShell, r as mergePat...
L4: import { n as PtySpawnError, t as PtyAdapter } from "./PTY-B_NJr7la.mjs";
...
L10: import { Argument, Command, Flag, GlobalFlag } from "effect/unstable/cli";
L11: import * as NodeNet from "node:net";
L12: import * as Data from "effect/Data";
...
L39: import * as Migrator from "effect/unstable/sql/Migrator";
L40: import { execFileSync } from "node:child_process";
L41: import * as Cause from "effect/Cause";
...
L204: //#endregion
L205: //#region package.json
L206: var version = "0.3.2";
```

### 10. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

Source exposes local file and command tools to a remote model endpoint.

Public source snippet (untrusted):

```javascript
L39: import * as Migrator from "effect/unstable/sql/Migrator";
L40: import { execFileSync } from "node:child_process";
L41: import * as Cause from "effect/Cause";
...
L558: provider: AdvertisedEndpointProvider,
L559: httpBaseUrl: TrimmedNonEmptyString,
L560: wsBaseUrl: TrimmedNonEmptyString,
...
L12209: try {
L12210: return JSON.parse(readFileSync(packageJsonPath, "utf8")).version ?? "unknown";
L12211: } catch {
...
L51884: 
L51885: Use the \`request_user_input\` tool only when it is listed in the available tools for this turn.
L51886:
```

### 11. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.bin -> dist/bin.mjs
L2: 
L3: import { a as readPathFromLaunchctl, c as resolveWindowsEnvironment, i as readEnvironmentFromWindowsShell, n as listLoginShellCandidates, o as readPathFromLoginShell, r as mergePat...
L4: import { n as PtySpawnError, t as PtyAdapter } from "./PTY-B_NJr7la.mjs";
...
L10: import { Argument, Command, Flag, GlobalFlag } from "effect/unstable/cli";
L11: import * as NodeNet from "node:net";
L12: import * as Data from "effect/Data";
...
L39: import * as Migrator from "effect/unstable/sql/Migrator";
L40: import { execFileSync } from "node:child_process";
L41: import * as Cause from "effect/Cause";
...
L204: //#endregion
L205: //#region package.json
L206: var version = "0.3.2";
```

### 12. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> dist/bin.mjs
L2: 
L3: import { a as readPathFromLaunchctl, c as resolveWindowsEnvironment, i as readEnvironmentFromWindowsShell, n as listLoginShellCandidates, o as readPathFromLoginShell, r as mergePat...
L4: import { n as PtySpawnError, t as PtyAdapter } from "./PTY-B_NJr7la.mjs";
...
L10: import { Argument, Command, Flag, GlobalFlag } from "effect/unstable/cli";
L11: import * as NodeNet from "node:net";
L12: import * as Data from "effect/Data";
...
L39: import * as Migrator from "effect/unstable/sql/Migrator";
L40: import { execFileSync } from "node:child_process";
L41: import * as Cause from "effect/Cause";
...
L204: //#endregion
L205: //#region package.json
L206: var version = "0.3.2";
```

### 13. Medium: Protestware
- **Category:** Supply Chain
- **Confidence:** 90.0%

Package source has broad protestware-like patterns that need review.

### 14. Low: Obfuscated
- **Category:** Supply Chain
- **Confidence:** 60.0%

Package source has low-confidence obfuscation-like patterns.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### 18. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/bin.mjs
- **Public source:** [View source](<https://unpkg.com/@threadlines/server@0.3.2/dist/bin.mjs>)

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 = @threadlines/server@0.3.1
matchedIdentity = npm:QHRocmVhZGxpbmVzL3NlcnZlcg:0.3.1
similarity = 0.933
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

### Published dependency entries
- @anthropic-ai/claude-agent-sdk ^0.3.221 (Dependency)
- @effect/platform-bun 4.0.0-beta.98 (Dependency)
- @effect/platform-node 4.0.0-beta.98 (Dependency)
- @effect/platform-node-shared 4.0.0-beta.98 (Dependency)
- @effect/sql-sqlite-bun 4.0.0-beta.97 (Dependency)
- effect 4.0.0-beta.98 (Dependency)
- node-pty ^1.1.0 (Dependency)

## Package metadata
- **Package:** @threadlines/server
- **Ecosystem:** npm
- **Version:** 0.3.2
- **License:** MIT
- **Version published:** 2026-08-06T17:17:22.931Z
- **Package first seen:** 2026-07-13T00:12:35.013Z
- **Package last seen:** 2026-10-31T23:25:58.255Z
- **Known versions:** 17
- **Latest version:** 0.8.0
- **Appeal under review:** No
- **Description:** Threadlines server and CLI for running coding-agent sessions.
- **Author:** Wilfredo Leon
- **Maintainers:** badcuban
- **Keywords:** claude, codex, coding-agents, developer-tools, threadlines
- **Runtime engines:** node: ^22.22.2 || ^24.15.0 || \>=26
- **Artifact files:** 911
- **Artifact unpacked size:** 58,341,572 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@threadlines/server/v/0.3.2>)
- [Repository](<https://github.com/Threadlines/threadlines>)
- [Homepage](<https://github.com/Threadlines/threadlines#readme>)
- [Issues](<https://github.com/Threadlines/threadlines/issues>)
