This guide covers the AWS services that write their logs directly into an S3 bucket:
Start with the "AWS Integration: Getting Started and Access Setup" article(https://socfortress.supportbench.net/ar-1138/). This guide is Step 2 of that process. Once your logs are flowing, go back to it to create the read-only access and test it.
Use one bucket for everything. All of these services can deliver to the same S3 bucket. The recommended approach is to let CloudTrail create the bucket (section 1), then point the other services at that same bucket using a different prefix (folder) for each.
As you go, note down for each service: the bucket, the prefix, the region(s), and any KMS key ARN. You'll send these to us at the end.
CloudTrail records API activity and console sign-ins across your account.
Using AWS Organizations? Create the trail from your management account and select Enable for all accounts in my organization. One organization trail then covers every account. Note your Organization ID.
Console:
socfortress-trail
acme-socfortress-logs
Trails created in the console log all regions by default, which is what we recommend.
Where the logs land: s3://BUCKET/AWSLogs/ACCOUNT_ID/CloudTrail/REGION/YYYY/MM/DD/
s3://BUCKET/AWSLogs/ACCOUNT_ID/CloudTrail/REGION/YYYY/MM/DD/
Note for SOCFortress: bucket name, KMS key ARN (if any), Organization ID (if an organization trail).
GuardDuty is AWS's managed threat detection service. Findings are exported to S3 and are always encrypted with a KMS key.
GuardDuty is regional. Enable it, and configure the export, in each region you use.
socfortress-guardduty
guardduty
Note for SOCFortress: bucket name, prefix (guardduty), KMS key ARN, and the region(s) where GuardDuty is enabled. Remember to add the kms:Decrypt statement for this key to the SOCFortress policy (Getting Started article, Step 3).
kms:Decrypt
VPC Flow Logs capture network traffic metadata (source, destination, port, accept or reject).
arn:aws:s3:::YOUR_LOG_BUCKET
Repeat for each VPC you want to monitor.
Where the logs land: s3://BUCKET/AWSLogs/ACCOUNT_ID/vpcflowlogs/REGION/YYYY/MM/DD/
s3://BUCKET/AWSLogs/ACCOUNT_ID/vpcflowlogs/REGION/YYYY/MM/DD/
Note for SOCFortress: the VPCs and regions enabled. Remember to add the ec2:DescribeFlowLogs statement to the SOCFortress policy (Getting Started article, Step 3).
ec2:DescribeFlowLogs
s3://YOUR_LOG_BUCKET/ALB
CLB
NLB
Bucket policy required: load balancers need permission to write to your bucket. If AWS shows a permissions error when you save, add the bucket policy from "Enable access logs for your load balancer" under Helpful documentation.Network Load Balancers only produce access logs for TLS listeners.
Bucket policy required: load balancers need permission to write to your bucket. If AWS shows a permissions error when you save, add the bucket policy from "Enable access logs for your load balancer" under Helpful documentation.
Network Load Balancers only produce access logs for TLS listeners.
Note for SOCFortress: load balancer type(s) (ALB / CLB / NLB), the prefix used for each, and the region(s).
These record requests made to other buckets you want to monitor.
s3://YOUR_LOG_BUCKET/s3-server-logs/
Repeat for each bucket you want to monitor.
Don't enable server access logging on the log bucket itself, pointing back to itself. That creates an endless loop of log files.
Note for SOCFortress: the prefix (s3-server-logs) and which buckets are being logged.
s3-server-logs
Once logs are appearing in your bucket, go back to AWS Integration: Getting Started and Access Setup(https://socfortress.supportbench.net/ar-1138/) and complete Step 3 onward to create the read-only access, test it, and send us the details.
Wazuh
AWS
Was this article helpfu?
Thank you for voting
You are related to multiple companies. Please select the company you wish to login as.