feat(aws): add transfer_server_pqc_ssh_kex_enabled check#11315
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Compliance Mapping ReviewThis PR adds new checks. Please verify that they have been mapped to the relevant compliance framework requirements. New checks already mapped in this PR
Use the |
|
✅ All necessary |
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #11315 +/- ##
===========================================
- Coverage 93.97% 2.78% -91.19%
===========================================
Files 237 858 +621
Lines 34829 25137 -9692
===========================================
- Hits 32729 701 -32028
- Misses 2100 24436 +22336
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
5 package(s) affected
|
18637b2 to
d4f3a73
Compare
Context
"Harvest now, decrypt later" attacks capture encrypted traffic today to decrypt it once a cryptographically relevant quantum computer exists. Since 2025, AWS Transfer Family ships security policies that add a hybrid post-quantum SSH key exchange (ML-KEM combined with classical ECDHE), but Prowler had no signal for whether a server actually uses one.
Description
Adds the
transfer_server_pqc_ssh_kex_enabledcheck. It evaluates every AWS Transfer Family server'sSecurityPolicyNameagainst a configurable allowlist of post-quantum policies (transfer_pqc_ssh_allowed_policies, defaults:TransferSecurityPolicy-2025-03,TransferSecurityPolicy-FIPS-2025-03,TransferSecurityPolicy-AS2Restricted-2025-07). A server passes when it uses one of these policies and fails otherwise. The deprecated*-PQ-SSH-Experimental-2023-04policies are intentionally excluded. Thetransferservice is extended to exposeSecurityPolicyName. Severity: low.Steps to review
prowler/providers/aws/services/transfer/transfer_server_pqc_ssh_kex_enabled/SecurityPolicyName:prowler/providers/aws/services/transfer/transfer_service.pypoetry run pytest tests/providers/aws/services/transfer/transfer_server_pqc_ssh_kex_enabled/ tests/providers/aws/services/transfer/transfer_service_test.py -vprowler aws --check transfer_server_pqc_ssh_kex_enabledChecklist
Community Checklist
SDK/CLI
transfer:ListServers/transfer:DescribeServerare already covered by the AWS managedSecurityAudit/ViewOnlyAccesspolicies.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.