Securing AI-generated code before the coding agent writes it

|

Educational

Team Seezo

Coding agents can meet a feature’s functional requirements and still miss the security decisions it needs. Here’s how Seezo brings security requirements into the agent’s workflow.

Abstract purple texture

Say your organization has 3,000 developers, and to increase their productivity, you’ve given everyone access to coding agents. They definitely shipped faster.

But what about the security implications of all those features?

Security teams can’t be involved in every coding session. With a lopsided ratio of developers to security engineers, security teams need a repeatable way to secure AI-generated code without becoming a bottleneck. Coding agents can meet a feature’s functional requirements and still miss the security scenarios it introduces.

Consider a feature we reviewed recently. It involved an AI assistant that could call internal tools on a user’s behalf. With a feature like this, security teams often start with permissions. Can the assistant access only what the user can access? Are its tool calls restricted to the right actions? In this case, they were: the assistant could only perform actions the user was authorized to take.

But authorization wasn’t the only question the design needed to answer. What should happen when the assistant performs an action that can’t easily be undone? Should the user confirm the action? Should the system show what will change? Should there be a way to recover from a mistake?

The design document didn’t answer these questions. Its permission checks covered authorization, but not reversibility. Archiving a report and closing an account might both be authorized, but one can be restored in a click while the other may not be recoverable at all. Scoped permissions tell us what the assistant can do, but not what safeguards each action needs.

Permissions vs. reversibility
Every action passes the permission check. Most can’t be taken back.
ActionAllowed?If it was a mistake
Archive a reportAllowedRestore in a click
Send an invoice emailAllowedCan’t be unsent
Issue a refundAllowedThe money is gone
Close an accountAllowedPayment data deleted
Permissions decide what the assistant can do. The design has to decide what each action needs first.
Illustration

Developers have always worked with incomplete specifications, and questions like these could surface during security design reviews or reviews of pull requests. With coding agents, those decisions can be made before the security team reviews the code. If a security requirement isn’t specified, the coding agent may make the decision without accounting for the security implications. Across thousands of developers, the same oversight can find its way into every feature.

That’s why AI code security has to start at the design or prompt stage.

How Seezo brings security inside the coding agent

The Seezo AI Plugin brings security into the coding agent’s workflow, so security can influence what gets built while it’s being built.

It does this through three skills: Guidance, Assessment and Validate. Developers make security-informed decisions as they work, and security teams can see whether those decisions carry through to the final implementation.

Guidance

The first step is giving the coding agent the right security guidance.

When a security-relevant decision comes up, Seezo AI Plugin’s Guidance skill gives developers and the coding agent relevant security guidance as it works on a feature so security implications are accounted for while the code is written.

For the AI assistant in our example, this means guidance about agents, authorization and the actions the agents can take.

But Guidance alone doesn’t identify everything missing from a design or prompt. That’s where Assessment comes in.

Assessment

Large organizations often have security standards that run to hundreds of pages. Feeding all of that to a coding agent uses up context and makes it harder to find the requirements that matter for a particular feature.

The Seezo AI Plugin’s Assessment skill works from whatever describes the feature, whether that’s a design document or a prompt entered into the coding agent.

The skill starts an assessment in the Seezo app using that input. Seezo uses the customer’s own security standards alongside 1,500+ security design rules maintained by its research team. It identifies what’s relevant to the feature and uses that guidance to generate specific security requirements and open questions.

With the AI assistant that could call internal tools, Seezo noticed that the design treated every action the same way. It didn’t separate reversible actions from irreversible ones, or say what safeguards the irreversible ones needed.

Seezo raised a requirement to classify the actions by reversibility and define safeguards for those that couldn’t be undone.

The coding agent receives these requirements and open questions in its session. A developer or coding agent can use them during implementation, while the security team can follow the same assessment, including its threat model, in the Seezo app.

The safeguard depends on the action and the customer’s security standards. It might involve a human approval step or additional validation before the action runs. Without the requirement, the coding agent would have made that decision on its own.

Security requirement
Illustration
Classify tool actions by reversibility before execution
Medium
Gap

Role and tenant checks apply to every tool call, but nothing distinguishes actions that can be undone from those that can’t. No safeguards or recovery steps are defined for irreversible actions.

Threat

Someone who influences an authorized request could get the assistant to run an irreversible action, such as closing an account, with no way to restore the deleted data.

Guidance

Classify every tool the assistant can call by whether its action can be reversed. Enforce safeguards and recovery steps before irreversible calls are forwarded.

Illustration based on an example spec created for this post.

Validate AI-generated code against the requirements

Once the coding agent has written the code, the Seezo AI Plugin’s Validate skill checks the implementation against the security requirements generated during assessment. It reports which requirements have been met, provides supporting evidence, and flags gaps or drift.

For the AI assistant in our example, this means checking whether the actions are classified by reversibility and whether the required safeguards are in place for irreversible actions.

The Seezo AI Plugin also records telemetry for security teams. They can see which skills were invoked, who invoked them, when and where they ran, and which branch they ran on. This gives security teams visibility into how security guidance, assessments and validation are being used across development teams.

Validate checks whether the implementation meets the security requirements identified during assessment. It doesn’t guarantee that the application is free of vulnerabilities or replace other security testing. The current validation scope is limited to application code; cloud configuration is on our roadmap.

Validation after the code is written
Illustration
MetRequirement checked: Classify tool actions by reversibility before execution
Rationale

Every tool now declares whether its action can be undone. The gateway checks that before forwarding a call, and actions that can’t be undone wait for the user to confirm.

Evidence
  • assistant/tools/registry.py:12Each tool carries a reversible flag. archive_report is reversible, with restore_report as its undo.
  • assistant/tools/registry.py:31send_invoice_email, issue_refund and close_account are marked irreversible.
  • gateway/dispatch.py:47Calls to irreversible tools wait for the user to confirm. Unconfirmed calls are rejected.

Rolling out

The Seezo AI Plugin doesn’t have to reach all developers on day one. A practical starting point is one engineering pod or a small group of developers using Seezo’s skills in their coding agents.

Security teams can configure the setup in the Seezo app to fit how the organization works. The Custom Rule Engine incorporates the company’s own security standards into assessments, while Automations lets teams configure how results are routed and who needs to act on them.

Security teams and developers can then calibrate the output together: how detailed the requirements should be, which ones need security review, and which ones developers can handle themselves. Some teams want requirements at the design level, while others need more implementation guidance.

Seezo ranks each feature’s risk as High, Medium or Low, helping security teams prioritize reviews. One approach is to start with human review for High-risk features, particularly those involving agents that act on a user’s behalf, and use Automations to route lower-risk features directly to developers.

How much human review to retain depends on the organization’s security standards, risk tolerance and experience with coding agents.

Try it on a feature you’re building

Coding agents make decisions to meet a feature’s functional needs, and they don’t always account for the security implications. Those decisions need to be addressed before implementation, not left to the agent to figure out.

Seezo brings your organization’s security standards into the coding agent, turns design gaps into explicit requirements, and checks whether those requirements carry through to the implementation.

Seezo AI Plugin
See it on a feature you’re building

Try the plugin in your coding agent and see how it works with your existing development process.

Seezo
© 2026 Seezo. All rights reserved.