highest accuracy is equal to 0.50 for dataset 1. In this 
case, we need to have information about the 0.20 of 
the most popular traffic in the tested network. If we 
have  knowledge  about  0.50  of  the  traffic,  then  the 
accuracy  is  equal  to  0.16.  For  dataset  number  3 
(knowledge  about  0.80  of  traffic),  the  accuracy  is 
equal only to 0.05. If we create the targeted dataset 
without  any  knowledge  about  the  training  datasets, 
then the accuracy is equal to 0.41. 
Table 7: The extra test results for the MLP classifier for case 
study 2.  
Dataset – Similarity Level  Accuracy  
Dataset 1: SLI = 0.2T for F
1
 
(Top 20% from training data) 
0.50 
Dataset 2: SLI = 0.5T for F
1
 
(Top 50% from training data) 
0.16 
Dataset 3: SLI = 0.8T for F
1
 
(Top 80% from training data) 
0.05 
Dataset 4: SLI = 0.2L for F
1
 
(Last 20% from training data) 
0.02 
Dataset 5: SLI = 1T for F
2
 
(Top 100% from most popular public 
data) 
0.41 
5  CONCLUSIONS 
The machine learning methods used for the detection 
and  mitigation  of  DDoS  attacks  are  very  effective, 
especially for unknown attacks. Many models exist in 
the  literature,  which  have  very  high  accuracies, 
according to the tests based on the datasets split into 
train and test or train, validation and test subsets. In 
this  article,  we  performed targeted  UDP  DDoS 
attacks on machine learning models based on single 
packets and time series. We have shown that models 
with very high accuracy (0.97 and 0.99) in standard 
tests are not resistant to a targeted DDoS attack. The 
prepared tests  require different levels  of knowledge 
about the traffic, and one of the levels assumes that 
the attacker has no knowledge about the network. For 
ML  models,  which  analyze  single  packets,  the 
accuracy for targeted attacks is equal to a maximum 
of  only  0.20.  In  accuracy  for  ML  models,  which 
analyze  traffic  as  the  time  series,  the  accuracy  for 
targeted attacks is a maximum equal to 0.50. In our 
article,  we  have  proposed  a  new  method  of  testing 
ML  models  for  targeted  DDoS  attacks.  We  have 
created the algorithm for generating a targeted DDoS 
attack,  which  assumes  different  knowledge  levels 
about the tested traffic. In this article, we would like 
to show that it is important to extend the testing of the 
machine learning.  
REFERENCES 
Bouyeddou,  B.,  Kadri,  B.,  Harrou,  F.,  Sun,  Y.:  DDOS-
attacks  detection  using  an  effi-cient  measurement-
based  statistical  mechanism.  In:  Engineering  Science 
and Technol-ogy, an International Journal, Volume 23, 
Issue 4 (2020). 
ENISA  Threat  Landscape  2020  -  Distributed  denial  of 
service. https://www.enisa.europa.eu/publications/enisa-
threat-landscape-2020-distributed-denial-of-service 
Hodo,  E.,  Bellekens,  X.,  Hamilton,  A.,  Tachtatzis,  C., 
Atkin, R. – son: Shallow and deep networks intrusion 
detection system: A  taxonomy and survey,” In: arXiv 
preprint arXiv:1701.02145 (2017). 
Braga, R., Mota, E., & Passito, A.: Lightweight DDos 
Flooding Attack Detection Using NOX/OpenFlow. In: 
35th  Annual  IEEE  Conference  on  Local  Computer 
Networks. Denver, Colorado (2010). 
Idhammad, M., Adfel, K., & Belouch, M.: Detection 
System  of  HTTP  DDoS  Attacks  in  a  Cloud 
Environment Based on Information Theoretic Entropy 
and Random  Forest. In: Security  and Communication 
Networks, Volume 2018. 
Pei,  J.,  Chen,  Y.,  &  Ji,  W.:  A  DDoS  Attack  Detection 
Method  Based  on  Machine  Learning.  In:  Journal  of 
Physics, Conference Series 1237 032040 (2019). 
Santos, R., Souza, D., Santo, W., Ribeiro, A., Moreno, E.: 
Machine learning algorithms to detect DDoS attacks in 
SDN.  In:  Concurrency  Computat  Pract  Exper.  2019; 
e5402. John Wiley & Sons, Ltd. (2019). 
Sood, A., Enbody, R.: Targeted Cyber Attacks. In: Syngress 
(2014). 
Peraković, D., Periša, M., Cvitić, I., & Husnjak, S.: Model 
for  Detection  and  Classifica-tion  of  DDoS  Traffic 
Based on Artificial Neural Network. In: Telfor Journal, 
Vol. 9, No. 1 (2017). 
Saied, A., Overill, R. E., & Radzik, T.: Detection of known 
and  unknown  DDoS  attacks  using  Artificial  Neural 
Networks. In: Elsevier B.V (2015). 
Soodeh, H., Mehrdad, A.: The hybrid technique for DDoS 
detection  with  supervised  learning  algorithms.  In: 
Elsevier B.V (2019). 
Dataset FGRP_SSDP DDos Attack. University of Southern 
California-Information Sci-ences Institute (2020).