I build small tools for myself, and I hold them to a lower security bar than anything I’d sign off on at work.
Cyclyst is one of them. It’s a Flask and SQLite dashboard that tracks CE/CPE renewal requirements across my certifications: CISSP, CISA, PMP and a few others. It holds member IDs, cert numbers and my full training history. It has no login, by design. It only listens on localhost, and I treated that as the security boundary.
When Anthropic released the Claude Security plugin for Claude Code in beta, I pointed it at Cyclyst and ran the whole lifecycle: install, scope, findings, patch, test, deploy.
Here’s what happened.
1. Installation
The plugin installs from the Claude Code plugin catalog. One dependency isn’t obvious: scans run as a multi-agent workflow, so the session needs the Workflow tool, which comes with “dynamic workflows”. It wasn’t available in my session at first. Once it was, the plugin opened with a three-option menu: scan the codebase, scan changes, or suggest patches.
It’s beta software, and the setup reflects that.
2. Scope
The plugin sized the repo before asking anything. 39 tracked files, so it recommended a whole-repository scan at medium effort over scoping to one directory. Then it asked one fixed confirmation, because a scan takes real time and tokens, and started.
The pipeline was more than I expected:
- An inventory agent split the repo into components and accounted for every top-level directory. It skipped one on purpose (screenshots only) and said why.
- A threat model was built before any vulnerability hunting started.
- Researchers were assigned per component and per vulnerability category, followed by a breadth sweep.
- Every candidate finding went to a panel of three separate AI agents. Each one judges it from a different angle:
- Reachability: can an attacker actually get to this code?
- Impact: if they do, what do they really get?
- Defenses: is something else already blocking it?
A finding needs 2 of 3 votes to survive. Only a unanimous 3/3 can claim high confidence.
Five candidates went in. Three were rejected 1–2. Two survived 3/3.
3. Findings review
Results land in a new folder at the root of the repo, named for the scan’s start time in UTC: CLAUDE-SECURITY-<YYYYMMDD-HHMMSS>. Mine was CLAUDE-SECURITY-20261115-055451. It holds:
CLAUDE-SECURITY-RESULTS.md: the human-readable report, covering what was scanned, what wasn’t and why, then each finding with impact, location, exploit scenario, preconditions, fix and the panel’s vote.CLAUDE-SECURITY-RESULTS.jsonl: the same findings, one per line, for a CI gate such as failing the build on any HIGH.CLAUDE-SECURITY-RESULTS.sarif: the same findings in SARIF, for GitHub code scanning or an IDE viewer.CLAUDE-SECURITY-REVISION-<commit>.json: a stamp recording exactly which commit was scanned, at what effort, whether the tree had uncommitted changes, and the verification status..gitignore: a single*, so nothing in the folder is committed unless you remove it.
Each finding gets an ID: F1, F2 and so on, in severity order. Gaps in the numbering are candidates the panel rejected. From here on, F1 and F2 are the two findings that survived.
Both surviving findings described the same issue: DNS rebinding through a missing Host-header check (CWE-346, rated MEDIUM).
The chain worked like this. Flask 3.1 ships with TRUSTED_HOSTS unset, so the app answered any Host header. A malicious page re-points its own domain at 127.0.0.1. My browser now treats that page as same-origin with my dashboard. The page reads every credential record, pulls the CSRF token out of the HTML, and sends valid POST and DELETE requests. Flask-WTF’s Referer check only runs over HTTPS, so it didn’t help.
The bind to localhost, which I’d treated as the boundary, wasn’t one.
What struck me is that no single line of code was wrong. The bug lived in what wasn’t there, plus how three components behaved together. That’s exactly the kind of issue a line-by-line linter can’t see.
The report was honest about its limits, too. It listed which files researchers didn’t fully read and why. It also said plainly that nothing was executed: every finding came from reading the code, not from firing an exploit.
4. Patch
I asked for fixes. For each finding, the plugin:
- Cloned the repo into a scratch workspace. My working tree was never touched.
- Had one agent write the fix and add tests.
- Had a second, independent agent review the change against three claims: highly targeted, introduces no new vulnerability, leaves behavior unchanged. That agent ran the test suite and probed a throwaway database before and after the change.
- Had a third agent look only at the diff and ask one question: what can an attacker do with this change that they couldn’t before?
The output went into a patches/ subfolder of the same report folder:
F1.patchandF2.patch: a standard diff for each finding, named by its ID. A comment header above the diff records the finding, the three claims and their evidence, and the one-line apply command.git applyignores the header.F1.mdandF2.md: a short note per patch, with the summary, the claims, the tests run, and whether the patch still applies cleanly to your current tree. A finding that doesn’t earn a patch gets only the note, explaining which claim blocked it.PATCHES.md: a one-page index of what was patched and what wasn’t.patches.jsonl: the same, machine-readable.
Nothing is applied, committed or pushed. You read the patch and decide.
Both patches cleared every gate.
That’s where judgment came back in.
Two findings meant two patches. Both fixed the same root cause, in the same function, and they conflicted. Applying one would break the other. The differences were subtle:
- F1 let an environment variable replace the allowed-host list, and included IPv6 [::1].
- F2 let the variable only add hosts, so localhost could never be removed by a typo. It left out [::1].
The reviewers had caught that Werkzeug trims host entries at the first colon. So [::1] quietly allowed any IPv6 literal. That was harmless for a localhost-only app, but loose.
I picked F2. The tool gave me everything I needed to make that call. It didn’t make it for me, and it shouldn’t have.
5. Test
I applied F2 on its own branch. 176 tests passed: the 172 existing ones plus 4 new ones that check loopback hosts are served, rebound hosts get a 400 before any view runs, and a blank config can’t silently become “trust every host”.
Then I ran the app myself and loaded the dashboard. It was unchanged.
6. Deploy
The fix went up as a pull request, credited to the plugin, and I merged it. The scan report and both patches stay in a gitignored folder in the repo as a record.
Scan to merged fix took one sitting.
What it doesn’t replace
This isn’t a displacement for existing security tooling. Snyk and Dependabot are cheaper, deterministic and built for CI, and they belong on every push. But as I use them, they check the packages I depend on, not the code I wrote. Neither would have caught a missing Host check. Cost matters too: on a Pro plan, one full scan plus patching on a 39-file app used most of my 5-hour usage window, about 1.5M tokens across 31 agents. Claude Security is nondeterministic and costs real tokens per run. I’ll use it as a manual pass before a PR and a periodic full scan after big changes, on top of the standard tools, not instead of them.
Beyond one engineer
This was one person, one repo, one personal plan. That’s not how it would run on a team.
With several engineers, you’d want findings centralized in one place and the capability managed centrally, not scattered across individual sessions. A broader codebase would likely exceed personal plan limits and push you to the API.
But for testing and piloting the capability, without investing in another third-party tool first, this is a great way to get started.
What it does add
The part that matters to me is the work around the finding: the threat model, the three-agent panel, and the independent patch verification with an adversarial second look.
That’s the security engineering time that used to go into triaging false positives, arguing about reachability, and reviewing whether a fix opened something new. It mostly came out of the equation.
What stayed in was judgment. One root cause, two verified fixes, one decision.
That’s the right split.
The repo is here: github.com/mikhaelf/cyclyst
How are you fitting AI-driven security review into your development lifecycle?
If you’re piloting AI-driven security review on your team and want a second opinion, book a 20-minute intro call.
