Leaking Secrets in the Age of AI
The article reports that AI-related secrets are frequently leaked in public code repositories, especially in Python notebook files and AI agent configuration files. Attackers could use these valid secrets to access AI services and potentially sensitive company data.
Published on wiz.io
In a rush to adopt and experiment with AI, developers and other technology practitioners are willing to cut corners. This is evident from multiple recent security incidents, such as:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, developers hardcode secrets in configuration files and notebook outputs, and secret scanning tools do not cover new AI secret types.
Impact
Valid secrets belonging to over 30 companies were found, and one secret could have led to the disclosure of sensitive HR data.
What the attacker needed
Public code repository; secrets committed to repository
The fix
The article recommends secret scanning pre-commit hooks, periodic scans, CI/CD pipeline integration, and git history scanning, and notes that secret scanners should add new AI secret types.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Secrets are like passwords or API keys that let programs access services. When developers accidentally put these secrets in public code repositories, anyone can find and misuse them. This article found many such secrets related to AI services, which could let attackers use paid AI tools for free or access private data.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.