You don’t need access to frontier Red Team models, abliterated models, or ARTEX to do comprehensive, high-value security work, though it may feel like it when the next high-sev CVE drops. Converting that unease into useful security work is the job of every founder, CISO, and CTO right now.
Luckily, this can be reduced to a fairly rinse-and-repeat process via a few prompts + your favorite frontier model. And you can repeat some or all of the steps at regular intervals if you wish.
Pre-requisite: automate your baseline
If you’re using containers, make sure you’ve:
- Identified the best upstream base image that’s actively maintained, preferably by the vendor/provider.
- Check that upstream base image on some cadence (we do it 4 times a day)
- When the upstream base image changes, rebuild all of the downstream dependencies, and make sure all future builds of those components take the updated image by default.
If you’re not using containers, figure out what the equivalent of that is for your platform. If you have some notion of “golden image”, 1) you probably shouldn’t, and 2) converting from pets to cattle is where you should start. And step 0 might be “Fix your change management process so it works with you instead of against you.”
2026 is a completely different security game than 2025.
How to do useful audits
Converting unease into actionable work is straightforward:
- Build the ivory tower pattern/anti-pattern guidance for one specific technology, component, or systems pattern you use
- Build an actionable inventory of your systems aainst that guide
- Cross-examine the audit, and turn the results into a backlog
- Bonus A: turn the guide into a skill – encourage future agents to do the right thing
- Bonus B: turn the guide into a guardrail – keep future agents from committing the wrong thing
- I made codereview-cli (
cr) to make domain-specific reviewers easier to implement and roll out, and I made guardrails for each component we inventoried to stave off regressions.
- I made codereview-cli (
You’ll want to lather-rinse-repeat for all of your infrastructure. Some of the things we did recently using this pattern:
- Keycloak
- Open Policy Agent (OPA)
- JWT roles
- Web Application Firewall (WAF)
- GuardDuty
- Envoy
- GitHub Actions
- RDS
- ECS + Fargate
- NAT
- …and many, many others
And we created relevant alerts for each component along the way.
Example: Keycloak as your identity provider
A brief note on models: Opus 5.5 Max is better than Fable 5.2 High is better than ChatGPT 6 Pro mode, but they’re all quite close. Gemini’s Carbon High is not in the same league on research tasks like these, and should not be used for the pattern/anti-pattern portions of this guide. (Yet.) I have not tested it as an agent for burning down the resulting work.
Patterns & anti-patterns
Model: Opus 5.5 Max or ChatGPT 6 Pro
It is critical that this is done in isolation, away from your systems context. For best results, just use the chat interface.
We run all of our infra on AWS. We use Keycloak as our IdP. What I need are a list of patterns and anti-patterns around security for this component/capability in general. I think we do OK, but I’m sure we could be better. Render as a markdown artifact, pls
The robot will go off and work for 5 to 20 minutes, depending. And what you get back will be incredibly comprehensive. Better than your identity architects will do.
Initial inventory
Model: Opus 5.5 High or Astra Ultra
We need to do an audit of our keycloak configuration and usage. see the ~/path/to/keycloak-security-patterns.md for some ideas. if you have other ideas along the way, feel free to explore them, too.
I want to inventory any and all gaps and things that could be better, and ultimately turn it into a backlog to burn down, and perhaps some updated codereview agents (which should maybe be in the .codereview directory in the appropriate repo(s)).
Feel free to pull main before setting off. Create a local audit report in <place> – include whatever intermediate artifacts you think are useful as well.
And then you wait. Sometimes for a long time.
Cross-examine the audit, prioritize and sequence the work
Model: Opus 5.5 High or Astra Ultra
Take a look at the Keycloak security audit in <path>. I need you to go through each finding, and ground it in reality, and prioritize and sequence it. For each grounded, prioritized finding show me (basically) a table of what Jira tickets you would create. I’ll take a gander at it, and then i’ll have you create the epic, and we’ll get rolling from there.
And then you wait again. Often just as long.
Doing the remediations
I find this two-pass approach often filters out some spurious or re-grades the severity of the findings. It’s important to realize that even then, these findings remain hypotheses. The agents that close and lock these windows and doors may discover that something isn’t as bad as it seemed, or it may find that it’s worse than it seemed. Each hypothesis must be evaluated individually by the agent doing the fixing.
Happy hunting!