can-train-and-test<p dir="ltr"><b>This repository provides controller area network (CAN) datasets for the training and testing of machine learning schemes. The datasets are derived from the</b><b> can-dataset </b><b>and can-ml </b><b>repositories.</b></p><p dir="ltr">This repository contains controller area network (CAN) traffic for the 2017 Subaru Forester, the 2016 Chevrolet Silverado, the 2011 Chevrolet Traverse, and the 2011 Chevrolet Impala.</p><p dir="ltr">For each vehicle, there are samples of attack-free traffic--that is, normal traffic--as well as samples of various types of attacks.</p><p dir="ltr">The samples are stored in comma-separated values (CSV) format. All of the samples are labeled; attack frames are assigned "1," while attack-free frames are designated "0."</p><p dir="ltr">This repository has been curated into four sub-datasets, dubbed "set_01," "set_02," "set_03," and "set_04." For each sub-dataset, there are five subsets: one training subset and four testing subsets. Each subset contains both attack-free and attack data.</p><h3>Training/testing subsets:</h3><ul><li><b>train_01:</b> Train the model</li><li><b>test_01_known_vehicle_known_attack:</b> Test the model against a known vehicle (seen in training) and known attacks (seen in training)</li><li><b>test_02_unknown_vehicle_known_attack:</b> Test the model against an unknown vehicle (not seen in training) and known attacks (seen in training)</li><li><b>test_03_known_vehicle_unknown_attack:</b> Test the model against a known vehicle (seen in training) and unknown attacks (not seen in training)</li><li><b>test_04_unknown_vehicle_unknown_attack:</b> Test the model against an unknown vehicle (not seen in training) and unknown attacks (not seen in training)</li></ul><p dir="ltr">The known/unknown attacks are identified by the file names (e.g., DoS, fuzzing, etc.). The known/unknown vehicles are as follows:</p><ol><li><b>set_01</b></li><li><ul><li>known vehicle --- Chevrolet Impala</li><li>unknown vehicle --- Chevrolet Silverado</li></ul></li><li><b>set_02</b></li><li><ul><li>known vehicle --- Chevrolet Traverse</li><li>unknown vehicle --- Subaru Forester</li></ul></li><li><b>set_03</b></li><li><ul><li>known vehicle --- Chevrolet Silverado</li><li>unknown vehicle --- Subaru Forester</li></ul></li><li><b>set_04</b></li><li><ul><li>known vehicle --- Subaru Forester</li><li>unknown vehicle --- Chevrolet Traverse</li></ul></li></ol><p></p>