The invention belongs to the field of
wireless communication security, and discloses an
electromagnetic signal confrontation sample generation method based on
signal-
flow mapping and dynamic disturbance modeling. The method comprises the following steps: firstly, acquiring an original
signal by using
software-defined radio, dividing a time period by a sliding window, and training a classifier by using TimesNet; extracting
time domain and
frequency domain characteristics of each fragment, mapping the
time domain and
frequency domain characteristics into a network flow structure, and selecting core characteristics to set a disturbance target; generating a smooth disturbance curve by adopting a damping second-order
kinetic model, adjusting disturbance intensity and speed through parameters, and mapping back to a
signal domain to obtain an adversarial sample conforming to physical constraints; and if the classifier fails to be attacked, iteratively optimizing the parameters until success. Experiments show that in
wireless identification systems for
electric vehicle keys, automobile unlocking and the like, the accuracy rate can be reduced from 95% to 15%, meanwhile, disturbance energy is low, signal forms are kept consistent, and the
system has double values of actual combat and testing.