DEF CON 34 Demo Labs: KeyChecker

DefCon 34 @ USA 2026

08 August 2026

Event: DEF CON 34 (Las Vegas)
Venue: LVCC - L1 - Exhibit Hall West 3 - 1003
Track: Demo Labs Track 3
Format: 45-minute Demo Lab (two sessions)
Presenter: Anant Shrivastava | Founder, Cyfinoid Research

Schedule

Audience: DevOps, SecOps, Offense/Red Team, Defense/Blue Team

Demo Lab Overview

KeyChecker is a CLI tool to fingerprint SSH private keys and identify which Git hosting accounts they unlock. In incident response and red team work, finding a private key is common, but scoping impact is slow and manual. KeyChecker automates the two primitives defenders and attackers both use: safe SSH handshakes that can reveal the mapped username, and read-only git ls-remote probes that confirm whether a key can access a target repo.

The tool performs local key intelligence first, supporting OpenSSH, PEM, and DER formats, detecting key type (ed25519, rsa, ecdsa, dsa), key size, passphrase protection, fingerprints (SHA256 and MD5), and useful metadata from key comments. It then validates the key across multiple providers including GitHub, GitLab, Bitbucket, Codeberg, Gitea, and Hugging Face, extracting usernames where possible, and optionally using a GitHub token for organization discovery.

KeyChecker also supports repository discovery with a wordlist and configurable concurrency, giving a clear blast radius report like “this key unlocks these private repositories.” It is designed for authorized assessments, runs locally, and avoids write operations.

Resources

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

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

Notable Points

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”