The invention discloses a method for generating a vehicle-mounted network simulation data set based on an intrusion attack, comprising the following steps: Step 1, according to five major network security attributes of confidentiality, integrity, usability, authenticity and auditability; Step 2 , analyze the characteristics and differences of vehicle network architectures and systems of different models, reverse technology and methods according to different protocols; step 3, build a real vehicle attack experiment platform through the vehicle bus test tool Vehicle Spy, and realize replay, spoofing, and flooding attack; step 4, based on the attack experiment platform in step 2, use a large amount of simulated attack data to conduct statistics and analysis of abnormal behavior; step 5, use programming languages such as Java, C, Python, etc. Offline data processing to construct a simulation data set. The method for generating the vehicle network simulation data set based on the intrusion attack of the present invention can effectively realize the generation of the data set based on the intrusion attack.