Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

EDI Message Replay Can Produce Wrong Deliveries Even When Every API Key Is Valid

An electronic data interchange message can be well formed, authenticated and still represent the wrong fulfilment instruction because an older document has been replayed.

EDI acknowledgements are not an integrity guarantee

An electronic data interchange message can be well formed, authenticated and still represent the wrong fulfilment instruction because an older document has been replayed. Model a warehouse receiving a synthetic shipping order, a later amendment to delivery location and a duplicate of the original instruction. The system should identify which version is currently authoritative before sending goods to dispatch. Test the business document number, partner identity, effective timestamp, revision and acknowledgement status separately from the transport authentication result. An API key shows which integration submitted a message; it does not establish that the business instruction is current. Record where an exception must be held for a human logistics operator rather than automatically applying the newest message by arrival time. A delayed network batch may arrive after a valid amendment and still carry an earlier effective date.

What the receiving system must decide

Two concrete operations define the boundary. First, a nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. Second, a delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance. The assessor should use this actual evidence set: Correlate carrier identity, event sequence, order version, depot ownership, driver proof and integration retry identifiers. to identify the receiving system and distinguish the permitted transaction from the prohibited one. The proposed correction is: Enforce event ordering and shipment ownership at the receiving service; reconcile out-of-order updates.

Why a broad restriction is not enough

The tangible business objective is: The shipment must arrive at the authorised depot and retain one auditable final delivery state. A restriction would have to preserve the approved action: A nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. The proposed improvement is: Enforce event ordering and shipment ownership at the receiving service; reconcile out-of-order updates.

Accountable authority: Dispatch application owner and warehouse control supervisor. The original control assumption needs testing: A legitimate queued event is mistaken for a fresh instruction merely because its signature verifies. A reliable review should include technical evidence from correlate carrier identity, event sequence, order version, depot ownership, driver proof and integration retry identifiers. and an acceptance decision that the legitimate action still functions: A nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. The requested security improvement is: Enforce event ordering and shipment ownership at the receiving service; reconcile out-of-order updates.

A safer control design

An appropriately scoped exception might be required because network retries and genuine cross-dock handovers may resemble suspicious replays. It should be tied to the current approved activity: A nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. The exception must not permit: A delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance.

A meaningful acceptance test

Build a positive case from this authorised operation: A nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. Construct a negative case using: A delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance. Relevant observations: Correlate carrier identity, event sequence, order version, depot ownership, driver proof and integration retry identifiers. Final condition: The shipment must arrive at the authorised depot and retain one auditable final delivery state.

Recovery and future assurance

Final responsibility sits with dispatch application owner and warehouse control supervisor. Retain the evidence set: Correlate carrier identity, event sequence, order version, depot ownership, driver proof and integration retry identifiers. The improvement is: Enforce event ordering and shipment ownership at the receiving service; reconcile out-of-order updates. Retest the unsafe path: A delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance.

After implementation, rerun this practical test: Simulate a genuine diversion followed by an old signed event, proving that the newer approved destination remains unchanged. Confirm the final business result: The shipment must arrive at the authorised depot and retain one auditable final delivery state. Deny this operation after the change: A delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance.

Test replayed route instructions against the final depot

For independent assurance, demonstrate the precise experiment: Simulate a genuine diversion followed by an old signed event, proving that the newer approved destination remains unchanged. The analyst should correlate the result with correlate carrier identity, event sequence, order version, depot ownership, driver proof and integration retry identifiers. A successful test must preserve a nominated carrier posts one confirmed status and the final proof of delivery for its assigned synthetic consignment. without accepting a delayed earlier route message overwrites a newer approved diversion or creates duplicate delivery acceptance.

Reconciliation must follow the goods, not the queue length

Introduce a carrier handoff with a scanned pallet and an order that has been amended after picking. Ask the team to compare the EDI instruction, warehouse-management task, transport booking and proof-of-delivery reference. A message queue reaching zero does not prove that every shipment used the correct version. Use fictional items and locations to test duplicate dispatch, misroute and cancellation cases. If the system cannot safely determine the authoritative state, hold the affected order while unaffected deliveries continue. Log the override approver and customer-notification route. Engineering should avoid replaying the entire backlog after an outage without checking idempotency and document revisions. A recovery plan is effective when it preserves the correct consignment and delivery decision, even if the messaging platform technically returns to service before all records are reconciled.

Supplier integration changes can reintroduce replay faults

A logistics partner may change its EDI translator, carrier API or clock synchronisation during a normal release. Include a pre-production test with one valid new instruction, one stale duplicate and one message from the wrong partner credential. Check whether the receiving business application applies the correct revision and records the rejected message without generating a warehouse task. The supplier should provide sample payloads and a contact who can explain field semantics, not only connection success. Assign an operations owner to sign off dispatch outcomes and a technical owner to sign off transport controls. Retain the reconciliation sample and rerun it after a new site or carrier is onboarded. The strongest evidence is a correctly routed synthetic consignment and a visibly blocked obsolete instruction.

Correcting an EDI error needs counterpart agreement

When a duplicate or outdated instruction has already reached a carrier, the warehouse cannot fix the issue merely by changing an internal job status. The operator should verify the current consignment state with the carrier using the agreed business reference, then issue an authorised cancellation or correction. In the tabletop, place one synthetic pallet on the dock and another already in transit. Ask who can cancel a pick, amend the manifest or notify a customer, and which confirmations belong in the record. If an error cannot be reversed before dispatch, the logistics manager should determine the next safe operational action rather than rely on a queued API retry. Separate data reconciliation from physical goods movement so the final report accurately describes what was changed.

Keep partner clocks and document versions visible

A replay issue may be made harder to diagnose when trading partners use different time zones or supply timestamps from their own systems. Preserve the original document identifier, revision, receipt time and business-effective time separately. In a synthetic exercise, deliver a valid amendment after a late duplicate original and ask which instruction the receiving application should act on. The system should not equate later network arrival with greater business authority. If a human override is required, record the decision and the proof supplied by the sender. Retest this ordering after changes to the translator or partner onboarding. Correct handling of one repeated message provides more assurance than a general declaration that the EDI channel is encrypted.

Sources and further reading

Explore Next Defence expertise

Next Defence can help carrier and warehouse teams test EDI replay protection against actual shipment-state rules. Use a fictional consignment with an approved delivery amendment, a duplicate earlier message and a valid carrier acknowledgement. Verify that the system preserves the current destination and one auditable final delivery state, rather than accepting whichever authenticated message arrives last.

Explore Application Security & DevSecOps ↗

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].