Keep the automation, but move it under explicit identity governance. That means discovery across self-hosted and cloud-hosted instances, approved connector lists, least-privilege secrets, network segmentation, and continuous review of workflows that can reach sensitive systems. The objective is controlled use, not blanket prohibition.
Why This Matters for Security Teams
ShadowAI risk is not just about unsanctioned tools; it is about automation that bypasses identity oversight while still touching real data and systems. When an AI workflow can call SaaS apps, query internal APIs, or move secrets between environments, it becomes a non-human identity problem as much as an AI governance problem. Current guidance suggests treating those workflows as governed workloads, not as convenience scripts. That means discovery, classification, and access review need to extend to both self-hosted and cloud-hosted instances, not just approved enterprise platforms.
The practical risk is captured in Top 10 NHI Issues and the broader patterns in Ultimate Guide to NHIs — Why NHI Security Matters Now: unmanaged machine access tends to spread faster than teams can document it. In practice, many security teams encounter ShadowAI only after a workflow has already connected to a sensitive system without a formal owner or approval trail.
How It Works in Practice
The most effective model is to keep automation enabled but force every AI agent, connector, and backend job through explicit identity controls. That starts with asset discovery: identify where agents run, what they can reach, and which secrets or tokens they can use. From there, replace broad standing access with NIST AI Risk Management Framework-aligned governance, then apply least privilege at the workload level rather than at the human-admin level.
For agentic systems, static RBAC is usually too blunt because an autonomous workflow does not follow one fixed path. Better practice is emerging around intent-based authorisation, where policy is evaluated at runtime based on what the agent is trying to do, which data it needs, and whether the action matches an approved task. That is easier to operationalise when the agent has a distinct workload identity, short-lived tokens, and JIT secrets that expire when the task completes. Use connector allowlists, segmented networks, and per-workflow secret scoping so a compromised tool chain cannot pivot into adjacent systems.
- Map every agent to a named owner, environment, and business purpose.
- Issue ephemeral credentials per task instead of reusing long-lived secrets.
- Restrict connectors to approved destinations and log every new integration.
- Evaluate requests at runtime with policy-as-code, not just periodic reviews.
This aligns with the governance pattern described in OWASP NHI Top 10 and is reinforced by NIST Cybersecurity Framework 2.0 principles for asset visibility and access control. These controls tend to break down when AI workflows are assembled ad hoc across multiple SaaS tenants because identity ownership, logging, and revocation become fragmented across teams and vendors.
Common Variations and Edge Cases
Tighter control often increases operational overhead, requiring organisations to balance automation speed against review burden. That tradeoff is real, especially where developers rely on rapid connector changes or where agents need to operate across many short-lived environments. In those cases, best practice is evolving rather than settled: some teams use policy gates for sensitive actions only, while others enforce runtime approval for every external data movement.
There is no universal standard for this yet, but the direction is consistent across Ultimate Guide to NHIs – Key Challenges and Risks and the NIST AI Risk Management Framework: reduce standing privilege, shorten credential lifetime, and make high-risk actions observable. For agentic workflows, also consider whether the model can chain tools in ways that were never pre-approved, because that is where intent-based authorisation and Zero Trust controls matter most. Organisations using many SaaS copilots or multi-agent pipelines often need separate controls for interactive user prompts, background jobs, and autonomous actions, because one policy rarely fits all three.
DeepSeek breach shows how quickly exposed data and credentials can compound once automation is already embedded in the environment, which is why discovery and revocation need to happen continuously rather than as a one-time cleanup.
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 OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Directly addresses standing secrets and overbroad machine access. |
| OWASP Agentic AI Top 10 | Covers autonomous agent behaviour and tool-use risk in ShadowAI. | |
| NIST AI RMF | Supports governance for AI systems with ongoing operational risk. |
Reduce standing NHI privilege by rotating secrets, scoping connectors, and revoking unused access fast.