Attack small models with FGSM, PGD and C&W, and try poisoning, backdoors, defense, privacy and robustness evaluation in your browser, with real numbers.
- Home
- Image Attacks Lab
- Data Poisoning Lab
- Evasion Attacks Lab
- Defense Lab
- LLM Red Teaming Lab
- Model Privacy Lab
- Backdoor / Trojan Lab
- Robustness Evaluation Lab
- My experiments
- Scientific references
- Glossary and FAQ
Black-box attacks (NES and boundary)
Evasion Attacks Lab · evasion
Level 1: idea and analogy
The idea
The attacker sees outputs only: estimates the gradient by querying (NES) or walks along the decision boundary (Boundary).
Analogy
Feels for a door in the dark by pushing from several sides.
Level 2: how it works and when to use it
Steps
NES: sample symmetric noise, estimate the gradient, step. Boundary: start from a misclassified image and shrink the distance while staying adversarial.
When to use it
Estimating the risk of a publicly exposed API.
Strengths
Realistic: works against APIs with no internal knowledge.
Level 3: mathematics, assumptions, limits
Mathematical form
\hat g\approx\frac{1}{2\sigma n}\sum_{i=1}^{n}\big(f(x+\sigma u_i)-f(x-\sigma u_i)\big)u_i,\quad u_i\sim\mathcal N(0,I)Assumptions
A query budget; NES needs probabilities, Boundary needs only the label.
Limitations
Query-hungry, so it shows in logs and can be stopped by rate limiting.
Metrics
Success rate at a given budget, mean queries, ‖δ‖₂.
Defenses
Rate limiting, query-pattern detection, hiding probabilities (not to be relied on alone).
Level 4: pitfalls and references for researchers
Common pitfalls
Ignoring the real cost of queries; overrating the effect of hiding probabilities.
References
- Brendel, W.; Rauber, J.; Bethge, M. (2018). Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models. ICLR 2018. Link
- Papernot, N. et al. (2017). Practical Black-Box Attacks against Machine Learning. ACM Asia Conference on Computer and Communications Security (AsiaCCS) 2017. Link
- Tramèr, F. et al. (2016). Stealing Machine Learning Models via Prediction APIs. USENIX Security Symposium 2016. Link
