awwad / uptane

Uptane, security framework for automotive updates
https://uptane.github.io/
MIT License
10 stars 42 forks source link

Add attack functions to demo code #41

Closed vladimir-v-diaz closed 7 years ago

vladimir-v-diaz commented 7 years ago

Add functions to demo_oem_repo.py and demo_directory.py that simulate arbitrary and rollback attacks, respectively. These two additional functions are added to complete the demonstration sketch available here: https://github.com/awwad/uptane/issues/33#issuecomment-285072724

Note: For step 5 of the demonstration sketch, either the primary or secondary should be updated to display a "compromised" banner when it downloads a particular attack file (i.e.., our malicious file5.txt). Production code wouldn't have this specific check, but we should add it to the demo code for demonstration purposes.