Skip to main content

flaw.cloud CloudTrail Analysis

This dataset provides AWS attack techniques across various levels. Good for testing my knowledge! We will ingest these logs into Microsoft Sentinel and learn what is Sentinel and how to use it

1. Getting started with Microsoft Sentinel

1.1 Creating the workspace

Microsoft Sentinel requires a Log Analytics workspace to store and query ingested data. So create the workspace. Quite shitty that Azure need to do everything manually… I miss AWS!!! sentinel create log analytics workspace Create a new Log Analytics workspace sentinel deployment complete The deployment completes successfully. Let’s begin configuring Sentinel. log analytics workspace overview

1.1 Install AWS Solution from Content Hub

Sentinel Data connector provides pre built solutions with data connectors, analytics rules, and hunting queries. We need the Amazon Web Services solution to parse CloudTrail log format. aws solution in sentinel content hub Select it and click install. aws analytics rules expanded

1.1.1 Configure AWS S3 Data Connector

aws s3 connector configuration Open the Amazon Web Services S3 data connector. This connector ingests AWS CloudTrail, VPC Flow Logs, GuardDuty, and CloudWatch logs from S3 buckets. Let’s use the given powershell script to ingest our data… Sadly we need to be using S3 to feed the data to SIEM

1.1.2 Store Logs in AWS S3

The connector expects CloudTrail logs in an S3 bucket. Upload the flaw.cloud dataset files to an S3 bucket accessible by the connector role. s3 bucket with cloudtrail log files Create an S3 bucket and upload all log files shown.
Copy the role arn, sqs url and paste it sentinel s3 connector disconnected Done! sentinel s3 connector connected

1.2 Validate

Check the table exists by typing here awscloudtrail table
if the row is around 1.9M, then that’s successful!