# Our AI agents exposed passwords. What executives should learn from it.

> Autonomous agents create security risks that instructions alone cannot control. That changes what we spend our time on.

- **Author:** Gunnar Hopfe
- **Date:** 10 / 2026
- **Reading time:** 6 min
- **URL:** https://fse-group.de/en/think-tank/our-ai-agents-exposed-passwords

Since September we have checked our AI agents’ work logs for security problems every day. What we found were real credentials to our infrastructure. What follows from that concerns every leadership team that puts agents to work.

For months our AI agents have been taking on more work, and it works surprisingly well. That is exactly why one question occupies us more today than it did at the start: how we make sure these systems keep working securely over time.

Since September we have checked our agents’ work logs for security problems every day, automatically. In them we found real credentials to our infrastructure, several accounts, including a number of database passwords. Nobody had attacked us. The agents had done nothing obviously wrong, they had used tools and completed their tasks. The data had ended up in the logs during entirely normal work.

We replaced every affected credential immediately. On their own they would not have allowed free access to our systems, because further layers of protection limit permissions and reachability. That only half reassured me. A security risk does not become acceptable because other mechanisms limit its consequences.

The finding confirmed something that increasingly shapes our work with AI: the more operational work we hand to agents, the more important the work on the agents themselves becomes. I believe many companies still underestimate this.

### An agent needs no bad intent to become a risk

An agent reads documentation, examines configurations, calls systems and processes their responses. A typical case: it analyses an error message, and next to the error that message contains the connection to another system, credentials included. For the agent that is working context. For IT security it is a secret that now sits in the language model’s context, in a tool’s output and in the session log. We saw this pattern several times.

So an agent can complete its task correctly and still cross a security boundary. Intent has nothing to do with it. Architecture has a great deal to do with it. The risk is not new, the OWASP Foundation describes it in its MCP Top 10. [1] Our finding shows how quickly it becomes real once agents work in production.

### Security cannot be written into a prompt

The obvious reaction is: then we simply tell the agent it must not output passwords. That sounds reasonable and is not enough. An instruction is not a technically enforced boundary, and it does not prevent the password from landing in the agent’s context in the first place, the moment it opens a configuration file.

Stricter bans have their own price. Forbid agents across the board from reading technical information and you take away the data they need for many legitimate tasks. Have every action approved and you lose the benefit of autonomy. [2] Good security architecture therefore makes safe actions possible instead of forbidding as many actions as possible. Whether an agent follows an instruction must play no role in security.

### Three principles we use to secure our agents

First, an agent should know as little as possible about credentials. It needs capabilities, not the keys to them. In our setup the agent calls clearly defined functions, and the infrastructure behind them holds the credentials and decides what is permitted. After the finding, this required a fundamental rebuild of our password management and of how we handle credentials. That rebuild is now complete.

Second, the agent does not decide for itself whether its behaviour is safe. Controls in our infrastructure check access, actions and information flows, regardless of what the language model considers right.

Third, we monitor the protective mechanisms too. I consider this the most important lesson. Writing down a security rule is easy. Proving that it still holds after the next new tool and the next changed interface is hard. [3] Our finding is the proof: the credentials were already in the logs before we started looking. Our checks did not cause them, they made them visible. A safeguard whose effect nobody checks gives a feeling of security and no proof.

![Graphic, in German, showing the three principles. First, do not have it: the agent never receives the key and works through vetted interfaces; a lock sits between the data source (configuration, database, documentation) and the AI agent. Second, do not see it: the agent does not decide for itself whether its behaviour is safe, controls check access, actions and information flows; the policy gateway checks input, call and output and removes sensitive information. Third, find it fast: whatever still slips through is caught by the daily review of the logs; an arrow leads from the session transcript to the review, which checks for and reports anomalies.](https://fse-group.de/media/think-pieces/20261008_thinktank-passwoerter-drei-prinzipien.png)

The best security measure is therefore rarely the strictest. It is the one that demonstrably protects and holds up in operation.

### A matter for the board

With autonomy the risk structure changes: an assistant makes suggestions, an agent uses tools, runs processes and talks to other systems. In the energy sector, regulation comes on top. Under Article 20 of the NIS2 Directive, the management bodies of entities in scope must approve the cybersecurity risk-management measures and oversee their implementation. [4] Once autonomous agents operate in the processes, they are part of that.

Every leadership team should settle three questions with its IT:

- Which information and systems can our agents actually reach?

- Can we prove that our security measures hold in live operation?

- Who is responsible for developing these systems further in a secure way, and do those people have the necessary expertise?

If you have no answer to these, create the preconditions first, before autonomous agents enter critical processes.

### The new productivity calculation

In the end, the most important lesson concerns our work. We now spend a considerable part of our time on the infrastructure that lets our agents work reliably: on permissions, controls and the evaluation of anomalies. AI does not make work disappear. It moves from working in the system to working on the system.

The usual business case asks how many hours an agent saves and leaves out the effort of operating it securely over time. An agent that saves ten hours today and triggers a serious security incident tomorrow has gained nothing on balance. The calculation only works out if operations get people and budget from the start.

### If you deploy agents, you have to be in control of them

I am convinced that autonomous agents will fundamentally change our work. Part of the time they give us has to flow back into the systems that make that time possible in the first place. Technology should strengthen people, and their tasks are shifting from executing to designing, checking and taking responsibility. In the end, the advantage lies with the companies that can run their agents securely and economically. How many agents they have is secondary.

Do you know what your AI agents are actually allowed to do, and can you prove that your security rules hold? If you use agents or plan to, and face similar questions, talk to us. We are happy to share our experience.

#### Sources

- [1] OWASP Foundation: *MCP Top 10*, risks around token management, secrets and sensitive information in agentic systems.

- [2] OWASP GenAI Security Project: *LLM06: Excessive Agency*, security risks from far-reaching functions, permissions and autonomy of AI systems.

- [3] Booth, H. et al. (2024): *Secure Software Development Practices for Generative AI and Dual-Use Foundation Models*, NIST Special Publication 800-218A, National Institute of Standards and Technology.

- [4] European Union (2022): *Directive (EU) 2022/2555 (NIS2)*, in particular Articles 20 and 21 on the responsibility of management bodies and cybersecurity risk management.
