Signing orders: message authentication on the wire
- Severity
- Moderate
- Status
- Published
- Affected area
- Cryptography
- Published
- Last reviewed

Every order your system sends is, in effect, a signed instruction to move value. The moment it leaves the box, it travels across networks and through intermediaries, and a defensive engineer has to ask an uncomfortable question: what guarantees that the order arriving at the venue is exactly the one you sent, from you, and only once? Message authentication is the discipline that answers it, and it is a distinct problem from keeping the message secret.
§01Encryption is not authentication
A common conflation is to assume that because a channel is encrypted, its messages are trustworthy. Encryption protects confidentiality, that an eavesdropper cannot read the order. It does not, on its own, prove who sent a message or that it was not altered. Authenticity and integrity are separate properties, provided by message authentication codes or digital signatures. A system needs both: a channel that outsiders cannot read, and messages whose origin and content can be cryptographically verified.
§02Forgery, tampering, and the replay
Three distinct attacks matter here. Forgery is an order that never came from you but appears to. Tampering is a real order altered in flight, a price nudged, a size inflated. The subtlest is the replay: an attacker captures a legitimate, correctly signed order and simply sends it again, so a single valid instruction becomes two fills. Defeating replay is why signed messages carry a nonce or a monotonic sequence number, and why the receiver rejects anything it has seen before, the same sequence discipline that protects the inbound data feed.
§03Keys, clocks, and sessions
Authentication is only as strong as the keys and context behind it. Signing keys must be protected like the trading credentials they effectively are, rotated on a schedule, and scoped so a leaked session key cannot sign indefinitely. Binding orders to a session, a timestamp, and a sequence means a captured message is useless outside its narrow window. Loosely synchronised clocks and long-lived keys are the quiet weaknesses that turn a strong scheme into a theatrical one.
§04Provable, not presumed
The reassuring end state is that every order is provably yours, provably intact, and provably fresh, three properties an attacker must all defeat at once. Sign what matters, sequence it, and verify on receipt. This advisory is educational and illustrative and is not security or investment advice for any specific system.