---
canonical: "https://firewall.lpm.dev/npm/sandbox-pentest-assessment"
markdown: "https://firewall.lpm.dev/npm/sandbox-pentest-assessment/report.md"
package: "sandbox-pentest-assessment"
report_status: "published"
title: "sandbox-pentest-assessment@2.0.1 npm security report"
verdict: "suspicious"
version: "2.0.1"
---

# sandbox-pentest-assessment@2.0.1 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 9 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Destructive action
- **Selected version:** 2.0.1
- **Selected version is latest:** Yes
- **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.

The package’s disclosed sandbox inventory behavior fits its purpose, but its privileged preinstall writes to predictable /tmp paths without symlink protection. That creates a concrete arbitrary-file overwrite vulnerability, so this warrants a warning rather than a malicious-package block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-20T02:55:11.486Z
- **Finished:** 2026-11-20T02:55:51.666Z
- **Download time:** 506 ms
- **Static scan time:** 23 ms
- **AI review time:** 39651 ms
- **Total time:** 40180 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:** Privileged preinstall writes reports to predictable paths in /tmp, exposing an arbitrary-file overwrite risk if an attacker pre-creates symlinks there.

- **Trigger:** Automatic npm preinstall.

- **Impact:** A pre-existing symlink can redirect a privileged write to another file; the intended world-readable report also contains system inventory details.

- **Evidence paths:** package.json, scripts/assess.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-20T02:55:51.666Z

### AI review details

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

- **Mechanism:** The script opens fixed /tmp report paths with writeFileSync and then changes their modes, without first ensuring the destination is not a symlink.

- **Rationale:** The package’s disclosed sandbox inventory behavior fits its purpose, but its privileged preinstall writes to predictable /tmp paths without symlink protection. That creates a concrete arbitrary-file overwrite vulnerability, so this warrants a warning rather than a malicious-package block.

- **Files touched:** package.json, scripts/assess.js, /tmp/sandbox-pentest-\<pid\>/report.json, /tmp/sandbox-pentest-\<pid\>/SUMMARY.txt, /tmp/sandbox-pentest-latest.txt, /tmp/sandbox-pentest-latest.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

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

- **Intent class:** Critical Vulnerability

- **False-positive risk:** Medium

- **Evidence for warning:** The package runs scripts/assess.js automatically during preinstall, including in a privileged install context., The script writes reports to fixed paths under /tmp; the public copies are mode 0644. Those predictable paths can follow pre-existing symlinks when opened for writing, creating an arbitrary-file overwrite risk during a privileged install.

- **Evidence against:** The documented purpose is to inventory a Linux sandbox, and the README describes the preinstall behavior and public report files., The source describes read-only system inspection and does not show network transmission or collection of environment variable values.

## Affected versions and remediation

This report applies to sandbox-pentest-assessment@2.0.1.

- Review the evidence and your use of sandbox-pentest-assessment@2.0.1 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/sandbox-pentest-assessment@2.0.1/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.preinstall = node scripts/assess.js
```

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

Package declares npm scripts.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

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

### 7. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 91.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/sandbox-pentest-assessment@2.0.1/package.json>)

The package runs scripts/assess.js automatically during preinstall, including in a privileged install context.

Public source snippet (untrusted):

```json
"preinstall": "node scripts/assess.js"
  },
  "files": [
    "scripts",
    "bin",
    "README.md",
```

### 8. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 91.0%
- **Path:** scripts/assess.js
- **Public source:** [View source](<https://unpkg.com/sandbox-pentest-assessment@2.0.1/scripts/assess.js>)

The script writes reports to fixed paths under /tmp; the public copies are mode 0644. Those predictable paths can follow pre-existing symlinks when opened for writing, creating an arbitrary-file overwrite risk during a privileged install.

Public source snippet (untrusted):

```javascript
const PUBLIC = "/tmp/sandbox-pentest-latest.txt";
const PUBLIC_JSON = "/tmp/sandbox-pentest-latest.json";
fs.mkdirSync(OUT, {recursive:true, mode:0o700});
try {
```

### 9. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 91.0%
- **Path:** scripts/assess.js
- **Public source:** [View source](<https://unpkg.com/sandbox-pentest-assessment@2.0.1/scripts/assess.js>)

The script writes reports to fixed paths under /tmp; the public copies are mode 0644. Those predictable paths can follow pre-existing symlinks when opened for writing, creating an arbitrary-file overwrite risk during a privileged install.

Public source snippet (untrusted):

```javascript
fs.writeFileSync(PUBLIC,text,{mode:0o644});
fs.chmodSync(PUBLIC,0o644);
fs.writeFileSync(PUBLIC_JSON,JSON.stringify(report,null,2),{mode:0o644});
fs.chmodSync(PUBLIC_JSON,0o644);

console.log(`SANDBOX PENTEST C
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** preinstall
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** sandbox-pentest-assessment
- **Ecosystem:** npm
- **Version:** 2.0.1
- **License:** MIT
- **Version published:** 2026-09-17T14:06:00.624Z
- **Package first seen:** 2026-09-26T11:08:34.134Z
- **Package last seen:** 2026-11-20T02:55:51.666Z
- **Known versions:** 3
- **Latest version:** 2.0.1
- **Appeal under review:** No
- **Description:** Read-only Linux sandbox boundary assessment
- **Maintainers:** cyphercrafter
- **Artifact files:** 5
- **Artifact unpacked size:** 6,972 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/sandbox-pentest-assessment>)
