Coinbase Security Proof of Work: Using AI to find and fix security bugs

This post is part of our ongoing update on security hardening at Coinbase. Each week, we'll cover one area of the work: what we're doing, why it matters, and how it helps protect customer assets.
AI tools can now review large amounts of code and flag possible security bugs faster than ever before.
But finding a possible security bug is just the beginning - someone still has to confirm the bug is real, determine the impact, propose a solution, and then verify that the fix actually works as expected.
At Coinbase, AI is a co-pilot in almost all of our work, including reviewing code for potential vulnerabilities. In fact every piece of code submitted by engineers that drives our products is scanned with industry leading frontier cybersecurity models for potential issues before it ever goes into production.
This post looks at a question that comes up with every possible bug: how do we quickly get from a bug to a verified fix that we can trust?
What this looks like in practice
Let’s use a fictional example to illustrate: a document-sharing application has a simple rule, a person can only open documents they have permission to view.
Discovery. Our Continuous Adversarial Testing suite does a sweep of the environment and identifies a set of circumstances where an access permission check may not be applied consistently. Which in turn appears to allow someone without permission to access a document to open it. Yikes! So clearly this is a potential security bug we need to look at ASAP.
Validation. We submit the bug to a series of AI agents who are tasked with reviewing the finding, crafting test cases or an exploit, and verifying the exposure - including identifying upstream and downstream mitigations, determining if there are actors currently probing this functionality, tracing reachability from the Internet. In this example, that testing appears to confirm that access rules are not being enforced under a specific set of conditions. The finding is updated with this new evidence, including criticality, impact, and exploit likelihood, and a preliminary severity rating is assigned. If the test had shown the concern was mistaken, the finding is marked as pending closure with that evidence also captured.
Prioritization. Humans review the security bug report - starting with the most severe as they come in. Any critical or high severity bug that is confirmed is queued up for rapid remediation. Other less critical issues are tracked over time for closure, but teams get more time to remediate them.
Repair. A different set of AI agents will review the issue and determine if there is a code fix or a configuration change that can resolve the issue. That recommendation is submitted to the responsible engineering team who can either accept and implement the recommended fix, or opt for a different solution. A second engineer may be required to review the fix if the system impacted is extremely sensitive or critical to our operations. The final fix gets implemented.
Verification. AI agents verify that the original issue is closed and flag for human review if issues persist. If there are issues, a human reviewer will review the issue and determine appropriate next steps. We also verify that the impacted software operates properly with the new fix in place and that no products or services were impacted. Lastly the security team will update our agentic scanning to verify that we look for other similar issues or vulnerabilities throughout our enterprise.
Experts track false positives
AI can help reviewers trace how code connects across a system and suggest tests to run, but security engineers know how the system is supposed to work, even when that context isn't visible in the code.
AI agents frequently identify “bugs” that just don’t hold up to detailed analysis. That’s why we use expert staff to validate AI-generated findings and review AI-generated fixes. AI is powerful, but it’s not nearly able to replace human judgement and expertise.
What’s next?
We are laser focused on expanding AI security scanning to every facet of our environment, always using the best possible models and even better using teams of agents running diverse models to bring “new perspective” to our efforts. We’re refining our penetration testing and adversarial testing teams and approaches to blend the best elements of human intelligence and AI. Our goal is to scan all historical Coinbase product code and infrastructure code with frontier AI cybersecurity models, and then every commit moving forward.
We can never promise that everything is bug free, but we can promise that we’re pulling out all the stops to find security issues before bad actors do. And when we do, we will fix them, validate them - and soldier on. And we will never stop.



