All repos in my git account are under attack, a fake force push is being made on all repo default branch #197548
Replies: 4 comments 3 replies
This comment was marked as spam.
This comment was marked as spam.
|
This is a sign your account or a connected token/app has been compromised. Act immediately: Settings → Developer settings → Personal access tokens → revoke all tokens Step 2 — Change your password + enable 2FA Settings → Password and authentication → change password immediately Step 3 — Revoke all active sessions Settings → Sessions → revoke everything except your current session Step 4 — Protect your branches Go to each repo → Settings → Branches → Add branch protection rule on main Step 5 — Contact GitHub Support immediately Go to support.github.com → report a compromised account Step 6 — Check your security log Settings → Security log → look for unfamiliar IPs or token-based logins The force pushes will stop once all tokens and access methods are revoked. 👍 |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
Hi @ChetanWorkspace, This is a critical security emergency. Your GitHub account and machine have been actively compromised. The screenshot showing an unauthorized "Force push" across your default branches means an attacker has active programmatic write access to your repositories. Because Git requires authentication to push code, this is not an external "exploit" attacking GitHub itself; it means your personal credentials have been exfiltrated or stolen. This signature typically points to an InfoStealer malware infection on your local development machine or a compromised developer tool token loop. You must act immediately to stop the automated attacker script from doing further damage or altering production code. Step 1: Terminate Session Tokens ImmediatelyDo not wait for support. Lock down your account from your GitHub settings right now:
Step 2: Quarantine Your Local MachineIf an InfoStealer (like RedLine or Lumma) is running on your machine, it will instantly harvest any new credentials or passwords you type.
Step 3: Recovering Your Default BranchesOnce the attacker's write permissions are severed, you can undo the force-pushed commits by using the GitHub Reflog framework to find your original pre-attack commit hashes:
Protect Your Repositories Moving ForwardTo prevent an attacker from ever force-pushing over your main codebase again, even if they manage to compromise a developer token in the future:
|
Uh oh!
There was an error while loading. Please reload this page.
Discussion Type
Question
Discussion Content
Hello,

is anyone facing any issue with malware based code getting pushed to repos main branch, all repos under my account main branch is under attack, a force push is being made.
All reactions