TL;DR: Sensitive data is leaking into public repositories and AI-assisted coding workflows faster than teams can review it, while keyword scanning produces too many false positives to scale, according to Cycode. Its analysis shows why contextual classification matters for leak triage, because attackers can weaponize seemingly minor breadcrumbs such as internal URLs, config files, and credentials.
At a glance
What this is: Cycode’s analysis says code and repository leaks now outpace manual review, and contextual AI is needed to distinguish true exposure from harmless mentions.
Why it matters: IAM, NHI, and security teams need leak triage that can separate exposed credentials, internal URLs, and config data from benign references before attackers use them for reconnaissance.
Context
A data leak in code review terms is not just a secret in a file. It is any sensitive information that becomes reachable by people who should not see it, including credentials, internal URLs, configuration data, and operational breadcrumbs that reveal how systems are wired.
The governance problem is volume as much as visibility. Manual keyword scanning does not scale when developers move quickly and AI-assisted coding introduces more places where sensitive context can be pasted, copied, or regenerated. For identity and access programmes, this creates a secondary risk: leaked repository context can expose service endpoints, credentials, and other NHI-related control points before anyone has a chance to rotate or revoke them.
The article’s starting position is typical of modern engineering environments, not exceptional. Most teams already have the raw data, but not the contextual decisioning needed to tell a harmless reference from an actual leak.
Key questions
Q: What breaks when repository leak detection relies on keyword matching alone?
A: Keyword-only leak detection breaks because it cannot tell the difference between a public reference and a sensitive disclosure. That creates false positives, wasted analyst time, and missed exposure when the risky material is embedded in context rather than in an obvious secret string.
Q: Why do exposed code breadcrumbs increase security risk even without a secret?
A: Breadcrumbs such as internal URLs, registry names, and environment labels help attackers map systems, infer tooling, and plan follow-on targeting. They do not need to be secrets themselves to reduce attacker effort and increase the value of later credential or supply-chain abuse.
Q: How should security teams handle AI-assisted coding as a leak vector?
A: Treat AI-assisted coding as part of the exposure surface because developers may paste sensitive context, accept generated code with embedded values, or reveal internal information indirectly. Governance should cover prompts, generated output, and repository review together so the workflow is monitored end to end.
Q: When is a public domain mention actually a leak?
A: A public domain mention becomes a leak when surrounding context shows sensitive configuration, private source code, internal system references, or credentials. The decision should be based on exposure semantics, not on whether the string simply matches an organisation name or hostname.
Technical breakdown
Why keyword-based leak scanning breaks down
Keyword scanning works only when the signal is obvious. In code, repository, and collaboration data, a string like a domain name or package path can indicate a leak, a public document, a bug bounty scope file, or a harmless reference. That ambiguity is why static rules generate noisy alert queues. The technical limit is context blindness: pattern matching sees the token, but not the surrounding intent, access path, or operational meaning. Context windows improve precision because they constrain the model to the nearby evidence rather than the whole file. Practical implication: triage logic should evaluate surrounding context, not just the matched term.
Practical implication: move from token matching to context-aware triage for repository and code exposure.
How AI-assisted coding expands the exposure surface
AI coding tools change leak risk because the interaction is conversational and iterative. Developers may paste snippets, accept generated code with embedded values, or share internal context that would never appear in a normal commit description. That creates a new class of soft leak, where the exposed material may look like ordinary engineering metadata but still reveals internal systems, naming conventions, or credentials. For identity and NHI governance, that matters because service endpoints, registry names, and tokens often appear adjacent to code context rather than in a dedicated secrets vault. Practical implication: treat AI-assisted development as part of the secret and metadata exposure surface.
Practical implication: include AI coding workflows in your leak-detection and secret-governance scope.
Why contextual classification is stronger than broad alerting
A contextual classifier tries to answer a different question from a keyword filter: not whether a name appears, but whether the content exposes something sensitive. That distinction matters because internal URLs, config files, and employee details can be either operationally useful or security-relevant, depending on where they appear and what surrounds them. The model therefore needs positive indicators such as credentials, environment labels, and private source-code context, plus false-positive filters such as public docs or harmless domain inventories. Practical implication: define leak triage around exposure semantics, not just detection volume.
Practical implication: score leaks by exposure semantics so analysts spend time on incidents, not noise.
Threat narrative
Attacker objective: The attacker wants usable exposure breadcrumbs that shorten reconnaissance and increase the chance of credential abuse or follow-on compromise.
- Entry occurs when sensitive material is introduced into public code or exposed through AI-assisted development workflows, often without the author recognising the disclosure.
- Credential harvesting follows when exposed tokens, API keys, configuration values, or internal URLs provide attacker-relevant reconnaissance or direct access paths.
- Impact comes when those breadcrumbs are used to map internal services, support supply-chain attacks, or accelerate follow-on intrusion activity.
Breaches seen in the wild
- Gravity SMTP CVE-2026-4020 API Keys Exposure: CVE-2026-4020 in Gravity SMTP exposes API keys via single HTTP request across 100,000 WordPress sites.
- Firebase misconfiguration exposure 2024: Missing Firebase security rules on 916 websites exposed 125 million user records and 19.87 million plaintext passwords; a quarter were fixed.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Leak triage is now a context problem, not a keyword problem. Security teams no longer lack data; they lack reliable classification of what the data means in context. That changes the control objective from finding mentions to determining whether a mention exposes something actionable. For programmes that govern repositories, CI/CD, and developer tooling, contextual triage becomes part of the identity and secrets control plane.
AI-assisted development has turned soft exposure into a first-class risk. Internal URLs, registry names, environment labels, and embedded values can leak through normal engineering workflows without ever looking like classic secret sprawl. The critical governance gap is that many teams still treat code review, secret scanning, and data loss controls as separate motions. Practitioner conclusion: the exposure surface must be governed as one workflow, not three disconnected tools.
Breadcrumb leakage creates reconnaissance value even when no direct secret is exposed. A leaked Jira URL, staging hostname, or registry name can be enough to map internal systems and support later attack chaining. That is a materially different failure mode from a single hardcoded password, because the attacker’s value comes from accumulation. Practitioner conclusion: review programmes must score the operational meaning of breadcrumbs, not just the presence of high-risk strings.
Contextual AI is becoming a governance layer for repository exposure. The point is not to replace human review, but to reduce analyst fatigue so real exposure reaches the right queue. This is where identity security intersects with broader secure development governance: exposed service endpoints and tokens are only useful because they map back to systems and privileges. Practitioner conclusion: treat contextual leak analysis as a risk-reduction control, not a convenience feature.
From our research library:
- 28.65 million new hardcoded secrets were detected in public GitHub commits in 2025 alone, a 34% year-over-year increase and the largest single-year jump ever recorded, according to the State of Secrets Sprawl 2026.
- Read next: Guide to the Secret Sprawl Challenge
What this signals
Breadcrumb leakage: security teams should treat internal URLs, package registry names, and environment labels as reconnaissance material when they appear in code or AI-assisted workflows. The control question is no longer whether the string exists, but whether it helps an attacker map the organisation's internal systems.
Contextual triage is the right response to repository noise because false positives are now a governance problem, not just an analyst inconvenience. If exposure classification cannot separate public references from sensitive context, reviewers will miss the events that matter most.
For identity programmes, the important shift is that exposed secrets and exposed system relationships often travel together. A leaked token is dangerous, but a leaked service path or registry reference can narrow the attacker’s path to that token.
For practitioners
- Prioritise contextual leak triage over keyword-only scanning Classify repository findings by surrounding context, not by the presence of a company string or domain alone. Use surrounding indicators such as credentials, environment labels, internal URLs, and code snippets to separate exposure from benign references.
- Include AI-assisted coding workflows in secret governance Extend leak-detection coverage to prompts, generated code, pasted snippets, and shared context inside developer tools. Those paths now produce soft leaks that can reveal internal systems even when no explicit secret is committed.
- Score breadcrumbs by reconnaissance value Treat internal hostnames, registry names, Jira links, and package references as exposure signals when they help map infrastructure or service relationships. A breadcrumb can be enough to support later targeting even without a password or token.
- Separate public references from true exposure Build review rules that recognise public documentation, bug bounty scopes, and public domain inventories as non-leaks unless adjacent evidence shows sensitive context. That reduces false positives without lowering visibility into actual exposures.
Key takeaways
- Code exposure now needs contextual classification because keyword matching cannot reliably distinguish sensitive leaks from harmless references.
- AI-assisted development increases the number of soft exposure paths, especially where prompts, generated code, and shared context carry internal details.
- Breadcrumbs such as internal URLs and registry names matter because they help attackers map systems before they ever obtain a credential.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | The article centres on secrets and sensitive data leaking into public repositories and developer tools. |
| NHI-10 — Human Use of NHI | AI-assisted coding workflows can expose machine credentials when humans paste or reuse sensitive context. | |
| Recommendation — Scan code, CI/CD, and AI workflows for exposed secrets and revoke anything found immediately. Constrain human handling of NHIs in developer workflows and remove secret-bearing context from prompts. | ||
| NIST CSF 2.0 | PR.DS-01 — Data-at-rest is protected | Leak detection is a data protection problem because exposed source files and configs can reveal sensitive information. |
| DE.CM-09 — Monitoring for anomalous activity | The article is fundamentally about continuously monitoring public data sources for sensitive exposures. | |
| Recommendation — Protect source repositories and config stores with data classification and exposure monitoring. Monitor public repositories and code-sharing channels for indicators of sensitive data disclosure. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Exposed credentials in code and config files map directly to authenticator lifecycle failures. |
| Recommendation — Apply IA-5 to rotate, revoke, and govern authenticators exposed through source control or tooling. | ||
| MITRE ATT&CK | TA0006;TA0010 — Credential Access; Exfiltration | The article describes attackers harvesting exposed credentials and using them to support further compromise and data removal. |
| Recommendation — Map exposed secrets to credential-access and exfiltration behaviors in detection and hunting workflows. | ||
Key terms
- Information Leak: An information leak is a disclosure flaw that reveals data the caller should not see, such as memory addresses, tokens, or internal state. In exploitation chains, leaks often do the quiet work of making a second-stage bug practical by removing randomness, exposing layout, or confirming that a target is reachable.
- Contextual Classification: Contextual classification is the process of inferring sensitivity from a file’s meaning, ownership, and use rather than from static tags alone. It is more effective for unstructured content because it can recognise business-critical information even when no regulated pattern is present.
- Breadcrumb Leakage: Breadcrumb leakage is the exposure of small technical or organisational clues that help an attacker map systems, tooling, or internal relationships. These clues are often not secrets on their own, but they reduce attacker effort and can support reconnaissance, targeting, or follow-on exploitation.
- Soft Leak: A soft leak is a disclosure that does not look like a classic secret but still reveals useful internal information. Examples include internal hostnames, registry names, environment labels, and pasted prompts that expose system context in ways traditional keyword rules may miss.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps security and identity practitioners connect exposure control to the broader access and lifecycle decisions their programmes depend on.
Published by the NHIMG editorial team on August 20, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org