boto3, botocore
Default SigV4 signing is HMAC and unaffected; SigV4a is ECDSA P-256; TLS follows the interpreter’s OpenSSL; the KMS model already includes ML-DSA and ML-KEM key specs.
- PyPI
boto3,botocore- Version cited
- 1.44.182 Dec 2026
- Downloads
- 2.4B/mo
Key exchange and encryption
PQ with action
PQ TLS on OpenSSL ≥3.5
Signatures and identity
Stopgap only
SigV4 HMAC; SigV4a ECDSA P-256
What to do
Run on an interpreter with OpenSSL ≥3.5, record where SigV4a is used, and move KMS P-256/Ed25519 signing keys to ML_DSA_65 or ML_DSA_87 once whatever verifies those signatures accepts ML-DSA.
Since 1 Dec 2026 AWS Security Blog post of 2 Dec 2026, generic. No post-1-Dec issues in boto, botocore or aws-crt-python mention PQ or SigV4a.
Details
Three separate controls#
The ASTRA report separates the ordinary botocore HTTPS transport, a possible native client path (awscrt), and API request signatures. Identify which one each call uses.
Request signing: SigV4 and SigV4a#
- SigV4 is HMAC-SHA256 and unaffected (AWS SigV4). boto3’s 2.4 billion monthly downloads mostly involve HMAC-signed requests.
- SigV4a “uses asymmetric signatures”: an ECDSA key pair “derived from your existing AWS secret access key”. SDKs switch to it automatically for multi-region requests. Because the key is derived deterministically from the long-term secret, a curve break would let an attacker forge SigV4a requests for that access key; it would not obviously recover the HMAC secret.
- In botocore 1.44.18 the endpoint rule sets that emit
sigv4aares3(Multi-Region Access Points),eventsandsesv2(EndpointIdglobal endpoints),cloudfront-keyvaluestore,sustainability, andpartnercentral-channel/partnercentral-revenue-measurement. STS listssigv4beforesigv4a(botocore regions.py). - These operations need
botocore[crt](awscrt 0.38.2,AwsSigningAlgorithm.V4_ASYMMETRIC).
Sources disagree. The ASTRA report cites AWS documentation that SigV4a is ECDSA-P256-SHA256 (signing elements) ASTRA. The Claude report says the SigV4a curve was not verified and lists it as an open question Claude.
TLS#
- Standard boto3 HTTP uses urllib3 and CPython
ssl, soX25519MLKEM768needs OpenSSL ≥3.5 (botocore httpsession.py, at 1.44.18, TLS page). - A live TLS test on 3 Dec 2026 found
sts.us-east-1.amazonaws.comands3.us-east-1.amazonaws.comnegotiatingX25519MLKEM768AGY. - For direct AWS KMS calls, CloudTrail
tlsDetails.keyExchangeshows the key exchange used on that call. Service-on-behalf-of calls may omit it, and it does not identify how a stored data key was wrapped (AWS KMS PQ TLS).
AWS KMS key specs in the botocore model#
KeySpec="ML_DSA_44" | "ML_DSA_65" | "ML_DSA_87",SigningAlgorithm="ML_DSA_SHAKE_256", andMessageType="EXTERNAL_MU"(compatible withcryptography 50+MLDSAMuHasher) or"RAW"AGY.ML_KEM_512/768/1024withEncapsulate/Decapsulate.- Classical specs still offered: ECC_NIST_P256, ECC_NIST_EDWARDS25519, ECC_SECG_P256K1 and RSA_2048/3072/4096 (AWS KMS key specs).
- securesystemslib PR #1251 (updated 3 Dec 2026) adds AWS KMS ML-DSA signing.
- AWS KMS creates and uses ML-DSA keys inside FIPS 140-3 Level 3 validated HSMs ASTRA (AWS KMS ML-DSA). Google Cloud KMS offers its PQ keys at the software level only (google-cloud-kms).
AWS managed services cannot use ML-DSA KMS keys yet#
The ASTRA report separates having ML-DSA in KMS from having it in the services built on KMS: Amazon Cognito, API Gateway JWT authorizers and AWS Certificate Manager still cannot use ML-DSA KMS keys ASTRA. Check what verifies a signature before moving its key.
Editorial note. Checked for this guide; not from the three reports. The conclusion holds, but the details differ by service.
- Amazon Cognito never uses customer KMS keys for tokens: it signs user-pool tokens with its own RSA-2048 keys, RS256 only (Cognito).
- API Gateway HTTP API JWT authorizers support only RSA-based algorithms (API Gateway). That rules out ES384 as well as ML-DSA, so RSA is the only stopgap for tokens verified there.
- Public ACM certificates showed no ML-DSA option. AWS Private CA has issued ML-DSA certificates, CRLs and OCSP responses since 10 Nov 2025 (announcement), and IAM Roles Anywhere has accepted them since Mar 2026 (announcement). For private PKI on AWS, an ML-DSA path exists.
Actions from the reports#
- Run on OpenSSL ≥3.5; AWS endpoints support
X25519MLKEM768(AGY). - Adopt AWS KMS ML-DSA for signing:
ML_DSA_65/ML_DSA_87viaboto3 >= 1.44.18(AGY). Move P-256/Ed25519 KMS signing keys to ML-DSA (Claude). - Note where SigV4a (multi-region S3, EventBridge and SESv2 global endpoints) is in use (Claude).
Statements#
AWS, 2 Dec 2026: “We’ve already migrated a significant majority of our API endpoints to support post-quantum cryptography and are accelerating our plans” (AWS Security Blog). Nothing in the boto, botocore or aws-crt-python repositories mentions PQ or SigV4a since 1 Dec.
Downloads#
boto3 2,436,457,820 and botocore 967,262,537 in the 30 days to 3 Dec 2026.
Full discussion: Infrastructure
Sources cited on this page 14
- AWS SigV4 docs.aws.amazon.com
- botocore regions.py github.com
- signing elements docs.aws.amazon.com
- botocore httpsession.py github.com
- at 1.44.18 github.com
- AWS KMS PQ TLS docs.aws.amazon.com
- AWS KMS key specs docs.aws.amazon.com
- #1251 github.com
- AWS KMS ML-DSA docs.aws.amazon.com
- Cognito docs.aws.amazon.com
- API Gateway docs.aws.amazon.com
- announcement aws.amazon.com
- announcement aws.amazon.com
- AWS Security Blog aws.amazon.com