Technical Guide
Prompt Injection in AI Underwriting: How Applicant Free-Text Manipulates Decisions and Which Runtime Controls Limit the Risk
Applicant free-text is untrusted input. When it enters an LLM's context next to instructions, retrieved data, and tool access, the applicant can try to change how the model scores, summarizes, or routes an application.
What free-text manipulation looks like in underwriting
Narratives, notes, comments, and attached text arrive from the applicant and are placed in the same context as system instructions, underwriting guidelines, and retrieved records. An applicant can use that text to try to change how the model scores, summarizes, or routes an application.
Mapping the attack surface
Treat the workflow as four stages, and ask at each one what an attacker controls and what the system does with the result. The table below shows where free-text crosses the trust boundary.
| Stage | What happens | Risks |
|---|---|---|
| 1. Input handling | Free-text, attachments, and extracted text enter the pipeline. Narratives, notes, comments, and attached text arrive from the applicant. | Hidden or obfuscated content and unnormalized encodings passing through unchanged. |
| 2. Model context | Untrusted text shares a prompt with system instructions, underwriting guidelines, and retrieved records. | Instruction override and disclosure of internal content. |
| 3. Tool calls | Agents query internal data, update cases, or call external services. The model or agent reads records, writes to case systems, or calls services. | Unauthorized calls, over-broad permissions, and data leaving through tool arguments. |
| 4. Decision outputs | Scores, classifications, and narrative summaries drive approvals or referrals. | Manipulated ratings and summaries that mislead human reviewers. |
Why model-level defenses are not enough on their own
Model-level defenses reduce the chance of success but cannot guarantee it. The practical approach is to assume some injections will work and limit their impact.
Audit logging and detecting manipulation
A flagged decision can only be reconstructed if the record is complete. Audit logs should capture:
- Inputs
- Model context
- Tool calls
- Policy decisions
- Outputs
Manipulation indicators and policy violations can then trigger human review or block automated decisions, with configurable thresholds.
Evaluating a runtime governance layer
Use these questions to test a runtime governance layer against your underwriting workflow.
- Does it enforce policy outside the model, so a successful injection cannot change the enforcement decision?
- Can it scope agent permissions and allow or deny individual tool calls per workflow step, and how is that evidenced?
- Does it log inputs, model context, tool calls, policy decisions, and outputs so a flagged decision can be reconstructed?
- How does it handle untrusted free-text, including hidden or obfuscated content, and what test evidence supports the detection claims?
- Can it trigger human review or block automated decisions on manipulation indicators or policy violations, with configurable thresholds?