Перейти к содержимому
← Adversarial AI and threat hunting

Урок 2 из 7 · 8 мин

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.

Пока эта страница на английском.

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 needsDefensive controlEffect
Many queriesRate limits, quotas and authentication on any model-scoring API or public scanning serviceProbing takes much longer and costs more
Detailed answersOutput coarsening: return a verdict, not a raw confidence score; avoid explaining exactly which feature triggeredEach answer reveals less about the boundary
Staying unnoticedMonitor query patterns: bursts of near-identical samples, small systematic variations, the same account testing repeatedlyProbing itself becomes a detection signal
A fixed targetEnsembles, periodic retraining and some randomness in which model or threshold answersWhat 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.

Главное

  • 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.

Проверьте себя

  1. 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 — Верно.
    • 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. 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 — Верно.
    • 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. 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 — Верно.
    • 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.

Примените на практике в FireAI

Примените этот урок на своём Mac.

Источники

Примените это на своём Mac

Все функции бесплатно на 17 дней, без банковской карты.

Скачать для Mac Документация