Skip to main content
App security

Category: Developer Platforms

Secure GitHub browsing

GitHub accounts hold code, tokens, and CI/CD secrets. Attackers use fake sign-ins, OAuth apps, and stolen sessions.

Quick answer

GitHub reported stolen OAuth tokens in April 2022. The tokens belonged to Heroku and Travis CI integrations. The attacker downloaded data from dozens of organizations, including npm. GitHub does not believe its own systems were breached. Review the OAuth apps you have authorized. Sign in with a passkey, which resists phishing. Open unknown developer links in an isolated browser.

Last updated

2026-10-30

Main browser risks for GitHub

  • Phishing that imitates GitHub login, SSO prompts, or “security alert” notifications.
  • OAuth app abuse and token theft leading to repository access and data exfiltration.
  • Session hijacking that reuses an authenticated session to access code and settings.
  • Malicious “developer tool” downloads from links in issues, PRs, or documentation.
  • Accidental leakage of secrets into browser-based AI tools, pastes, or untrusted sites.
  • Supply-chain risk via links to compromised packages and repositories during research.

Typical sensitive data in GitHub

  • Private source code and intellectual property.
  • CI/CD secrets, tokens, and environment variables.
  • Repository settings and access controls.
  • Issue/PR discussions that may contain internal URLs and credentials.
  • Release artifacts and build outputs.
  • Audit logs and security settings for org admins.

How GitHub credentials leak

From GitHub Docs and GitHub's April 15, 2022 security alert, checked October 30, 2026.
CredentialWhere it livesHow it leaksFirst control
Browser sessionYour signed-in browserFake sign-in pages, malicious extensions, or malwarePasskey sign-in and few extensions in the GitHub profile
OAuth app tokenThe third-party app you authorizedA breach at that app, as with Heroku and Travis CI in 2022Review and revoke authorized OAuth apps
Personal access tokenScripts, CI variables, and local configCommits to public repositories or gistsGitHub revokes tokens pushed public and tokens unused for a year

From GitHub Docs and GitHub's April 15, 2022 security alert, checked October 30, 2026.

Recommended controls by role

Engineering

  • Open unknown links from issues and PRs in isolation.
  • Do not run tools downloaded from unknown domains.
  • Keep a separate browser profile with few extensions for GitHub.
  • Review authorized OAuth apps and revoke unused ones.

IT Admins

  • Enforce SSO and phishing-resistant sign-in for org access.
  • Lock down extensions for developers with production secret access.
  • Investigate suspicious repository and package links in isolation.

Security

  • Monitor new OAuth authorizations, token creation, and unusual clones.
  • Use short-lived, least-privilege tokens and rotate leaks fast.
  • Keep secrets out of AI tools and untrusted web apps.

Where Shield fits with GitHub

The controls above are general security practices, not Legba features. GitHub is not a Legba integration.

Legba's part is narrow. Shield opens a page in an isolated browser off your device. Use it for a link you do not trust.

Limits

Shield moves page execution off your device. Downloads and copied data still cross that boundary. It cannot stop you sharing passwords with unfamiliar sites. Treat downloads and sign-in prompts with care.

Add to Chrome

Free for 30 days. No card required.

What to do next

Locking developers out of the web is not the goal. Move unknown links and downloads away from signed-in sessions. Review OAuth apps and tokens on a schedule.

GitHub security questions

How do I review my authorized GitHub OAuth apps?
Open Settings, then Applications. Select the Authorized OAuth Apps tab. Revoke any app you do not recognize.
What should I do if a GitHub token leaks?
Revoke it and create a new one. GitHub automatically revokes tokens pushed to public repositories or gists. It also revokes tokens unused for one year.
Does GitHub support passkeys?
GitHub supports passkey sign-in in the browser. GitHub calls passkeys highly phishing-resistant. A passkey satisfies both password and 2FA requirements.
Do these habits apply to Bitbucket or Vercel?
The same habits apply anywhere tokens and OAuth apps live. Review connected apps and access tokens on each platform. Revoke what you no longer use.
Does isolation help with supply-chain risk?
Remote isolation runs an unknown package page off your device. Dependency and provenance controls still belong in your pipeline.

References

  1. 01
  2. 02
  3. 03
  4. 04
  5. 05

Keep exploring

Try it on the next page you do not trust

Legba is a Chrome extension with two modes. Ghost gives you a private browser route. Shield opens a page in an isolated browser off your device.

Free for 30 days. No card required.

Ghost. A private route for your browser. Shield. An isolated browser, off your device. Choose the mode. Close when finished.