Proteus · Adversarial machine learning
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.
In one minute
The same flood, seen by a detector that judges each connection and by Proteus, which counts what the server receives.
looks at size, duration and timing: all chosen by the sender
counts what the server receives: the sender can only add to it
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 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.
Padding, extra packets, split connections, decoys, new source ports. None of them slows the attack down. Proteus calls them free operations.
Sizes, ratios and timings go up or down, so the attacker can walk across the line a detector has drawn.
Connections, bytes and sources towards the victim stay the same or increase. That is conserved evidence.
Pick an operation to see what it does.
02How it works
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.
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.
Each machine is measured against its own normal level, learned from ordinary days. A busy server and a quiet one are not judged alike.
A model turns the tallies into a score. It is built so that more evidence can only raise the score, never lower it.
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.
03Use it
Every result comes from one script, stage by stage, with fixed seeds and thresholds calibrated only on benign traffic of the network under test.
# 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
Conserved evidence, monotone core, certificate and harm frontier, step by step.
02Every stage of the experiments with its exact command line.
03Corrected CIC-IDS-2017 and CSE-CIC-IDS-2018, CTU-13, UGR'16, CIC-DDoS-2019.
04Certificate, combination of sub-cores, frontier, counters and baselines.
04Evaluation
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.
Chooses its rate and its disguise from a list of plans: padding, splitting, decoys, many requests per connection, bursts, many sources.
Knows nothing about the detector. It searches for the best disguise and only learns, after each attempt, whether it was caught.
Raises the normal level of its victim over days, before the attack, to hide in it.
05Questions
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.
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.
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.
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.
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.
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.
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.
The paper is in preparation. Until then, see the citation page.
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]"