GitHub adds AI to catch passwords before a code push
GitHub added an AI detector to block developers from pushing passwords and other credentials to code repositories.
Overview
GitHub announced a new AI detector developed with Microsoft Applied Sciences to stop developers from uploading passwords to code repositoriesA central storage place where a software project's source code, change history, and configuration files are kept. The tool uses a ModernBERT-based classifierA machine learning model trained to sort inputs into categories such as safe or malicious to find unstructured secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys that existing format checks miss. It evaluates batches of possible secrets in under two milliseconds and could more than double the number of secrets that push protection can prevent. A new secret appears in publicly visible code roughly every two seconds, and pushes containing credentialsThe login details, such as a username and password or key, that prove who an account belongs to increased by a factor of 2.59 from the second quarter of 2024 to the second quarter of 2026. Push protection currently blocks about 30% of newly detected secrets before they enter repository history, while the remaining 70% are detected after exposure. Manual revocationOfficially canceling a digital certificate before its expiration date because its private key was compromised or misissued of an exposed credential takes around 40 days on average, with roughly one in five exposed secrets taking more than 90 days.
Terms in this story
- classifier
- A machine learning model trained to sort inputs into categories such as safe or malicious. Security filters and AI guardrails run a fast classifier on incoming messages to block spam, phishing lures, or prompt injection attempts before they reach the user or main model.
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- revocation
- Officially canceling a digital certificate before its expiration date because its private key was compromised or misissued. When a website's private key leaks, the owner requests certificate revocation so browsers stop trusting anyone who presents that old certificate.
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Help Net Security website. Cite the article, not this page.
Read the full article on Help Net Security (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Product news
"GitHub adds AI to catch passwords before a code push..." Found by reading the article; these exact words are in it - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"GitHub adds AI to catch passwords before a code push..." Found in the headline - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"GitHub adds AI to catch passwords before a code push..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"GitHub adds AI to catch passwords before a code push..." Found in the headline
How a story is connected to the course, and every objective, week and job role