
SPaT Attack Detection and Evaluation dataset
SPaT Attack Detection and Evaluation dataset
pyprojEnsure Eclipse MOSAIC folder is placed next to the SPADE project folder as shown
├── SPADE
│ ...
│ ├── application
│ ├── scenarios
│ │ ├── 2lane3way
│ │ ├── 2lane3way-test
│ │ └── ...
│ ├── README.md
│ └── run_spade.sh
├── eclipse-mosaic-25.2
│ ...
│ └── mosaic.sh
MOSAIC scenarios are each within their respective folders under scenarios/.
Java application code is contained within the application folder.
run_spade.sh discovers scenario folders in scenarios/ by their
scenario_config.json and mapping/mapping_config.json files. Folders whose
names end in -test use TEST_SEEDS; other folders use SEEDS.
Execute permissions chmod +x ./run_spade.sh
Build and distribute application jar ./run_spade.sh build
Generation script dry run DRY_RUN=1 ./run_spade.sh
Run a smoke test with one low-density run per scenario and attack/benign class, using the first seed: ./run_spade.sh test
Run the full dataset generation ./run_spade.sh
Clean up script metadata files ./run_spade.sh clean
After generating runs under data/, convert their application CSV logs into
SPADE records with:
python3 process_spade.py
By default, the script reads data/ and writes per-vehicle JSON files to
processed/spade_records/. Use --input and --output to change these paths.
--message-ttl-seconds.