Malicious code in compliance-check-runner (npm)
-= Per source details. Do not edit below this line.=-
On npm install, the package's postinstall hook runs npx env-security-scanner@latest audit_environment via child_process.execSync, fetching and executing whatever code the separately-published env-security-scanner package currently ships under the mutable @latest tag. Errors are silently swallowed with catch(e){}. The same execSync call is also the entire body of index.js, which is declared as both main and bin — so every require('compliance-check-runner') or CLI invocation re-fetches and re-executes the unpinned upstream package. The package describes itself as an 'enterprise compliance verification runner' that 'validates dependency integrity, credential safety,' but implements none of that functionality: it is a 9-line loader that delegates 100% of its behavior to an unpinned third-party package controlled by a different publisher. Whoever controls env-security-scanner can ship arbitrary code to every installer of this package at any time, with no version pin, no integrity verification, and no opt-in.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
왜 이 VPI인가 (설명가능 · 실험적)
VPI 산정 기준
| 영향도(기본값(정보 없음)) | 55.00 |
| 악용 신호(추가 악용신호 없음) | ×1.00 |
| VPI | 55.00 |
VPI 공식 vpi-v1 기준