Presented at DEF CON 34’s Demo Labs in Las Vegas on Saturday, August 8, 2026 (two 45 minute sessions at 12:00 and 13:00, LVCC Exhibit Hall West 3, Demo Labs Track 3), the lab demonstrated KeyChecker, a CLI tool that fingerprints SSH private keys and identifies which Git hosting accounts and repositories they unlock. The session was aimed at DevOps, SecOps, and both offensive and defensive attendees, and it used the same nine-page deck shown at the Black Hat USA 2026 Arsenal earlier that week, with the live terminal work doing most of the teaching.
Summary
The lab’s premise was laid out on the first screens: distributed version control platforms (Github, Gitlab, Bitbucket, Codeberg, Gitea, Forgejo, Huggingface) authenticate users through three kinds of credentials, and they are not equivalent. Passwords are deprecated or discouraged, API keys act on the control plane, and SSH keys act on the data plane. When an assessment or incident response turns up a private key, the interesting question is not who owns it in the abstract but which accounts and repositories it actually reaches, and that question sits on the data plane.
Two demonstrations carried the answer. The first showed the SSH username disclosure: connecting to GitHub’s SSH port with a valid key makes the server greet the mapped account by name, a behavior old enough that the deck introduces it as common knowledge. The second showed repository discovery, the step beyond the greeting. Using an SSH config alias, a wordlist of project names, and the target’s public organization memberships, git ls-remote attempts reveal which private repositories respond, and the deck’s sample run against user anantshri reduced the question to three numbers: 6 attempts, 1 accessible repository, 5 failures.
The tool packages both primitives into a single CLI. Local analysis comes first: the key file is parsed for type, passphrase protection, fingerprints, weaknesses, and comment metadata such as the hostname where it was generated, all before any network activity. Validation follows against a configurable provider list that spans the mainstream platforms and extends to regional ones, with gitee, coding, and codeup covering Chinese hosting and gitflic covering Russian hosting, extracting usernames where providers return them and using an optional GitHub token for organization discovery. Repository discovery mode drives the wordlist through read-only git ls-remote probes at a default of 10 parallel connections with a 5 second timeout, and the tool performs no write operations, keeping the lab compatible with authorized testing. The help screen shown during the demo also documented –public-out, which saves the derived public key, and –no-validate for local-only analysis. Example invocations on the same screen walked from a bare fingerprinting run to github-only validation and a discovery pass driven by a repo_names.txt wordlist, giving lab attendees a copyable starting point for their own authorized checks.
The closing infographic tied the mechanics to both audiences in the room. For red teams, KeyChecker turns a recovered key into a specific narrative: these accounts, these organizations, these private repositories. For blue teams, it offers a way to measure exposure proactively and build realistic threat models around key compromise, and it names the reason such access often goes undetected: standard logs give little visibility into failed or successful SSH attempts. A provider comparison on the same slide set expectations per platform, from GitHub’s username and organization discovery to Hugging Face’s AI/ML model access and key confirmation on GitLab and Bitbucket. The DEF CON format gave attendees two chances to watch the full flow, and the lab closed with the project repository, PyPI package, and contact details.
Key Themes
- Three Credential Types, One That Matters: passwords, API keys, and SSH keys map to different planes of access, and SSH keys on the data plane are the ones this lab weaponizes and measures.
- A Greeting That Gives Away An Account: the SSH username disclosure is presented as common knowledge; the lab’s value is chaining it into something broader.
- From Blog Recipe To CLI: the manual “SSH Enumeration Continues” workflow (config alias, project list, org discovery, ls-remote wordlist) becomes an automated tool with tunable concurrency.
- Read-Only Reconnaissance: handshakes and ls-remote probes answer reachability questions without writing to any target, keeping the technique inside authorized bounds.
- Beyond The Mainstream Platforms: provider coverage includes Chinese and Russian hosting, reflecting where keys in real environments are actually registered.
- Shared Value For Red And Blue: the same blast-radius report supports red team impact narratives and blue team exposure measurement, against a backdrop of weak SSH logging.
Notable Points
- The lab ran twice (12:00 and 13:00, 45 minutes each) on Demo Labs Track 3 at LVCC Exhibit Hall West 3 on August 8, 2026.
- The deck is identical page-for-page to the Black Hat USA 2026 Arsenal KeyChecker deck, with only the branding swapped for a QR code.
- Providers named: Github, Gitlab, Bitbucket, Codeberg, Gitea, Forgejo (rendered “Forjego” on the slide), and Huggingface.
- Sample enumeration result shown: 6 total attempts, 1 accessible repository (dotfiles), 5 failed attempts, against user anantshri.
- The CLI lists 19 providers for –validate, with gitee, coding, and codeup flagged as Chinese and gitflic as Russian.
- Defaults from the help output: 5 second per-connection timeout, 10 parallel connections; –discovery takes a repository-name wordlist file and –public-out saves the derived public key.
- The companion tool GhNavigator covers API-key triage, presented alongside KeyChecker on the found-key slide.
- The infographic claims validation against 19 or more platforms including GitHub, GitLab, Bitbucket, and Hugging Face, with repository probing done via safe, read-only git ls-remote.
- A deck infographic calls out a telemetry blind spot: standard logs do not record whether SSH attempts failed or succeeded.
- Closing references: anant@cyfinoid.com, @anantshri, github.com/cyfinoid/keychecker, and the keychecker package on PyPI.
Notable Quotes
“SSH Key based attack tool for DVCS Systems”
“Control Plane Access”
“Data Plane Access”
“You found a key”
“Everyone knows that if you connect to ssh port of github via your valid ssh key you get your username”
“SSH Enumeration Continues”
“Thanks you for listening”