HaJ3FgupAm8RrDJW3MHgT9X7Ft27eVaD
  • m-p{3}@lemmy.caOP
    link
    fedilink
    English
    arrow-up
    12
    ·
    7 days ago

    One way would be to generate a unique private key on the secure element / TPM and its public key stored on the server for validation. Each API request would need to be signed with a relatively short expiration time. That way the code never contains sensitive content such as an API key, an exploited device only holds in RAM a signed certificate that is valid for a short period of time, and the certificate can be revoked/blocklisted on the server if compromised.