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.

Blue grid lines receding into a dark space

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.

Example: a usage export feature.
Every check passed. The design was still broken.
  1. 01
    Ticket: No access rule.
    “Let customers export their monthly usage data.” Nothing says who can export whose data.
  2. 02
    Coding agent: Shipped.
    Builds the export feature in a day.
  3. 03
    SAST scan: Passed.
    No known bad code patterns.
  4. 04
    Secure code review: Passed.
    The code does what the ticket asked.
Signed in to account 1042.
GET /usage/export?account=1042 returns
200 · Their own data.
GET /usage/export?account=1043 returns
200 · Another customer’s data.
The export never checks that the signed-in user belongs to the account. That’s broken object-level authorization (IDOR), and it was decided in the ticket.

Coding 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.

Where security risk is decided.
Design decisions happen early. Most security checks run late.
Design decided here:
Checks run here:
  1. 01 Ticket or spec.
  2. 02 Agent session.
  3. 03 Code.
  4. 04 SAST & SCA.
  5. 05 Code review.
  6. 06 Pen test.
  7. 07 Production.
Missing authorization, weak tenant isolation and excessive privilege are decided on the left. Scanners, code review and pen tests look on the right.

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

Moltbook, Jan 2026

An exposed database key and missing row-level security left about 4.75 million records open.

Authorization enforced at the data layer

Base44, Jul 2025

Exposed registration endpoints allowed attackers to create verified accounts on private apps and bypass SSO.

Consistent authentication and access controls

Replit agent and SaaStr, Jul 2025

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

Lovable apps, 2025

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.

AI adoption and code review.
More code to review, in bigger changes.
  • +98%
    pull requests merged.
  • +154%
    average pull request size.
  • +91%
    pull request review time.
Faros AI telemetry from more than 10,000 developers. Merged PRs and review time are for teams with high AI adoption; PR size is for AI adoption overall. A correlation, not proof that AI caused the change.
Source: Faros AI

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.

What each check can see.
Built to find implementation mistakes. Design flaws slip through, or surface late.
CheckWhat it looks atCatches design flaws?
SASTCode, for known bad patternsPartly, without business context
SCAPackages, for known vulnerabilitiesNo
Code reviewCode, against the requestOnly if the request covers it
Pen testThe running applicationYes, but after it’s built
Design reviewTickets, specs and architectureYes, before coding starts
Design reviews don’t replace these checks. They cover the stage before any code exists.

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.

The window to fix a design flaw.
Implementation used to take longer. Now a feature can be built in an afternoon.
Before coding agents:
Ticket,
Build,
Ship,
More time to review. Developers and reviewers could catch incomplete or missing security requirements before the feature was finished.
With coding agents:
Ticket,
Build,
Ship,
Much less time. Implementation can start almost as soon as the ticket is written.
A design flaw is cheapest to fix while it’s still in the planning stage, before it’s built into the data model and APIs.

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.

A 90-day pilot.
Start with two or three applications. Then decide whether to expand.
  1. Days 1 to 30:
    Set 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
  2. Days 31 to 60:
    Review before the build.
    • Review new tickets and specs before work begins
    • Give coding agents task-specific security guidance
  3. Days 61 to 90:
    Verify and decide.
    • Check merged pull requests against the design-review requirements
    • Report results to engineering leadership
    • Decide whether to expand the pilot
Good candidates are multi-tenant or hold customer data, and are built by teams that already use coding agents heavily.

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.

Automated threat modeling
See it on one of your recent features

See how this works on one of your own recent features.

Seezo
© 2026 Seezo. All rights reserved.