Skip to Content
AI security concept illustration

AI Security

Notes on attacking AI systems: how I approach LLM applications and ML pipelines as an attack surface on penetration tests and red team engagements, and the controls that hold up.

Aug 26, 2025
Updated Nov 22, 2026
3 min read

Overview

AI now sits inside customer service, decision support, security monitoring and development pipelines. Every one of those integrations is new attack surface.

These notes cover how I treat AI systems as a target: mapping the weaknesses, chaining them into attacks and judging the real risk. They are written for use on red team operations, penetration tests and adversarial assessments, not as research summaries.

Notes in this section

Offensive testing

  • Assessing AI Security: how I run AI security assessments during penetration tests and red team engagements

Defensive controls

Why AI matters on an offensive engagement

AI systems carry the usual software problems (exposed APIs, cloud misconfigurations, insecure endpoints) and add new ones, from prompt injection to data poisoning.

For an attacker that means:

  • An AI-integrated system can be a foothold for persistence and pivoting
  • Models and their pipelines can leak sensitive data
  • Changing model behavior can enable fraud, misinformation or access escalation
  • Datasets, dependencies and model weights are a supply chain to poison

AI is just another attack surface

The offensive approach doesn't change: reconnaissance, exploitation, persistence, impact. What changes is how the vulnerabilities show up and how you chain them.

How I break it down

I split AI testing into areas that map to the phases of a red team operation:

AreaWhat it covers
Reconnaissance and mappingFinding exposed AI systems, APIs and data flows
Prompt injection and jailbreaksTesting guardrails and filters, extracting hidden instructions
Model exploitationMembership inference, model extraction, training data leakage
Adversarial MLData poisoning, evasion attacks, backdoored models
Infrastructure and supply chainInsecure vector databases, CI/CD pipelines, model registries
Abuse scenariosFraud automation, misinformation, compliance violations

What makes a finding worth reporting

A lot of "AI vulns" don't matter on an engagement. I ask four questions:

  • Can it be exploited in a realistic attack scenario?
  • Does it affect data integrity, confidentiality or operations in a way the business cares about?
  • Does it lead to a traditional exploit such as SSRF, RCE or lateral movement?
  • Is it something the security team is likely to miss?

Approach

Showing that a model "can be fooled" isn't the goal. The goal is the weaknesses that matter in the deployment in front of you. I map findings to MITRE ATLAS and the OWASP Top 10 for LLM Applications so they slot into existing reporting. I tailor attacks to what the AI actually does, because a customer chatbot and a fraud-detection model fail in different ways. And I write findings up so someone else can reproduce them.

To keep current I follow MITRE ATLAS, the OWASP lists and academic research, and keep building my own payloads and tooling for prompt injection and adversarial ML.

References

On this page