OpenSSH >=8.2 allows the use of FIDO2 authentication and the ssh-keygen command allows the creation of resident keys on FIDO2 tokens (such as a Yubikey). There is also the option of outputting attestation data during key generation with the write-attestation option. E.g.
ssh-keygen -t ed25519-sk -O resident -O write-attestation=id_ed25519-Yubikey.attest -O application=ssh:id_ed25519-Yubikey -f id_ed25519-Yubikey
Two questions:
What is the format of the attestation file that is created by OpenSSH?
Can the attestation data be used to verify the corresponding ssh public key was generated on a FIDO2 token, and hence only resides as a resident key on the Yubikey/FIDO2 token?