Remove obfuscated RCE payload from postcss.config.js and restore .gitignore - #7
Draft
kevpay wants to merge 1 commit into
Draft
Remove obfuscated RCE payload from postcss.config.js and restore .gitignore#7kevpay wants to merge 1 commit into
kevpay wants to merge 1 commit into
Conversation
…ignore
postcss.config.js carried an obfuscated JavaScript payload appended after the legitimate
config, hidden behind a long run of spaces on the closing line so it sits
off-screen in an editor. Restored to its pre-tampering content.
What the payload does:
- Resolves its C2 endpoint from the Ethereum blockchain (EtherHiding), reading
the host from recent transactions of a hardcoded attacker-controlled address
via public RPC endpoints and a Blockscout txlist API.
- Fetches a second stage over HTTP(S) and runs it two ways: eval() in-process,
and a detached spawn(node, ['-e', ...]) with stdio 'ignore' and windowsHide,
unref'd so it outlives the parent.
postcss.config.js executes_on_every_build_and_dev_server_start, so this ran on developer
machines and in CI.
.gitignore was rewritten by the same commit: line endings converted, the .env
entry deleted, and a config.bat entry added. Removing .env from .gitignore
stages local secrets to become committable. Restored to its pre-tampering
revision.
The payload first arrived in 7351fac_("add_cert_renew_script",_2025-01-06),_and_was_replaced_with_a_newer_variant_by_7948683_("remove_polin_rider",_2026-05-27).
kevpay
force-pushed
the
claude/citizenwallet-malicious-cleanup-bubc6e
branch
from
September 1, 2026 09:31
ded413d to
645f75a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
postcss.config.jscarried an obfuscated JavaScript payload appended after the config, hidden behind a long run of spaces on the closing line so it sits off-screen in an editor..gitignorewas rewritten by the same activity to delete the.enventry and addconfig.bat.What the payload does
txlistAPI.eval()in-process, and a detachedspawn(node, ['-e', ...])withstdio: 'ignore'andwindowsHide,unref()'d so it outlives the parent.postcss.config.jsexecutes on every build and dev server start.Provenance
An older payload variant arrived in
7351fac("add cert renew script", 2025-01-06) and was replaced with a newer, blockchain-C2 variant by7948683("remove polin rider", 2026-05-27) — a commit intended as a cleanup that shipped a fresh payload instead. That points at the committing machine rather than CI.Scope note
This PR cleans the current tip only; the payload remains reachable in history. Ten other org repositories carry the same campaign, and any credentials reachable from an affected machine or CI run should be treated as compromised.
Generated by Claude Code