Changing one character in SSH brute-force command evades ML-NIDS detection
Host-space perturbations as small as a single character can cause ML-based NIDS to miss attacks
Security & privacy arXiv 25 May 2026 Measurement Real-world evidence
Published as “"What is the Problem Space?" Defining Host-space Adversarial Perturbations against Network Intrusion Detection Systems”
Why it matters
Security assessments of ML-NIDS should incorporate host-space perturbations, and simple adversarial training can restore high detection rates against such realistic evasion tactics.
Summary
ML-NIDS that reliably detect SSH-bruteforce attempts using a specific command fail to detect any attempt when a single character in that command is changed. The authors demonstrate this on public benchmark datasets (CICIDS17/18) and a real-world smart-home network, showing a drop from perfect detection to zero detection. They also show that adversarial training with the host-space perturbed data restores detection (TPR > 0.999), indicating the vulnerability can be mitigated but is not inherent to the model.
What they found 1
- A single-character change in the SSH-bruteforce command evades detection by ML-NIDS that otherwise detect the original command.
“ML-NIDS that can detect the SSH-bruteforcing attempts launched via a given command string cannot detect any attempt launched by changing a single character of such a string.”
Caveats 4
- the models always obtained tpr> 0.999 (and we did not observe any decrease in the baseline performance).
- changing the threads in patator (e.g., issuing patator -T=1 or patator -T=5) does not lead to any network-level change if the attack targets a single ssh server. We tested this: the tprnever changed, and the NetFlows were not different.
- HsP only apply to ssh bruteforcing! We primarily focused on ssh bruteforcing to provide a comprehensive demonstration (including both ML evaluation and subsequent data-level investigation) to facilitate understanding of HsP, and why they may work.
- From the viewpoint of a researcher, practically implementing HsP is challenging.
What’s new here 4
- Introduces the concept of host-space perturbations (HsP) as a realistic attack vector for ML-NIDS.
- Provides a systematic literature review of 316 papers showing prior work overlooked host-space attacks.
- Demonstrates that minimal command changes (single-character edits) can evade detection in both benchmark and real-world settings.
- Releases experimental resources and data for reproducing host-space perturbation studies.