"The Agent Installed It": AI Coding Agents, Homebrew and Your Next Audit
Coding agents now install software on developer Macs by themselves. Auditors still ask who installed what, when, and who approved it. Here is what ISO 27001, SOC 2, PCI DSS, NIS2 and DORA expect, and how to have an answer.
No auditor wants to hear "the agent installed it".
For years, the question about developer Macs was simple: what do the developers install? Now there is a second one. Claude Code, Codex, Cursor, Gemini CLI and GitHub Copilot run commands on the developer's Mac, and some of those commands install software. A developer asks the agent to get a project running, the project needs Node.js, and the agent runs brew install node. Nobody typed that command.
Most of the time, that is exactly what you wanted. The agent saved the developer five minutes. But sometimes it installs ngrok, a tool that opens a tunnel from the laptop to the internet, because the task mentioned a webhook. The developer was looking at the code, not at the terminal.
This article looks at agent installs the way an auditor does: what the common frameworks ask for, where agents fit into those controls, and what you need to be able to show.
What changes when an agent runs brew
An AI coding agent runs commands as the developer. It has the developer's user account, the developer's Homebrew and the developer's network access. To macOS and to Homebrew, an install the agent ran looks exactly like one the developer typed.
That has two consequences.
The first is the record. An install log that says alice installed ngrok on alice-mbp is the record you'd normally show an auditor. If the agent ran the command, the log is still technically correct, but it no longer means that Alice decided to install it. Ask Alice about it and she may not remember it at all.
The second is approval. Your process may say that developers can install tools from an approved list, or that new tools need a request. An agent doesn't read your process. It reads the task, and it installs whatever gets the task done.
Agents also run with whatever permissions the developer has, which makes them worth taking seriously. In August 2025, a compromised release of the Nx build system ran the AI command-line tools it found on developers' machines, with their safety prompts switched off, to search for secrets. That attack didn't involve Homebrew, but it shows what "the agent has your permissions" means in practice.
One thing works in Homebrew's favour. Research on AI-generated code has shown that language models regularly suggest package names that don't exist, and attackers can register those names on open registries like npm and PyPI. Homebrew's main repositories are curated, so a made-up name usually fails to install rather than installing something malicious. The Homebrew risk is a different one: a real, legitimate tool that doesn't belong on that Mac, or a package from a third-party tap nobody reviewed.
What the frameworks actually ask for
None of the major frameworks mentions AI agents. They don't need to. An install by an agent is still a software install, and a change to an endpoint. The controls are the same ones you already answer for developer installs.
| Framework | Control | What it asks for |
|---|---|---|
| ISO/IEC 27001:2022 | Annex A 8.19, Installation of software on operational systems | Rules for installing software, including who may install what |
| Annex A 8.1, User endpoint devices | An endpoint policy, which per ISO 27002 covers restrictions on software installation | |
| Annex A 8.15, Logging | Logs of user and system activities | |
| SOC 2 (2017 TSC) | CC6.8 | Prevent or detect unauthorised software; points of focus include restricting software installation |
| CC8.1 | Changes are authorised, documented and approved | |
| PCI DSS v4.0.1 | 10.2.2 | Every logged event names the user, the event, time, outcome and affected resource |
| 8.2.2, 8.6.1 | Actions by shared or system accounts must still be attributable to an individual | |
| NIS2 | Art. 21(2)(d), (i) | Supply chain security, access control and asset management |
| DORA | RTS 2024/1774, Art. 11(2)(c) | Only authorised software is installed on ICT systems and endpoint devices |
| RTS 2024/1774, Art. 21(c) | Users can be identified for the actions they perform |
An auditor will check the scope, so a few notes:
- PCI DSS applies to the cardholder data environment and to systems connected to it. A developer Mac is in scope only if it sits inside that boundary.
- NIS2's detailed technical requirements, Commission Implementing Regulation (EU) 2024/2690, bind specific entity types such as cloud, data centre and managed service providers. For everyone else they are a useful reference, not an obligation.
- DORA's RTS on ICT risk management applies to financial entities in full. Entities under the simplified framework follow a lighter set of rules.
Read the table again with an agent in mind. 8.19 and CC6.8 ask who may install software. CC8.1 and DORA Article 11 ask whether the install was authorised. PCI DSS 10.2.2 and DORA Article 21 ask who did it. "The agent" is not an answer to any of those three questions.
The three questions an auditor will ask
Put together, the controls come down to three questions about every install on a developer Mac.
- What was installed, where and when? This is the inventory and the log. Most companies with an MDM can answer it for apps, and many can't for Homebrew packages, because the MDM doesn't see the Homebrew prefix.
- Who, or what, installed it? A log that names only the user account can't tell a developer from an agent working on their behalf. The auditor needs the person accountable, and it helps to know that an agent ran the command.
- Who decided it could be installed? That's either a policy (the package is on an approved list, or not on a blocked one) or a person (someone approved this install). An agent deciding for itself isn't an authorisation.
If you can answer all three for agent installs, the agent stops being an audit problem. It becomes one more way software arrives on a Mac, under the same rules as the others.
Practical options
There isn't one right policy for agents. A team building developer tools may want agents to install freely. A payments team may want every new tool to go through a request. The options are roughly:
- Allow: agents install whatever your package policy allows. You still need the log to say an agent did it.
- Ask the developer: the agent's install pauses until the person at the Mac approves it. The developer stays fast, and every new tool has a human decision behind it.
- Turn it into a request: agents can install what you have explicitly approved. Anything else becomes a request for an admin to review.
- Block: agents can't install new packages on their own. The developer installs them.
Whatever you choose, two things don't change. Your package policy applies to every install, whoever runs it: a package that is blocked for developers is blocked for agents. And the choice should be visible to the auditor, written down and applied the same way on every Mac.
Where EnterpriseBrew fits
EnterpriseBrew puts Homebrew on developer Macs behind your package policy, and records every install that goes through it.
For every install, the log records the person, the Mac, the package, the version, the outcome and what ran the command: the name of a recognised AI agent, an IDE, a terminal or one of EnterpriseBrew's own automations. EnterpriseBrew recognises the agents your developers already use, including Claude Code, Codex, Cursor, Gemini CLI and GitHub Copilot.
Admins choose allow, ask the developer, request or block, for the whole company or for a single device group. With "ask the developer", the person at the Mac approves the new package with Touch ID or their Mac password, not a button the agent could click. If they decline, nothing is installed, and the log shows a cancelled install. If nobody is at the Mac to answer, the install is handled as a request.
Allow and block rules, license rules and the vulnerability check before install apply to every install, agent or not. An agent that hits a block is told to file a request instead of looking for another way in.
The install log is sealed daily, so a change to a past day's records shows up when you verify it. Each Mac also reports its packages regularly, so a package that appears without going through EnterpriseBrew shows up in the Mac's inventory too.
One caveat, which we'd rather state than have an auditor find. Agents are recognised by the traces they leave on the Mac. An agent that hides them looks like a person typing, and is held to the same package policy as that person. So "installs by recognised AI agents" is the accurate description of what EnterpriseBrew attributes and governs. The package policy sets the boundary for every install.
The AI agents section on our home page shows what the install log looks like.
A short checklist
- Decide what agents may install on their own, per team if teams differ, and write it down.
- Check that your install log names the person and the agent, not just the user account.
- Apply the same package policy to agents and people. A separate, looser path for agents is the gap an auditor will find.
- Know what's on every developer Mac, including Homebrew packages, not only the apps your MDM deployed.
- Review third-party taps. They are where Homebrew's curation stops.
- Pull a sample before the auditor does. Pick a few agent installs from last month and check that you can answer all three questions for each.
AI agents are part of everyday development now, and most of what they install is fine. What the audit expects is that, for every install, you can show who allowed it.