CultureAI
All blog posts
AI ThreatsResearch

Is Your AI History a Credential Store? What the Wiz ARTEX Case Tells Us About Secrets in AI

Oliver SimonnetLead Security Researcher
PublishedRead time7 min readShare

In brief

  • In an intrusion published by Wiz, attackers mined employees' AI coding assistant session histories for production SSO credentials, alongside more traditional tradecraft.
  • AI chat histories have quietly become unmanaged credential stores: no access policy, no rotation, no audit trail, and a handy search box.
  • In our research, credentials were disclosed to AI tools in 70% of organisations, and 81% of AI activity ran through personal, free or unauthenticated accounts.
  • The fix is not to stop people using AI, but to use managed accounts, treat AI history as sensitive data, rotate anything pasted and catch secrets in real time.

Introduction

On 23 November 2026, Wiz published research on attackers using offensive agentic frameworks such as ARTEX and CyberStrikeAI to compromise cloud environments. Most of the coverage focused on the tooling, which makes sense, as it is open source and widely forked. What has been discussed less is that in one of the anonymised intrusions, "employees' AI coding-assistant session histories were mined for production SSO credentials." Having just released our whitepaper on AI data leaks and where credentials fit in, I find that very interesting.

What Wiz found

Wiz described an attack in which the threat actors moved through two AWS accounts and seven EKS clusters over four days in October. The initial foothold was reportedly a stolen Terraform runner session, which gave them the access to create a privileged pod and a cluster-admin binding. The threat actors then gained code execution on a Jenkins host, deployed a userland rootkit disguised as a fontconfig service, and used further harvested node and Terraform credentials to read Terraform state and access Secrets Manager.

However, only part of this story came from Wiz's own telemetry. The rest of the picture was pieced together from the attacker's own server, which had an exposed directory containing more than 3,000 files. Analysis of these files uncovered forged identity provider admin tokens (with access to 3,392 users and their active sessions), 50 SSH private keys, dumped GitHub Actions secrets, Anthropic API keys harvested from 50 hosts, and SSO credentials mined from the histories of multiple AI coding assistants.

Diagram of the attack chain. Inside the victim cloud environment of 2 AWS accounts and 7 EKS clusters, the threat actor moved through six steps: a stolen Terraform runner session (initial access), a privileged pod and cluster-admin binding (privilege escalation), code execution on the Jenkins controller (execution), a userland rootkit posing as a fontconfig service (persistence), harvested node and Terraform credentials (credential access), and a Terraform state and Secrets Manager read (collection). Harvested data went to the attacker's server, an open directory exposing more than 3,000 files: forged IdP admin tokens covering 3,392 users and live sessions, 50 SSH private keys decrypted from a bastion database, GitHub Actions secrets dumped from CI/CD, Anthropic API keys harvested from 50 hosts and, as the key finding, production SSO credentials mined from AI coding assistant histories.

Wiz also tied this harvesting activity to more than a dozen other organisations between late October and mid-November 2026, describing it as one of a dozen campaigns it is currently tracking. This was far from an isolated event.

Much of this is traditional tradecraft. What stands out is the exploitation of AI chat histories. It is a prime example of why AI security and governance matter so much now: organisations need a way to make sure sensitive information, such as credentials, does not end up logged in those histories.

Why AI histories are worth mining

If you have ever watched someone debug a failing deployment with an AI assistant, this won't surprise you. AI works best with as much context as possible, so the fastest way to get a useful answer is to give it local access or paste everything into the chat: the error, the config file, the connection string, the environment variables and, among all that, sometimes the passwords that are "for staging only" (obviously). The AI does its job, the problem gets solved, and the conversation sits in the user's history. Before long, nobody remembers what was in it or what that chat was for.

That history has effectively become an unmanaged credential store. Unlike an actual secrets manager, it has no access policy, no rotation and no audit trail, and nobody on the security team knows it exists. It also comes with a handy search feature. All of this makes it an extremely attractive target. A threat actor with a foothold on a developer's machine or account doesn't need to understand the whole environment. They just need to search the place where the people who do understand it have been discussing it: their AI assistant histories.

