1-minute read
What a defender needs to know
A leaked administrative key in the October LiteLLM compromise exposed an owner’s GitHub CLI token. Socket’s November 19 guide uses the ensuing access to other engineers’ credentials and release approvals to explain why two approver accounts may still represent one credential boundary. Teams using GitHub Actions for releases should trace who can edit .github/workflows/, bypass branch protections and approve the artifact that ships.
Check the organization’s fine-grained and classic personal access token policies separately. GitHub limits approval to fine-grained tokens; classic tokens require their own restriction. Inventory SSH and deploy keys too, and rotate an exposed administrative key along with the credentials it reached. Where the repository and plan support required reviewers, put the release job behind a GitHub Environment with a required reviewer, Prevent self-review, administrator bypass disabled and restricted deployment references. One of GitHub’s listed reviewers can approve a job, so confirm that the approver’s credential is controlled independently from the builder’s.
For npm packages, remove stored publish tokens, bind the trusted publisher to the intended workflow, and use stage-only permission with a separate human approval of the staged artifact. Verify that the release job waits for review and the CI publishing identity cannot publish directly. Alert on protected_branch.policy_override, new deploy keys and workflows.delete_workflow_run; keep an independent copy of the records. A gate shared by one administrator’s credential needs a different owner, not another username.