Pinned source and roles
The normative source is SEP-10 at commit0dc4592cb44dda1943341016f076e9326874daed. The standards baseline records its digest.
Resolve and pin these roles before requesting a challenge. A redirect, DNS change, or key change cannot silently rewrite the suite lock.
Safe test boundary
Use synthetic Stellar testnet accounts and a verified controlled service. The challenge’s sequence number is zero specifically so it cannot be executed on Stellar, but a malformed response might contain a valid transaction. Therefore:- decode XDR with the locked network passphrase and bounded parser;
- perform every structural, account, operation, time, and signature assertion locally;
- reject unexpected operations, sources, signatures, fee behavior, and network values;
- only then ask the isolated fixture signer to sign the exact verified envelope hash;
- submit it only to the approved token endpoint, never Horizon or RPC;
- destroy automated signing material at fixture expiry.
Challenge request matrix
Exercise each supported identity form independently:
A memo is permitted only with a classic account and must be an ID memo. Do not send a memo with a muxed account. Test omitted and explicit
home_domain behavior only when the target advertises multi-domain support.
Challenge response checks
On the successful response, require the pinned response status and JSON shape, decode the XDR, and validate:- transaction source equals the Server Account;
- sequence number is exactly zero;
- time bounds exist and the runner clock is currently within them;
- the optional memo exactly matches the valid request;
- at least one operation exists;
- the first operation is Manage Data sourced by the Client Account;
- its key is the selected Home Domain followed by
authand fits the 64-character limit; - its value is exactly 64 bytes representing a cryptographic-quality 48-byte random nonce encoded as specified;
- the envelope has a correct Server Account signature under the locked network passphrase;
- the
web_auth_domainoperation is sourced by the Server Account and has the expected value; - a present
client_domainoperation is sourced by the discovered Client Domain Account and matches the requested domain; - every other permitted future-reserved Manage Data operation is sourced by the Server Account;
- the optional
network_passphrase, when returned, matches the locked network.
Client-domain checks
When the target chooses to verify the requested client domain, retrieve its SEP-1 file under the same discovery safety controls, extract a classicG... SIGNING_KEY, and pin the body and key digests. Verify the client-domain signature separately and require the resulting session token to carry the matching client_domain claim.
If the server attempts verification but cannot fetch the client-domain signing key, test the pinned error behavior. If the server does not support or select that domain for verification, test the upstream behavior separately; do not mislabel an optional unsupported-domain decision as signature success.
Signer and threshold checks
For an existing account, obtain signer weights and thresholds from a fresh trusted Stellar testnet data source at verification time. Exclude the Server Account’s signature from client authority. Reject invalid, duplicate, unrelated, over-counted, and stale signer sets. Test the target’s declared policy explicitly:- medium threshold for authority comparable to moving funds;
- high threshold for complete account authority;
- a documented lower signer policy only when the application deliberately accepts its reduced assurance;
- master-key signature for a supported account that does not yet exist.
Token submission and replay
Submit the signed challenge using each encoding the pinned source requires: JSON and form-encoded. The server must repeat structural, time, server-signature, client-signature, client-domain, operation-source, sequence-zero, and selected-threshold validation before issuing a token. Replay the same signed challenge within and after its validity window. The service must not issue more than one session JWT for one challenge. Also test malformed base64, malformed XDR, missing signatures, wrong network, expired/future bounds, altered operations, wrong sources, under-threshold signatures, unrelated signatures, and an invalid client-domain signature. Rate and concurrency limits keep adversarial cases bounded. A policy or rate rejection is recorded separately from a malformed-challenge conformance result.Session JWT checks
Decode without trusting, select only an allowed algorithm/key, verify the signature, then validate the claims required by the pinned source:issidentifies the expected issuing server URI;subis the classic account, classic account plus memo separated as specified, or muxed account;iatis present and reasonable under recorded clock tolerance;expis present, after issue time, and not expired;client_domainis present and exact only when the verified challenge included it.
SECURITY or POLICY checks when selected, but they must not be called SEP-10 violations unless the pinned source requires them.
Never place a token value in evidence. Store only its header/claim allowlist, redaction labels, signature outcome, key identifier, timestamps, and token digest.
Fixture corpus
The released adapter must provide hashed fixtures for:- funded and unfunded classic accounts;
- classic accounts with ID memos and pairs of isolated memo users;
- muxed accounts and invalid muxed-plus-memo requests;
- low, medium, and high thresholds with master, third-party, server, duplicate, and unrelated signers;
- verified, unsupported, unreachable, mismatched, and incorrectly signed client domains;
- valid challenge JSON plus malformed XDR, sequence, time, nonce, operation, source, memo, network, and signature variants;
- successful JSON and form token submissions plus replay, expiry, and concurrency cases;
- valid and invalid session JWT claims, algorithms, keys, identity subjects, lifetimes, and optional domain claim.
Findings and remediation
Stable finding-detail links remain unavailable until the tagged rule pack publishes IDs and source anchors.