Obfuscated code suddenly appearing in next.config.js / postcss.config.js without direct file changes #188732
Replies: 11 comments 12 replies
-
|
Hi @robellorin, The same thing is happening to me and my team. We haven’t been able to find the cause, but it appears to be using a force push to rewrite the commit history. If you find any solution, please let us know. |
Beta Was this translation helpful? Give feedback.
-
|
Seems to have affected few of my repos, pls let us know if you find any solution. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Based on analysis of this attack, here is a likely attack chain that explains what you're seeing: Probable attack chain:
This explains two things people find confusing:
Specific IOCs to search for:
Recommended cleanup:
The blockchain-based C2 (as @semitha-dev noted) means the actual payload was never on disk — antivirus will always report clean. |
Beta Was this translation helpful? Give feedback.
-
|
This also affects I found this article which explains what happens a bit more. |
Beta Was this translation helpful? Give feedback.
-
|
Here’s an online tool that helps identify infected repositories and clean malicious code Here Thought this might be useful for the community. |
Beta Was this translation helpful? Give feedback.
-
|
This also affects |
Beta Was this translation helpful? Give feedback.
-
|
This also happened to me. Here is what I’ve done so far. First, you can run this command to check whether the malware process is currently running on your machine: ps aux | grep -Ei "global\['_V'\]|A10-010|A10-2340|global\['r' \]=require|_t_t|166\.88\.54\.158|198\.105\.127\.210|23\.27\.202\.27" | grep -v grepIf it returns a From what I’ve seen, the malware usually injects itself into config files. But in my case, it also created fake font files under the I thought I had removed it everywhere and was safe, but yesterday the malware pushed commits to all repositories that my GitHub account had access to. Very annoying. And there is no evidence commit actually was edited. Author is same, dates are same. I only do see updated x hrs ago mark on github and when i do pull i do see all of my branches was force pushed. So far, I have revoked my GitHub HTTPS access, recreated my SSH key, revoked OAuth application access, removed old sessions/tokens, and now I’m cleaning the affected repositories. Also, block the known malicious IPs on your machine/firewall if possible: 166.88.54.158
198.105.127.210
23.27.202.27
154.91.0.103
136.0.9.8
166.88.4.2
23.27.120.142
202.155.8.173
166.88.134.82
188.43.33.249I also realized it adds following code into my main.ts on nest.js project AUTH_API_KEY=https:// auth-confirm-l emon-alpha . vercel . app/api (Dont click) Which is a vercel app it was added base64 encoded. |
Beta Was this translation helpful? Give feedback.
-
|
Any idea what the main source of this virus is? Most projects I am working on were created from scratch, then how did my laptop get infected? Also, what is this virus trying to accomplish? What are they gaining from all of this? |
Beta Was this translation helpful? Give feedback.
-
|
At some point in time you have clone an infected repo from either already
infected one or a repo that is already created to infect. The virus itself
doesn’t live in the computer rather it block of code that connect with
blockchain server to get its commands. Basically it take all you env keys
from project and other projects locally in you computer then any secret key
or debit/credit card info store in you browser but its main goal is to
steal you crypto wallet key. The reason you oth project also got infected
is because when you run the infected project it also get you GitHub login
access and push code automatically to you other projects and you would
never know unless you keep a track of push to GitHub.
…On Wed, 3 Jun 2026 at 9:41 PM, Arnav Prashant Singh < ***@***.***> wrote:
Any idea what the main source of this virus is? Most projects I am working
on were created from scratch, then how did my laptop get infected?
Also, what is this virus trying to accomplish? What are they gaining from
all of this?
—
Reply to this email directly, view it on GitHub
<#188732?email_source=notifications&email_token=BHTDY6OCFSOAXHKTHXPMYUT46BEZXA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRGY4DMMJWUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17168616>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHTDY6JDL2FDIL3JSR7JZDL46BEZXAVCNFSM6AAAAACWI5H63SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTOMJWHA3DCNQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BHTDY6KIHBPMKV4DZAF3WRL46BEZXA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRGY4DMMJWUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/BHTDY6ILJXZMMCPTG5TT25T46BEZXA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRGY4DMMJWUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Yes that’s it possible to get infected by npm package too. Always audit and
check the npm package before installing it
…On Thu, 4 Jun 2026 at 5:51 AM, Arnav Prashant Singh < ***@***.***> wrote:
It could be possible that my system got compromised because of a
compromised NPM package? I am very certain that I have not executed any
repo or even cloned a repo from an external source. For the last 2 months,
I have only worked on projects that I created from scratch on my system.
—
Reply to this email directly, view it on GitHub
<#188732?email_source=notifications&email_token=BHTDY6MGWD6DIUKYMBSXUV346C6KHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRG4ZTINBYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17173448>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHTDY6KBFEYHJSXBI4QC5PD46C6KHAVCNFSM6AAAAACWI5H63SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTOMJXGM2DIOA>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BHTDY6KZ3MBJDHLLWLHJESL46C6KHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRG4ZTINBYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/BHTDY6K5GIMMMTWRLVEDFB346C6KHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRG4ZTINBYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
General
Body
Hi everyone,
I recently noticed something strange in a few private repositories I worked on. Around November 15, heavily obfuscated JavaScript code suddenly appeared in configuration files like next.config.js and postcss.config.js.
The unusual part is that the commits where these files appeared do not clearly show intentional changes to those files. In some cases, the code shows up in a later PR even though the file wasn’t modified in the previous commit. This also happened across multiple repositories and even under commits from different developers.
The injected code looks like an obfuscated loader that decodes and executes hidden payloads, which made me concerned it might be malicious or the result of some automated injection (possibly from a dependency or build process).
Has anyone seen something similar before or knows what might cause this behavior?
next.config.js
postcss.config.js
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions