What AI Changes About Software Security

AI can speed up software development and vulnerability discovery. It also gives applications new ways to handle data and take action. Here’s how to adapt your security practices.

Colorful lines of source code on a computer monitor.
Photo by Markus Spiske (CC0, cropped).

A team can use AI to write and review a new feature, ship it behind an ordinary web API, and have someone else use AI to look for mistakes in the result. The product may contain no AI features at all. Now give a customer-facing assistant access to documents or business tools, and there’s a second set of decisions to make about what it can read, change, and share.

These are two ways AI changes software security. It changes the pace at which people write code and find flaws. It also creates new paths between untrusted content, sensitive data, and software that can take action. A useful security review covers both.

Familiar risks can move faster

AI can help people make sense of unfamiliar code and flag possible vulnerabilities for investigation. That can benefit defenders reviewing a large codebase and shorten the time an attacker needs to find a weakness. For software teams, that makes it more important to know which systems are exposed, who can patch them, and how quickly a fix can reach production. UK NCSC’s 2026 assessment of AI and cyber threats

Anthropic reports that an internal Claude research model discovered the results in its four papers on lattice cryptography. It’s an example of how AI can contribute even in a specialized area of mathematics. Anthropic’s lattice research · Our guide to the post-quantum migration

On the development side, a generated change can pass tests for the expected behavior while missing a security rule that lives outside the function being edited. An export endpoint may produce the right file in testing and still need a check that the requester belongs to the account that owns the data. The risk depends on the task, the tool, and the review process. Early studies of AI coding assistants found different effects across tasks and settings. Assess which data, permissions, and dependencies a change touches to decide how much review it needs. Perry et al. study of security tasks · Sandoval et al. study of AI-assisted C programming

Dependencies deserve the same scrutiny. Researchers have documented coding models suggesting packages that don’t exist. Even when a package is real, a reviewer still needs to know its source, whether the project already has an approved equivalent, and who will maintain the dependency. Keep lockfiles under review and maintain an inventory of the dependencies actually deployed so you can locate affected services when a vulnerability is disclosed. USENIX study of package hallucinations

An AI feature is only as constrained as the application around it

Consider a support assistant that reads incoming messages and can propose refunds. A message can contain text intended to override the assistant’s instructions. That’s prompt injection. The application should verify who can request a refund, enforce refund limits in code, and require an authorized person to approve consequential refunds. Give the assistant only the permissions it needs, and log who approved each action. Apply the same thinking to search and retrieval. The application should enforce document access before any content reaches the model. NCSC and CISA guidelines for secure AI system development · NIST’s draft taxonomy of attacks on AI agents

What else matters depends on how you use AI:

  • If the system retrieves internal or third-party content, track where it comes from and who can change or access it. Altered content can influence answers. Review how the application handles untrusted documents, outdated information, and separate customer accounts.
  • If you train or fine-tune a model, track the origin and version of the datasets and control who can modify them. Training-data poisoning is a risk when bad data gets into that pipeline. Record which data and model versions went into a release so you can investigate a change in behavior.
  • If you host an internal model or expose it through an API, restrict access to its weights and endpoints. Unauthorized access to stored files can expose a proprietary model, and someone with query access may be able to approximate its behavior. Use scoped identities, rate limits, and monitoring proportionate to the sensitivity of the model and its data.

Even an ordinary model error can become a security incident when another system automatically acts on the result. Validate outputs before passing them to other applications. For a consequential action, give the reviewer enough context to check the request and the proposed action independently. NIST taxonomy of adversarial machine learning risks

Put the controls into the development process

Review changes in proportion to their impact. Keep generated changes small enough for a reviewer to understand. Give extra scrutiny to permissions, tenant boundaries, secrets, cryptography, and dependencies. Ask tests to demonstrate what should be refused as well as what should succeed. If AI drafts both the feature and its tests, have the reviewer check those tests against the application’s security requirements.

Test an AI feature at the application boundary. Use test accounts and synthetic data to check that the application denies access across accounts and rejects unauthorized tool actions, even when the model proposes them. Exercise the approval and logging paths, and repeat those checks after meaningful changes to the model, prompts, data sources, or integrations. For coding assistants with access to repositories or build tools, review what they can read and what they can run with the same care you’d give any development tool.

Make vulnerability response part of the release process. Keep an owner for each deployed service and a way to identify affected versions. Use your existing release process to practice shipping and verifying a fix for an exposed service. NIST’s Secure Software Development Framework provides a baseline, with a companion profile for generative AI and foundation models. NIST Secure Software Development Framework · NIST generative AI profile

Make ownership clear before release

The team that ships an AI-assisted change or an AI-powered feature should own its security and its fixes. Security leadership can set review requirements, make sure product teams know when to escalate decisions, and track unresolved risks. Where a virtual CISO (vCISO) already leads application security governance, their remit can include AI vendor reviews, permissions for high-impact integrations, and exceptions to release requirements. Keep those decisions in the same process the team uses for other product risks.

Start with one application. Trace a recent AI-assisted change through review, check which dependencies and cryptographic components are deployed, and verify who can ship an urgent fix. If the application uses AI at runtime, choose one sensitive action and demonstrate that the application can refuse it when the caller lacks permission. Those checks tell you whether your security process can keep up with how the software is built and used.