Full Stack Data EngineeringAdvanced AI reliability and assurance

Threat-model tool misuse and data exfiltration paths

PK
Pankit Kumar
Sr. Data Scientist at Parexel (a Goldman Sachs–backed company) · 20 September 2026 · 2 min read
Technically reviewed by Ishaan Sharma
In this article (4 sections)

An agent connects untrusted language to capabilities. Threat modelling must follow the complete path from user and retrieved content through model output, tool arguments, credentials, network destinations and stored results.

Define the measurable control

Draw trust boundaries and assets. Enumerate direct and indirect prompt injection, excessive agency, SSRF, confused deputy behavior, cross-tenant access and covert exfiltration. For each path, reduce capability, validate typed arguments, authorize at execution, constrain egress, require approval and write an adversarial test.

The AI reliability lab makes the decision reproducible with authored data:

python
from reliability_cases import threat_model_case

result = threat_model_case()
assert result["tested"] == 4
assert result["model_as_trust_boundary"] is False
assert len(result["threats"]) == 4
assert result["residual"] == ["authorized user may export permitted data"]

The synthetic model covers four paths and explicitly refuses to treat the model as a security boundary. All four controls have tests, while one residual risk remains: an authorized user can export data they are legitimately permitted to access. That risk needs policy and monitoring, not a fictional perfect control.

Challenge the result

A prompt that tells the model to ignore instructions is not an enforcement mechanism. Put controls outside the model. Also test encoded destinations, redirects, DNS changes, tool chaining and data fragments spread across several calls.

Keep a reviewable evidence pack:

  • data-flow and trust-boundary diagram
  • asset and abuse-case register
  • control mapped to an executable adversarial test
  • residual-risk owner and review date

This work aligns with the evaluation, security, cloud operations, reliability and FinOps sequence in the FDE for Professionals course. The linked course describes the learning pathway; this article’s numbers are synthetic and do not report a model, client, audit or production result.

Practice task

Choose one read tool and one write tool. Trace how a malicious document could influence each argument and block the path without relying on model obedience.

Continue learning

This article is part of the Advanced AI reliability and assurance sequence. Use the neighbouring tasks when you need the prerequisite or the next application.

Reference: OWASP Top 10 for LLM Applications 2025.

PK
Pankit Kumar
Lead Instructor, NeuraPath Academy

Pankit Kumar has 10 years in Data Science & AI, building and shipping production systems in regulated pharma and clinical environments. He is a freelance trainer at Boston Institute of Analytics, AnalytixLabs and Scaler, and has taught this material to thousands of working professionals.

This article is part of our FDE for Professionals programme — 16 weeks (proposed). An accelerated advanced pathway for IT professionals ready to own enterprise AI delivery.

Explore FDE for Professionals
Counselling is free · no obligation

Not sure which programme fits?

Tell us your background and we will map it to the right entry point — including saying so when a cheaper programme is the better fit. A counsellor replies within one working day.