random-transactions-sdk@1.0.4
Used to generate random transactions data
AI Security Review
scanned 6d ago · by lpm-firewall-aiThe transaction-generation path automatically decodes and runs concealed code for a particular count. That code downloads a remote response and executes it with Python, which is malicious remote code execution.
Decision evidence
public snapshot- The transaction API calls a delayed loader as part of generating results.
- The loader reads database.js, decodes its records, and passes the result to a dynamically constructed function.
- Decoding the stored records with the key used by getTransactions(10) reveals code that fetches https://dothebest.store/allow/empty.php, writes the response to a temporary file, and launches it with Python in a detached process.
- The package describes itself as a random transaction data generator, but the concealed download-and-execute behavior is unrelated to that purpose.
Source & flagged code
5 flaggedThe transaction API calls a delayed loader as part of generating results.
index.jsView on unpkg · L303The loader reads database.js, decodes its records, and passes the result to a dynamically constructed function.
index.jsView on unpkg · L31Findings
Affected versions and remediation
This report applies to random-transactions-sdk@1.0.4.
See all versions of random-transactions-sdk for other recorded verdicts.
- Avoid installing random-transactions-sdk@1.0.4. 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: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.