ghtier

AI

Everything on ghtier is also published as plain text and JSON, so an AI agent can read it and apply it to your own GitHub organization.

What an agent can read

Check your own organization

  1. Want your agent to review it first? Ask it to read HOW-IT-WORKS.md and run node verify.mjs, which checks against the code that it only reads, sends nothing to ghtier, and keeps your token to gh, without running anything.
  2. Give your agent the skill, or ask it: "Assess my GitHub org with ghtier (ghtier.com/llms.txt)".
  3. It runs 25 read-only checks with your own gh login, asks you about the rest, lists who holds Tier 0 and Tier 1 (owners, organization roles, Apps, runners, deploy keys), follows the attack paths in your org to Tier 0, and writes ghtier-assessment-<org>.json plus a printable ghtier-report-<org>.html.
  4. You get a fix plan ordered by effort. Import the file on the Checklist to see the results there.

Check the credential in your session

Give your agent the whoami skill. It shows which GitHub credential the session uses (a gh login, a classic or fine-grained token, an App token), the account, its scopes or permissions and its tier on the repository you are in, its organization and your account. Then how that access escalates, the techniques it enables with incidents where they were used, what in the repository they would reach (the secrets and cloud logins its workflows use, the rules on its default branch), and the checklist items that cut them. The report links every entry to its page here.

It starts by asking which credentials to check: every GitHub credential on the computer (token variables, every gh login, the SSH key, and tokens in a password manager you name), this session only, or one token. It also asks how far to go, up to every organization and repository the credentials reach. Anything that reads a token runs in your own terminal, one token at a time, after it has shown every call. GitHub does not show a fine-grained token its own permissions, so the runner proves them with GET calls and gives a confirmed tier and the highest tier your role leaves possible. To settle the writes, --write-probes sends a short list of write requests built so they cannot succeed, shown to you first and only on your yes.

The checks only send GET requests and never change a setting. Besides the checks, the runner reads who you are (/user) and your role in the organization (/user/memberships/orgs/ORG). Your org data stays on your machine; ghtier has no backend and never sees it. To run it yourself without an agent, see Run an assessment.