In November 2013, we introduced AWS CloudTrail to trace person exercise and API utilization. AWS CloudTrail allows auditing, safety monitoring, and operational troubleshooting. CloudTrail data person exercise and API calls throughout AWS providers as occasions. CloudTrail occasions enable you to reply the questions of “who did what, the place, and when?”.
Not too long ago we have now improved the flexibility so that you can simplify your auditing and safety evaluation by utilizing AWS CloudTrail Lake. CloudTrail Lake is a managed information lake for capturing, storing, accessing, and analyzing person and API exercise on AWS for audit, safety, and operational functions. You may combination and immutably retailer your exercise occasions, and run SQL-based queries for search and evaluation.
We’ve got heard your suggestions that aggregating exercise info from numerous functions throughout hybrid environments is complicated and dear, however necessary for a complete image of your group’s safety and compliance posture.
In the present day we’re saying help of ingestion for exercise occasions from non-AWS sources utilizing CloudTrail Lake, making it a single location of immutable person and API exercise occasions for auditing and safety investigations. Now you’ll be able to consolidate, immutably retailer, search, and analyze exercise occasions from AWS and non-AWS sources, reminiscent of in-house or SaaS functions, in a single place.
Utilizing the brand new
PutAuditEvents API in CloudTrail Lake, you’ll be able to centralize person exercise info from disparate sources into CloudTrail Lake, enabling you to investigate, troubleshoot and diagnose points utilizing this information. CloudTrail Lake data all occasions in standardized schema, making it simpler for customers to devour this info to comprehensively and rapidly reply to safety incidents or audit requests.
CloudTrail Lake can be built-in with chosen AWS Companions, reminiscent of Cloud Storage Safety, Clumio, CrowdStrike, CyberArk, GitHub, Kong Inc, LaunchDarkly, MontyCloud, Netskope, Nordcloud, Okta, One Identification, Shoreline.io, Snyk, and Wiz, permitting you to simply allow audit logging via the CloudTrail console.
Getting Began to Combine Exterior Sources
You can begin to ingest exercise occasions from your individual information sources or companion functions by selecting Integrations beneath the Lake menu within the AWS CloudTrail console.
To create a brand new integration, select Add integration and enter your channel title. You may select the companion utility supply from which you wish to get occasions. For those who’re integrating with occasions from your individual functions hosted on-premises or within the cloud, select My customized integration.
For Occasion supply location, you’ll be able to select locations in your occasions from this integration. This permits your utility or companions to ship occasions to your occasion information retailer of CloudTrail Lake. An occasion information retailer can retain your exercise occasions for every week to as much as seven years. Then you’ll be able to run queries on the occasion information retailer.
Select both Use current occasion information shops or Create new occasion information retailer—to obtain occasions from integrations. To be taught extra about occasion information retailer, see Create an occasion information retailer within the AWS documentation.
You too can arrange the permissions coverage for the channel useful resource created with this integration. The knowledge required for the coverage depends on the mixing sort of every companion functions.
There are two varieties of integrations: direct and answer. With direct integrations, the companion calls the
PutAuditEvents API to ship occasions to the occasion information retailer in your AWS account. On this case, you want to present Exterior ID, the distinctive account identifier supplied by the companion. You may see a hyperlink to companion web site for the step-by-step information. With answer integrations, the applying runs in your AWS account and the applying calls the
PutAuditEvents API to ship occasions to the occasion information retailer in your AWS account.
To seek out the Integration sort in your companion, select the Accessible sources tab from the integrations web page.
After creating an integration, you’ll need to offer this Channel ARN to the supply or companion utility. Till these steps are completed, the standing will stay as incomplete. As soon as CloudTrail Lake begins receiving occasions for the built-in companion or utility, the standing area might be up to date to replicate the present state.
To ingest your utility’s exercise occasions into your integration, name the
PutAuditEvents API so as to add the payload of occasions. Make sure that there is no such thing as a delicate or personally figuring out info within the occasion payload earlier than ingesting it into CloudTrail Lake.
You may make a JSON array of occasion objects, which features a required user-generated ID from the occasion, the required payload of the occasion as the worth of EventData, and an non-compulsory checksum to assist validate the integrity of the occasion after ingestion into CloudTrail Lake.
"AuditEvents": [ "Id": "event_ID", "EventData": "event_payload", "EventDataChecksum": "optional_checksum", , ... ]
The next instance exhibits find out how to use the
put-audit-events AWS CLI command.
$ aws cloudtrail-data put-audit-events --channel-arn $ChannelArn --external-id $UniqueExternalIDFromPartner --audit-events "Id": "87f22433-0f1f-4a85-9664-d50a3545baef", "EventData":""eventVersion": .01","eventSource":"MyCustomLog2", ...", , "Id": "7e5966e7-a999-486d-b241-b33a1671aa74", "EventData":""eventVersion": .02","eventSource":"MyCustomLog1", ...", "EventDataChecksum":"848df986e7dd61f3eadb3ae278e61272xxxx",
On the Editor tab within the CloudTrail Lake, write your individual queries for a brand new built-in occasion information retailer to verify delivered occasions.
You may make your individual integration question, like getting all principals throughout AWS and exterior sources which have made API calls after a selected date:
SELECT userIdentity.principalId FROM $AWS_EVENT_DATA_STORE_ID WHERE eventTime > '2022-09-24 00:00:00' UNION ALL SELECT eventData.userIdentity.principalId FROM $PARTNER_EVENT_DATA_STORE_ID WHRERE eventData.eventTime > '2022-09-24 00:00:00'
To be taught extra, see CloudTrail Lake occasion schema and pattern queries that can assist you get began.
You may see the record of our launch companions to help a CloudTrail Lake integration possibility within the Accessible sources tab. Listed here are weblog posts and bulletins from our companions who collaborated on this launch (some might be added within the subsequent few days).
AWS CloudTrail Lake now helps ingesting exercise occasions from exterior sources in all AWS Areas the place CloudTrail Lake is obtainable at the moment. To be taught extra, see the AWS documentation and every companion’s getting began guides.
In case you are interested by turning into an AWS CloudTrail Accomplice, you’ll be able to contact your regular companion contacts.