Rules of engagement and test environments
AI security testing involves deliberately trying to make a system misbehave, so the ground rules are agreed in writing first. We define what is in scope (applications, models, retrieval sources, tools, integrations), what is off limits, test windows and the contacts who can stop testing. Where possible we test in a staging environment that mirrors production: the same prompts, models, tools and permission model, with test accounts and planted canary data, such as fake customer records with unique markers, so any leak is easy to detect and harmless. Exfiltration tests send data only to endpoints we control. We also check the acceptable use terms of your model providers and follow any notification steps they require for security testing.
Mapping entry points by attacker position
A useful threat model starts with who the attacker is and what they can touch. The same system can look safe to an anonymous user and be wide open to someone who can only plant a document.
| Attacker position | Entry points | Example test |
|---|
| Anonymous user | Public chat widget, WhatsApp number, voice line | Jailbreaks, system prompt extraction, cost exhaustion through long inputs |
| Authenticated customer | Account-linked assistant, order or ticket tools | Accessing another customer's records through crafted questions or IDs |
| Content planter | Emails, uploaded files, web pages, reviews, tickets the system later reads | Hidden instructions that make an agent leak data or call a tool |
| Insider with limited rights | Internal assistant over shared documents | Retrieving documents outside their permission level |
| Supply chain | Model files, MCP servers, plugins, datasets, dependencies | Poisoned tool descriptions or tampered packages |
Building the attack corpus
Public jailbreak lists are a starting point, not a test plan. We build a corpus specific to your application: attacks written against your system prompt, your tools and your business rules, then mutated automatically into many variants through paraphrasing, encoding, splitting across turns and embedding in different document formats. For Indian deployments we include attacks in Hindi, Hinglish and other languages your system accepts, including romanized text and script mixing, because safety filters are often weaker outside English. Indirect payloads are placed in every content source the system reads, in the places a real attacker would use: email signatures, PDF metadata, alt text, hidden spreadsheet cells and tool responses.
Measuring results that are probabilistic
Model behavior varies between runs, so one failed attack proves little and one success may be rare. We repeat important attacks many times under production settings and report the success rate as attempts succeeded out of attempts made, together with the conditions. A rare success that leads to data leaving the company still matters; a frequent success that produces only an off-topic answer may not. Reporting both rate and impact lets your team prioritize sensibly and gives a precise baseline for checking that a fix actually reduced the risk.
Each finding in the report includes the exact prompt or payload, the conditions, the number of attempts and successes, the observed effect with evidence such as trace excerpts, and the attacker position needed. That lets your engineers reproduce the issue on their own, confirm the fix, and add the case to the regression suite without needing us in the room.
Continuous testing, not a one-off
Every change to a model, prompt, tool or retrieval source can reopen a closed issue. The automated attack suite we hand over is designed to run in your CI pipeline: a fast subset on every change to prompts or tools, and the full suite before releases and after model upgrades. Results are tracked over time, so you can see whether a new model version is more or less resistant. New attack techniques are added as they are published. Pipeline security more broadly is covered in DevSecOps.
Detection, not only prevention
No set of defenses stops every attack, so you need to notice when one is attempted or succeeds. As part of remediation we help define detections in your logging and SIEM: unusual tool call patterns, outbound links or image URLs containing encoded data, requests for other users' records, spikes in refusals that suggest probing, and sudden increases in token use. We check that traces capture enough context to investigate an incident, with personal data handled according to your rules, and we write a short response runbook covering how to contain an affected agent, preserve evidence and inform the right people.
Model or application: what we test
We test the application around the model, because that is where business risk sits: system prompts, retrieval, permissions, tools, memory, output handling and integrations. Testing a foundation model's general safety is the model provider's job, and we do not try to repeat it. Where you host or fine-tune your own model, we add checks specific to it, such as whether fine-tuning weakened refusal behavior. Identity and permission design for agents is covered in Agent Access Governance.