Before AI, going through months of chat history was a tedious job for a human operator (common, and far from impossible). Now it is precisely the kind of task an agentic, LLM-driven toolkit will do in seconds, with full context and without complaint.

Diagram of how AI histories are mined. A threat actor gains a foothold on a developer machine or account (initial access). An agentic LLM toolkit then searches and reads at machine speed (discovery), going through coding assistant sessions, AI chat history, personal AI accounts and agent session logs. The secrets extracted include SSO credentials, API keys, connection strings and "staging only" passwords.

The wider problem

AI coding assistants just happen to be where this particular case surfaced, but secrets end up in AI conversations wherever people use AI to get work done, which now covers most of an organisation. Engineers paste errors and code to fix deployments. IT teams share admin credentials while troubleshooting access. HR share document passwords. Security teams disclose assessment findings and network diagrams to help with reporting. Each of these conversations helps someone with a task, and every one of them then lingers in somebody's chat history.

When we analysed around 1.7 million AI interactions across 40 organisations over six months in 2026 for our report, The Unmanaged Majority, credentials (account passwords, API keys, domain admin credentials and database connection strings) had been disclosed in 70% of those organisations. Source code and configuration had been disclosed in 80%, and security and infrastructure documentation (such as penetration test findings, incident details and network diagrams) in 78%.

Organisations often treat a conversation that runs through an enterprise account as fully mitigated, because they can enforce single sign-on and MFA, set retention and remove access when somebody leaves. However, that counts for little once a threat actor has a foothold in your organisation. And most AI use doesn't work that way anyway. In our research, only 19% of AI activity ran through enterprise accounts; the remaining 81% went through personal, free or unauthenticated accounts. Those histories sit entirely outside the organisation's control. With infostealers having already harvested hundreds of thousands of AI assistant credentials, these accounts are all the more appealing to threat actors looking for the chat histories behind them.

This is why AI security and governance solutions are so important. They can intercept and redact (or block) sensitive data such as credentials in the moment, before it ever reaches the AI service and the user's history. They also give you visibility of which AI applications and MCP integrations exist in your environment, providing the insight and telemetry needed to quantify risk accurately and take the right action to secure your environment and your AI adoption.

What security teams should do now

Most of the hardening needed here builds on controls security teams already use to protect secrets elsewhere. The gap is that AI histories are rarely considered a place where secrets live. Closing it is not about stopping people using AI. It is about making sure that when a secret does end up in a conversation, it is prevented or caught early, and the right people are told, so it can be rotated before anybody else goes looking for it.

  • Make sure developers use managed accounts. Make the enterprise route easier than the personal one, so that SSO, retention and offboarding actually apply.
  • Treat AI history as a sensitive data store. Include AI chat histories and agent session logs in data classification, endpoint hardening and incident scoping. If a developer's machine or account is compromised, assume its AI history was accessed.
  • Rotate anything that has been pasted. If you find credentials in AI prompts, treat them as exposed, whether or not there is evidence of misuse, and even if they went through an enterprise account.
  • Intervene in real time. Detect and redact secrets before they leave the organisation, using AI security and governance tooling, rather than trying to find them in histories afterwards.
  • Don't block your way out. Hard-blocking heavily used AI tools is often followed by a sharp rise in personal account use. Developers will keep using AI, so the goal should be to make the most secure route the easiest one.

Conclusion

The Wiz report is a useful reminder that AI conversations are persistent records, and records get searched by threat actors. Developers are not doing anything unusual by pasting debugging information into an assistant to solve a problem, and they will almost certainly keep doing so for as long as it is the fastest way to work. What matters is that attackers now have the tooling to read every one of those conversations at machine speed during a compromise, and anything useful in there will be extracted.

The gap between how quickly AI has been adopted and how well it is secured and governed is exactly where this exposure lives. Closing it does not mean taking the tools away. It means knowing which tools and accounts are in use, catching secrets before they are disclosed, and making sure both the person who pasted them and the team responsible for rotating them find out in the moment, rather than after an attacker has.

Uncover hidden AI risk

Start a free 2-week AI Risk Assessment. Easy setup. Fast visibility.