---
canonical: "https://firewall.lpm.dev/npm/dsh-tg-bridge/v/1.38.6"
markdown: "https://firewall.lpm.dev/npm/dsh-tg-bridge/v/1.38.6.md"
package: "dsh-tg-bridge"
report_status: "published"
title: "dsh-tg-bridge@1.38.6 npm security report"
verdict: "clean"
version: "1.38.6"
---

# dsh-tg-bridge@1.38.6 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. 17 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:** 1.38.6
- **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.

The reviewed command and credential flows are tied to the package's stated Telegram bridge purpose and user-configured providers. The scanner's command-output exfiltration lead resolves to an explicit setup check against Telegram's own API, and no install lifecycle hook is declared.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-11-01T22:56:32.642Z
- **Finished:** 2026-11-01T22:57:12.845Z
- **Download time:** 605 ms
- **Static scan time:** 1467 ms
- **AI review time:** 38129 ms
- **Total time:** 40203 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 attack identified; the flagged command execution and network calls support the package's Telegram bridge, setup, provider probing, and configured transcription functions.

- **Trigger:** Setup runs through an explicit command; probes follow provider fallback or diagnostics, and transcription follows a received audio attachment.

- **Impact:** No malicious impact identified.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-01T22:57:12.845Z

### AI review details

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

- **Mechanism:** Commands manage the bridge. Network requests use Telegram's API or user-configured model and transcription providers; no unrelated credential collector or command-output exfiltration was found.

- **Rationale:** The reviewed command and credential flows are tied to the package's stated Telegram bridge purpose and user-configured providers. The scanner's command-output exfiltration lead resolves to an explicit setup check against Telegram's own API, and no install lifecycle hook is declared.

- **Network endpoints:** api.telegram.org/bot${botToken}/getMe, ${provider.baseUrl}/chat/completions, ${base}/audio/transcriptions

### Review decision

- **Verdict:** Clean

- **Confidence:** 98.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** package.json declares no install lifecycle hook; setup and check are explicit commands., setup reads the Telegram bot token and checks it against Telegram's own api.telegram.org getMe endpoint., The model probe uses the provider URL and key environment variable from the user's profile or explicit debug overrides, then sends a one-token ping to that provider., Audio transcription sends a received audio attachment and configured key to the configured speech endpoint.

## Affected versions and remediation

This report applies to dsh-tg-bridge@1.38.6.

- Review the evidence and your use of dsh-tg-bridge@1.38.6 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. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** install-hooks.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/install-hooks.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L13: // Usage: node install-hooks.mjs [--uninstall]
L14: import { execFileSync } from 'node:child_process';
L15: import { existsSync, mkdirSync, chmodSync, writeFileSync } from 'node:fs';
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** setup.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/setup.mjs%23virtual%3Anormalized%3Around1>)

Package source references shell execution.

Public source snippet (untrusted):

```text
L107: try {
L108: const r = run("powershell", [
L109: "-NoProfile", "-NonInteractive", "-Command",
```

### 4. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** work/diff.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/work/diff.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L224: keyboard.push([
L225: { text: t('diff.explainShort', { line: where }), data: `${DIFF_PREFIX}x:${hunk.id}` },
L226: { text: t('diff.revertShort', { line: where }), data: `${DIFF_PREFIX}r:${hunk.id}` },
```

### 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. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 8. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** setup.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/setup.mjs%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
L107: try {
L108: const r = run("powershell", [
L109: "-NoProfile", "-NonInteractive", "-Command",
...
L117: 
L118: /** True when the pid exists — EPERM still means alive (another user"s process). */\r\nfunction alive(pid) {\r\n  try {\r\n    process.kill(pid, 0);\r\n    return true;\r\n  } catc...
L119: //        bridge" and both start a poller (409 getUpdates Conflict). Going through\r\n  //        bridge-kick.mjs means every start happens under restart.lock after a check.\r\n  c...
```

### 9. Critical: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** setup.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/setup.mjs%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
L107: try {
L108: const r = run("powershell", [
L109: "-NoProfile", "-NonInteractive", "-Command",
...
L111: ]);
L112: return Number((r.stdout || "").trim()) || 0;
L113: } catch {
...
L117: 
L118: /** True when the pid exists — EPERM still means alive (another user"s process). */\r\nfunction alive(pid) {\r\n  try {\r\n    process.kill(pid, 0);\r\n    return true;\r\n  } catc...
L119: //        bridge" and both start a poller (409 getUpdates Conflict). Going through\r\n  //        bridge-kick.mjs means every start happens under restart.lock after a check.\r\n  c...
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 12. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** install.sh
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/install.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = install.sh
kind = build_helper
sizeBytes = 3987
magicHex = [redacted]
```

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

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

### 14. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** chat/media.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/chat/media.mjs%23virtual%3Anormalized%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 = 9
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** work/bridge-restart-idle.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/work/bridge-restart-idle.mjs>)

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 = dsh-tg-bridge@1.3.0
matchedPath = bridge-restart-idle.mjs
matchedIdentity = npm:ZHNoLXRnLWJyaWRnZQ:1.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** work/restart-after-send.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/work/restart-after-send.mjs>)

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 = dsh-tg-bridge@1.3.0
matchedPath = restart-after-send.mjs
matchedIdentity = npm:ZHNoLXRnLWJyaWRnZQ:1.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 17. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** chat/media.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-tg-bridge@1.38.6/chat/media.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 = dsh-tg-bridge@1.38.5
matchedIdentity = npm:ZHNoLXRnLWJyaWRnZQ:1.38.5
similarity = 0.975
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

## Package metadata
- **Package:** dsh-tg-bridge
- **Ecosystem:** npm
- **Version:** 1.38.6
- **License:** MIT
- **Version published:** 2026-11-01T22:52:33.393Z
- **Package first seen:** 2026-10-24T08:25:05.499Z
- **Package last seen:** 2026-11-03T22:54:39.688Z
- **Known versions:** 96
- **Latest version:** 1.46.0
- **Appeal under review:** No
- **Description:** Drive DeepSeek Harness from Telegram: one project, model and session per forum topic
- **Maintainers:** aleksvega
- **Keywords:** deepseek-harness, dsh, telegram, bridge, bot, whisper, voice
- **Runtime engines:** dsh: \>=0.2.1-rc.2 \<0.3.0-0 || \>=0.2.2-rc.1 \<0.3.0-0, node: \>=24
- **Artifact files:** 184
- **Artifact unpacked size:** 1,489,003 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/dsh-tg-bridge/v/1.38.6>)
- [Repository](<https://github.com/aleksvega/dsh-tg-bridge>)
- [Homepage](<https://github.com/aleksvega/dsh-tg-bridge#readme>)
- [Issues](<https://github.com/aleksvega/dsh-tg-bridge/issues>)
