Data Source: AWS CloudTrail CreateKey

Logs the creation of new AWS KMS keys, including details of key properties and associated metadata.

Property Value
Source aws_cloudtrail
Sourcetype aws:cloudtrail
Separator eventName
+ Fields

            1
            _time
          
            3
            app
          
            5
            awsRegion
          
            7
            aws_account_id
          
            9
            command
          
            11
            date_hour
          
            13
            date_mday
          
            15
            date_minute
          
            17
            date_month
          
            19
            date_second
          
            21
            date_wday
          
            23
            date_year
          
            25
            date_zone
          
            27
            dest
          
            29
            dvc
          
            31
            errorCode
          
            33
            eventCategory
          
            35
            eventID
          
            37
            eventName
          
            39
            eventSource
          
            41
            eventTime
          
            43
            eventType
          
            45
            eventVersion
          
            47
            eventtype
          
            49
            host
          
            51
            index
          
            53
            linecount
          
            55
            managementEvent
          
            57
            msg
          
            59
            object_category
          
            61
            product
          
            63
            punct
          
            65
            readOnly
          
            67
            recipientAccountId
          
            69
            region
          
            71
            requestID
          
            73
            requestParameters.bypassPolicyLockoutSafetyCheck
          
            75
            requestParameters.customerMasterKeySpec
          
            77
            requestParameters.description
          
            79
            requestParameters.keyUsage
          
            81
            requestParameters.origin
          
            83
            requestParameters.policy
          
            85
            resources{}.ARN
          
            87
            resources{}.accountId
          
            89
            resources{}.type
          
            91
            responseElements.keyMetadata.aWSAccountId
          
            93
            responseElements.keyMetadata.arn
          
            95
            responseElements.keyMetadata.creationDate
          
            97
            responseElements.keyMetadata.customerMasterKeySpec
          
            99
            responseElements.keyMetadata.description
          
            101
            responseElements.keyMetadata.enabled
          
            103
            responseElements.keyMetadata.encryptionAlgorithms{}
          
            105
            responseElements.keyMetadata.keyId
          
            107
            responseElements.keyMetadata.keyManager
          
            109
            responseElements.keyMetadata.keyState
          
            111
            responseElements.keyMetadata.keyUsage
          
            113
            responseElements.keyMetadata.origin
          
            115
            signature
          
            117
            source
          
            119
            sourceIPAddress
          
            121
            sourcetype
          
            123
            splunk_server
          
            125
            src
          
            127
            src_ip
          
            129
            start_time
          
            131
            tag
          
            133
            tag::eventtype
          
            135
            timeendpos
          
            137
            timestartpos
          
            139
            user
          
            141
            userAgent
          
            143
            userIdentity.accessKeyId
          
            145
            userIdentity.accountId
          
            147
            userIdentity.arn
          
            149
            userIdentity.principalId
          
            151
            userIdentity.sessionContext.attributes.creationDate
          
            153
            userIdentity.sessionContext.attributes.mfaAuthenticated
          
            155
            userIdentity.sessionContext.sessionIssuer.accountId
          
            157
            userIdentity.sessionContext.sessionIssuer.arn
          
            159
            userIdentity.sessionContext.sessionIssuer.principalId
          
            161
            userIdentity.sessionContext.sessionIssuer.type
          
            163
            userIdentity.sessionContext.sessionIssuer.userName
          
            165
            userIdentity.type
          
            167
            userName
          
            169
            user_access_key
          
            171
            user_agent
          
            173
            user_arn
          
            175
            user_group_id
          
            177
            user_id
          
            179
            user_name
          
            181
            user_type
          
            183
            vendor
          
            185
            vendor_account
          
            187
            vendor_product
          
            189
            vendor_region
          
            191
            
          
...
not set
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-11T09:56:31Z", "eventSource": "kms.amazonaws.com", "eventName": "CreateKey", "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": {"origin": "AWS_KMS", "policy": "{\n    \"Id\": \"key-consolepolicy-3\",\n    \"Version\": \"2012-10-17\",\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}", "description": "", "customerMasterKeySpec": "SYMMETRIC_DEFAULT", "bypassPolicyLockoutSafetyCheck": false, "tags": [], "keyUsage": "ENCRYPT_DECRYPT"}, "responseElements": {"keyMetadata": {"aWSAccountId": "111111111111", "keyId": "f2a82583-a7d3-4c92-8787-fe2baab1cee1", "arn": "arn:aws:kms:us-west-2:111111111111:key/f2a82583-a7d3-4c92-8787-fe2baab1cee1", "creationDate": "Jan 11, 2021, 9:56:30 AM", "enabled": true, "description": "", "keyUsage": "ENCRYPT_DECRYPT", "keyState": "Enabled", "origin": "AWS_KMS", "keyManager": "CUSTOMER", "customerMasterKeySpec": "SYMMETRIC_DEFAULT", "encryptionAlgorithms": ["SYMMETRIC_DEFAULT"]}}, "requestID": "3356af25-a237-471f-ba5e-abb37d4a256f", "eventID": "f09518ac-5ae5-4214-80ee-4f23ccdedd4c", "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: 2