By NHI Mgmt Group Editorial TeamBased on Wing Security: “DeepSeek – The hidden security risks of AI” (March 23, 2026)

TL;DR: DeepSeek’s rapid growth was followed by a public ClickHouse database exposing more than a million log lines with chat history, secret keys, backend details, and API secrets, while model restrictions were also bypassed, according to Wing Security. The security lesson is that AI adoption becomes an NHI governance problem as soon as credentials, logs, and unmanaged access paths exist.


At a glance

What this is: This analysis links DeepSeek’s exposure of chat history, secret keys, backend details, and API secrets to the broader identity problem created when AI systems accumulate unmanaged access and data paths.

Why it matters: IAM, NHI, and security teams need to treat AI application sprawl as a governance issue because exposed logs and credentials can turn model adoption into persistent access risk.


Context

DeepSeek’s exposure is best understood as an identity governance problem, not just a model-safety story. When an AI application stores chat history, backend details, and secret keys in accessible logs, the security boundary shifts from the model itself to the credentials and data paths around it.

The governance gap is familiar to IAM and NHI teams: access appears temporary and application-driven, but the surrounding telemetry, tokens, and administrative surfaces often persist. That makes AI app sprawl a lifecycle problem across discovery, access control, offboarding, and monitoring.

Wing Security frames DeepSeek as one example of how quickly AI adoption can outpace policy. The useful question for practitioners is not whether AI is useful, but which identities, secrets, and data flows are being created in order to use it.


Key questions

Q: What breaks when an AI app exposes logs or secrets?

A: The first failure is that telemetry stops being passive evidence and becomes an access path. If chat history, backend details, or API secrets are exposed, attackers can reuse that material to move from visibility into unauthorized access. That is why AI services need the same governance as other non-human identities.

Q: Why do exposed AI secrets create more risk than ordinary cloud credentials?

A: AI secrets often sit between data sources, model access, and downstream business systems, so a single key can expose prompts, outputs, and linked datasets while also enabling access to adjacent services. The result is a larger blast radius. Teams should assess not only whether a secret exists, but what systems it can reach.

Q: What signs show that AI access sprawl is getting out of control?

A: Look for broad admin-consented permissions, agents targeting many services, unknown owners, dormant connections and disconnected approval records. Those signals indicate that access has moved faster than governance. If teams cannot tie each agent to a purpose and accountable owner, the environment is already operating beyond policy.

Q: Should organisations treat AI model safety and access control as separate problems?

A: Yes. Model safety controls govern what the system outputs, while access control governs who can reach the system and what it can touch. A blocked prompt does not remove exposed credentials, unreviewed integrations, or unsafe log retention, so both layers must be governed independently.


Technical breakdown

Why exposed AI logs become an identity problem

AI applications often generate operational logs that include chat transcripts, backend metadata, and credential material needed for debugging or service integration. Once those logs are exposed, the issue is no longer just confidentiality of prompts. It becomes an identity and access problem because the logs may contain reusable secrets, service references, or admin context that can be used to pivot into connected systems. In practice, the exposure surface grows fastest where application observability and identity governance are managed separately. The result is a visibility gap: teams can see the model usage but not the attached credentials or downstream trust relationships.

Practical implication: inventory AI logging paths with the same rigor used for secrets storage and third-party access.

How AI app sprawl turns into non-human identity sprawl

AI tools rarely exist in isolation. They are connected to corporate accounts, OAuth grants, API keys, browser sessions, plugins, and automation workflows, all of which can behave like non-human identities once they are used by systems rather than people. The problem is not only the number of tools, but the number of credentialed relationships each tool introduces. When adoption is rapid, those relationships are often created without a full lifecycle model for ownership, review, or revocation. That leaves security teams managing an expanding estate of non-human access without clear offboarding criteria.

Practical implication: treat every approved AI app as a governed NHI relationship with an owner, scope, and offboarding path.

Why model restrictions do not eliminate access risk

Model guardrails control output behavior, not the underlying access paths that make the service usable. Even when a model blocks harmful prompts or hidden instructions, exposed credentials, permissive data sharing, and unmanaged accounts can still create security exposure around the model. That distinction matters because many organisations evaluate AI safety at the response layer while leaving the identity layer under-governed. In other words, safe output does not equal safe access. If credentials, logs, or connected applications are compromised, the model’s restrictions do little to reduce the surrounding attack surface.

Practical implication: assess AI security at both the model layer and the identity layer, not one or the other.


Threat narrative

Attacker objective: The objective is to extract secrets, backend information, and unauthorized technical data that can be used to broaden access or abuse the AI environment.

  1. Entry occurred through a public ClickHouse database that exposed more than a million log lines containing chat history, secret keys, backend details, and API secrets. That created a direct path from application telemetry to credential material.
  2. Credential access followed because the exposed data included reusable secrets and operational metadata that could support further access into connected systems. In NHI terms, the logs themselves became a secret distribution channel.
  3. Impact extended beyond the database exposure because the article also describes model restriction bypasses and unauthorized technical data access, showing how the surrounding identity surface can amplify the model risk.

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

