A 2FA secret is a private shared key stored by an account service and an authenticator app or device. The key is used to generate matching one-time codes, often based on the current time (TOTP) or a counter (HOTP). Unlike a single verification code, the secret can generate many valid codes.
If an attacker obtains a secret, they may be able to produce verification codes and bypass the second factor, depending on the account’s protections. Services should store and access these secrets carefully, limit their exposure to application processes, and support revoking or replacing them. In the Hex.pm incident context, 2FA secrets were among the data types whose exposure could not be ruled out; that does not establish that they were accessed or stolen. If a service suspects exposure, affected users may need to reset their authenticator setup.


