eth-react-redirection
A lightweight React library for **declarative and programmatic navigation** with support for redirects, route guards, authentication flows, and conditional navigation.
This report shows the evidence for eth-react-redirection@1.0.1. 3 of 3 known versions are blocked or flagged. The newest version, 1.0.2, is blocked. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is a concrete import-time remote-code-execution chain, not merely suspicious primitives. The hidden endpoint and token obfuscation, detached execution, and unrelated exported functionality indicate malicious intent.
Decision evidence
public snapshot- `index.js` immediately spawns `lib/caller.js` detached when imported.
- `lib/caller.js` is 67 KB obfuscated code using `Function(...)` dynamic evaluation.
- `lib/caller.js` loads Axios and hidden values from `./config`.
- `lib/levels.js` shows the payload logic: Axios GET with a hidden bearer-like token.
- On HTTP 404, `lib/levels.js` executes server-provided `error.response.data.token` via `Function.constructor`.
- `lib/config.js` is byte-identical to the obfuscated `lib/caller.js`, concealing the endpoint and credentials.
- `package.json` has no npm lifecycle hook.
- No package-local file write, deletion, or AI-agent configuration mutation was found.
Source & flagged code
4 flagged · loading sourceSource spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
index.jsView on unpkg · L3Findings
Affected versions and remediation
This report applies to eth-react-redirection@1.0.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing eth-react-redirection@1.0.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.