@asyncapi/generator
The AsyncAPI generator. It can generate documentation, code, anything!
This report shows the evidence for @asyncapi/generator@3.3.1. 3 of 5 known versions are blocked or flagged. The newest version, 3.5.0, is allowed. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThe package contains an import-time, obfuscated detached child-process launcher in a validator module. This is concrete hidden execution, not a package-aligned generator feature.
Decision evidence
public snapshot- `lib/templates/config/validator.js:69` contains a 7.6KB obfuscated injected payload.
- Payload executes `main()` at module load, before validator exports are used.
- Payload imports `child_process` and calls detached hidden `spawn(...).unref()`.
- Spawned process is `node -e` with an obfuscated second-stage command.
- Payload also imports `fs`, `os`, `path`, and `https`, inconsistent with template validation.
- `lib/generator.js:14` imports this validator, so importing the package triggers it.
- `package.json` has no preinstall/install/postinstall lifecycle hook.
- The surrounding validator code is ordinary template configuration validation.
- Normal generator file writes and template installation are user-invoked features.
Source & flagged code
3 flagged · loading sourcePackage source references dynamic require/import behavior.
jest.config.jsView on unpkg · L1Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
lib/templates/config/validator.jsView on unpkg · L68Findings
Affected versions and remediation
This report applies to @asyncapi/generator@3.3.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing @asyncapi/generator@3.3.1. 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.