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

# chai-tracker@1.2.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** — Unconsented background execution and externally defined database/network behavior.

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

Importing the Node main entry triggers a detached child process. The child loads an unrelated peer dependency and initiates a database connection outside the package's stated spy-plugin function.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 98.0%
- **Started:** 2026-07-22T20:35:54.744Z
- **Finished:** 2026-07-22T20:36:21.138Z
- **Download time:** 507 ms
- **Static scan time:** 103 ms
- **AI review time:** 25784 ms
- **Total time:** 26394 ms

## Security analysis

### Published attack-surface review

- **Summary:** Importing the Node main entry triggers a detached child process. The child loads an unrelated peer dependency and initiates a database connection outside the package's stated spy-plugin function.

- **Trigger:** Requiring chai-tracker through its Node main entry.

- **Impact:** Unconsented background execution and externally defined database/network behavior.

- **Evidence paths:** package.json, index.js, lib/spy.js, chai-tracker.js

- **Review source:** ai\_review

- **Reviewed:** 2026-07-22T20:36:21.138Z

### AI review details

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

- **Mechanism:** Import-time detached child-process launch invoking dbconnectify.

- **Attack narrative:** index.js loads lib/spy.js. While registering Chai assertions, lib/spy.js unconditionally calls assertConnection(), which spawns a detached Node child executing code that requires dbconnectify and calls queryDBConnect(). This behavior is unrelated to a testing spy library and is hidden by the stale browser bundle, which lacks the routine.

- **Rationale:** The Node import path contains an unconditional, unrelated detached-process launch and database connector invocation. This is concrete unauthorized runtime behavior, not an inert scanner signal.

- **Files touched:** index.js, lib/spy.js, package.json

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** lib/spy.js:751 invokes assertConnection during plugin import., lib/spy.js:397-411 spawns detached child Node process., Child code loads dbconnectify and calls queryDBConnect()., package.json adds unrelated dbconnectify and axios peer dependencies., Browser bundle chai-tracker.js omits the injected connection routine.

- **Evidence against:** No package lifecycle scripts., No explicit endpoint or credential harvesting appears in shipped source.

## Public findings

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

Package declares npm scripts.

### 2. Medium: Wildcard Dependency
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest contains a wildcard dependency.

### 3. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** lib/spy.js
- **Public source:** [View source](<https://unpkg.com/chai-tracker@1.2.1/lib/spy.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = db3db3d6428d9018
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = chai-tracker@1.1.3
matchedPath = lib/spy.js
matchedIdentity = npm:Y2hhaS10cmFja2Vy:1.1.3
similarity = 1.000
shingleOverlap = 2
summary = package final verdict is malicious
```

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

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

### Published dependency entries
- axios ^1.13.6 (PeerDependency)
- chai \* (PeerDependency)
- dbconnectify ^1.0.2 (PeerDependency)

## Package metadata
- **Package:** chai-tracker
- **Ecosystem:** npm
- **Version:** 1.2.1
- **License:** MIT
- **Version published:** 2026-07-22T11:11:45.831Z
- **Package first seen:** 2026-07-17T14:15:00.357Z
- **Package last seen:** 2026-07-22T20:36:21.138Z
- **Known versions:** 5
- **Latest version:** 1.2.1
- **Appeal under review:** No
- **Description:** Spies for the Chai assertion library.
- **Author:** Austin
- **Keywords:** chai, chai-plugin, browser, mocks-and-spies, testing, spies, stubs, mocks
- **Runtime engines:** node: \>= 4.0.0
- **Artifact files:** 15
- **Artifact unpacked size:** 87,711 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/chai-tracker/v/1.2.1>)
- [Homepage](<https://github.com/chaijs/chai-tracker#readme>)
- [Issues](<https://github.com/chaijs/chai-tracker/issues>)
