Security
Security review: NIST SP 800-63B revision 4
On this page
- Introduction
- The defect: a floor from the previous revision
- The second defect, introduced while fixing the first
- Everything else in §3.1.1.2
- Verdict
- The two SHALL NOTs this review had not covered (August 2026)
- §3.2 and §3.1's other verifier SHALLs (August 2026)
- The deviation
- §5 Session Management: reauthentication, and §2's phishing resistance (August 2026)
- Reauthentication timeouts
- Phishing resistance
- §4 Authenticator Event Management
- The gap: adding an authenticator is silent
- Why this is recorded rather than fixed
- §5 Session Management, completed
- That closes 800-63B-4's normative sections
- Syncable authenticators and account notifications (20 August 2026)
- Appendix: Syncable Authenticators (normative)
- Account Notifications: both SHALLs met
- §4.5 Invalidation: the subscriber could not request it (21 August 2026)
- §5.2 session timeouts, checked against the AAL tables
Introduction
The National Institute of Standards and Technology (NIST) is the United States standards agency. Its Special Publication (SP) 800-63B sets the technical requirements for authentication. That covers passwords, the other ways a person proves who they are, and sessions.
RFC 9700 governs OAuth; NIST SP 800-63B, Digital Identity Guidelines: Authentication and Authenticator Management governs the authentication itself. This is the second half of the security-standard review.
The standard has its own words. The organisation that keeps the accounts is the "CSP", and a "subscriber" is the person who holds one. A "verifier" checks that a person controls their authenticators, and here that is Signari. Three "authentication assurance levels", AAL1 to AAL3, say how much confidence a sign-in gives.
This page is for an auditor, a security reviewer, or an administrator who has to meet an authenticator assurance level (AAL). Each table gives a requirement, its level (SHALL, SHOULD and so on), and what Signari does. Dated sections record later passes, and the defects they found.
Revision checked: 4, the current one. That matters more than usual here, because revision 4 raised the minimum password length that revision 3 had set, and a number copied from revision 3 is now wrong.
The defect: a floor from the previous revision
Policy.MinLength was 8, with this comment:
MinLength is the floor. NIST SP 800-63B sets 8 as the minimum acceptable
That was correct for revision 3. Revision 4 §3.1.1.2 says:
Verifiers and CSPs SHALL require passwords that are used as a single-factor authentication mechanism to be a minimum of 15 characters in length. Verifiers and CSPs MAY allow passwords that are only used as part of multi-factor authentication processes to be shorter but SHALL require them to be a minimum of eight characters in length.
A stale citation like this is hard to spot: it names a real document, and the number was right when written, so it looks verified.
The default is now 15, because the policy does not know whether a second factor
will be present. A deployment that enforces multi-factor authentication (MFA) on
every account may lower it to MinLengthWithMFA; one that does not, may not.
Erring the other way would allow single-factor passwords below a SHALL. So the default is the number that is safe without knowing whether a second factor will be present.
The second defect, introduced while fixing the first
§3.1.1.2 also says:
If Unicode characters are accepted in passwords, the verifier SHOULD apply the normalization process for stabilized strings using the Normalization Form Canonical Composition (NFC) normalization... This process is applied before hashing the byte string that represents the password.
"é" is one code point or two, depending on the keyboard. So a password set on one platform and typed on another is a different byte string, and does not verify. It fails intermittently, for a minority of people, with no error anybody can act on.
The first implementation was inside Policy.Check, which takes the candidate by
value. The local copy was normalised, and every check inside Check saw the
right string, but the caller then hashed the original. The SHOULD appeared to be
implemented and affected nothing.
This is the same kind of defect this review found elsewhere: a control that looks present and is not. Here, the fix for a different defect produced it.
Normalisation now lives in Hasher.Hash and Hasher.Verify, the only two places
a password becomes bytes, where no caller can bypass it.
TestAHashOfOneUnicodeFormVerifiesTheOther is the test that distinguishes the two
implementations. "Both forms are accepted by the policy" passes either way. "A hash
of one verifies the other" only passes if the normalisation reached the hasher.
Removing it from the Hasher fails that test, with the message naming the cause.
Its fixtures are built from \u00e9 and e\u0301 escapes rather than literal
characters. The first version used two "café" literals that arrived
byte-identical, because something between the keyboard and the file normalised
them. The test compared a string with itself and tripped its own guard.
Everything else in §3.1.1.2
| Requirement | Level | Signari |
|---|---|---|
| Minimum 15 for single-factor | SHALL | was 8, now 15 |
| Maximum at least 64 | SHOULD | 1024 |
| Accept all printing ASCII and space | SHOULD | yes |
| Accept Unicode | SHOULD | yes |
| Each code point counted as one character | SHALL | yes: counted in runes, not bytes |
| No other composition rules | SHALL NOT | none. The only mention of symbols is an error message explaining why they are not required |
| No periodic forced change | SHALL NOT | none |
| Force a change on evidence of compromise | SHALL | yes: RecheckEvery re-consults the breach corpus at sign-in |
| No password hints | SHALL NOT | none stored |
| No knowledge-based authentication | SHALL NOT | none |
| Verify the password in full, no truncation | SHALL | over-length is refused, never truncated |
| NFC before hashing | SHOULD | now yes, in the Hasher |
| Blocklist including breach corpora, dictionary words, and context-specific words such as the username | SHALL | yes: breach corpus, a common-word list, and a username/identity check |
The compromise-detection row has two parts. §3.1.1.2 forbids periodic rotation and requires a forced change on evidence of compromise.
Rotating on a timer breaks the first. Checking a password only when it is chosen misses the second: a password that was clean when chosen, and appeared in a breach corpus a month later, is never caught.
RecheckEvery is the second. Sign-in is the only moment the plaintext exists to
check again, and the corpus only grows.
Verdict
One MUST-level defect from a stale revision, and one SHOULD implemented wrongly and then fixed. Eleven requirements were already right, including the two SHALL NOTs, composition rules and periodic rotation.
Revision 4 is final and remains the current revision. pages.nist.gov/800-63-4
describes it as "the final version of SP 800-63, Revision 4". This review is
against the right document.
The two SHALL NOTs this review had not covered (August 2026)
§3.1.1.2 carries two prohibitions as well as the length floor. Revision 4 raised both from revision 3's SHOULD NOT to SHALL NOT:
"Verifiers and CSPs SHALL NOT impose other composition rules (e.g., requiring mixtures of different character types) for passwords."
"Verifiers and CSPs SHALL NOT require users to change passwords periodically."
Signari complies with both, and did before this pass. There is no composition
check anywhere in internal/passwords, and no password-expiry column in any
migration. Two things were nonetheless wrong:
-
The code described a SHALL NOT as advice.
policy.gosaid NIST "advises against" composition rules. That is revision 3's strength, quoted at revision 4's number: the same stale citation recorded above forMinLength. It is corrected, and the requirement is now quoted rather than paraphrased. -
Nothing kept the absence in place. Both requirements are met by code that does not exist. A diff adding "must contain a digit" reads like tightening security, and nothing reminds a reviewer that a standard forbids it.
TestNoCompositionRulesAreImposednow accepts three passphrases with no uppercase, digit or symbol, so adding such a rule fails a test that says why.
The strength estimator is not a composition rule. It scores how many guesses a password would take. So a long lowercase passphrase
passes and Password1! does not, which is the opposite of what a composition rule
does.
§3.2 and §3.1's other verifier SHALLs (August 2026)
These were read from the document's own section list, not from this review's earlier scope, which stopped at §3.1.1.2. Three more SHALLs bind a verifier that implements what Signari implements.
| Requirement | Signari |
|---|---|
| §3.1.4 single-factor OTP: "Verifiers SHALL accept a given OTP only once while it is valid to provide replay resistance" | met: the last accepted counter is stored per credential and a repeat is refused (TestReplayIsRefused) |
| §3.1.2 look-up secrets: "A secret from a look-up secret authenticator SHALL be used successfully only once" | met: recovery codes are consumed by UPDATE … WHERE used_at IS NULL, so the row is spent by the statement that finds it and a concurrent second use affects no rows |
| §3.2.2 rate limiting: "The verifier SHALL limit consecutive failed authentication attempts using a specific authenticator on a single subscriber account to no more than 100 by disabling that authenticator" | met for authenticator apps and recovery codes since October 2026; deliberately deviated for passwords (see below) |
The deviation
Authenticator apps and recovery codes meet it, since October 2026. This row
used to say that time-based one-time passwords (TOTP) met it "comfortably",
because MaxTOTPFailures = 5 locks the credential. That was wrong.
The lock is a five-minute pause, and every failure after the fifth paused it again, with no end. It never disabled anything, so there was no ceiling at all. The real limit was a rate, about 288 guesses a day for as long as the attacker kept going. Recovery codes were not counted at all.
Now the failure that reaches 100 consecutive wrong codes (or a lower
SIGNARI_MFA_FAILURE_LIMIT) sets disabled_at. The authenticator app, or the
account's set of recovery codes, then accepts nothing until it is re-enrolled,
regenerated or removed by an administrator. A success resets the count, so it
counts consecutive failures.
A wrong code is charged only to the authenticator it could have been: six digits to the authenticator app, twenty recovery-code characters to the codes. A right code presented a second time is refused as a replay, and charged to nothing, since it is not a guess.
Until October 2026 a replayed code counted toward disabling the authenticator app. So replaying
a code somebody watched being typed was a way to switch the factor off
(TestAReplayedAuthenticatorCodeIsRefusedAndChargedToNothing).
The holder is notified, and mfa.factor_disabled is audited. Tests:
TestTheCeilingFailureDisablesTheAuthenticator,
TestRecoveryCodesAreDisabledAtTheCeiling,
TestTheCeilingFailureDisablesTheFactorAndTellsTheHolder.
The objection below does not apply here. Only somebody who has already passed the password step can reach the code step. That person can disable a factor, but a stranger cannot. And a disabled factor still counts as the account's second factor, so disabling it never lets a password sign in alone.
Passwords do not meet it as written. The protection is a windowed rate limit: 30 failures per 15 minutes per account, and 20 per 5 minutes per address. It is not a consecutive-failure counter that disables. An attacker willing to wait can therefore exceed 100 consecutive failures. It takes them about fifty minutes.
That is a deliberate choice, and the reasoning is in server.go. The per-account
key is chosen by whoever submits the form. So a counter that disables the
authenticator is a way to lock any named person out of their account, on demand.
Complying with §3.2.2 literally would mean 100 guesses disables anybody. That converts a brute-force defence into a denial-of-service (DoS) primitive, aimed at a person the attacker names.
So it is a known deviation from a SHALL, taken to avoid a worse failure mode. A deployment that needs AAL2 conformance on paper needs to know about it, so it is recorded as an open decision.
What would close it without the DoS is a very high consecutive-failure counter: 100, reset on any success. It would trigger a step-up requirement, not a disable. The account stays reachable to its owner through a second factor, and the attacker's 100 guesses buy them nothing. That is a design change, not a patch, so it is left as a decision rather than fixed here.
§5 Session Management: reauthentication, and §2's phishing resistance (August 2026)
The sections above cover authenticators. Reauthentication binds the session, and was not examined.
An earlier version of this section was headed "§4's AAL requirements", which was wrong. SP 800-63B-4's §2 is Authentication Assurance Levels, §4 is Authenticator Event Management, and the reauthentication timeouts live in §5 Session Management. The requirements quoted below were right; only the section number was wrong.
Reauthentication timeouts
| Overall timeout | Inactivity timeout | Signari | |
|---|---|---|---|
| AAL1 | SHALL exist; SHOULD ≤ 30 days | optional | met |
| AAL2 | SHALL exist; SHOULD ≤ 24 hours | SHOULD ≤ 1 hour | overall met; inactivity met when configured |
| AAL3 | SHALL ≤ 12 hours | SHOULD ≤ 15 minutes | overall met exactly by default; inactivity met when configured |
Updated October 2026. The overall timeout is the organisation's
session_lifetime_s, 12 hours unless changed (signari instance session-lifetime). It is written to sessions.absolute_not_after at sign-in and
never moves later.
A CHECK constraint holds the deadline every check reads, not_after, inside it,
so use cannot extend a session past it. It is a fixed ceiling, not a sliding
window. At the default it meets AAL2's SHOULD comfortably, and lands exactly on
AAL3's SHALL. An organisation that sets a longer lifetime gives up the AAL3
figure, and the command says nothing to stop it.
The inactivity timeout exists, and is off until it is set. -idle ends a
session that long after its last use. A use is the browser presenting the cookie,
or an application refreshing a token under it.
Until October 2026 there was none, and a session idle for eleven hours was as good as one used a minute ago. A deployment that wants AAL2's or AAL3's inactivity figure has to set it. The default keeps the earlier behaviour, so an upgrade signs nobody out.
Recording each use has a cost, so the use is written at most once a minute rather than on every request, folded into the statement that already resolves the cookie. That throttle is why the smallest idle limit is five minutes: a session in use always has minutes in hand.
Phishing resistance
"Verifiers SHALL offer at least one phishing-resistant authentication option at AAL2."
Met. WebAuthn is implemented across eight routes: registration begin and
finish, assertion, and the passkey signal endpoints (WebAuthn L3
signalAllAcceptedCredentials and friends). The sign-in form carries
autocomplete="username webauthn", so conditional UI works.
A passkey is origin-bound by construction, which is what makes it phishing-resistant. TOTP and email one-time passwords (OTP) are not, and neither would satisfy this on its own.
The SHALL is to offer one, not to require it. So having password-plus-TOTP available alongside does not affect conformance.
§4 Authenticator Event Management
SP 800-63B-4 §4 governs what happens across an authenticator's life: binding, loss, compromise and revocation. This review had not covered it before.
| Requirement | Signari |
|---|---|
| §4.1.2.1: "When an authenticator is added, the CSP SHALL notify the subscriber via a mechanism independent of the transaction binding the new authenticator" | met. Passkeys have been covered since 20 August 2026 (see Account Notifications below), authenticator apps and email codes since October 2026, and regenerated recovery codes as well. An SMS number was the last: proving one now tells every channel the account has (httpapi/enrol.go, mail.smsotp.enrolled), and this row said otherwise until November 2026. The section below is kept as the record of the gap |
| §4.3: "SHALL suspend, invalidate, or destroy compromised authenticators … promptly following compromise detection" | met: a credential can be removed from the account screen, and a session compromise revokes the refresh lineage |
| §4.5: "SHALL promptly invalidate authenticators when a subscriber account ceases to exist …, when requested by the subscriber, when the authenticator is compromised …" | met |
| §4.5: "SHOULD notify the subscriber when an authenticator is invalidated" | met for passkey removal (see §4.5 Invalidation below), and for an authenticator app or a set of recovery codes disabled at §3.2.2's ceiling |
The gap: adding an authenticator is silent
Enrolling a passkey or a TOTP credential writes an audit event and sends nothing. Enrolling an email OTP address does send mail. But that is the confirmation code, which is part of the binding transaction rather than independent of it. That is the distinction §4.1.2.1 draws. (It does carry the right warning: "If you did not ask to use this address for sign-in codes, somebody may be signed in to your account.")
The independence matters because of this attack: somebody obtains a live session, through a stolen cookie, a borrowed laptop or a session fixed before the victim noticed, and enrols their own authenticator.
They now hold a credential of their own on the victim's account, which survives a password change. The victim's only signal is an audit entry they are unlikely to read. A message to an address the attacker does not control turns that into something the victim can act on within minutes.
An audit event is a record for whoever investigates afterwards; a notification reaches the person who can stop the attack.
Why this is recorded rather than fixed
The mailer exists, and the enrolment paths already reach it, so the code is small. What is not small is the decision around it:
- Which channel is "independent", when the account may have only one address?
- What happens when mail delivery fails mid-enrolment: refuse the binding, or bind and log?
- Should an SMS-enrolled account be told by mail or by SMS?
Getting that wrong makes enrolment fragile, in a way people experience immediately.
It was recorded as an open decision. It is the first NIST gap this review has found that is a plain SHALL with no deviation argument behind it. That is unlike §3.2.2's rate limiting, where the deviation is deliberate and defensible.
§5 Session Management, completed
The reauthentication timeouts above are §5's, but §5 also binds the session secret itself. Seven requirements, all checked against source.
| §5 requirement | Signari |
|---|---|
| "established using input from an approved random bit generator … at least 64 bits in length" | 256 bits: newSID reads 32 bytes from crypto/rand.Reader, four times the floor |
| "SHALL be generated by the session host in direct response to an authentication event" | yes: minted at sign-in, never derived from anything the client supplies |
| "tagged to be accessible only on secure (i.e., HTTPS) sessions" | Secure: true |
| "tagged as inaccessible via JavaScript (i.e., HttpOnly)" | HttpOnly: true |
| "SameSite=Lax" or "SameSite=Strict" | SameSiteLaxMode, and the choice is reasoned in place: Strict drops the cookie on the top-level redirect back from an external identity provider, so the person lands signed in but not recognised |
| "accessible to the minimum practical hostnames and paths" | the cookie is named __Host-signari_session, and the __Host- prefix forbids a Domain attribute at the browser. That is stricter than the requirement, and enforced by the user agent rather than by Signari's code |
| "contain only an opaque string … SHALL NOT contain cleartext personal information" | an opaque 256-bit value. The code is explicit about why it is not the sid: "this value is a bearer credential and must never be published, whereas the sid it resolves to is public and appears in every ID token. Conflating the two is how an ID token becomes a session-stealing primitive." |
| "erased or invalidated by the session subject when the subscriber logs out" | both halves: clearSessionCookie expires it at the browser, and store.TerminateSessions (the only function permitted to end a session) revokes it server-side, so a retained cookie no longer works |
Nothing needed fixing. Before this pass, these requirements had been assumed met rather than checked.
That closes 800-63B-4's normative sections
§2 (AAL), §3 (authenticators and verifiers), §4 (authenticator event management) and §5 (session management) have now each been read against source. The rest, §6, §7 and §8 (Security, Privacy and Customer Experience Considerations), are informative and carry no verifier SHALLs.
When this was written, one SHALL was unmet: §4.1.2.1's binding notification.
It has since been closed for every authenticator, an SMS number
included. A number proved by its code is told to every channel the account has
(httpapi/enrol.go, the mail.smsotp.enrolled notice). A number it replaced
hears that its codes have moved.
One deliberate deviation stands: §3.2.2's consecutive-failure limit for passwords, taken to avoid a targeted denial of service. The authenticator half of §3.2.2 was recorded here as met, and it was not; October 2026 corrects that above. Everything else in the normative sections is met, and says where.
Syncable authenticators and account notifications (20 August 2026)
This pass was read against the published text, not from notes, using the document's own headings. It covers two areas that had not been checked line by line before.
Appendix: Syncable Authenticators (normative)
The appendix states that it "is normative". Its verifier requirements are about WebAuthn Level 3 flags. That is the same ground as the backup-flag defect fixed in August 2026, so the two pieces of work meet here.
| Requirement | Ours |
|---|---|
| UP: "Verifiers SHOULD confirm that the User Present flag has been set" | the library verifies it on every assertion |
| UV: "Verifiers SHALL indicate that UV is preferred and SHALL inspect responses to confirm the value of the UV flag" | a passkey sign-in goes further than "preferred" by default: BeginDiscoverableLogin passes VerificationRequired, so the library refuses an assertion without the flag. An organisation can set -user-verification preferred (signari webauthn policy), and then the response's own flag is inspected. A key asked for after a password (BeginSecondFactor, October 2026) passes VerificationPreferred: without verification it is a single-factor cryptographic authenticator, and with the password that is still two factors. After a key that did not verify, it passes VerificationRequired, and the response's flag is checked, so one key is not counted twice |
| "If the user is not verified, agencies SHALL treat the authenticator as a single-factor cryptographic authenticator" | amrForPasskey adds mfa only when this assertion's flag is set, and ACRFromAMR then yields ACRSingleFactor. It reads the flag from the assertion, not the stored credential's, which the library reports as set once it has ever been. Tested in amr_test.go across all four flag combinations, and end to end in webauthnceremony_test.go |
| BE: "necessary to distinguish authenticators that are device-bound from those that may be cloned" | stored since August 2026, and emitted as hwk vs swk in amr |
| BS: "Agencies SHOULD NOT condition acceptance based on this flag for public-facing applications" | Signari does not condition acceptance on it; it is recorded, and a 1→0 transition is audited |
The single-factor rule matters most. A tapped security key with no PIN or
biometric proves possession and nothing else. amr_test.go's first case asserts
that: ["user","hwk"], acr single-factor. If that yielded multi-factor, a tap
would satisfy every MFA requirement in the system.
Account Notifications: both SHALLs met
"When an authenticator is added, the CSP SHALL notify the subscriber via a mechanism independent of the transaction binding the new authenticator"
Was unmet; now implemented. Registering a passkey emails the account holder after the commit. The message names the authenticator, and gives instructions and contact information for the case where it was not them. The contact information is the other half of the requirement:
"The notification SHALL provide clear instructions, including contact information, in case the recipient repudiates the event associated with the notification."
Three details are part of the requirement:
- Independent of the transaction. Email, not a banner on the page that did it a moment ago. Whoever is holding the browser must not be the only one who finds out.
- After the commit. A notice about a registration that then rolled back would teach the recipient to ignore these messages.
- A send failure does not undo the registration. The credential is real by
then. Refusing it would leave the person holding an authenticator Signari has
forgotten. It is audited as
mfa.passkey_notice_failed, so an administrator can see that a required notification did not go out.
An attacker with momentary control of a session, through a borrowed laptop or a stolen cookie, could register their own passkey. They would gain durable access that outlives the session they took. Nothing told the owner, and people rarely visit the credential list.
"CSPs SHALL support at least two notification addresses per subscriber account."
Met since this was written. Every security notice now goes out through
notifyAccount. It sends to the account's email address and, when the account
has one, its verified SMS number (accountChannels in httpapi/notify.go). A
number that was never verified is left out: an address the account does not
control is worse than none.
The text below is kept as the record. At the time, only one email address was modelled per person, so a notice reached exactly one place. If the attacker held that mailbox, the account holder was not told.
§4.5 Invalidation: the subscriber could not request it (21 August 2026)
"CSPs SHALL promptly invalidate authenticators when a subscriber account ceases to exist..., when requested by the subscriber, when the authenticator is compromised, or when the CSP determines that the subscriber no longer meets its eligibility requirements."
There was no way to make the request. store.DeleteCredential was written, given
an ownership check and a last-credential guard, and tested. It had no caller
anywhere in the tree: no route, no CLI path, no Admin API path. Registering a
passkey was possible; removing one was not.
The notification added the day before told people to do this. That notice says: "If you did NOT add it, someone else may have had access to your account. Sign in, remove the passkey you do not recognise, and change your password." The instruction could not be followed.
POST /account/passkeys/delete now exists. Three properties, each tested:
- The last credential cannot be removed:
ErrWouldLockOut, enforced in the store where the count and the delete share one transaction, because two concurrent requests each seeing "two remain" would otherwise leave zero. - Another person's credential cannot be removed, and the answer is the same 404 whether it does not exist or belongs to somebody else. Distinguishing them would confirm which uuids are real.
- A cross-site request forgery (CSRF) token is required. Kill-checked: with the guard removed, a request carrying only a session cookie removes a passkey. Stripping a factor is what a cross-origin post would try to do, against an account the attacker knows is signed in somewhere.
§4.5 also says "The CSP SHOULD notify the subscriber when an authenticator is invalidated, as described in Sec. 4.6". So removal now sends the mirror of the binding notice. An attacker who removes a factor has made the account weaker, and a removed factor is hard for its owner to notice.
§5.2 session timeouts, checked against the AAL tables
"Periodic reauthentication of subscriber sessions SHALL be performed... A definite reauthentication overall timeout SHALL be established, which SHOULD be no more than 24 hours at AAL2. The inactivity timeout SHOULD be no more than 1 hour."
The overall timeout SHALL is met. Sessions carry not_after,
SweepExpiredSessions ends them at it, and every session lookup filters on
not_after > now(). So an expired session is refused even before the sweep
runs.
The inactivity timeout SHOULD is not met, which was already recorded. It has since been built, and is off until it is set: see reauthentication timeouts. §5.2 adds a detail: "Session activity SHALL reset the inactivity timeout". So the feature needs more than a second expiry column: it needs a write on every authenticated request, a cost to decide deliberately.
Signari's session cookie carries no MaxAge, which the original plan called a
mismatch against the 12-hour database value. It is not a defect. §5.2 says this is
correct: "Session secrets that are used as
bearer tokens for session management SHOULD NOT be persistent (i.e., retained
across a restart of the associated application or a reboot of the host device)".
A cookie with no MaxAge is a session cookie, which is what the sentence asks
for. The database holds the authoritative lifetime; the browser's copy ends when
the browser closes.
Changed Signari v0.2