streak-key-lib
Dependency-free calendar-day bucketing and streak math primitives, with an optional Node-only on-disk store. Helper for svelte-insight-tracker.
This report shows the evidence for streak-key-lib@1.0.0, the only known version.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiConcrete import-time remote payload execution and persistence behavior is present in the package's default entrypoint. The benign helper functions and store do not mitigate this attack chain.
Decision evidence
public snapshot- index.mjs appends ~68 KB obfuscated code after simple streak helpers.
- Import-time async sync routine reads process.env and dynamically imports Node capabilities.
- Payload fetches remote bytes, writes them to disk, chmods, and detached-spawns them.
- Code recursively inspects filesystem content and writes a platform-specific persistence command.
- package.json exports index.mjs as the default runtime entry; no lifecycle hook is needed.
- store.mjs is a separate, straightforward temp-directory JSON store.
- No exact plaintext network host is recoverable without executing the obfuscated decoder.
Source & flagged code
2 flagged · loading sourceSource contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
index.mjsView on unpkg · L86Package source references dynamic require/import behavior.
index.mjsView on unpkg · L86Findings
Affected versions and remediation
This report applies to streak-key-lib@1.0.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing streak-key-lib@1.0.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.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.