Post

Coordinated GitHub API enumeration and access token abuse

Datadog Security Research has identified sustained, coordinated campaigns systematically enumerating GitHub organizations and repositories via the GitHub API, using dormant “ghost” accounts reactivated years later alongside compromised OAuth tokens and personal access tokens (PATs). Attackers leverage public GraphQL endpoints and REST routes to map organization structures, members, and project relationships without generating authentication failures, then escalate to cloning private repositories using exfiltrated credentials. Detection requires monitoring GitHub audit logs for suspicious user agents (e.g., ‘GitHub-Scraper-Tool’, ‘repo-dumper’), programmatic access types, and successful API actions (api.request, git.clone) against private repositories. The post provides defensive queries and indicators for hunting this activity, which has been active since October 2025 across multiple organizations with confirmed private data exfiltration.

Read original article

This post is licensed under CC BY 4.0 by the author.