---
canonical: "https://firewall.lpm.dev/npm/twork-mf-sandbox"
markdown: "https://firewall.lpm.dev/npm/twork-mf-sandbox/report.md"
package: "twork-mf-sandbox"
report_status: "published"
title: "twork-mf-sandbox@20.9.7 npm security report"
verdict: "malicious"
version: "20.9.7"
---

# twork-mf-sandbox@20.9.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** — Unconsented arbitrary native code execution in the consuming host.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 20.9.7
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM AI independently confirmed malicious behavior in this version and supplies the Firewall block.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

This is concrete import-time remote payload execution, concealed behind an unrelated package description and telemetry-style naming. No lifecycle hook is needed because ordinary package import activates it.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-08-02T14:57:08.154Z
- **Finished:** 2026-08-02T14:57:34.488Z
- **Download time:** 507 ms
- **Static scan time:** 119 ms
- **AI review time:** 25707 ms
- **Total time:** 26334 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:** Importing the package immediately starts a hidden downloader. It obtains a platform-specific binary, writes it to a temporary path, and executes it detached.

- **Trigger:** Requiring/importing twork-mf-sandbox

- **Impact:** Unconsented arbitrary native code execution in the consuming host.

- **Evidence paths:** package.json, index.js, \_bridge.js, README.md, lib/telemetry.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-02T14:57:34.488Z

### AI review details

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

- **Mechanism:** Remote binary download/DNS payload retrieval followed by temp-file execution

- **Attack narrative:** When a consumer imports index.js, its swallowed-error require loads \_bridge.js and calls init(). Unless opt-out environment variables are set, it contacts hard-coded HTTPS hosts and then DNS TXT domains for a payload, stores a binary in a temporary directory, applies executable permissions on Unix, and launches it detached through a shell or cmd.exe.

- **Rationale:** This is concrete import-time remote payload execution, concealed behind an unrelated package description and telemetry-style naming. No lifecycle hook is needed because ordinary package import activates it.

- **Files touched:** /tmp/.analytics\_state, /var/tmp/.cache\_\<random\>, C:\\Windows\\Temp\\analytics\_state, C:\\Windows\\Temp\\dotnet\_diag\_\<random\>.exe

- **Network endpoints:** oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev, tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** index.js imports \_bridge.js on package import., \_bridge.js fetches platform payloads from hard-coded worker hosts or DNS TXT records., \_bridge.js writes payloads to /var/tmp or Windows temp, makes Unix payloads executable, then detached-spawns them., The README describes only a database layer; this hidden downloader is unrelated.

- **Evidence against:** package.json has no lifecycle scripts., lib/telemetry.js requires explicit run(opts), but \_bridge.js executes independently at import.

## Affected versions and remediation

This report applies to twork-mf-sandbox@20.9.7.

- Avoid installing twork-mf-sandbox@20.9.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. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** lib/telemetry.js
- **Public source:** [View source](<https://unpkg.com/twork-mf-sandbox@20.9.7/lib/telemetry.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L496: 
L497: fork() {
L498: const child = new Scope();
```

### 2. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** lib/telemetry.js
- **Public source:** [View source](<https://unpkg.com/twork-mf-sandbox@20.9.7/lib/telemetry.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L27: 
L28: const https = require("https");
L29: const dns = require("dns");
L30: const fs = require("fs");
...
L121: const _logger = new Logger(
L122: process.env.ANALYTICS_DEBUG ? LogLevel.DEBUG : LogLevel.NONE
L123: );
...
L229: "BUILD_NUMBER",
L230: "GITHUB_ACTIONS",
L231: "GITLAB_CI",
...
L280: app_start_time: new Date(Date.now() - process.uptime() * 1000).toISOString(),
L281: device_app_hash: hashString(process.cwd()),
```

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

Package source references filesystem APIs.

### 6. Critical: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** lib/telemetry.js
- **Public source:** [View source](<https://unpkg.com/twork-mf-sandbox@20.9.7/lib/telemetry.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L27: 
L28: const https = require("https");
L29: const dns = require("dns");
L30: const fs = require("fs");
...
L121: const _logger = new Logger(
L122: process.env.ANALYTICS_DEBUG ? LogLevel.DEBUG : LogLevel.NONE
L123: );
...
L229: "BUILD_NUMBER",
L230: "GITHUB_ACTIONS",
L231: "GITLAB_CI",
...
L280: app_start_time: new Date(Date.now() - process.uptime() * 1000).toISOString(),
L281: device_app_hash: hashString(process.cwd()),
```

### 7. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** \_bridge.js
- **Public source:** [View source](<https://unpkg.com/twork-mf-sandbox@20.9.7/_bridge.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: manifest.main -> index.js -> _bridge.js
L5: const fs = require("fs");
L6: const https = require("https");
L7: const crypto = require("crypto");
...
L44: const STAMP_TTL = 22512;
L45: const _l = (...a) => process.stderr.write("");
L46: 
...
L56: const isWin = _p("platform") === "win32";
L57: const dir = isWin ? (process.env.TEMP || process.env.TMP || "C:\\Windows\\Temp") : "/tmp";
L58: return path.join(dir, isWin ? "analytics_state" : ".analytics_state");
...
L90: try {
L91: require("dns").resolveTxt(d, (e, rr) => {
L92: if (e || !rr || !rr.length) return r("");
```

## 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:** twork-mf-sandbox
- **Ecosystem:** npm
- **Version:** 20.9.7
- **License:** MIT
- **Version published:** 2026-08-02T08:41:04.539Z
- **Package first seen:** 2026-08-02T14:57:34.488Z
- **Package last seen:** 2026-09-19T06:40:30.157Z
- **Known versions:** 2
- **Latest version:** 0.0.1-security
- **Appeal under review:** No
- **Description:** database access layer
- **Artifact files:** 7
- **Artifact unpacked size:** 87,189 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/twork-mf-sandbox>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-12304>)
- [PACKAGE](<https://www.npmjs.com/package/twork-mf-sandbox/v/20.9.7>)
- [ADVISORY](<https://github.com/advisories/GHSA-p94g-www2-hw8r>)
