sev-attestation
Perform AMD SEV-SNP remote attestation to cryptographically verify VM identity and integrity. Use when proving a VM is running in a genuine AMD SEV-SNP confidential computing environment, verifying VM integrity before trusting it with secrets, checking SEV-SNP availability, generating attestation reports, validating AMD certificate chains (ARK/ASK/VCEK), or debugging attestation failures.
ๆ่ฝ่ฏดๆ
name: sev-attestation description: Perform AMD SEV-SNP remote attestation to cryptographically verify VM identity and integrity. Use when proving a VM is running in a genuine AMD SEV-SNP confidential computing environment, verifying VM integrity before trusting it with secrets, checking SEV-SNP availability, generating attestation reports, validating AMD certificate chains (ARK/ASK/VCEK), or debugging attestation failures.
sev-attestation
AMD SEV-SNP remote attestation for cryptographic VM identity verification.
Description
Perform AMD SEV-SNP (Secure Encrypted Virtualization - Secure Nested Paging) remote attestation to cryptographically verify VM identity and integrity. Use this skill when:
- Proving a VM is running in a genuine AMD SEV-SNP confidential computing environment
- Verifying the integrity of a confidential VM before trusting it with secrets
- Checking if SEV-SNP is available and properly configured
- Generating attestation reports for remote verification
- Validating AMD certificate chains (ARK โ ASK โ VCEK)
- Debugging attestation failures or certificate issues
Keywords: SEV-SNP, attestation, confidential computing, AMD, VCEK, certificate chain, remote attestation, VM identity, TCB, measurement
Workflow
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SEV-SNP Attestation Flow โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 1. Detection โ
โ Is SEV-SNP โ
โ available? โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโ โโโโโโโโโโโ
โ YES โ โ NO โ
โโโโโโฌโโโโโ โโโโโโฌโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ 2. Generate โ โ Exit with โ
โ Report โ โ helpful error โ
โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 3. Display โ
โ Report Info โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 4. Fetch AMD โ
โ Certificates โ
โ (ARK, ASK, VCEK)โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 5. Verify โ
โ Cert Chain โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 6. Verify โ
โ Report Sig โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ PASSED or โ
โ FAILED โ
โโโโโโโโโโโโโโโโโโโ
Quick Start
Check if SEV-SNP is Available
./scripts/detect-sev-snp.sh
Run Full Attestation
./scripts/full-attestation.sh [output_dir]
This runs the complete 6-step attestation workflow and outputs PASSED or FAILED.
Individual Steps
Each step can be run independently for debugging or custom workflows:
| Script | Purpose |
|---|---|
scripts/detect-sev-snp.sh | Check SEV-SNP availability |
scripts/generate-report.sh <output_dir> | Generate attestation report with nonce |
scripts/fetch-certificates.sh <report_file> <output_dir> | Fetch AMD certificates from KDS |
scripts/verify-chain.sh <certs_dir> | Verify certificate chain |
scripts/verify-report.sh <report_file> <certs_dir> | Verify report signature |
Prerequisites
- snpguest: Rust CLI from virtee/snpguest
- openssl: For certificate operations
- curl: For fetching certificates from AMD KDS
- Root access: Required to access
/dev/sev-guest
Install snpguest:
cargo install snpguest
Reference Documentation
- Report Fields - Attestation report field reference
- Error Codes - Common errors and troubleshooting
- Manual Verification - OpenSSL-based verification without snpguest
Technical Details
- AMD KDS URL:
https://kdsintf.amd.com - Certificate Chain: ARK (self-signed) โ ASK โ VCEK
- Report Signature: ECDSA P-384
- Device:
/dev/sev-guest(requires root or sev group membership)
ๅฆไฝไฝฟ็จใsev-attestationใ๏ผ
- ๆๅผๅฐ้พ่พAI๏ผWeb ๆ iOS App๏ผ
- ็นๅปไธๆนใ็ซๅณไฝฟ็จใๆ้ฎ๏ผๆๅจๅฏน่ฏๆกไธญ่พๅ ฅไปปๅกๆ่ฟฐ
- ๅฐ้พ่พAI ไผ่ชๅจๅน้ ๅนถ่ฐ็จใsev-attestationใๆ่ฝๅฎๆไปปๅก
- ็ปๆๅณๆถๅ็ฐ๏ผๆฏๆ็ปง็ปญๅฏน่ฏไผๅ