π¨ Urgent security help needed β unauthorized malicious commit #208116
Replies: 6 comments 6 replies
|
Treat this as a potential GitHub/developer-environment compromise. Focus on these areas: GitHub logs find what account, token, SSH key, or session pushed 1ac03f9. The local reflog not containing the commit is significant: it suggests the commit wasn't created through your local Git history, but it doesn't by itself tell you how the attacker obtained write access. If you upload the malicious postcss.config.mjs, I can break down exactly what the payload is doing and identify what you should search for next. |
|
Hi @solomon-mh β this pattern strongly matches npm/postcss supply-chain compromise (PolinRider-style). Treat as active incident until proven otherwise. Immediate containment (do first)
Evidence to collect
How write access was likely obtainedMost common vectors for this attack class:
The fact commit does not appear in local reflog suggests push came from CI, another machine, or stolen token β not your local git. postcss.config.mjs IOC checkgit show 1ac03f9:postcss.config.mjs | head -50
npm ls postcss --allCompare against known-good config in a clean clone. Recovery checklist
Report
Happy to help analyze the obfuscated payload or security log entries if you share redacted snippets. |
|
Hi @solomon-mh, This community is managed by GitHub employees, but it is not a support forum. The only place to go for answers to account-specific questions like this one is opening a ticket on our Support page. As no other Community Discussions team members will be able to provide additional help with account related questions I am going to close this discussion. We appreciate your understanding and patience while Support works through your request! |
|
@solomon-mh The reason the payload keeps reappearing even after you rotate keys is because of local script persistence created by the malicious batch scripts listed in your Here is a breakdown of what the obfuscated payload is doing and why rotating keys alone isn't stopping it: 1. Payload Deobfuscation Summary
2. Why the Malware Keeps Coming BackThe presence of
3. Immediate Steps to Clean and Neutralize:
|
|
Hi @solomon-mh Thank you for keeping this open and sharing the actual payload. I read your obfuscated block in postcss.config.mjs. This is not a normal dependency bug. It is active malware with these capabilities:
That explains why rotating GitHub tokens alone does not stop reinfection. The reinfection source is local or CI, not stolen credentials re-entering from GitHub. Why it keeps coming back:
Complete cleanup plan. Do in order on the infected Windows machine: Phase 1: Stop the bleeding (today)
Phase 2: Clean the repo (from clean machine or after Phase 1)
Phase 3: Rotate everything AFTER local clean
Phase 4: Find patient zero
Phase 5: GitHub Support ticket Open Support, Account security category with: Do NOT close this discussion until:
You are doing the right thing. The payload you pasted confirms local persistence plus supply chain. Focus on local machine and node_modules before rotating tokens again. |
|
closed.solved! |
Uh oh!
There was an error while loading. Please reload this page.
π·οΈ Discussion Type
Question
π¬ Feature/Topic Area
Code quality
Discussion Details
My GitHub repository received an unauthorized commit.
What happened:
Malicious commit: 1ac03f9
Pushed to main on Sep 17 at 06:46 EAT
Attributed to my GitHub account
The commit does not appear in my local Git reflog
It modified postcss.config.mjs with heavily obfuscated Node.js code
Payload uses child_process, blockchain/RPC infrastructure, remote code download, eval, and detached execution
Vercel automatically attempted to build the malicious commit
Indicators appear consistent with the recently reported PolinRider-style supply-chain attacks
I'm trying to determine how repository write access was obtained and whether other credentials/accounts may have been exposed.
If anyone has experience investigating GitHub account compromises or PolinRider-related incidents, I'd appreciate help identifying what evidence I should examine next.
All reactions