This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
Hardware ID and Release Counter (Resolved Merge Conflicts, Cleaner Code and Tests) #157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of the PR:
This is new PR that reflects changes from a previous PR for Hardware ID and Release Counter.
Includes code that implements hardware IDs and Release Counters for ECUs and implemented 3 attacks:
All these attacks can be called in the script through the following, please see the function definitions for more advanced function calls:
The names correspond with the usual demos.
image_rollback_attack
di.image_rollback_attack("Attack1.img")
dd.image_rollback_attack("Attack1.img")
dp.update_cycle()
ds.update_cycle()
confused_bundle_attack
di.confused_bundle_attack("Attack2.img")
dd.confused_bundle_attack("Attack2.img")
dp.update_cycle()
ds.update_cycle()
sneaky_director_attack
di.sneaky_director_attack("Attack3.img")
dd.sneaky_director_attack("Attack3.img")
dp.update_cycle()
Summary of Changes:
Further Requirements:
More Testing
Greetings,
I have implemented release counters and hardwareIDs in all the relevant Uptane modules, including errors and exceptions linked to it.