AI Penetration Testing for Tech Companies: What to Test
AI penetration testing for tech companies should target the whole system in production: the model, prompts, retrieval pipeline, tools, permissions, APIs, and the runtime controls around them. The point is not a one-off report. It is finding the paths that change real product risk, then turning those findings into repeatable release gates and retests.
Key takeaways
-
Model-only testing misses the highest-risk paths, especially when a chatbot can read data, call tools, or trigger actions.
-
Good scoping starts with crown-jewel workflows, then maps what the AI can read, write, disclose, and execute.
-
Automation gives breadth and regression coverage, but human testers are still needed to prove exploit chains and business impact.
-
AI pentesting belongs in CI/CD when you define risk-based pass/fail gates, ownership, and retest cadence.
-
Key Takeaways
AI pentesting must target the whole AI system
Why model-only testing misses business risk
Testing just the model is the wrong unit. Most of the damage appears when a model sits inside a product that retrieves data, formats output, and executes tools on behalf of a user. OWASP’s framing is useful because it treats the whole system as the attack surface, not just the prompt and completion. “AI/LLM application security testing treats the whole system — model, prompts, retrieval pipeline, tools, and the permissions behind them — as the attack surface, and repeatedly probes it the way an adversary would.”
That matters for a support bot, a sales copilot, or an internal assistant. If the bot can see CRM records, search a knowledge base, and open tickets, then a successful attack is not “bad text.” It is unauthorized access, wrong-side effects, or disclosure through a legitimate workflow.
The real attack surface in production
The practical surfaces are prompt injection, sensitive information disclosure, improper output handling, excessive agency, and retrieval-layer weaknesses. In OWASP terms, you should plan around the system’s failure modes, not around a generic checklist.
Take an AI support bot connected to Zendesk and Salesforce. If the model is jailbroken, that is one risk. If the bot can also read customer notes, update account fields, or expose internal case history because the permission layer is too broad, that is the business problem. We have seen teams spend weeks hardening prompt templates while leaving the service account with full read access to every case.
GenAI adoption is already showing up in real operating teams. According to https://www.gartner.com/en/newsroom/press-releases/2025-06-30-gartner-survey-finds-forty-five-percent-of-organizations-with-high-artificial-intelligence-maturity-keep-artificial-intelligence-projects-operational-for-at-least-three-years, “Generative AI (GenAI) is being deployed by 72% of supply chain organizations,” which is a good reminder that AI security is moving from pilots to production controls.
Start with scope, threats, and crown-jewel paths
Map assets before you test
-
System prompts — capture hidden instructions, policy text, and role separation.
-
RAG data stores — know which corpora feed answers and which are sensitive.
-
Vector databases — map embedding stores, namespaces, and tenant boundaries.
-
Model gateways — identify routing, filtering, logging, and provider fallbacks.
-
Agent tools — inventory function calls, webhooks, browser actions, and code execution.
-
APIs and secrets — list tokens, service accounts, and secret-scoped actions.
-
Identity roles — trace who can approve, trigger, or override AI actions.
-
Logging paths — verify what is stored, retained, and visible to operators.
Strong engagements start with discovery, perimeter mapping, and threat modeling before any payloads are thrown. MITRE ATLAS is useful here because it gives you shared language for attacker behavior, while OWASP gives you the product-security lens.
Define the abuse cases that matter
Scope two or three crown-jewel journeys first: account recovery, code generation, or customer-data lookup. For each journey, enumerate what the AI can read, write, trigger, and disclose. That keeps the engagement tied to outcomes the business actually cares about.
For example, if an internal agent can summarize a customer account, open a refund, and email a user, the abuse cases are not just prompt jailbreaks. They include unauthorized disclosure, fraudulent action, and escalation through a loosely controlled workflow.
What to test in prompts, RAG, agents, and tools
Prompt and output attacks
-
Prompt injection — test direct jailbreaks and indirect injection through tool output.
-
System prompt leakage — try to elicit hidden instructions, policies, and tool schemas.
-
Unsafe function execution — verify the model cannot trigger actions outside user intent.
-
Improper output handling — check whether downstream systems trust unvalidated model output.
A common miss is the “helpful parser” problem: the model returns JSON, and a backend treats it as authoritative. If that JSON can steer billing, access, or notifications, then prompt injection becomes a control-plane issue, not a text issue.
RAG and data-layer attacks
-
Retrieval poisoning — plant hostile content that changes what gets surfaced.
-
Document-level prompt injection — hide instructions inside PDFs, tickets, or wiki pages.
-
Overbroad chunk access — test whether retrieval crosses tenant, project, or role boundaries.
-
Vector and embedding weaknesses — probe namespace bleed, similarity abuse, and stale indices.
One useful test is a malicious PDF in the knowledge base that contains instructions to disclose secrets or call an external webhook. If the agent follows the document over the user, or if retrieval returns chunks it should never see, the exploit chain is real even when the model itself looks safe.
McKinsey’s 2025 data shows how normal this has become: [https://www.mckinsey.com/featured-insights/charts/ai-at-work-but-not-at-scale](McKinsey & Company) reports that “71 percent of respondents say their organizations regularly use gen AI in at least one business function.” That means retrieval mistakes are no longer edge cases in labs; they are production mistakes in working software.
Agent and tool misuse
-
Excessive agency — confirm the agent cannot act beyond the minimum needed for the task.
-
Tool permission review — inspect each function for scope, authorization, and auditability.
-
MCP server trust — verify external tool servers are authenticated and sandboxed.
-
Data-exfiltration channels — test email, webhooks, file writes, copy-to-chat, and browser actions.
For agents, the question is not “can it answer?” It is “what can it do if the inputs are malicious?” NIST-style control thinking helps, but OWASP’s GenAI security work is more specific about runtime behavior, implementation, and infrastructure. That is the right frame for a production agent stack.
Use automation for coverage, humans for proof
What automation is good at
-
Repeatable evals — promptfoo, garak, Giskard, and DeepTeam can run the same checks on every build.
-
Broad probing — large prompt sets improve coverage across jailbreak styles and policy edge cases.
-
Regression detection — you can spot when a model upgrade or prompt tweak reopens a known bypass.
The useful rule is simple: define pass/fail by risk, not by average, and run on every change that can alter behavior. That includes model version changes, prompt edits, retrieval updates, tool permission changes, and gateway rule changes. Some providers use large prompt sets from AIR-Bench, HarmBench, and HEx-PHI for breadth, which is valuable, but it still does not tell you whether a specific environment can be chained into a real exploit.
Where manual red teaming is still required
Human testers are needed to validate exploitability and to chain weaknesses across the stack. Automation can tell you that a prompt sometimes leaks policy text. A human can show that the leak leads to a tool call, which leads to data access, which leads to exfiltration.
That is why the OWASP GenAI Security Project structures an engagement across model evaluation, implementation testing, infrastructure assessment, and runtime behavior analysis. “The OWASP GenAI Red Teaming Guide structures an engagement across four areas: model evaluation, implementation testing, infrastructure assessment, and runtime behavior analysis.”
Use automation to widen the net. Use people to prove the path.
Make AI pentesting part of the release pipeline
What to gate in CI/CD
-
Critical prompt-injection bypasses — block releases when the model follows hostile instructions.
-
Unsafe tool calls — stop deployments if the agent can invoke forbidden actions.
-
PII leakage — fail builds when tests show protected data can be exposed.
-
Broken auth — block when model-connected APIs ignore user, tenant, or role boundaries.
OWASP’s maturity path is Starter, Intermediate, and Advanced. In 90 days, a real tech company can move from ad hoc prompts to a basic eval suite, then to gated tests on every AI-relevant change, then to a hybrid program where external findings become internal controls. If you need to turn that into an operating system, Fleuret helps teams convert scattered red-team notes into owner-assigned remediation and evidence that survives past the first report.
The minimum metrics to track
-
Attack success rate by category — jailbreak, leakage, tool abuse, exfiltration.
-
Eval coverage — which workflows, roles, and tool paths are exercised.
-
Time to remediate bypasses — measure days, not meeting decks.
-
Agent permission footprint — track what the system can read or do.
-
Regression rate — count how often old failures return after changes.
If those numbers are not visible to engineering, the pentest becomes an annual artifact. If they are visible, it becomes a release control.
Reports should drive fixes, not just satisfy audits
What a useful deliverable looks like
A good report maps each finding to business impact, the affected workflow, reproduction steps, proof, and concrete remediation. A prompt transcript alone is not enough. Security teams need the affected asset, the exact chain, and the control that failed.
Use severity scoring where it fits, weakness naming where it helps, and a risk map against the OWASP Top 10 for LLMs. That gives engineering a stable vocabulary without pretending AI risk is identical to classic web risk.
How to prioritize findings
NIST AI RMF 1.0, NIST AI 600-1, and the European AI Act are making evidence more important, but compliance theater is a bad target. Prioritize by exploitability, data sensitivity, user impact, and whether the issue can be chained into action. Fleuret is most useful when security, engineering, and GRC need one remediation record and an audit trail for retests, exceptions, and sign-off.
The best reports tell you what to fix Monday morning. They also tell you what to retest after the fix lands.
Choose the right engagement for your stage
When to buy a one-off pentest
A one-time specialist engagement works best for a pre-launch feature, a post-incident hardening sprint, or a procurement deadline. It is the right choice when you need a sharp external view and a fast read on the highest-risk paths. It is not enough by itself if the product changes weekly.
The table below helps a tech company choose the right AI penetration testing model by stage, change rate, and need for evidence.
If your AI can access customer data or take actions, periodic manual red teaming plus CI-based automated checks is the default. Continuous evals catch drift; humans catch the weird chain you did not anticipate.
Put AI pentesting on the same footing as release safety
Start with one crown-jewel workflow, one human red team, and one automated regression suite. Then wire the findings into the same owners and gates you use for auth, payments, and data access. If the AI can read, write, or act on behalf of users, it deserves the same discipline as any other production control.
Scan your own code, free.
The Free plan runs SAST, DAST, SCA and secret scanning for 2 users and 10 repos, no call needed. Several apps or an audit deadline? Book a demo instead.