TL;DR: Shadow AI is spreading through development pipelines because developers use unsanctioned AI tools outside approved governance, creating hidden leakage, unvetted code, and traceability gaps that traditional controls miss, according to Knostic. Governance models built for logged, reviewable changes fail when code and data move through invisible prompt paths and unmonitored AI workflows.
At a glance
What this is: This is Knostic's analysis of shadow AI in development pipelines, showing that unsanctioned AI use breaks governance by creating hidden data leakage, insecure code paths, and weak auditability.
Why it matters: It matters because IAM, security engineering, and governance teams need controls that see AI-assisted work as part of the software lifecycle, not as an invisible exception to it.
Context
Shadow AI is the unsanctioned use of AI tools by developers and product teams, usually outside approved security and governance processes. In DevSecOps pipelines, that matters because code, prompts, dependencies, and access paths can all change without leaving the normal control surface.
The governance gap is not just about tool approval. Traditional review, logging, and provenance models assume work moves through known systems that security can observe, but shadow AI creates unlogged data egress, hidden code generation, and unvetted integrations that sit outside those assumptions.
Key questions
Q: What breaks when developers use unsanctioned AI tools in software delivery?
A: Governance breaks first, because the organisation loses visibility into what was generated, what data was exposed, and whether the change passed the same controls as normal code. That creates blind spots in auditability, review, and incident reconstruction, especially when the AI tool sits outside approved workflows.
Q: Why does shadow AI increase data leakage risk in engineering teams?
A: Because developers often paste code, secrets, or internal diagrams into external tools to move faster, and those inputs can leave the enterprise boundary without the logging or deletion guarantees teams expect. Once data is exposed through prompts, the organisation may lose control over storage, reuse, and downstream exposure.
Q: What are the signs that AI-assisted development is failing governance controls?
A: Common signs include unexplained code provenance, unapproved plugins, missing commit attribution, insecure dependencies that entered through assisted coding, and prompts containing sensitive material. If reviewers cannot tell which changes came from a model and which came from a developer, governance is already failing.
Q: How should security teams govern AI use in developer tooling?
A: Security teams should govern AI use as a data and access problem, not only a productivity feature. Define what information can be sent to models, require human review of generated code, and apply least privilege to connected repositories and tools. Approved use cases should be explicit, monitored, and revisited as model capabilities expand.
Technical breakdown
Why shadow AI breaks provenance in DevSecOps pipelines
Shadow AI breaks provenance because the AI tool becomes an unseen intermediate author between the developer and the repository. The resulting code often looks like ordinary human output, but the decision path, prompt content, and generated dependencies are not captured in the same way as reviewed commits or approved CI/CD changes. That makes it difficult to prove where logic came from, whether a dependency was introduced by suggestion or intent, and whether sensitive context was exposed during generation. Once the workflow leaves the controlled pipeline, standard audit trails lose fidelity.
Practical implication: Treat AI-generated code and prompts as provenance-bearing events, not just developer productivity artefacts.
How unsanctioned AI tools create data leakage paths
When developers paste code, credentials, diagrams, or customer data into external AI tools, that information can leave the enterprise boundary without being logged by conventional security controls. The risk is not limited to the initial paste. Some tools retain inputs, reuse them in future sessions, or process them in ways that complicate deletion and incident response. In practice, the exposure can include intellectual property, secrets, and regulated information. This is why prompt handling needs to be governed as a data movement problem, not only as an application usage issue.
Practical implication: Classify prompts and pasted context as sensitive data flows and restrict them with policy, monitoring, and redaction.
Why AI-assisted code introduces supply-chain risk
Shadow AI can inject insecure libraries, unsafe logic, or outdated dependencies directly into the build path. Developers may trust an output because it is syntactically correct and fast to produce, but AI suggestions are not validated by default against security, licensing, or maintenance criteria. In a modular software stack, that means the dependency graph can expand without the normal review gates that would catch risky packages. The result is not only weak code quality but also a broader software supply chain problem, because an unvetted suggestion can become a production dependency.
Practical implication: Add dependency scanning and review gates to AI-assisted commits before they reach build or merge stages.
Threat narrative
Attacker objective: The objective is to turn ordinary developer convenience into a persistent path for data leakage, insecure code insertion, and weak accountability.
- Entry occurs when a developer uses an unsanctioned AI assistant or plugin inside a coding workflow, often outside approved monitoring.
- Credential or sensitive-context exposure follows when code, secrets, or customer data are pasted into the external model or extension.
- Impact appears as leaked data, insecure dependencies, or untraceable code changes that evade normal review and audit processes.
Breaches seen in the wild
- Samsung ChatGPT leak 2023: Samsung staff pasted chip source code and meeting notes into ChatGPT weeks after it was allowed, leading Samsung to restrict generative AI tools.
- reviewdog Action compromise 2025: A stolen maintainer token poisoned reviewdog/action-setup, leaking CI secrets including the tj-actions bot token used in the next attack.
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
Shadow AI is a governance problem before it is a tooling problem. The article shows that developers are already using AI assistants in ways that bypass approval, logging, and provenance controls. That means the control failure starts at policy enforcement and workflow visibility, not at the model itself. The practitioner lesson is to treat unsanctioned AI usage as a managed identity and data-flow issue across the software lifecycle.
Prompt handling now functions like secret handling. When developers paste code, credentials, or internal diagrams into external AI systems, the exposure path resembles a secrets leak rather than a simple productivity choice. Those prompts can carry business logic, infrastructure details, and regulated data outside the enterprise boundary without the usual review points. The implication is that data classification must extend into developer AI interactions, not stop at storage and transport.
Traceability debt is the new blind spot in AI-assisted engineering. If AI-generated changes cannot be distinguished from human-authored changes, audits lose the evidence needed to assign responsibility or prove control effectiveness. That creates a gap in both governance and incident response, because the organisation cannot confidently reconstruct the origin of a defect or disclosure. The practitioner conclusion is that provenance evidence has become a baseline control requirement.
Supply-chain risk is expanding upstream into the coding assistant layer. Unvetted code suggestions, risky dependencies, and plugin-based extensions turn AI assistance into a software supply-chain entry point. This extends governance concerns from source control into the IDE, where code is shaped before review ever starts. The implication for practitioners is that DevSecOps controls must move left again, into the AI-assisted authoring environment.
Shadow AI demands cross-domain governance across IAM, secrets, and DevSecOps. The same workflow that leaks code can also leak credentials, create undocumented access paths, and bypass least-privilege assumptions. That means the right control set is not just developer education or appsec scanning. The programme must connect identity governance, secrets management, and code provenance into one operating model.
From our research library:
- Organisations with high levels of shadow AI faced an average of $670,000 in additional breach costs compared with those with little or none, according to IBM's 2025 Cost of a Data Breach Report.
- Read next: Secrets Management Buyer's Guide
What this signals
Shadow AI expands the attack surface before code ever reaches production. Developers who use unsanctioned assistants create hidden data flows, invisible approval bypasses, and unreviewed dependency choices that normal pipeline controls do not see. The control point therefore moves from merge-time review to authoring-time governance, where policy, telemetry, and provenance need to work together.
Prompt handling is now part of secrets governance. Only 44% of developers are reported to follow security best practices for secrets management, according to the State of Secrets in AppSec, which shows why developer behaviour remains the weak link when AI tools are involved. If credentials or source code can be pasted into external systems, the organisation has already lost the boundary it thought it controlled.
For practitioners
- Define approved AI use in developer workflows Publish a policy that states which AI tools, extensions, and use cases are allowed, and which classes of source code, secrets, customer data, and internal design material are prohibited from being pasted into external systems.
- Instrument prompt and code provenance Capture AI usage metadata, commit attribution, and change origin details so reviewers and auditors can tell when a change was AI-assisted and what context was exposed.
- Scan AI-assisted output before merge Run secrets scanning, dependency analysis, and code review on all AI-generated or AI-modified content before it reaches the main branch or build pipeline.
- Restrict unvetted extensions and plugins Use a default-deny model for IDE plugins, browser extensions, and agent connectors, then require explicit review for permissions, network access, and file-system interaction.
- Separate developer convenience from sensitive data handling Apply redaction, masking, and network controls so prompts containing code, credentials, or regulated information cannot leave the secure environment unnoticed.
Key takeaways
- Shadow AI breaks traditional governance because developers can move data, code, and dependencies through tools that sit outside approved review and logging paths.
- The risk is not just disclosure but also unreviewed code provenance, insecure package introduction, and weak accountability for AI-assisted changes.
- Security teams need to govern AI use inside the developer workflow itself, with policy, telemetry, and provenance controls that extend into the IDE.
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 addresses the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 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 developers pasting secrets and code into unsanctioned AI tools. |
| NHI-10 — Human Use of NHI | Shadow AI often turns developers into unsanctioned operators of non-human data flows and credentials. | |
| Recommendation — Scan and block AI prompt paths that expose secrets, then revoke any credentials that leave approved boundaries. Govern developer AI usage as human interaction with non-human systems and constrain what data can be supplied. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | The article focuses on secure coding, review, and dependency control in AI-assisted software delivery. |
| Recommendation — Apply application security review and testing controls to AI-generated code before it reaches production. | ||
| NIST CSF 2.0 | PR.DS-08 — Integrity of Data is Protected | Shadow AI can alter data provenance and expose sensitive information outside controlled paths. |
| PR.AA-05 — Access Permissions, Entitlements and Authorizations | AI plugins and agents often gain excessive permissions in developer environments. | |
| Recommendation — Protect data integrity by tracking prompt content, code provenance, and approved data movement paths. Constrain AI tool permissions to the minimum access needed for the approved developer task. | ||
Key terms
- Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.
- AI-Generated Code Provenance: AI-generated code provenance is the ability to trace where generated code came from, how it was transformed, and what validation it passed before release. It matters because teams need evidence that machine-assisted code met the same policy expectations as hand-written code.
- Prompt Data Leakage: Prompt data leakage is the accidental exposure of sensitive information through user input to an AI system. It happens when staff paste confidential data, secrets, or regulated content into a chat interface. Security teams address it with classification, user guidance, browser controls, and approved-use policy.
- Software Supply Chain Risk: Software supply chain risk is the chance that code, build, deployment, or dependency paths are altered in ways that affect downstream systems. For AI code assistants, this risk rises when the tool can change source, trigger pipelines, or influence infrastructure definitions.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on July 9, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org