GitHub has introduced a purpose-built secret detection model that reads surrounding code to find likely credentials, including passwords without a recognizable token format. GitHub says the model does not generate code or prose. It will power AI secret detection in secret scanning alerts, push protection, and Copilot security reviews.
Customers with AI-detected Password alerts have been upgraded to the new model automatically. These alerts stay included in GitHub Secret Protection and GitHub Advanced Security at no extra charge. The model will also bring AI-detected alerts to GitHub Enterprise Server 3.23 in public preview.
AI push protection checks for unstructured credentials at push time, so a secret can be removed before it enters repository history. It is in private preview, and an administrator must enable it. It is available to GitHub Enterprise Cloud or GitHub Teams customers who buy Secret Protection or Advanced Security.
This opt-in check will consume GitHub AI Credits, billed to the organization that owns the repository. A check can use credits even if it does not block a push. Billing begins once an organization opts into the public preview and enables the feature. The Copilot /security-review command in the Copilot CLI and Copilot app will add secret classifier checks in private preview soon. These checks also consume AI Credits, and they need no Secret Protection or Advanced Security license.
Source: Purpose-built model for leaked secret detection – GitHub Changelog.