What Prisma AIRS adds
Prisma AIRS is Palo Alto Networks' AI (artificial intelligence) security platform. In this design its runtime security is used inline for the language-model components: the platform and the AI gateway send each input, retrieved clause, reply and tool argument to a scan API (Application Programming Interface) with a named security profile, and act on the verdict. It does not sit in the alert path, which has no language model and runs on its own redundant infrastructure. Other parts of the platform fit the lifecycle around it: scanning models before deployment, red-teaming before launch and watching posture over time. Product names and packaging change, so check the current documentation.
The scan is a check, not the whole defence. Draft-only tools, scopes on the travel gateway and the signing rules in ADR-003 still apply when a scan passes.
Where scans run
| Scan point | What is scanned | Main risks | On block |
|---|---|---|---|
| Input | Structured incident facts, feed text, traveler replies and emails | Prompt injection, personal data, malicious links, hidden text | Route to the officer for manual documentation; log the event; do not call a model |
| Retrieved context | Policy and template clauses returned by retrieval | Indirect injection hidden in a document | Drop the passage; log the source for review |
| Output | The model's draft before it is shown | Leaked personal data, unsupported statements, invented facts | Replace with a flag; the officer writes it |
| Tool arguments | Arguments the copilot proposes for a draft or a task | Injection into free text, exfiltration through a notes field | Refuse the call; keep the state |
| Tool results | Text coming back from a travel system | Injection through free-text notes | Strip the field; continue with structured data only |
The security profile for duty documentation
The duty-docs-prod profile is strict because the text concerns people in danger and their employers.
| Detection | Setting | Why |
|---|---|---|
| Prompt injection | Block | Feeds, replies and emails can carry hidden instructions |
| Sensitive data in prompts and replies | Block replies, mask or block prompts | Names, locations, health details and contacts must not leak |
| Malicious URLs (Uniform Resource Locators) | Block | Emails and feeds can contain links |
| Malicious code | Block | No code should enter or leave a documentation workflow |
| Topic guardrails | Block anything that proposes evacuations, travel stops, medical advice or messages to travelers | The assistant drafts facts for people; it does not decide or instruct travelers |
| Contextual grounding | Flag; route to a person when repeated | Drafts must match the structured facts and the retrieved clause |
Calling the scan
A synchronous scan returns a verdict and the detections that fired. The platform treats anything other than an explicit allow as a block, and fails closed for write paths if the call fails.
import httpx, uuid
SCAN_URL = os.environ["AIRS_SCAN_URL"] # synchronous scan endpoint from the tenant
PROFILE = "duty-docs-prod"
def scan(prompt: str | None = None, response: str | None = None, *, incident: str, model: str) -> dict:
body = {
"tr_id": str(uuid.uuid4()),
"ai_profile": {"profile_name": PROFILE},
"metadata": {"app_name": "duty-platform", "app_user": incident, "ai_model": model},
"contents": [{k: v for k, v in (("prompt", prompt), ("response", response)) if v}],
}
r = httpx.post(SCAN_URL, json=body, headers={"x-pan-token": os.environ["AIRS_API_KEY"]}, timeout=2.0)
r.raise_for_status()
return r.json()
def allowed(verdict: dict) -> bool:
return verdict.get("action") == "allow" # anything else, including missing, is a blockA scanning outage never turns into unscanned writes. The cost is slower documentation, which is the decision in ADR-007.
Threats specific to this platform's language-model components
| Threat | Example | Controls |
|---|---|---|
| Hidden instructions in a feed or reply | A reply telling the assistant to mark everyone safe and close the incident | Input scan; structured facts only; the assistant has no tool that closes an incident or sends a message |
| Altering what a report says | A draft that omits an unreachable traveler | Drafts are built from structured facts including every unresolved traveler; a person reads and signs |
| Leaking personal data | Asking the assistant for a traveler's hotel in a free-text note | Output scan; no exact locations in prompts; no cross-traveler tool |
| Overreach in advice | A request to tell travelers to evacuate | Topic guardrail; the assistant declines and points to the duty officer |
| Tampering with a draft before filing | A change after the officer has read it | Signed content hash; filing only the signed version |
| Cost abuse | A flood of large inputs | Size limits; per-key budgets and rate limits |
Operating it
Latency budget
Scans must fit the documentation budget. Run the input scan in parallel with retrieval and use the reply only after its scan passes.
Fail closed on writes
If the scan service is unreachable, drafts and tasks are not written and the officer documents manually. Reading continues.
Red-team before use
Run an automated and a human red-team campaign against staging. Every finding becomes a test in the evaluation set.
Security events
Send blocks to the security team's tools with the incident and trace identifier, never the blocked text in clear.
Tune with evidence
Review false positives weekly. Change profile settings through review, and rerun the evaluation set after each change.
Build this for your business
This example is speculative, but the same pattern, minimal and consented data, deterministic rules for every safety duty, a governed gateway, runtime security, advisory-only AI and accountable people, fits any service that looks after people. We can scope a pilot on your own systems.
Book a discovery call