Unveiling environment memorization in machine learning-based intrusion detection
Machine-learning intrusion detection systems can reach 99% accuracy on benchmark datasets, yet this performance is rarely reproduced in deployment. This gap motivates the study of environment memorization, the learning of artifacts of the data-collection environment rather than transferable attack behavior. The phenomenon is formally defined and two diagnostics are introduced: the dataset quality score, which measures classifier reliance on behavioral versus environmental features, and the environment generalization test, which measures the accuracy drop under controlled environmental perturbation. On CIC-IDS2017, eight environmental features alone reach 98.26% accuracy. Models trained on either benchmark fail to exceed a majority-class baseline when transferred to the other, so the reported benchmark accuracy does not survive a change of environment. Under environmental perturbation, a concentrated port shortcut in CIC-IDS2017 produces a drop of 72.82 pp, while distributed timing features in UNSW-NB15 produce a drop of 57.62 pp.
Authors
- Mustafa Muwafak Alobaedy (ORCID: https://orcid.org/0000-0002-6562-2922)
- Mohammad M. Rasheed (ORCID: https://orcid.org/0000-0002-2597-6363)
Institutions
- Multimedia University (MY)
- University of Information Technology and Communications (IQ)
Publication Details
- Journal
- Pollack Periodica
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1556/606.2026.01703
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00