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.
Add functions to
demo_oem_repo.py
anddemo_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-285072724Note: 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.