Security

What does security look like in the era of AI?

Security has always been a moving target. But the rise of AI in software development and product delivery has fundamentally changed

By Justin Boyd · · 5 min read

Security has always been a moving target. But the rise of AI in software development and product delivery has fundamentally changed the nature of the threat landscape — not just in scale, but in kind. The attack surface is wider, the vulnerabilities are subtler, and the consequences of getting it wrong are more severe than ever.

For product teams, this isn't a problem to hand off to the security department and forget. AI touches every layer of the stack — from the models you integrate to the data pipelines feeding them, from the AI-assisted code your engineers are shipping to the autonomous agents making decisions on behalf of your users. Security in the AI era is a product problem as much as it is an infrastructure one.

The Threat Surface Has Fundamentally Changed

Traditional software security was largely about protecting known assets: databases, APIs, authentication systems. You built walls around known things. AI breaks that model in several important ways.

Models are a new attack vector. Large language models and other AI systems can be manipulated through prompt injection — where malicious inputs override intended instructions — or through adversarial inputs that cause models to behave in unexpected, exploitable ways. A customer-facing AI assistant integrated into your product isn't just a UI feature. It's a dynamic, probabilistic system that can be coaxed into leaking data, bypassing business logic, or generating harmful outputs if not properly constrained.

Training data is a vulnerability. Data poisoning attacks — where bad actors corrupt the data used to train or fine-tune a model — can introduce subtle biases or backdoors that are extremely difficult to detect after the fact. If your product relies on continuously learning models, the integrity of that data pipeline is a security-critical concern, not just a data quality one.

AI-generated code ships bugs at scale. GitHub Copilot, Cursor, and similar tools have dramatically accelerated development velocity. But studies have shown that AI-generated code can introduce security vulnerabilities — insecure patterns, deprecated functions, improper input validation — that developers may not catch if they're moving fast and trusting the output too readily. A 2023 Stanford study found that developers using AI coding assistants were more likely to introduce security vulnerabilities than those who didn't, partly because the AI-generated code looked plausible and well-structured even when it wasn't safe.

What Good Security Looks Like Now

The core principles of security haven't disappeared — least privilege, defense in depth, zero trust. But applying them in an AI context requires new thinking.

Treat your AI models like third-party dependencies — with more scrutiny. When you integrate an open-source model or a third-party AI service, you're introducing a system whose internal behavior you don't fully control. Apply the same rigor you'd use for any critical dependency: understand what data it processes, where outputs go, how it handles edge cases, and what the failure modes look like. Vet your model providers the way you'd vet any vendor with access to sensitive user data.

Build guardrails into the product layer, not just the model layer. Don't rely solely on system prompts or model-level safety filters to prevent misuse. Layer in application-level controls: output validation, rate limiting, content filtering, and anomaly detection. Design your AI features assuming the model can be manipulated, and architect accordingly.

Enforce strict data governance around AI pipelines. Know what data is being used for training, fine-tuning, and retrieval. Apply data minimization principles — don't feed sensitive user data into a model unless there's a clear, justified reason. Audit data access logs the same way you'd audit database access. If you're using retrieval-augmented generation (RAG), ensure that document access controls are enforced at retrieval time, not assumed at ingestion time.

Implement human-in-the-loop controls for high-stakes decisions. Autonomous AI agents — systems that can browse the web, execute code, or interact with external services — are increasingly common in product workflows. These systems require explicit boundaries around what actions they can take, what they can access, and when a human needs to approve an action before it's executed. Failing to define those boundaries isn't a UX oversight. It's a security gap.

Make AI security part of your threat modeling process. Traditional threat modeling frameworks like STRIDE can be extended to cover AI-specific risks. Add prompt injection, data extraction, model inversion, and membership inference attacks to your threat model. If your team isn't regularly asking "how could an adversary misuse this AI feature?", you have a gap.

Compliance and Regulation Are Catching Up

Regulatory frameworks are beginning to reflect the specific risks of AI. The EU AI Act, which entered into force in 2024, classifies AI systems by risk level and mandates security and transparency requirements for high-risk applications — including systems used in hiring, credit scoring, healthcare, and critical infrastructure. The U.S. Executive Order on AI from 2023 directed agencies to develop standards around AI safety and security, and NIST released its AI Risk Management Framework to give organizations a practical structure for managing these risks.

For product teams building in regulated industries, this is no longer a theoretical concern. AI features that interact with personal data, make consequential decisions, or operate autonomously are increasingly subject to audit and disclosure requirements. Getting ahead of compliance is faster and cheaper than retrofitting it.

The Organizational Challenge

Technology is only part of the problem. The organizational dynamics around AI security are equally important — and often more difficult to address.

Security teams frequently lack the expertise to evaluate AI-specific risks. Product and engineering teams are moving fast and may underestimate those risks. There's often no clear ownership of the AI risk surface — it falls somewhere between data science, security, legal, and product, which means it falls through the cracks.

Closing that gap requires deliberate action: dedicated AI security expertise or training, cross-functional review processes for new AI features, and clear escalation paths when something looks wrong. The teams doing this well are treating AI security as a first-class engineering discipline, not an afterthought.

What to Do Next

Security in the AI era isn't a one-time audit or a checkbox in a compliance form. It's an ongoing discipline that needs to be embedded in how your team builds, ships, and maintains AI-powered products. Here's where to start:

  1. Audit your current AI integrations. Map every AI model or service your product touches, what data it accesses, and what controls are in place around its outputs.
  2. Extend your threat model. Run a targeted session to identify AI-specific attack vectors for your highest-risk features. Use NIST's AI RMF as a reference.
  3. Add AI security criteria to your code review and launch processes. Make it a standard question: has this feature been reviewed for prompt injection, data leakage, and adversarial misuse?
  4. Invest in team education. Your engineers and PMs don't need to become security experts, but they do need enough fluency to recognize AI-specific risks when they see them.
  5. Engage your legal and compliance teams early. Understand which of your AI features fall under emerging regulatory frameworks and build for compliance from the start.

The companies that get this right won't just avoid breaches — they'll build AI products that users can genuinely trust. In a market where AI skepticism is still high and one high-profile incident can define a brand's reputation, that trust is a meaningful competitive advantage.