Regarding Guard Duty

0

I have followed document and tried to configure the guard duty service for forwarding the logs to s3 bucket, everythings seems well but logs are not getting stored in bucket. Need help.

  • Please can you provide the bucket policy (removing any thing sensitive) pls

已提問 9 個月前檢視次數 253 次
1 個回答
2

Does your KMS key policy grant guardduty as stated in Guardduty Setup Documentation. KMS key policy would be as below:

   {    
       "Sid": "AllowGuardDutyKey",
       "Effect": "Allow",
       "Principal": {
           "Service": "guardduty.amazonaws.com"
       },
       "Action": "kms:GenerateDataKey",
       "Resource": "arn:aws:kms:Region1:444455556666:key/KMSKeyId",
       "Condition": {
           "StringEquals": {
               "aws:SourceAccount": "111122223333",
               "aws:SourceArn":    "arn:aws:guardduty:Region2:111122223333:detector/SourceDetectorID"	
           }
       }
   }

For bucket policy, follow the section Granting GuardDuty permissions to a bucket in the above mentioned documentaion.

Bucket and KMS key policy are two most common places, which prevents guarduty to write logs.

Hope you find this useful.

Comment here for additional questions.

Abhishek

profile pictureAWS
專家
已回答 9 個月前
profile picture
專家
已審閱 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南