Skip to content
Proteus

Proteus · Adversarial machine learning

Intrusion alerts certified against additive manipulation

of network traffic

Attackers use adversarial machine learning to reshape their traffic until a detector lets it through. Proteus detects on evidence that a disguise can only add to, proves that its alerts survive every such disguise, and measures what slowing down still buys the attacker.

  • 1extra model evaluation certifies an alert
  • 0perturbation budgets, secrets or random answers
  • 100%open source and reproducible, Apache 2.0

In one minute

An alert, and a certified alert

The same flood, seen by a detector that judges each connection and by Proteus, which counts what the server receives.

A detector that judges each connection

looks at size, duration and timing: all chosen by the sender

Proteus

counts what the server receives: the sender can only add to it

An alertProteus tells you which machine is under attack right now, and the tallies that say so.
A certified alertAn alert with a proof: no padding, decoy or splitting could have avoided it. Only sending less could.

Step by step

Watch an attack, step by step

A conventional detector judges each connection on its own. Proteus keeps a tally of what each machine receives, and an attacker can only make that tally grow. Follow an HTTP flood, a port scan and the case Proteus does not solve.

01The problem

A disguise costs nothing

A detector that judges each connection on its own looks at things the sender chooses: sizes, durations, timings. An attacker pads its packets, splits its connections or adds decoys until every connection looks normal, and loses nothing by doing so. What it cannot do is make the victim receive less.

  1. Disguises are free

    Padding, extra packets, split connections, decoys, new source ports. None of them slows the attack down. Proteus calls them free operations.

  2. What a connection looks like can change

    Sizes, ratios and timings go up or down, so the attacker can walk across the line a detector has drawn.

  3. What a machine receives only grows

    Connections, bytes and sources towards the victim stay the same or increase. That is conserved evidence.

Pick an operation to see what it does.

Per-flow features

  • bytes per packet
  • packets per flow
  • flow duration
  • bytes per flow

Evidence per entity

  • flows to the service
  • bytes to the service
  • distinct sources
  • packets to the host

02How it works

Count what cannot shrink

Four steps, each simple on its own. Together they turn every disguise of the attacker into more evidence against it, and say exactly what is left to it: going slower.

  1. Count

    Every connection adds to a tally of the machines it touches: how much a server received, from how many sources, how many calls went unanswered. Tallies fade with time, from seconds to hours.

  2. Compare

    Each machine is measured against its own normal level, learned from ordinary days. A busy server and a quiet one are not judged alike.

  3. Score

    A model turns the tallies into a score. It is built so that more evidence can only raise the score, never lower it.

  4. Alert and certify

    Above the threshold, Proteus raises an alert. One more check tells whether any disguise could have avoided it. If none could, the alert is certified.

CertificateInteractive
10 s1 min10 min1 h6 h
evidence of the alert
worst case over all free operations

Exporter timeout Δ = 120 s · slack 2Δ/τ = 0.40

Harm frontierInteractive
frontier real campaign

Illustration with made-up numbers. The measured frontiers are in the paper, in preparation.

03Use it

Reproducible end to end

Every result comes from one script, stage by stage, with fixed seeds and thresholds calibrated only on benign traffic of the network under test.

shellbash
# convert a dataset once
uv venv && uv pip install -e ".[dev,attacks,packets]"
bash scripts/reproduce.sh data

# cross-network detection, then the tables
export PROTEUS_EVIDENCE=v3
bash scripts/reproduce.sh h1 tables
scripts/reproduce.shstages

        

04Evaluation

Across networks, real traffic

Trained on one network and tested on another, with real background traffic, and attacked on purpose. Proteus is compared with rate thresholds, the same model without constraints, KitNET, classic scan and flood detectors, and Apollon. The results will be published with the paper, now in preparation.

DatasetTrafficUsed for
CIC-IDS-2017 / CSE-CIC-IDS-2018Corrected labels, two networksCross-network detection, frontiers, attacks
CIC-IDS-2017 pcapRaw packets of one dayChecking the certificate on packets
CTU-13Real university traffic with botnetsUnlabelled real background
UGR'16, CIC-DDoS-2019ISP traffic; reflection and SYN floodsReal background, other networks and attacks
  1. Adaptive attacker

    Chooses its rate and its disguise from a list of plans: padding, splitting, decoys, many requests per connection, bursts, many sources.

  2. Query attacker

    Knows nothing about the detector. It searches for the best disguise and only learns, after each attempt, whether it was caught.

  3. Poisoning

    Raises the normal level of its victim over days, before the attack, to hide in it.

05Questions

Before you ask

What is a certified alert?

An alert that comes with a proof: no amount of padding, decoy traffic or connection splitting could have avoided it. Proteus checks it with one extra evaluation of its model. The only way to avoid a certified alert is to send less, which weakens the attack.

Does it replace my intrusion detector?

No, it complements it. Proteus covers attacks that leave an accumulated footprint (floods, scans, brute force at a high rate) and gives a guarantee for them. An attack that fits in one connection, such as an SQL injection, leaves almost no footprint: it needs a detector that looks at each connection or at its content.

How is this different from adversarial training?

Adversarial training hardens a model against the examples it saw. Proteus changes what is measured: evidence that free operations can only increase, scored by a monotone model, so the guarantee holds for every combination of those operations, not only the ones tried.

What does the certificate not cover?

Operations that cost the attacker something: sending fewer requests, going slower, or poisoning the history of its victim beforehand. It does not cover making each request smaller either, which costs a flood little. Going slower and sending smaller requests are measured by the harm frontier and the adaptive attacker; poisoning is evaluated separately.

Does it need attack labels in my network?

No. Thresholds are calibrated on benign traffic of the network being protected; attack labels are only needed to train the core, which can come from another network.

What is Δ?

The active timeout of the flow exporter: the longest a packet can wait before its flow is exported. The certificate slack is 2Δ/τ; a shorter timeout makes certification cheaper.

Does it replace per-flow classifiers?

No. A per-flow shell can still run in front; its alerts and the probes it receives are counted as evidence, so probing it makes the attacker more visible.

How do I cite Proteus?

The paper is in preparation. Until then, see the citation page.

Detect what attackers
cannot hide

Install the package, run the tests, then reproduce the experiments stage by stage.

$git clone https://github.com/antoniopaya22/proteus && cd proteus && uv venv && uv pip install -e ".[dev]"