fix(permissions): add missing sesv2 permissions for SES checks#10925
Open
mohamedsolaiman wants to merge 1 commit intoprowler-cloud:masterfrom
Open
fix(permissions): add missing sesv2 permissions for SES checks#10925mohamedsolaiman wants to merge 1 commit intoprowler-cloud:masterfrom
mohamedsolaiman wants to merge 1 commit intoprowler-cloud:masterfrom
Conversation
Add sesv2:GetEmailIdentity and sesv2:ListEmailIdentities permissions to the Prowler additions policy and CloudFormation scan role template. The SES service in Prowler uses the SESv2 API (not the v1 SES API) to list and retrieve email identity details. These API calls require sesv2-specific permissions that are not covered by the AWS managed SecurityAudit policy, which only includes ses:Get* and ses:List* permissions for the v1 API. Without these permissions, the SES checks (including the DKIM check and the public access check) fail with AccessDenied errors when using the Prowler scan role, preventing proper security assessment of SES identities. Changes: - Added sesv2:GetEmailIdentity to prowler-additions-policy.json - Added sesv2:ListEmailIdentities to prowler-additions-policy.json - Added matching permissions to CloudFormation template
Contributor
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds missing
sesv2permissions to the Prowler additions policy and CloudFormation scan role template.Problem
The SES service in Prowler uses the SESv2 API (not the v1 SES API) to list and retrieve email identity details. The AWS managed
SecurityAuditpolicy only includesses:Get*andses:List*permissions for the v1 API, but does not coversesv2API calls.Without these permissions, the SES checks fail with
AccessDeniederrors when using the Prowler scan role:ses_identity_not_publicly_accessible- checks SES identity resource policiesses_identity_dkim_enabled(new) - checks DKIM signing statusChanges
Added to both
permissions/prowler-additions-policy.jsonandpermissions/templates/cloudformation/prowler-scan-role.yml:sesv2:GetEmailIdentity- required to retrieve email identity details including DKIM status and policiessesv2:ListEmailIdentities- required to list all email identities in the accountTesting
These permissions are the minimum required for the existing SES service code which calls:
regional_client.list_email_identities()→ requiressesv2:ListEmailIdentitiesregional_client.get_email_identity()→ requiressesv2:GetEmailIdentity