Skip to content

fix(security): remove malicious api.js injection and obfuscated backdoor in postcss.config - #77

Open
RizulChauhan wants to merge 1 commit into
Earnly-Build:mainfrom
RizulChauhan:security/remove-backdoor-api-scripts
Open

RizulChauhan wants to merge 1 commit into
Earnly-Build:mainfrom
RizulChauhan:security/remove-backdoor-api-scripts

Conversation

@RizulChauhan

Copy link
Copy Markdown

Security Incident & Root Cause

PR #46 (0327dee) inadvertently merged an obfuscated backdoor:

  1. api.js: An obfuscated 28KB script injected into the repository root.
  2. package.json: Pre-pended node api.js && to dev, build, and start scripts.
  3. postcss.config.mjs: Appended an obfuscated eval payload attempting network connections to 104.20.24.117:443, causing uncaught ETIMEDOUT errors and crashing the test suite.

Remediation Applied

  • Deleted api.js.
  • Restored standard Next.js commands in package.json.
  • Restored clean Tailwind PostCSS configuration in postcss.config.mjs.

Verification

  • npm run lint: PASS (0 warnings/errors)
  • npm test: PASS (37 test files passed, 263 tests green)
  • npm run build: PASS (Compiled in 3.6s, all 31 routes generated)

Settlement Base USDC: 0xB0fc11e067c57aa0DCEB398747847c6F25a369A1

@RizulChauhan
RizulChauhan force-pushed the security/remove-backdoor-api-scripts branch 2 times, most recently from f3d2b40 to baa7d9c Compare November 11, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants