ML Security

Poisoning, artifact integrity, sensitive-data leakage, adversarial inputs, supply chain and inference abuse — defensively, and at the level of what to validate and trust.

ML Security

Six ways an ML system is exposed that a service is not: poisoned training data, tampered artifacts, memorised sensitive data, adversarial inputs, an untrusted supply chain and abusable inference. Defensively, at the level of what to trust.

Q · A standard security review of the model service found nothing. What does an ML system expose that the review was not looking for?
Data Poisoning
▶ lab

A corrupt training source teaches the model wrong behaviour, and the offline metric — computed on the same corrupt data — approves. Provenance, validation, trusted pipelines and slice evaluation are the defence.

Q · A model retrained on data that users can influence started behaving strangely for one category. How does a corrupt source reach the weights, and what would have shown it?
Adversarial Inputs
▶ lab

Small, deliberate changes to a valid input flip the prediction. Defensively: validate content, test robustness, use ensembles and monitor confidence — and accept that fraud and spam are adversarial by nature.

Q · A valid-looking input produces a confidently wrong prediction, and slightly different versions of it produce the right one. What property of the model does that expose, and what defends against it without knowing the attack?
The Model Supply Chain

Pretrained weights and public datasets are dependencies: unpinned, unhashed, unsigned, and loaded by formats that execute code. Pin, hash, sign, use safe formats, and record provenance in the registry.

Q · A pretrained model was downloaded from a public hub, fine-tuned and deployed. What did the team just add to their dependency tree, and how would they know if it changed?
Inference Abuse

An endpoint that answers anyone reveals its decision function, its training data and its cost structure. Authenticate, rate-limit, return decisions rather than probabilities, and bound spend on GPU endpoints.

Q · A public prediction endpoint was built to be helpful: fast, unauthenticated, returning full probabilities. What can a caller learn or cost you by calling it a lot, and what do you withhold without breaking the product?