Skip to content

Offline licenses and clock tampering #25

Answered by ezekg
DRoberts532 asked this question in Q&A
Discussion options

You must be logged in to vote

This is covered here: https://keygen.sh/docs/api/security/#security-clock-tampering. The gist of it is: you can't really prevent this attack vector, because what the offline device says is the time, frankly, is the time. However, you can make clock tampering harder to pull off. But the more defenses you add, the more complexity you add as well.

For example, you could assert the following for a License File (or signed key):

  • That issued date is not greater than the current UTC system time, indicating the user has set their system clock to the past, also known as clock tampering.
  • That expiry date is not less than the current UTC system time, indicating an expired license file.

Of course, t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DRoberts532
Comment options

Answer selected by ezekg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants