<span class="pill kill-chain">_time</span>
<span class="pill kill-chain">app</span>
<span class="pill kill-chain">awsRegion</span>
<span class="pill kill-chain">aws_account_id</span>
<span class="pill kill-chain">command</span>
<span class="pill kill-chain">date_hour</span>
<span class="pill kill-chain">date_mday</span>
<span class="pill kill-chain">date_minute</span>
<span class="pill kill-chain">date_month</span>
<span class="pill kill-chain">date_second</span>
<span class="pill kill-chain">date_wday</span>
<span class="pill kill-chain">date_year</span>
<span class="pill kill-chain">date_zone</span>
<span class="pill kill-chain">dest</span>
<span class="pill kill-chain">dvc</span>
<span class="pill kill-chain">errorCode</span>
<span class="pill kill-chain">eventCategory</span>
<span class="pill kill-chain">eventID</span>
<span class="pill kill-chain">eventName</span>
<span class="pill kill-chain">eventSource</span>
<span class="pill kill-chain">eventTime</span>
<span class="pill kill-chain">eventType</span>
<span class="pill kill-chain">eventVersion</span>
<span class="pill kill-chain">eventtype</span>
<span class="pill kill-chain">host</span>
<span class="pill kill-chain">index</span>
<span class="pill kill-chain">linecount</span>
<span class="pill kill-chain">managementEvent</span>
<span class="pill kill-chain">msg</span>
<span class="pill kill-chain">object_category</span>
<span class="pill kill-chain">product</span>
<span class="pill kill-chain">punct</span>
<span class="pill kill-chain">readOnly</span>
<span class="pill kill-chain">recipientAccountId</span>
<span class="pill kill-chain">region</span>
<span class="pill kill-chain">requestID</span>
<span class="pill kill-chain">requestParameters.bypassPolicyLockoutSafetyCheck</span>
<span class="pill kill-chain">requestParameters.keyId</span>
<span class="pill kill-chain">requestParameters.policy</span>
<span class="pill kill-chain">requestParameters.policyName</span>
<span class="pill kill-chain">resources{}.ARN</span>
<span class="pill kill-chain">resources{}.accountId</span>
<span class="pill kill-chain">resources{}.type</span>
<span class="pill kill-chain">responseElements</span>
<span class="pill kill-chain">signature</span>
<span class="pill kill-chain">source</span>
<span class="pill kill-chain">sourceIPAddress</span>
<span class="pill kill-chain">sourcetype</span>
<span class="pill kill-chain">splunk_server</span>
<span class="pill kill-chain">src</span>
<span class="pill kill-chain">src_ip</span>
<span class="pill kill-chain">start_time</span>
<span class="pill kill-chain">tag</span>
<span class="pill kill-chain">tag::eventtype</span>
<span class="pill kill-chain">timeendpos</span>
<span class="pill kill-chain">timestartpos</span>
<span class="pill kill-chain">user</span>
<span class="pill kill-chain">userAgent</span>
<span class="pill kill-chain">userIdentity.accessKeyId</span>
<span class="pill kill-chain">userIdentity.accountId</span>
<span class="pill kill-chain">userIdentity.arn</span>
<span class="pill kill-chain">userIdentity.principalId</span>
<span class="pill kill-chain">userIdentity.sessionContext.attributes.creationDate</span>
<span class="pill kill-chain">userIdentity.sessionContext.attributes.mfaAuthenticated</span>
<span class="pill kill-chain">userIdentity.sessionContext.sessionIssuer.accountId</span>
<span class="pill kill-chain">userIdentity.sessionContext.sessionIssuer.arn</span>
<span class="pill kill-chain">userIdentity.sessionContext.sessionIssuer.principalId</span>
<span class="pill kill-chain">userIdentity.sessionContext.sessionIssuer.type</span>
<span class="pill kill-chain">userIdentity.sessionContext.sessionIssuer.userName</span>
<span class="pill kill-chain">userIdentity.type</span>
<span class="pill kill-chain">userName</span>
<span class="pill kill-chain">user_access_key</span>
<span class="pill kill-chain">user_agent</span>
<span class="pill kill-chain">user_arn</span>
<span class="pill kill-chain">user_group_id</span>
<span class="pill kill-chain">user_id</span>
<span class="pill kill-chain">user_name</span>
<span class="pill kill-chain">user_type</span>
<span class="pill kill-chain">vendor</span>
<span class="pill kill-chain">vendor_account</span>
<span class="pill kill-chain">vendor_product</span>
<span class="pill kill-chain">vendor_region</span>
</div>
Data Source: AWS CloudTrail PutKeyPolicy
Description
Data source object for AWS CloudTrail PutKeyPolicy
Details
Property | Value |
---|---|
Source | aws_cloudtrail |
Sourcetype | aws:cloudtrail |
Separator | eventName |
Supported Apps
- Splunk Add-on for AWS (version 7.8.0)
Event Fields
Example Log
1{"eventVersion": "1.08", "userIdentity": {"type": "AssumedRole", "principalId": "AROAIJIESMXKGCJRCTPR6:pbareiss@splunk.local", "arn": "arn:aws:sts::111111111111:assumed-role/okta_adm_role/pbareiss@splunk.local", "accountId": "111111111111", "accessKeyId": "ASIAYTOGP2RLK74OPBDR", "sessionContext": {"sessionIssuer": {"type": "Role", "principalId": "AROAIJIESMXKGCJRCTPR6", "arn": "arn:aws:iam::111111111111:role/okta_adm_role", "accountId": "111111111111", "userName": "okta_adm_role"}, "webIdFederationData": {}, "attributes": {"mfaAuthenticated": "false", "creationDate": "2021-01-11T09:03:18Z"}}}, "eventTime": "2021-01-11T11:04:39Z", "eventSource": "kms.amazonaws.com", "eventName": "PutKeyPolicy", "awsRegion": "us-west-2", "sourceIPAddress": "95.90.199.65", "userAgent": "aws-internal/3 aws-sdk-java/1.11.893 Linux/4.9.230-0.1.ac.223.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.272-b10 java/1.8.0_272 vendor/Oracle_Corporation", "requestParameters": {"keyId": "f2a82583-a7d3-4c92-8787-fe2baab1cee1", "policyName": "default", "policy": "{\n \"Version\": \"2012-10-17\",\n \"Id\": \"key-consolepolicy-3\",\n \"Statement\": [\n {\n \"Sid\": \"Enable IAM User Permissions\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111111111111:root\"\n },\n \"Action\": \"kms:*\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow access for Key Administrators\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111111111111:user/patrick_cli\"\n },\n \"Action\": [\n \"kms:Create*\",\n \"kms:Describe*\",\n \"kms:Enable*\",\n \"kms:List*\",\n \"kms:Put*\",\n \"kms:Update*\",\n \"kms:Revoke*\",\n \"kms:Disable*\",\n \"kms:Get*\",\n \"kms:Delete*\",\n \"kms:TagResource\",\n \"kms:UntagResource\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow use of the key\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111111111111:user/patrick_cli\"\n },\n \"Action\": [\n \"kms:Encrypt\",\n \"kms:Decrypt\",\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:DescribeKey\"\n ],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow attachment of persistent resources\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111111111111:user/patrick_cli\"\n },\n \"Action\": [\n \"kms:CreateGrant\",\n \"kms:ListGrants\",\n \"kms:RevokeGrant\"\n ],\n \"Resource\": \"*\",\n \"Condition\": {\n \"Bool\": {\n \"kms:GrantIsForAWSResource\": \"true\"\n }\n }\n },\n {\n \"Sid\": \"Allow use of the key\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"*\"\n },\n \"Action\": [\n \"kms:Encrypt\"\n ],\n \"Resource\": \"*\"\n }\n ]\n}", "bypassPolicyLockoutSafetyCheck": false}, "responseElements": null, "requestID": "c7836c7a-ca95-47aa-a3fb-a7db0d66fec8", "eventID": "612f17e3-2317-4dd9-8aa3-393bc8a7961b", "readOnly": false, "resources": [{"accountId": "111111111111", "type": "AWS::KMS::Key", "ARN": "arn:aws:kms:us-west-2:111111111111:key/f2a82583-a7d3-4c92-8787-fe2baab1cee1"}], "eventType": "AwsApiCall", "managementEvent": true, "eventCategory": "Management", "recipientAccountId": "111111111111"}
Source: GitHub | Version: 1