AI coding agents have moved security risk from code to design
|
Educational
Team Seezo
Threat modeling and security design reviews have been around for years. AppSec teams typically reserved them for systems they considered high-risk. Lower-risk systems got lighter checks, such as SAST in the pipeline and peer code review, or none at all.

That approach made sense when implementation took longer. Design flaws have always been a problem, but developers and reviewers had more time to review incomplete or missing security requirements before a feature was finished.
Coding agents have changed these economics.
Say a company wants to let customers export their monthly usage data. A product manager writes a short ticket, a developer hands it to a coding agent, and the feature is built in a day. The SAST scans pass. Secure code review passes.
But the ticket didn’t say which users can export which data, so the export doesn’t check whether the logged-in user belongs to the account they’re asking the data for. Any customer can download another customer’s usage history by changing the account ID in the URL. AppSec teams will recognize this as broken object-level authorization, or IDOR.
- 01TicketNo access rule“Let customers export their monthly usage data.” Nothing says who can export whose data.
- 02Coding agentShippedBuilds the export feature in a day.
- 03SAST scanPassedNo known bad code patterns.
- 04Secure code reviewPassedThe code does what the ticket asked.
GET /usage/export?account=1042GET /usage/export?account=1043Coding agents may increasingly avoid the implementation bugs that SAST scanners catch. But missing authorization, weak tenant isolation and excessive privilege are design stage problems.
A developer can hand over a ticket and have a working feature by the end of the day. But if the ticket leaves out security implications, the agent may never stop to ask about it. By the time AppSec sees the code, that decision may already be built into the feature.
- 01Ticket or spec
- 02Agent session
- 03Code
- 04SAST & SCA
- 05Code review
- 06Pen test
- 07Production
How have AI coding agents changed software risk?
AI coding agents are becoming part of everyday software development. In Stack Overflow’s 2026 Developer Survey, coding assistants and agents were the most common use of AI (66%), and 73% of respondents said they use them daily.
Coding agents can handle some familiar security problems, but decisions that depend on application-specific context are harder for them to get right.
Recent incidents show what can happen when critical security design safeguards are missing:
Incident | What happened | Security principle involved |
|---|---|---|
An exposed database key and missing row-level security left about 4.75 million records open. | Authorization enforced at the data layer | |
Exposed registration endpoints allowed attackers to create verified accounts on private apps and bypass SSO. | Consistent authentication and access controls | |
During a code freeze, an agent executed a command against production and deleted records belonging to more than 1,200 executives. | Least privilege access and environment separation | |
A researcher’s scan found 170 Lovable projects with missing row-level security, exposing data across users. | Tenant isolation by default |
Coding agents can get authorization wrong as the logic becomes more complex, because the information needed to enforce it is spread across the application: who owns which data, what each user can access, and which actions they’re allowed to perform. That context isn’t always included in the prompt. So the agent builds the feature as requested, but may not know which user’s data it should expose or whose actions it should allow.
A ticket that says “let users export detailed data records” but doesn’t say whose data they can export has already left an important security question unanswered.
Why do existing security checks miss design flaws, or find them late?
Enterprise AppSec programs have traditionally focused on finding vulnerabilities in code. These checks are useful, but they don’t tell you whether the original design was secure. By the time they flag a problem, the team may already have built the feature around a flawed assumption.
SAST and SCA look at code, not intent
A static analyzer checks whether code matches a known bad pattern. A composition tool checks whether a package has a known vulnerability. Some static analyzers can flag access-control problems, such as an endpoint with no authorization check. But they generally lack the application and business context to judge whether the design itself is appropriate: whether an endpoint should exist, who should be allowed to call it, or whether the job behind it needs write access to production.
OWASP says: “An insecure design cannot be fixed by a perfect implementation.” The OWASP Top 10:2025 ranks Broken Access Control at number one.
Code review checks the code against the request
Code review is one place where an experienced engineer might catch a missing ownership check. Faros AI’s telemetry from more than 10,000 developers found that developers on teams with high AI adoption merged 98% more pull requests and pull request review time rose 91%, while AI adoption overall was linked to a 154% increase in average PR size. That is a correlation and doesn’t prove AI caused the change, but it matches what we hear from AppSec teams.
- +98%pull requests merged
- +154%average pull request size
- +91%pull request review time
Peer reviewers also check the code against the request. When the request is missing a security requirement, the review can miss it too.
Pen tests arrive after the design is locked in
Penetration testing is good at catching authorization flaws. But by the time a tester reports that one tenant can read another tenant’s records, the data model, API contracts and storage layout may already be built around the flawed assumption. The options are then a compensating control, risk acceptance or rework that the business may resist.
SAST, SCA, code review and pen testing were built to find implementation mistakes. They tend to miss design flaws, or find them only after the feature is built.
| Check | What it looks at | Catches design flaws? |
|---|---|---|
| SAST | Code, for known bad patterns | Partly, without business context |
| SCA | Packages, for known vulnerabilities | No |
| Code review | Code, against the request | Only if the request covers it |
| Pen test | The running application | Yes, but after it’s built |
| Design review | Tickets, specs and architecture | Yes, before coding starts |
What a design flaw costs, and when
A design flaw is cheapest to fix while it is still in the planning stage. Once it is built into the data model and APIs, fixing it requires rework, additional engineering time and potentially delaying the release.
In the 2019 Capital One breach, an attacker used a server-side request forgery flaw in a misconfigured web application firewall to obtain credentials for the firewall’s IAM role. That role had permission to read S3 storage that the firewall had no operational need to access. Personal data belonging to more than 100 million people was exposed, and the bank paid an $80 million regulatory penalty and a $190 million settlement. Whether a firewall’s role needs access to customer data is a least-privilege question, the kind a design review exists to ask.
When an agent builds a feature in an afternoon, the design decisions behind it get made in an afternoon too. Implementation can start almost as soon as the ticket is written, which leaves much less time to catch a flaw while it is still cheap to fix.
What does design-level security look like in an AI-native SDLC?
If decisions are made in tickets, specs and agent sessions, threat modeling and security design reviews need to happen there too. Developers far outnumber security engineers, making it difficult to review every change manually. Automating the first pass makes it possible to review more changes. Three practices make that workable.
Review specs and tickets before an agent starts coding
It costs far less to catch a missing tenant check in the ticket than after the feature is built.
Automated threat modeling tools like Seezo use artifacts teams already have, including PRDs, tickets, architecture diagrams, and Slack threads, to understand the system being built. They identify components, trust boundaries, and potential threats, then generate security requirements and flag open questions before development begins.
For an export feature, the review might raise three requirements: verify that the requesting user belongs to the account, keep storage paths separate for each tenant, and set download links to expire.
If the ticket doesn’t specify who can export whose data, the review should flag that rather than assume. For example: “Can an account admin export data belonging to other users, or only their own?”
Feed security requirements into the agent at the point of coding
With coding agents, design and coding can happen in a single session, often leaving no design document for a security reviewer to inspect. Security guidance therefore needs to reach the agent itself before coding commences.
An agent’s context window is limited. Guidance works best when it is short, specific to the task and tied to the company’s own standards. Since the security team is not involved in the session, they also need a way to confirm the guidance was applied.
Treat the threat model as a living artifact
A threat model written once and filed away goes out of date. It should begin with the threats and requirements identified in the spec, be checked against the code when the pull request arrives, and be updated as the system changes. The updated model then informs future design reviews.
Deep architecture reviews and security engineers’ judgment remain necessary for high-risk systems. These practices make an initial security review possible on far more changes.
A practical starting point: the first 90 days
Start small. Pilot automated threat modeling on two or three applications. Good candidates are multi-tenant or hold customer data, are built by teams that already use coding agents heavily, and are shipping new features.
AppSec owns the standards and review criteria. Automated threat modeling tools like Seezo apply them to each ticket or spec, generating security requirements and flagging questions that need answers. Developers address these as they build the feature, within their existing tickets, chat threads or coding agent sessions. The tech lead on each pilot team makes sure the requirements are addressed.
- Days 1 to 30Set a baseline
- Gather existing standards
- Run automated design reviews on the last 10 to 15 shipped features
- Compare the results with scanner and pen test findings
- Days 31 to 60Review before the build
- Review new tickets and specs before work begins
- Give coding agents task-specific security guidance
- Days 61 to 90Verify and decide
- Check merged pull requests against the design-review requirements
- Report results to engineering leadership
- Decide whether to expand the pilot
You can start by measuring these six things:
Coverage: The share of new features reviewed before coding began
Fidelity: How many of the requirements raised were accurate and relevant, as judged by AppSec
Where issues are found: How many authorization and privilege issues are found at each stage: design, code review, testing and production
Response time: How long teams take to answer the questions a review raises
Follow-through: The share of design-time requirements verifiably implemented in merged code
Speed to release: Whether the pilot teams shipped slower, faster or at the same pace as before
After 90 days, you’ll be able to show what the reviews caught that your existing SAST tools and penetration tests missed, and how much time teams spent addressing those issues.
Move security to where decisions are made
AppSec programs have traditionally followed the code, because that was where the mistakes were. Threat modeling covered the few systems that seemed risky enough to justify it. Coding agents are changing that equation. They may increasingly avoid the flaws code scanners detect, and they build features in hours, leaving little time to review the design first.
Flaws like a missing ownership check or a role with far more access than it needs are decided in a ticket or an agent session, long before a pipeline sees anything.
Security requirements need to reach whoever is making the design decision, whether that’s a developer or a coding agent. And this needs to happen across far more changes than manual reviews can cover.
This is the problem we built Seezo to work on. Seezo runs automated security design reviews and threat modeling on the artifacts teams already produce, grounded in their organization’s own standards. It returns security requirements and open questions where developers already work.
The Seezo AI Plugin extends this into coding agents such as Claude Code, Cursor and Codex, bringing security guidance into the session while the agent writes code.