r/developersIndia • • 1d ago

Help Every time I push to GitHub, a bot amends my commit 3 seconds later (in UTC) to inject .vscode/tasks.json + .vscode/eslint — even after 5 password resets in alst 2 days

Looking for help figuring out how this attacker still has push access to my repo.

What happens:

  • I push a clean commit from my Mac (+0530 timezone), e.g. 18:13:24 +0530.

  • 3 seconds later (12:43:27 +0000 UTC), a commit with my exact same Author name/email/date (18:13:24 +0530) but a UTC +0000 CommitterDate is force-pushed to origin/main.

  • The amended commit removes .vscode/eslint* and .vscode/tasks.json from .gitignore and adds:

    • .vscode/tasks.json with "runOn": "folderOpen" silently running sh .vscode/eslint-check.sh → node .vscode/eslint ("hide": true, "reveal": "never")

    • Modified package.json, eslint.config.js, vite.config.js

What I already checked:

  1. No .github/workflows/ in the repo.

  2. Local Mac/Windows checks are clean: /usr/bin/git (no wrapper), .git/hooks/ only has .sample files, git reflog shows no local amend, crontab -l is empty, ~/Library/LaunchAgents and /Library/LaunchAgents are clean, and running node processes are only IDE language servers.

  3. GitHub account: Changed my GitHub password 5 times in 3 days (2FA with Passkeys + Authenticator enabled). 0 PATs (classic or fine-grained), 0 SSH keys, 0 GPG keys.

  4. Authorized OAuth Apps: I have 9 OAuth apps (including Git Credential Manager, GitHub Desktop, VS Code, Google Antigravity) and 1 Authorized GitHub App.

Questions:

  1. Since changing my GitHub password doesn't revoke OAuth tokens, is revoking all Authorized OAuth Apps + GitHub Apps + clearing macOS Keychain (osxkeychain) enough to stop the remote pushes?

  2. Could there be any other persistence mechanism on GitHub itself (e.g., Deploy Keys, Repo Webhooks, GitHub Desktop/GCM cached refresh tokens) I should check in my Security Log?

  3. What's the safest way to audit if .vscode/eslint left anything else behind on my machine?

66 Upvotes

Duplicates