PQ Python

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 sigv4a are s3 (Multi-Region Access Points), events and sesv2 (EndpointId global endpoints), cloudfront-keyvaluestore, sustainability, and partnercentral-channel / partnercentral-revenue-measurement. STS lists sigv4 before sigv4a (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, so X25519MLKEM768 needs 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.com and s3.us-east-1.amazonaws.com negotiating X25519MLKEM768 AGY.
  • For direct AWS KMS calls, CloudTrail tlsDetails.keyExchange shows 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", and MessageType="EXTERNAL_MU" (compatible with cryptography 50+ MLDSAMuHasher) or "RAW" AGY.
  • ML_KEM_512/768/1024 with Encapsulate/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_87 via boto3 >= 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.

Sources cited on this page 14
  1. AWS SigV4 docs.aws.amazon.com
  2. botocore regions.py github.com
  3. signing elements docs.aws.amazon.com
  4. botocore httpsession.py github.com
  5. at 1.44.18 github.com
  6. AWS KMS PQ TLS docs.aws.amazon.com
  7. AWS KMS key specs docs.aws.amazon.com
  8. #1251 github.com
  9. AWS KMS ML-DSA docs.aws.amazon.com
  10. Cognito docs.aws.amazon.com
  11. API Gateway docs.aws.amazon.com
  12. announcement aws.amazon.com
  13. announcement aws.amazon.com
  14. AWS Security Blog aws.amazon.com

All sources across the guide