SecretsAI AgentsIncident Response

1Password's breach and the AI agent with your .env file

By Sean Monaghan 7 min read

What the disclosure tells us about trust boundaries, why AI makes credential shortcuts more costly, and where our infrastructure workflow fits.

Giving an AI agent your whole .env file is a very efficient way to turn one small task into a large permission problem.

It needs a staging API key. It gets the database password, the cloud token, the payment integration and whatever somebody added six months ago. Helpful little fellow. Bit overqualified for the job.

This week's 1Password breach is a good moment to look at those permissions, including the ones inside the systems that build and deploy your software.

What happened this week

1Password disclosed the incident on 25 November 2026, after starting its investigation on 19 November. It says an attacker used an employee's corporate GitHub account to reach source code and push malicious backend code. Customer account metadata was copied. Its CI/CD system was also accessed.

Crucially, 1Password says customer vault contents and their protecting keys were not accessed or available to the attacker. Its full root cause analysis is still pending. Read the incident update.

That distinction matters. A password manager's ability to protect vault contents when other systems are breached is part of the reason to use one.

The interesting bit is the route through the business

The disclosed route goes from a developer identity into code and backend services. That makes this a question about who can change what runs, as well as who can read stored data.

Think about your own deployment pipeline. Which credentials can a job retrieve? What can code running in that job do with them? Does changing a workflow also change who can reach production?

A secrets manager can refuse an unauthorised request. An authorised job running malicious code is a harder problem: the request may arrive with exactly the identity the policy expects. Protecting the workflow, its approvals and its runtime matters just as much as keeping the credential out of Git.

There is no public evidence in the disclosure that AI caused this incident. The connection is the permission problem. AI agents add another kind of software that can act using credentials we give it.

AI makes the old shortcuts easier to repeat

A coding agent can read a repository, inspect a configuration file, run a shell command and call an API in the same session. If the credentials are available to that session, a misleading instruction in a document or tool response can have consequences outside the chat window.

The risk depends on the agent's tools and permissions. A text suggestion and an authenticated production action are very different things. OWASP's AI Agent Security Cheat Sheet recommends least privilege, checks around tool use and human review for consequential actions.

So a password manager or secrets platform becomes more useful as you add agents. It gives you somewhere to keep credentials, a way to control retrieval and a place to start when access needs to stop. You still have to configure it properly.

The useful questions are quite ordinary:

  • Which identity is doing this job?
  • Which secret or operation does it need?
  • Can we keep it in staging?
  • When does its access expire?
  • What will show us what happened?

“Please be careful with production” is a reasonable message to a colleague. It is a poor access-control policy.

Where CertLocker fits

CertLocker brings secret storage into the same operational workflow as hosts, certificates, access tokens and audit events. You can manage system secrets for operational use and private secrets for an individual user, with separate permissions for relevant actions.

CertLocker System Secrets inventory with four fictional demo entries, including a 1Password test account and an AI staging API key. Enlarge
CertLocker System Secrets inventory with four fictional demo entries, including a 1Password test account and an AI staging API key.

Yes, there is a 1Password test account (demo) in the screenshot. Even the password manager gets a password manager. These are fictional records, not leaked credentials or evidence about 1Password.

The more useful entry is the staging deploy credential. Its details show its group and the hosts or tokens linked to it. That gives an operator somewhere to begin when a credential needs changing. It is a record of known relationships, not automatic discovery of every copy somebody has made.

Secret details for a fictional GitHub deploy token, showing the staging group and linked host and access token. Enlarge
Secret details for a fictional GitHub deploy token, showing the staging group and linked host and access token.

Give the task its own access

For a direct secret-retrieval workflow, a token can be tied to a particular secret and given an expiry. The example below grants 30 minutes of access to a staging deploy secret.

CertLocker token details showing a SECRET token linked to one staging secret, a 30-minute duration and revoke and suspend controls. Enlarge
CertLocker token details showing a SECRET token linked to one staging secret, a 30-minute duration and revoke and suspend controls.

For MCP-connected AI agents, the platform uses assigned application roles and effective group restrictions. The agent has its own identity rather than inheriting the creator's permissions. Credential values are redacted from responses by default; an explicit, authorised export can return them.

These are two different workflows. The screenshot shows a SECRET retrieval token, not an MCP agent configuration. For an agent, start with the smallest set of operations it needs. If it only needs certificate status, leave secret retrieval out of its roles altogether.

Redaction helps keep a routine response from carrying a password. It does not make a broad permission safe. An agent allowed to export a credential, execute a shell command or change an application may still have ways to expose data. Review the whole task, including where tool output and logs go.

Know what changed, and what needs changing elsewhere

Secret version history lets you inspect earlier stored versions. Audit records help you review supported actions such as changes and retrievals.

CertLocker version history listing two earlier versions of the fictional staging deployment secret. Enlarge
CertLocker version history listing two earlier versions of the fictional staging deployment secret.
CertLocker audit list showing successful secret retrieval and modification events with timestamps and actor types. Enlarge
CertLocker audit list showing successful secret retrieval and modification events with timestamps and actor types.

There are two easily missed details here. Updating a value in a secrets platform does not rotate it at GitHub, your database or your cloud provider. And expiring the retrieval token does not invalidate a downstream credential that a client has already copied.

For an exposed API key, revoke or rotate it at its issuer, update the stored value, update the consumers and check that they work. Restoring an old version is useful for some configuration mistakes. Restoring an exposed credential brings the exposure back with it.

How we differ, without pretending the overlap disappears

1Password also has developer and automation tools, including service accounts, CLI access, SDKs and secret references. Comparing it with a browser password list would be a convenient comparison, and a poor one. Its developer tooling is documented here.

Our focus is the infrastructure workflow: connect the secret with the host or token that uses it, control access, manage changes and review the resulting records. Certificate delivery, SSH access and endpoint checks sit alongside that work, with availability depending on the plan and configuration.

There is also a real architectural trade-off. CertLocker uses server-side encryption and can decrypt secrets for authorised operational use. The running service and its key material therefore remain part of the trust boundary. A sufficiently privileged compromise could expose secrets. We should not claim the vault protection reported by 1Password as a property of our own design.

Scoped access helps limit ordinary users, workloads and agents. Protecting the service that enforces those permissions is a separate responsibility. This week's incident does not establish that CertLocker would have prevented the same attack.

You may use a personal password manager and an infrastructure platform together. Choose where each credential belongs based on who needs to use it and what the system must do with it.

Secret management is included in the free hosted plan

CertLocker offers a free SaaS plan with unlimited stored secrets. The published Free allowance is one user, 25 access tokens and 30 days of audit history. API usage has a separate allowance of 25 calls, with its reset period currently unpublished. Check that before sizing an automated integration. Advanced team controls and automation vary by plan. See the current pricing and allowances.

If you want to walk through a real workflow, book a video call. Bring the awkward one: a deployment job, a shared PEM file, an AI agent with too much access. We can look at what it actually needs and demonstrate the hosted service.

You can also start with the free hosted plan. One staging credential is a sensible place to begin. Give the task enough access to finish, then check that access can stop.

Sean Monaghan, CertLocker. Written 27 November 2026. Incident reporting reflects the information available on that date.