ministryofjustice / modernisation-platform

A place for the core work of the Modernisation Platform • This repository is defined and managed in Terraform
https://user-guide.modernisation-platform.service.justice.gov.uk
MIT License
680 stars 289 forks source link

Add role and policy for S3 malware protection #8566

Closed Khatraf closed 3 days ago

Khatraf commented 3 days ago

A reference to the issue / Description of it

8050

How does this PR fix the problem?

This PR adds a new role and policy configuration for GuardDuty S3 malware protection. This will help detect and mitigate malware in files uploaded to S3 buckets across our accounts. The policy gives permissions for: EventBridge Management: Managing rules and targets specific to GuardDuty operations. S3 Access: Accessing objects, managing bucket notifications, and handling validation objects for scanning. But also tagging so post-scan it will show if threat was found/not found. KMS: for decryption

More detailed information can be found here: https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-iam-policy-prerequisite.html

How has this been tested?

Please describe the tests that you ran and provide instructions to reproduce.

{Please write here}

Deployment Plan / Instructions

Will this deployment impact the platform and / or services on it?

{Please write here}

Checklist (check x in [ ] of list items)

Additional comments (if any)

{Please write here}