AI application security becomes NHI governance the moment the service handles credentials: The DeepSeek case shows that model adoption is rarely confined to model behavior. It creates an operational identity surface made up of API secrets, log streams, backend accounts, and connected applications. The practitioner implication is that AI governance has to include non-human identity ownership, scope, and revocation, not just acceptable-use policy.

Exposed telemetry is now a credential distribution problem: Logs that contain chat history, backend details, and secret keys are not passive records. They are an access path, because they can reveal the same material a secrets management programme is meant to protect. The implication is that observability and NHI controls must be designed together, or security teams will keep discovering secrets in systems they never classified as identity infrastructure.

Model safety controls do not substitute for identity controls: A model can block prompts, refuse outputs, or hide internal parameters and still sit behind exposed credentials and weak access governance. That means the control plane for AI risk is split, with one part governing output behaviour and another governing who and what can reach the service. The practitioner implication is to stop treating model restrictions as a proxy for access security.

DeepSeek exposure is an example of ephemeral trust becoming persistent risk: AI tools are often adopted as temporary productivity aids, but the credentials, sessions, and integrations they create tend to outlive the original use case. That persistence is what turns rapid adoption into governance debt. The implication is that AI programmes must be managed as lifecycle estates, not one-time deployments.

Runtime access assumptions are breaking under AI sprawl: The assumption that an AI service is a bounded application with a clear owner and predictable access scope no longer holds once multiple users, tools, and integrations are layered on top of it. That assumption was designed for static application boundaries. It fails when access paths are created faster than they are reviewed, revoked, or even fully inventoried. The implication is that identity teams must rethink how they define ownership and exposure across AI usage.

From our research library:

What this signals

AI identity debt: DeepSeek is a reminder that every new AI application can add credentials, logs, and delegated access faster than the security programme can classify them. The risk is not only whether the model is safe to use. The risk is whether the surrounding identity estate is still governable once the tool is embedded in daily work.

What practitioners should watch for is the collapse of the boundary between application rollout and identity lifecycle. If an AI service can be adopted through corporate credentials without clear ownership, review, and revocation, the environment is already accumulating non-human identity exposure that will surface later as secret leakage or untracked access.

The practical shift is toward treating AI usage as a governed access estate rather than a software preference. That means discovery, policy, and lifecycle controls need to move together, because once credentials and telemetry are exposed, the incident is already an identity problem.


For practitioners

  • Discover AI app usage across corporate identities Identify which users are accessing AI tools with corporate credentials, including shadow IT and unsanctioned browser use, so that access can be tied back to an owner and a review cycle.
  • Classify exposed AI services as forbidden when needed Use policy enforcement to block high-risk AI services that expose secrets, backend details, or unrestricted data handling, and notify users when access must be removed.
  • Inventory log and secret exposure paths Review where AI services write chat history, backend metadata, tokens, and API secrets, then remove those values from logs and telemetry pipelines before they become reusable access material.
  • Establish an AI application offboarding process Define how AI tools, their tokens, and their delegated access are revoked when the tool is no longer approved, so temporary adoption does not become permanent access.
  • Tie AI policy to access governance Require each approved AI application to have an accountable owner, a scoped access model, and a documented review cadence that covers credentials and connected integrations.

Key takeaways

  • DeepSeek’s exposure shows that AI adoption can become an identity governance problem as soon as credentials, logs, and delegated access are involved.
  • A public database with more than a million log lines demonstrates how telemetry can become an access path when secret material is written to it.
  • The control that matters most is lifecycle governance over AI-related access, including discovery, ownership, offboarding, and log hygiene.

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 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article centers on exposed API secrets and log data containing credential material.
NHI-03 — Vulnerable Third-Party NHIDeepSeek illustrates risk from a third-party AI service accessed through corporate identities and tokens.
NHI-10 — Human Use of NHIThe article highlights employees using AI services through corporate credentials and unsanctioned access.
Recommendation — Scan AI logs and connected services for secret leakage and revoke any exposed credentials immediately. Review third-party AI access paths and require ownership, scope, and offboarding for each connected service. Govern employee use of AI services that rely on corporate identities and prevent shadow access paths.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe issue is unmanaged entitlements and delegated access around AI services.
Recommendation — Inventory and constrain AI service entitlements so credentialed access matches approved business use.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementExposed secrets enable credential access that can be used for lateral movement into connected systems.
Recommendation — Map exposed AI secrets to credential access and hunt for downstream movement into linked accounts.

Key terms

  • AI Identity Debt: The accumulation of unmanaged credentials, sessions, logs, and delegated access created by AI adoption. It shows up when new AI services are added faster than identity teams can inventory, review, and revoke the access paths they introduce.
  • Delegated Access Chain: A delegated access chain is the sequence of permissions that lets one identity act through another, such as an AI agent using a token to call a tool that reaches sensitive data. These chains are hard to see because the original grant and the final action may live in different control planes.
  • Secrets Leakage: Secrets leakage is the exposure of credentials such as API keys, tokens, or certificates in places where they can be discovered and reused. The risk is not just disclosure, but unauthorized authentication that turns a coding or pipeline mistake into active access.
  • 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.

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.
NHIMG Editorial Note
Published by the NHIMG editorial team on May 26, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org