Skip to content
IAM Insights

Explainers · Glossary

HMAC

HMAC

Hash-based message authentication code (HMAC): a keyed hash that proves a message came from someone holding a shared secret; both sides use the same key, so it cannot prove which of them signed.

In our briefings

What our briefings say about HMAC itself, with the most direct claims first.

  1. A macaroon is a bearer credential whose signature is a chain of HMACs: each caveat added to it is signed with the signature before it, and only the last signature travels with the token. So any holder can narrow a macaroon (to a range of storage chunks, to reads only, to one client IP) and pass it on without asking the issuer, but cannot remove a caveat. A third-party caveat goes further: it needs a separate discharge macaroon from another service, which the authors require to be bound to the authorizing macaroon before it is sent, so it cannot be replayed elsewhere.

    Macaroons, 2014: bearer tokens any holder can narrow but not widen, checkable only by the service that minted themBI-FIND-2014-0001

  2. The RFC's baseline profile "does not impose any strong requirement on the cryptographic algorithms" that Attesters and Verifiers support. Of the profiles the RFC defines, the TFM profile, which a token names as tag:psacertified.org,2023:psa#tfm, is the one that constrains them, and the authors say it does so "to improve interoperability between Attesters and Verifiers": a receiver MUST accept ES256, ES384 and ES512 signatures and three HMAC variants, and a sender MUST use one of them. Section 9 calls MAC authentication NOT RECOMMENDED because of key-management costs, which leaves a TFM receiver obliged to accept HMAC tokens that the RFC advises deployments against. Verifiers are also RECOMMENDED to keep accepting tokens in the earlier PSA_IOT_PROFILE_1 format, whose private-use claim keys are now deprecated, at least while their devices upgrade.

    Arm's PSA attestation RFC trusts two device states, and its Table 1 labels one as root-of-trust debugBI-FIND-2025-0569

  3. Several of RFC 7518's rules are hard limits a team can test. RSA keys used with the RS, PS, RSA1_5 and RSA-OAEP algorithms MUST be 2048 bits or larger, and an HMAC key MUST be at least as long as the hash output, 256 bits for HS256. ECDH-ES MUST generate a new ephemeral key for every key agreement. AES GCM requires a 96-bit IV and a 128-bit tag, and the same key MUST NOT be used more than 2^32 times. Other rules are softer: a PBES2 iteration count of at least 1000 is RECOMMENDED, and the RFC says implementations should set upper limits on the key sizes they accept, because large keys cost processing time.

    RFC 7518 (2015) required one JWS signing algorithm, the shared-secret HS256, and barred accepting "none" by defaultBI-FIND-2015-0023

›Cited in 18 briefings

Every briefing that discusses this term, newest first.

  1. Only BBS proofs stay unlinkable on reuse in the JSON Proof Algorithms draft

    Draft · · IETF Datatracker · Michael B. Jones et al. · Nov 16, 2026

  2. How long a shared attestation freshness tick stays acceptable is a security setting

    Draft · · IETF Datatracker · Henk Birkholz et al. · Nov 16, 2026

  3. Post-quantum certificates don't protect a client that still accepts classical roots

    Article · · IETF · Yaroslav Rosomakho et al. · Nov 12, 2026

  4. Web Bot Auth's working-group draft names a bot by its key URL and defines no revocation

    Draft · · IETF Datatracker · Thibault Meunier et al. · Oct 29, 2026

  5. OpenA2A's protocol proves an agent holds a key and scores its behaviour, but never says who it works for

    Draft · · IETF Datatracker · Abdel Fane, OpenA2A · Oct 6, 2026

  6. Stripe and Tempo propose paying for an HTTP request the way you log in to one, and leave the agent out

    Draft · · IETF Datatracker · Brendan Ryan et al. · Sep 9, 2026

  7. xChk ships human OIDC portfolios and a separate agent approval API

    Paper · · arXiv · Sean MacGuire · Jul 15, 2026

  8. An AI agent's refused action can be approved only by someone its mandate names, says a revised draft

    Draft · · IETF Datatracker · Lars Kersten Kroehl, CryptoKRI GmbH · May 21, 2026

  9. The draft replacing RFC 8725 requires rejecting malformed JWTs but only recommends denial-of-service limits

    Draft · · IETF datatracker · Yaron Sheffer et al. · Jan 12, 2026

  10. A2AS promises prompt-injection defense at no latency cost, and publishes no test of it

    Paper · · arXiv · Eugene Neelou et al. · Oct 8, 2025

  11. Arm's PSA attestation RFC trusts two device states, and its Table 1 labels one as root-of-trust debug

    Article · · RFC Editor · Hannes Tschofenig et al. · Jun 13, 2025

  12. ATFAA names identity inheritance as an agent threat and answers it with existing cloud policy tools

    Paper · · arXiv · Vineeth Sai Narajala et al. · Apr 28, 2025

  13. A valid RFC 9421 signature does not prove who signed; key and algorithm checks are left to each profile

    Article · · RFC Editor · Annabelle Backman et al. · Feb 1, 2024

  14. RFC 9053 allows identity inputs in COSE key derivation to be omitted

    Article · · IETF / RFC Editor · Jim Schaad · Aug 1, 2022

  15. RFC 8725: the caller, not the JWT header, picks the algorithm, and "none" is discouraged, not banned

    Article · · RFC Editor · Yaron Sheffer et al. · Feb 2020

  16. JWE’s JSON headers can sit outside integrity protection

    Article · · Michael B. Jones et al. · May 1, 2015

  17. RFC 7518 (2015) required one JWS signing algorithm, the shared-secret HS256, and barred accepting "none" by default

    Article · · RFC Editor · Michael B. Jones, Microsoft · May 1, 2015

  18. Macaroons, 2014: bearer tokens any holder can narrow but not widen, checkable only by the service that minted them

    Article · · NDSS Symposium 2014 (Google Research) · Arnar Birgisson et al. · Feb 23, 2014