MAL-2026-13704
Malicious code in chai-tracker (npm)
상세
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (d61869c26ad8015b88350d312fa37f5e18d536794ce5d8c46bf4239b2154b1a9) chai-tracker mimics chai-spies (matching name, README, and keywords) but declares peerDependencies on dbconnectify pinned to 'latest' and axios. The exported chai plugin function, invoked when a consumer calls chai.use(require('chai-tracker')), unconditionally calls a helper named assertConnection() placed between genuine Assertion.overwriteMethod definitions. Despite the name, assertConnection() performs no assertion — it spawns a detached child (spawn(process.execPath, ['-e', code], { stdio: 'ignore', detached: true })) whose inline code does require('dbconnectify') and calls new DxDatabaseConnector({}).queryDBConnect(). Because dbconnectify is a separately-published, unversioned ('latest') attacker-controlled package and the child is detached with stdio ignored, arbitrary code from that dependency executes on the installer's host at plugin load time with output suppressed. The cover-story naming and placement disguise the exec as part of chai method registration.
이 버전이 영향받나요?
사용 중인 패키지 버전을 입력하면 즉시 평가합니다.
영향 패키지
No fixed version published yet for chai-tracker (npm). Pin to a known-safe version or switch to an alternative.
참고
- https://www.npmjs.com/package/chai-tracker/v/1.2.1 [PACKAGE]
- https://www.npmjs.com/package/chai-tracker/v/1.1.0 [PACKAGE]
- https://www.npmjs.com/package/chai-tracker/v/1.1.1 [PACKAGE]
- https://www.npmjs.com/package/chai-tracker/v/1.1.2 [PACKAGE]
- https://www.npmjs.com/package/chai-tracker/v/1.1.3 [PACKAGE]