Lección 2 de 7 · 8 min
Probing the decision boundary, and how defenders spot it
Every classifier has a line between “malicious” and “benign”. Understand why repeated black-box queries can reveal where that line sits, and the controls that make probing slow, noisy and visible.
Por ahora esta página está en inglés.
A detection model turns an input into a score, then compares that score with a threshold. Above it, the sample is blocked or flagged; below it, the sample passes. Mathematicians call the frontier between the two outcomes the decision boundary. You never see it directly, but it shapes every verdict the model gives.
An attacker who cannot read a model’s internals can still learn about it by watching its behaviour. This is called black-box probing: submit an input, observe the verdict, change something, submit again. Each answer is a small clue about where the boundary lies. With enough answers, a pattern emerges. NIST’s adversarial ML taxonomy lists this kind of query-based access as one of the main conditions that make evasion and model-extraction attacks possible.
Why query access matters so much
Probing depends entirely on being allowed to ask many questions and getting useful answers back. Three things help the attacker: an unlimited number of queries, answers that are detailed (a precise score rather than a simple yes or no), and nobody noticing that the same person is asking the same kind of question over and over. Remove any one of those and probing becomes far slower and far more visible.
| What probing needs | Defensive control | Effect |
|---|---|---|
| Many queries | Rate limits, quotas and authentication on any model-scoring API or public scanning service | Probing takes much longer and costs more |
| Detailed answers | Output coarsening: return a verdict, not a raw confidence score; avoid explaining exactly which feature triggered | Each answer reveals less about the boundary |
| Staying unnoticed | Monitor query patterns: bursts of near-identical samples, small systematic variations, the same account testing repeatedly | Probing itself becomes a detection signal |
| A fixed target | Ensembles, periodic retraining and some randomness in which model or threshold answers | What was learned yesterday may not hold today |
Probing leaves traces
The good news for defenders is that boundary probing is rarely subtle when you look at the right place. Legitimate users submit a variety of unrelated files or requests. Someone mapping a threshold submits many samples that are almost identical, differing in small, methodical ways. That pattern is itself suspicious, and MITRE ATLAS lists reconnaissance of ML systems and gaining ML model access as distinct stages of an attack, which gives your team something concrete to hunt for.
On a single computer, the equivalent signal is an unfamiliar program repeatedly contacting a scanning or verdict service, or trying many variants of the same connection. Watching which programs talk to which services, and how often, turns quiet reconnaissance into something a person can see.
Designing so the boundary matters less
- Do not publish your exact thresholds or feature weights, and avoid returning raw scores to untrusted callers.
- Combine a statistical model with rules and behavioural checks, so crossing one boundary is not enough to pass.
- Log every query to scoring services with who asked and when, and alert on unusual volume or repetition.
- Retrain and re-evaluate regularly; a moving target is harder to map.
- Assume a determined attacker will eventually find some gap, and make sure another layer is watching when they do.
Where FireAI fits
FireAI does not expose a scoring service that others can query: its models run on the Mac and answer only that Mac’s own connections. Its Investigate page shows a risk score out of 100 with the reasons behind it to the person who owns the Mac, not to the program being judged. And because every new app must ask before connecting, a program that suddenly starts talking to unfamiliar services is visible on the world map instead of silent.
Lo esencial
- A decision boundary is the invisible line where a model’s verdict flips.
- Black-box probing needs many queries, detailed answers and not being noticed.
- Rate limits, coarse outputs and query monitoring make probing slow and visible.
- Layer rules and behavioural checks with ML so one boundary is never the whole defence.
Ponte a prueba
1. Which of these most directly makes black-box probing harder?
- Returning a detailed confidence score for every query
- Rate-limiting and authenticating access to the scoring service — Correcto.
- Publishing the model’s threshold
- Allowing anonymous unlimited queries
Probing depends on many cheap queries. Limits and authentication slow it down and tie it to an identity.
2. What query pattern suggests someone is mapping a detection threshold?
- Many unrelated files from different teams
- Bursts of nearly identical samples with small, systematic changes — Correcto.
- One file submitted once a month
- Queries only during office hours
Normal use is varied. Methodical near-duplicates are the fingerprint of someone searching for where the verdict flips.
3. Why return a simple verdict instead of a precise score to untrusted callers?
- It is faster to compute
- Each answer then reveals less about where the boundary lies — Correcto.
- Scores are always wrong
- It improves the model’s training
A precise score tells an attacker how close each attempt came. A coarse verdict gives much less guidance.
Ponlo en práctica con FireAI
Pon esta lección en práctica en tu propio Mac.
- Piloto automático: FireAI decide por ti las conexiones sencillas — Deja que FireAI resuelva las decisiones fáciles por sí mismo, y ve siempre por qué.
- Usa el Piloto automático con seguridad: qué decide, y cómo corregirlo — Activa el Piloto automático con una idea clara de lo que hace, y corrige lo que se equivoque.
- Investiga una conexión — Decide con los hechos delante, no con una advertencia vaga.
- Listas de amenazas (opcional) — Compara tu tráfico con datos públicos de amenazas sin enviarlo a ningún sitio.
- El Mapa mundial — Ve a dónde va realmente tu información, no solo un nombre de host que tendrías que buscar tú mismo.
- Modos de seguridad: Casa, Cafetería, Paranoico, Bajo ataque — Ajusta la firmeza de FireAI al lugar donde realmente está tu Mac, en un toque.
Fuentes
- NIST AI 100-2 E2025: Adversarial Machine Learning taxonomy
- MITRE ATLAS
- UK NCSC: Principles for the security of machine learning
- OWASP Top 10 for LLM applications
Ponlo en práctica en tu Mac
Prueba todas las funciones gratis durante 17 días, sin tarjeta.