A US company ran an LLM system that read freight invoices and checked them against contract rates. Devox Software mapped the pipeline’s attack surface, red-teamed it, and built layered defenses against prompt injection and data leakage.
About the client
A US-based third-party logistics provider handles about 180,000 shipments monthly through a network of 3,000+ carriers
About the Product
The product is an LLM-powered document intelligence layer built into the client’s transportation management system (TMS). It reads bills of lading, proofs of delivery, carrier invoices and rate confirmations. It checks them against TMS records and contract rates, flags billing mismatches, and sends exceptions to operators. For instance, a retrieval layer over shipper contracts supplies the model with pricing context. Operators also use a chat assistant to ask questions about shipments and rates.
Introduction
At the first glance, the pipeline worked: it processed documents from the top carriers with 98%+ accuracy. However, the client’s CISO ordered a security review before an entire network rollout, and that review found a problem in security.
For instance, the model performed every instruction without a proof. That’s why the client asked Devox Software to find every way the AI pipeline could be manipulated or made to leak data, close those gaps, and prove the fixes worked, without rebuilding a system that already delivered value.
Project Team
Challenges
Tech Stack
Engagement Stages
We mapped every point where untrusted data entered the pipeline and then threat-modeled each one against the OWASP Top 10 for LLM Applications and MITRE ATLAS. This produced concrete threats along with a baseline of the current controls.
The client’s security team needed a defined scope they could defend to auditors. Mapping findings to recognized frameworks made each threat easy to verify, and ranking them told the team which ones to fix first.
Before changing anything, we attacked the system as it was, using a row of adversarial scenarios. These included:
The baseline showed a 38% injection success rate and cross-tenant retrieval in 1 of 6 targeted queries. That gave the client a measurable starting point.
We combined open-source tooling (PyRIT, garak) with freight-specific scenarios built from real document formats, because generic jailbreak libraries don’t include a doctored bill of lading. Plus, patching the hidden-text exploit the client had already found and resuming the rollout would have been faster, but it fixed one known attack and left the rest of the attack surface untested.
No single filter stops prompt injection, so we layered the controls. Each layer covers what the others miss.
Any prompt, model or retrieval change that lowers the block rate fails the build. Injection attempts, blocked outputs and anomalous queries stream into Microsoft Sentinel with alerting because the client’s SOC already worked in Sentinel, so AI threats show up in the same queue as every other security event.
An immutable audit trail records every extraction, validation decision, guardrail trigger and operator override because billing disputes with carriers and compliance reviews need proof of exactly what the system decided and why. Standard application logs can’t provide that proof as they don’t link a decision to the guardrail events behind it.
There is an incident runbook and a quarterly red-team review process for the client’s security team. The client’s team needed to be able to respond and re-test without depending on Devox Software.
Results
Sum Up
This project shows that the risk can be managed without giving up the business value. That takes threat modeling the whole pipeline, measuring exposure with real attacks, and layering defenses so no single control has to be perfect.
Having trouble booking? Open the booking page.
Tell us where your system needs help — we’ll show you how to move forward with clarity and speed. From architecture to launch — we’re your engineering partner.
Book your free consultation. We’ll help you move faster, and smarter.
Share the details of your project – like scope or business challenges. Our team will carefully study them and then we’ll figure out the next move together.
We appreciate you reaching out. Your message has been received, and a member of our team will get back to you within 24 hours.
In the meantime, feel free to follow our social.
Welcome to the Devox Software community! We're excited to have you on board. You'll now receive the latest industry insights, company news, and exclusive updates straight to your inbox.