{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,18]],"date-time":"2026-09-18T16:33:00Z","timestamp":1789749180921,"version":"4.0.1"},"reference-count":23,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2025,10,4]],"date-time":"2025-10-04T00:00:00Z","timestamp":1759536000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"the National Key R&amp;D Program of China","award":["2023YFE0113200"],"award-info":[{"award-number":["2023YFE0113200"]}]},{"DOI":"10.13039\/501100001809","name":"the National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["72203029"],"award-info":[{"award-number":["72203029"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"name":"the Youth Foundation Project for Humanities and Social Sciences Research of the Ministry of Education","award":["22YJCZH210"],"award-info":[{"award-number":["22YJCZH210"]}]}],"content-domain":{"domain":["www.mdpi.com"],"crossmark-restriction":true},"short-container-title":["Algorithms"],"abstract":"<jats:p>With the escalating global cyber threats, Distributed Denial of Service (DDoS) attacks have become one of the most disruptive and prevalent network attacks. Traditional DDoS detection systems face significant challenges due to the unpredictable nature, diverse protocols, and coupled behavioral patterns of attack traffic. To address this issue, this paper proposes a novel approach for DDoS attack detection by leveraging the Transformer architecture to model both temporal dependencies and behavioral patterns, significantly improving detection accuracy. We utilize the global attention mechanism of the Transformer to effectively capture long-range temporal correlations in network traffic, and the model\u2019s ability to process multiple traffic features simultaneously enables it to identify nonlinear interactions. By reconstructing the CIC-DDoS2019 dataset, we strengthen the representation of attack behaviors, enabling the model to capture dynamic attack patterns and subtle traffic anomalies. This approach represents a key contribution by applying Transformer-based self-attention mechanisms to accurately model DDoS attack traffic, particularly in handling complex and dynamic attack patterns. Experimental results demonstrate that the proposed method achieves 99.9% accuracy, with 100% precision, recall, and F1 score, showcasing its potential for high-precision, low-false-alarm automated DDoS attack detection. This study provides a new solution for real-time DDoS detection and holds significant practical implications for cybersecurity systems.<\/jats:p>","DOI":"10.3390\/a18100628","type":"journal-article","created":{"date-parts":[[2025,10,6]],"date-time":"2025-10-06T13:33:41Z","timestamp":1759757621000},"page":"628","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":8,"title":["A Transformer-Based Framework for DDoS Attack Detection via Temporal Dependency and Behavioral Pattern Modeling"],"prefix":"10.3390","volume":"18","author":[{"given":"Yi","family":"Li","sequence":"first","affiliation":[{"name":"School of Digital Arts & Design, Dalian Neusoft University of Information, Dalian 116023, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xingzhou","family":"Deng","sequence":"additional","affiliation":[{"name":"School of Maritime Economics and Management, Dalian Maritime University, Dalian 116026, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ang","family":"Yang","sequence":"additional","affiliation":[{"name":"School of Maritime Economics and Management, Dalian Maritime University, Dalian 116026, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2857-5266","authenticated-orcid":false,"given":"Jing","family":"Gao","sequence":"additional","affiliation":[{"name":"UniSA STEM, University of South Australia, Adelaide, SA 5001, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2025,10,4]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"5873","DOI":"10.1109\/TNSM.2024.3431701","article-title":"BCDM: An Early-Stage DDoS Incident Monitoring Mechanism Based on Binary-CNN in IPv6 Network","volume":"21","author":"Wang","year":"2024","journal-title":"IEEE Trans. Netw. Serv. Manag."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"105","DOI":"10.1057\/s41278-023-00276-8","article-title":"Port cyberattacks from 2011 to 2023: A literature review and discussion of selected cases","volume":"26","author":"Senarak","year":"2024","journal-title":"Marit. Econ. Logist."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"1679","DOI":"10.1109\/TNSM.2022.3142254","article-title":"An online entropy-based DDoS flooding attack detection system with dynamic threshold","volume":"19","author":"Tsobdjou","year":"2022","journal-title":"IEEE Trans. Netw. Serv. Manag."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"101037","DOI":"10.1016\/j.measen.2024.101037","article-title":"Enhancing DDoS attack detection with hybrid feature selection and ensemble-based classifier: A promising solution for robust cybersecurity","volume":"32","author":"Hossain","year":"2024","journal-title":"Meas. Sens."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"13098","DOI":"10.1038\/s41598-024-84879-y","article-title":"Distributed denial-of-service (DDOS) attack detection using supervised machine learning algorithms","volume":"15","author":"Abiramasundari","year":"2025","journal-title":"Sci. Rep."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"90","DOI":"10.1186\/s13638-021-01957-9","article-title":"A cooperative DDoS attack detection scheme based on entropy and ensemble learning in SDN","volume":"2021","author":"Yu","year":"2021","journal-title":"EURASIP J. Wirel. Commun. Netw."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"104823","DOI":"10.1016\/j.micpro.2023.104823","article-title":"An intelligent DDoS attack detection tree-based model using Gini index feature selection method","volume":"98","author":"Bouke","year":"2023","journal-title":"Microprocess. Microsystems"},{"key":"ref_8","first-page":"1","article-title":"DDoS attacks classification using SVM","volume":"19","author":"Ivanova","year":"2022","journal-title":"WSEAS Trans. Inf. Sci. Appl."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"27","DOI":"10.1016\/j.eij.2022.10.005","article-title":"Evaluation of Boruta algorithm in DDoS detection","volume":"24","author":"Farhana","year":"2023","journal-title":"Egypt. Inform. J."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"18159","DOI":"10.1038\/s41598-024-67984-w","article-title":"An entropy and machine learning based approach for DDoS attacks detection in software defined networks","volume":"14","author":"Hassan","year":"2024","journal-title":"Sci. Rep."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"13039","DOI":"10.1007\/s00500-021-06608-1","article-title":"Deep learning approaches for detecting DDoS attacks: A systematic review","volume":"27","author":"Mittal","year":"2023","journal-title":"Soft Comput."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"16421","DOI":"10.1038\/s41598-024-66907-z","article-title":"Detection and mitigation of DDoS attacks based on multi-dimensional characteristics in SDN","volume":"14","author":"Wang","year":"2024","journal-title":"Sci. Rep."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"23906","DOI":"10.1109\/TITS.2022.3190432","article-title":"LSTM-based intrusion detection system for VANETs: A time series classification approach to false message detection","volume":"23","author":"Yu","year":"2022","journal-title":"IEEE Trans. Intell. Transp. Syst."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"4548","DOI":"10.1109\/TCE.2023.3326384","article-title":"VANET network traffic anomaly detection using GRU-based deep learning model","volume":"70","author":"ALMahadin","year":"2023","journal-title":"IEEE Trans. Consum. Electron."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"23239","DOI":"10.1038\/s41598-024-74214-w","article-title":"A novel multi-scale network intrusion detection model with transformer","volume":"14","author":"Xi","year":"2024","journal-title":"Sci. Rep."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1056705","DOI":"10.1049\/2024\/1056705","article-title":"DDoS-MSCT: A DDoS Attack Detection Method Based on Multiscale Convolution and Transformer","volume":"2024","author":"Wang","year":"2024","journal-title":"IET Inf. Secur."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"101527","DOI":"10.1016\/j.iot.2025.101527","article-title":"DDoSViT: IoT DDoS attack detection for fortifying firmware Over-The-Air (OTA) updates using vision transformer","volume":"30","author":"Ali","year":"2025","journal-title":"Internet Things"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"2071","DOI":"10.1109\/TNSM.2022.3211254","article-title":"R1dit: Privacy-preserving malware traffic classification with attention-based neural networks","volume":"20","author":"Barut","year":"2022","journal-title":"IEEE Trans. Netw. Serv. Manag."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"104826","DOI":"10.1016\/j.rineng.2025.104826","article-title":"DeepTransIDS: Transformer-Based Deep learning Model for Detecting DDoS Attacks on 5G NIDD","volume":"26","author":"Harshdeep","year":"2025","journal-title":"Results Eng."},{"key":"ref_20","first-page":"012043","article-title":"Network intrusion detection: A comparative study of four classifiers using the NSL-KDD and KDD\u201999 datasets","volume":"Volume 2161","author":"Devarakonda","year":"2022","journal-title":"Proceedings of the Journal of Physics: Conference Series"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"103251","DOI":"10.1016\/j.cose.2023.103251","article-title":"Towards DDoS attack detection using deep learning approach","volume":"129","author":"Aktar","year":"2023","journal-title":"Comput. Secur."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"102748","DOI":"10.1016\/j.cose.2022.102748","article-title":"A new DDoS attacks intrusion detection model based on deep learning for cybersecurity","volume":"118","author":"Akgun","year":"2022","journal-title":"Comput. Secur."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Becerra-Suarez, F.L., Fern\u00e1ndez-Roman, I., and Forero, M.G. (2024). Improvement of distributed denial of service attack detection through machine learning and data processing. Mathematics, 12.","DOI":"10.3390\/math12091294"}],"container-title":["Algorithms"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/10\/628\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T04:39:07Z","timestamp":1760071147000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/10\/628"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,4]]},"references-count":23,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2025,10]]}},"alternative-id":["a18100628"],"URL":"https:\/\/doi.org\/10.3390\/a18100628","relation":{},"ISSN":["1999-4893"],"issn-type":[{"value":"1999-4893","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,4]]}}}