AWS CloudTrail

AWS CloudTrail. CloudTrail log-file envelope containing API activity records.

aws json cloud audit

Source and collection

Configured trail delivery or event data store; event history is not a substitute for every data-event category.

Enable required management/data event categories and verify account/region coverage.

Native example and provenance

publisher documentation example. Published example; no independent capture provenance claimed.

Original publisher / pinned upstream fixture — preformatted example 3

One complete record selected; values unchanged.

Download the exact sample · Offline research kit

SHA-256: 909894e5ef0e45804331a23c050431b077049eded8d8bba42bf2225f1b385d4f

{"Records": [{
    "eventVersion": "1.08",
    "userIdentity": {
        "type": "IAMUser",
        "principalId": "EXAMPLE6E4XEGITWATV6R",
        "arn": "arn:aws:iam::123456789012:user/Mateo",
        "accountId": "123456789012",
        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
        "userName": "Mateo",
        "sessionContext": {
            "sessionIssuer": {},
            "webIdFederationData": {},
            "attributes": {
                "creationDate": "2023-07-19T21:11:57Z",
                "mfaAuthenticated": "false"
            }
        }
    },
    "eventTime": "2023-07-19T21:17:28Z",
    "eventSource": "ec2.amazonaws.com",
    "eventName": "StartInstances",
    "awsRegion": "us-east-1",
    "sourceIPAddress": "192.0.2.0",
    "userAgent": "aws-cli/2.13.5 Python/3.11.4 Linux/4.14.255-314-253.539.amzn2.x86_64 exec-env/CloudShell exe/x86_64.amzn.2 prompt/off command/ec2.start-instances",
    "requestParameters": {
        "instancesSet": {
            "items": [
                {
                    "instanceId": "i-EXAMPLE56126103cb"
                },
                {
                    "instanceId": "i-EXAMPLEaff4840c22"
                }
            ]
        }
    },
    "responseElements": {
        "requestId": "e4336db0-149f-4a6b-844d-EXAMPLEb9d16",
        "instancesSet": {
            "items": [
                {
                    "instanceId": "i-EXAMPLEaff4840c22",
                    "currentState": {
                        "code": 0,
                        "name": "pending"
                    },
                    "previousState": {
                        "code": 80,
                        "name": "stopped"
                    }
                },
                {
                    "instanceId": "i-EXAMPLE56126103cb",
                    "currentState": {
                        "code": 0,
                        "name": "pending"
                    },
                    "previousState": {
                        "code": 80,
                        "name": "stopped"
                    }
                }
            ]
        }
    },
    "requestID": "e4336db0-149f-4a6b-844d-EXAMPLEb9d16",
    "eventID": "e755e09c-42f9-4c5c-9064-EXAMPLE228c7",
    "readOnly": false,
    "eventType": "AwsApiCall",
    "managementEvent": true,
    "recipientAccountId": "123456789012",
    "eventCategory": "Management",
     "tlsDetails": {
        "tlsVersion": "TLSv1.2",
        "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
        "clientProvidedHostHeader": "ec2.us-east-1.amazonaws.com"
    },
    "sessionCredentialFromConsole": "true"
}]}

Structure and field interpretation

Observed structure in this specific sample
Field/pathSerialized type
Recordsarray
Records[0].eventVersionstr
Records[0].userIdentity.typestr
Records[0].userIdentity.principalIdstr
Records[0].userIdentity.arnstr
Records[0].userIdentity.accountIdstr
Records[0].userIdentity.accessKeyIdstr
Records[0].userIdentity.userNamestr
Records[0].userIdentity.sessionContext.attributes.creationDatestr
Records[0].userIdentity.sessionContext.attributes.mfaAuthenticatedstr
Records[0].eventTimestr
Records[0].eventSourcestr
Records[0].eventNamestr
Records[0].awsRegionstr
Records[0].sourceIPAddressstr
Records[0].userAgentstr
Records[0].requestParameters.instancesSet.itemsarray
Records[0].requestParameters.instancesSet.items[0].instanceIdstr
Records[0].responseElements.requestIdstr
Records[0].responseElements.instancesSet.itemsarray
Records[0].responseElements.instancesSet.items[0].instanceIdstr
Records[0].responseElements.instancesSet.items[0].currentState.codeint
Records[0].responseElements.instancesSet.items[0].currentState.namestr
Records[0].responseElements.instancesSet.items[0].previousState.codeint
Records[0].responseElements.instancesSet.items[0].previousState.namestr
Records[0].requestIDstr
Records[0].eventIDstr
Records[0].readOnlybool
Records[0].eventTypestr
Records[0].managementEventbool
Records[0].recipientAccountIdstr
Records[0].eventCategorystr
Records[0].tlsDetails.tlsVersionstr
Records[0].tlsDetails.cipherSuitestr
Records[0].tlsDetails.clientProvidedHostHeaderstr
Records[0].sessionCredentialFromConsolestr
Records
Native field; inspect its exact type and nesting in the complete example below.
eventVersion
Native field; inspect its exact type and nesting in the complete example below.
userIdentity
Native field; inspect its exact type and nesting in the complete example below.
eventName
Native field; inspect its exact type and nesting in the complete example below.
eventTime
Native field; inspect its exact type and nesting in the complete example below.

Investigation uses

Validation boundaries

Delivery can duplicate records; eventVersion and optional fields vary. A successful API call does not prove later resource behavior.

This sample passed byte-integrity and JSON/XML parsing checks, including the catalogue’s specified event discriminators. This is not a complete vendor-schema validation or a tested detection.

For a simulation, first parse this fixture offline, then create a separately labelled synthetic variant and test it against the intended collector in an isolated lab. Never replay public example identities or destinations into production.

Ecosystem connections

References

Sample provenance is linked above. Field availability and product behavior must be checked against the deployed version.