feat(googleworkspace): add gmail_dkim_enabled_all_domains security check#11381
feat(googleworkspace): add gmail_dkim_enabled_all_domains security check#11381puchy22 wants to merge 2 commits into
Conversation
Add new security check gmail_dkim_enabled_all_domains for googleworkspace provider. Includes check implementation, metadata, and unit tests.
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11381 +/- ##
==========================================
+ Coverage 93.96% 96.34% +2.38%
==========================================
Files 237 94 -143
Lines 34901 2542 -32359
==========================================
- Hits 32793 2449 -30344
+ Misses 2108 93 -2015
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
8 package(s) affected
|
Context
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing email headers, allowing receiving servers to verify that messages genuinely originate from the domain and were not altered in transit. Without DKIM, attackers can more easily spoof the organization's domains, increasing the risk of phishing, business email compromise, and reduced mail deliverability. Many receiving mail servers require DKIM to trust inbound messages, so missing DKIM records can also cause legitimate emails to be flagged or rejected.
Description
This check evaluates whether every mail-enabled domain in the Google Workspace tenant has DKIM signing enabled and authentication started. Because no public Admin SDK/API endpoint exposes the Gmail DKIM authentication status, the check returns a MANUAL status directing the administrator to verify DKIM configuration in the Admin Console (Apps > Google Workspace > Gmail > Authenticate email) and confirm via DNS TXT record lookup (e.g.,
dig TXT google._domainkey.<domain>). The recommended remediation is to generate and activate a 2048-bit DKIM signing key for each mail-enabled domain and publish the corresponding DNS TXT record.Steps to review
prowler/providers/googleworkspace/services/gmail/gmail_dkim_enabled_all_domains/prowler/compliance/googleworkspace/to ensure the check is correctly mapped to relevant requirementspoetry run pytest tests/providers/googleworkspace/services/gmail/gmail_dkim_enabled_all_domains/ -vChecklist
Community Checklist
SDK/CLI
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.