An organization wants to detect if someone is trying to steal their proprietary machine learning model by querying its API. Which monitoring technique is MOST effective?
Anomaly detection can identify extraction attempts by spotting unusual patterns.
Why this answer
Model extraction attacks rely on systematically querying the API to reconstruct the model's decision boundary. Monitoring for anomalous query patterns—such as high request volume, uniform input distributions, or systematic variations (e.g., grid-like sampling of feature space)—directly detects the behavioral signature of extraction attempts, unlike passive controls that do not address the attack vector.
Exam trap
The trap here is that candidates confuse generic security controls (rate limiting, input validation) with the specific detection technique needed for model extraction, overlooking that extraction attacks use legitimate, well-formed queries in a systematic pattern.
How to eliminate wrong answers
Option A is wrong because output filtering removes sensitive information from responses but does not prevent an attacker from collecting enough outputs to reconstruct the model; it only obscures specific data points. Option B is wrong because rate limiting reduces request throughput but does not detect or prevent extraction via low-and-slow queries or distributed attacks; it can be bypassed by using multiple IPs or accounts. Option D is wrong because input validation rejects malformed requests but extraction attacks use well-formed, legitimate queries to probe the model; validation does not flag the systematic, high-volume patterns indicative of extraction.