---
title: Auditing an application with six AI agents in twenty minutes
description: Six AI agents in parallel, read-only, a lead agent that rechecks every
  finding in the code, then fixing agents reviewed by another agent. The method used
  to audit Argos, my CRM, and what it cost.
url: https://sxnlabs.com/en/security/2026/12/15/auditer-une-application-avec-six-agents-ia-en-vingt-minutes/
lang: en
date: '2026-12-15T09:00:00+01:00'
tags:
- Security
- AI
- Agents
- Argos
---

# Auditing an application with six AI agents in twenty minutes

`brakeman` reported no warning on [Argos](https://sxnlabs.com/en/ai/2026/10/25/crm-sans-formulaires-pilote-par-mcp/), the software I use as my CRM, and `bundle-audit` found no vulnerable dependency. I asked Claude Code for a security and code audit and let it split the work between sub-agents. Twenty minutes later, I had a report with fourteen findings already exposed, each with its location and its fix.

## Six agents in parallel, read-only

The lead agent started six audits in under a minute. Four pentests: the web interface, the public surface, the 135 tools of the MCP server, and injection along with secrets. Two code audits: the services on one side, the controllers and interface on the other. The reports came back between five and seventeen minutes after launch.

The pentesters had no Write or Edit tool, and their instructions forbade them from fixing anything or sending a request to production.

## A finding without an exploit path is not a finding

Each pentest had to return its findings sorted by severity, with the file and line, a concrete scenario (who sends which request, with what result) and a one- or two-line fix. The instructions said a finding stays a hypothesis until its exploit path is shown. An agent that couldn't get all the way marked it "plausible" and named the missing link.

## The lead agent cross-checks

The six agents raised 40 security findings. Several were the same issue seen from two angles: the OAuth consent screen showed up in two reports, with two different severities. Once duplicates were merged, fourteen exposed findings were left, plus nine themes that required a non-admin account.

Before writing the report, the lead agent reread the code behind the most serious findings. Three examples:

- a "plausible" finding on request size became certain once the deployment configuration was read;
- two agents contradicted each other on what happens to an access refusal in the MCP server: it settled the question by reading the library's source code;
- one pentest warned that two findings would reach the highest severity if Hermès, my assistant, had its own limited account. A look at the production accounts showed there is only one active account, mine, an admin with MFA.

That context set the severities. Anything that requires a collaborator or read-only account went on a separate list, to be fixed before the first non-admin account. No finding was rated P1.

## What the scanners couldn't see

`brakeman` looks for known patterns in Rails code, and `bundle-audit` compares dependencies with published advisories. Several findings fell outside that frame: a file upload route that Rails declares without anyone writing it and that required no session, a header kamal-proxy forwards as it receives it, and MCP protocol batches, which ran several paid tools for a single rate limit unit.

## Fixing, batch by batch

I gave the go-ahead batch by batch. Agents wrote the fixes in parallel, each in its own worktree with its own test database, and every fix in the first two batches came with a test that fails without it, checked by reverting the change. Product choices stayed mine: for the inbox that receives forwarded emails, I chose to accept those from active Argos users rather than refuse everything.

On the first two batches, a reviewer agent read the diff in a fresh context before the pull request. On the limited accounts batch, it found four more P2 issues, fixed before the merge.

## What it costs

The audit phase took twenty minutes. Claude Code estimates its cost at 40 dollars at API rates.

The method reads the code; it doesn't attack a live system. Anything that depends on the load balancer configuration, for instance, can't be checked from the repository. And the calendar feed token still appears in clear in the server logs, which never leave the machine.

If your application has only ever been checked by a scanner, we can look at it together.
