Skip to content

GitHub launches ModernBERT-based secret detection model and expands push protection

GitHub Blog · AI & MLFrom the sourceErin HavensPicksSecret protection must scale with software
Original

What happened

GitHub released a ModernBERT classifier fine-tuned with Microsoft Applied Sciences that uses code context to identify secrets without a fixed format. It can assess a batch of candidate secrets in 2 milliseconds and is said to more than double the number it can block.

Why it matters

GitHub uses nine quarters of data to show the imbalance between secret leaks and manual remediation, and describes a model that moves detection earlier to the push stage.

The story so far

GitHub has deployed an AI-driven secret detection classifier, developed in collaboration with Microsoft Applied Sciences using the ModernBERT architecture, to extend its push protection capabilities. The model utilizes code context to identify custom or unstructured keys that standard detection methods often miss. GitHub claims that this new classifier evaluates batches of candidate keys in under 2 milliseconds and asserts it doubles the number of interceptable secrets compared to their previous implementations. The system is designed to integrate directly into developer workflows by flagging potential security risks before code is pushed to repositories. By analyzing the surrounding code context rather than relying solely on rigid pattern matching, the tool addresses specific security gaps associated with non-standard or custom-formatted sensitive data, improving the automated defense against accidental credential exposure.

Read next

See the full storyGitHub Integrates Microsoft's ModernBERT AI to Expand Push Protection and Secret Detection
This story is in 10/8 AI DailyRead the whole issue