Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "7.1.0"
changes:
- description: "[CloudTrail] Stop storing the assumed-role ARN session name in `user.changes.*` (which conflicts with ECS semantics). The session name is now added to `related.user` for cross-source correlation; when it is an email, both the full email and the local-part prefix are added. `user.name` continues to hold the IAM role name for detection rules."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- description: "[CloudTrail] Stop storing the assumed-role ARN session name in `user.changes.*` (which conflicts with ECS semantics). The session name is now added to `related.user` for cross-source correlation; when it is an email, both the full email and the local-part prefix are added. `user.name` continues to hold the IAM role name for detection rules."
- description: "Stop storing the assumed-role ARN session name in `user.changes.*`. The session name is now added to `related.user` for cross-source correlation; when it is an email, both the full email and the local-part prefix are added. `user.name` continues to hold the IAM role name for detection rules."

type: enhancement
link: https://github.com/elastic/integrations/pull/20318
- version: "7.0.0"
changes:
- description: Hide the CloudWatch, EBS, EC2, ECS, and S3 metric/log inputs when the Identity Federation setup access option is selected, since only the GuardDuty API input supports identity federation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"eventVersion":"1.05","userIdentity":{"type":"AssumedRole","principalId":"AROAIN5ATK5U7KEXAMPLE:firstname.lastname@example.com","arn":"arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com","accountId":"111111111111","accessKeyId":"AKIAI44QH8DHBEXAMPLE","sessionContext":{"attributes":{"mfaAuthenticated":"false","creationDate":"2019-10-02T21:50:54Z"},"sessionIssuer":{"type":"Role","principalId":"AROAIN5ATK5U7KEXAMPLE","arn":"arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b","accountId":"111111111111","userName":"AWSReservedSSO_SecurityAudit_8df5ccd37b"}}},"eventTime":"2019-10-02T22:12:29Z","eventSource":"sts.amazonaws.com","eventName":"AssumeRole","awsRegion":"us-east-2","sourceIPAddress":"81.2.69.144","userAgent":"aws-cli/1.16.248 Python/3.4.7 Linux/4.9.184-0.1.ac.235.83.329.metal1.x86_64 botocore/1.12.239","requestParameters":{"roleArn":"arn:aws:iam::111111111111:role/JohnRole2","roleSessionName":"firstname.lastname@example.com","durationSeconds":3600},"responseElements":{"credentials":{"accessKeyId":"ASIAWHOJDLGPOEXAMPLE","expiration":"Oct 2, 2019 11:12:29 PM","sessionToken":"EXAMPLETOKEN"},"assumedRoleUser":{"assumedRoleId":"AROAIFR7WHDTSOYQYHFUE:firstname.lastname@example.com","arn":"arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com"}},"requestID":"b96b0e4e-e561-11e9-8b3f-7b396EXAMPLE","eventID":"2a17948f-3042-46ec-98e2-62865EXAMPLE","eventType":"AwsApiCall","recipientAccountId":"111111111111"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"expected": [
{
"@timestamp": "2019-10-02T22:12:29.000Z",
"actor": {
"entity": {
"id": [
"arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b"
]
}
},
"aws": {
"cloudtrail": {
"event_type": "AwsApiCall",
"event_version": "1.05",
"flattened": {
"request_parameters": {
"durationSeconds": 3600,
"roleArn": "arn:aws:iam::111111111111:role/JohnRole2",
"roleSessionName": "firstname.lastname@example.com"
},
"response_elements": {
"assumedRoleUser": {
"arn": "arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com",
"assumedRoleId": "AROAIFR7WHDTSOYQYHFUE:firstname.lastname@example.com"
},
"credentials": {
"accessKeyId": "ASIAWHOJDLGPOEXAMPLE",
"expiration": "Oct 2, 2019 11:12:29 PM",
"sessionToken": "EXAMPLETOKEN"
}
}
},
"recipient_account_id": "111111111111",
"request_id": "b96b0e4e-e561-11e9-8b3f-7b396EXAMPLE",
"request_parameters": "{durationSeconds=3600, roleArn=arn:aws:iam::111111111111:role/JohnRole2, roleSessionName=firstname.lastname@example.com}",
"response_elements": "{assumedRoleUser={assumedRoleId=AROAIFR7WHDTSOYQYHFUE:firstname.lastname@example.com, arn=arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com}, credentials={accessKeyId=ASIAWHOJDLGPOEXAMPLE, sessionToken=EXAMPLETOKEN, expiration=Oct 2, 2019 11:12:29 PM}}",
"user_identity": {
"access_key_id": "AKIAI44QH8DHBEXAMPLE",
"arn": "arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com",
"session_context": {
"creation_date": "2019-10-02T21:50:54.000Z",
"mfa_authenticated": "false",
"session_issuer": {
"account_id": "111111111111",
"arn": "arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b",
"principal_id": "AROAIN5ATK5U7KEXAMPLE",
"type": "Role"
}
},
"type": "AssumedRole"
}
}
},
"cloud": {
"account": {
"id": "111111111111"
},
"region": "us-east-2"
},
"ecs": {
"version": "8.11.0"
},
"event": {
"action": "AssumeRole",
"category": [
"authentication"
],
"created": "2021-11-11T01:02:03.123456789Z",
"id": "2a17948f-3042-46ec-98e2-62865EXAMPLE",
"kind": "event",
"original": "{\"eventVersion\":\"1.05\",\"userIdentity\":{\"type\":\"AssumedRole\",\"principalId\":\"AROAIN5ATK5U7KEXAMPLE:firstname.lastname@example.com\",\"arn\":\"arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com\",\"accountId\":\"111111111111\",\"accessKeyId\":\"AKIAI44QH8DHBEXAMPLE\",\"sessionContext\":{\"attributes\":{\"mfaAuthenticated\":\"false\",\"creationDate\":\"2019-10-02T21:50:54Z\"},\"sessionIssuer\":{\"type\":\"Role\",\"principalId\":\"AROAIN5ATK5U7KEXAMPLE\",\"arn\":\"arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b\",\"accountId\":\"111111111111\",\"userName\":\"AWSReservedSSO_SecurityAudit_8df5ccd37b\"}}},\"eventTime\":\"2019-10-02T22:12:29Z\",\"eventSource\":\"sts.amazonaws.com\",\"eventName\":\"AssumeRole\",\"awsRegion\":\"us-east-2\",\"sourceIPAddress\":\"81.2.69.144\",\"userAgent\":\"aws-cli/1.16.248 Python/3.4.7 Linux/4.9.184-0.1.ac.235.83.329.metal1.x86_64 botocore/1.12.239\",\"requestParameters\":{\"roleArn\":\"arn:aws:iam::111111111111:role/JohnRole2\",\"roleSessionName\":\"firstname.lastname@example.com\",\"durationSeconds\":3600},\"responseElements\":{\"credentials\":{\"accessKeyId\":\"ASIAWHOJDLGPOEXAMPLE\",\"expiration\":\"Oct 2, 2019 11:12:29 PM\",\"sessionToken\":\"EXAMPLETOKEN\"},\"assumedRoleUser\":{\"assumedRoleId\":\"AROAIFR7WHDTSOYQYHFUE:firstname.lastname@example.com\",\"arn\":\"arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com\"}},\"requestID\":\"b96b0e4e-e561-11e9-8b3f-7b396EXAMPLE\",\"eventID\":\"2a17948f-3042-46ec-98e2-62865EXAMPLE\",\"eventType\":\"AwsApiCall\",\"recipientAccountId\":\"111111111111\"}",
"outcome": "success",
"provider": "sts.amazonaws.com",
"type": [
"info"
]
},
"related": {
"entity": [
"firstname.lastname@example.com",
"arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b",
"AKIAI44QH8DHBEXAMPLE",
"arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_SecurityAudit_8df5ccd37b/firstname.lastname@example.com",
"AWSReservedSSO_SecurityAudit_8df5ccd37b",
"arn:aws:iam::111111111111:role/JohnRole2"
],
"user": [
"firstname.lastname@example.com",
"firstname.lastname",
"AROAIN5ATK5U7KEXAMPLE:firstname.lastname@example.com",
"AWSReservedSSO_SecurityAudit_8df5ccd37b"
]
},
"source": {
"address": "81.2.69.144",
"geo": {
"city_name": "London",
"continent_name": "Europe",
"country_iso_code": "GB",
"country_name": "United Kingdom",
"location": {
"lat": 51.5142,
"lon": -0.0931
},
"region_iso_code": "GB-ENG",
"region_name": "England"
},
"ip": "81.2.69.144"
},
"tags": [
"preserve_original_event",
"actor_target_mapping"
],
"target": {
"entity": {
"id": [
"arn:aws:iam::111111111111:role/JohnRole2"
]
}
},
"user": {
"entity": {
"id": [
"arn:aws:iam::111111111111:role/AWSReservedSSO_SecurityAudit_8df5ccd37b"
]
},
"id": "AROAIN5ATK5U7KEXAMPLE:firstname.lastname@example.com",
"name": "AWSReservedSSO_SecurityAudit_8df5ccd37b",
"target": {
"entity": {
"id": [
"arn:aws:iam::111111111111:role/JohnRole2"
]
}
}
},
"user_agent": {
"device": {
"name": "Spider"
},
"name": "aws-cli",
"original": "aws-cli/1.16.248 Python/3.4.7 Linux/4.9.184-0.1.ac.235.83.329.metal1.x86_64 botocore/1.12.239",
"os": {
"full": "Linux 4.9.184",
"name": "Linux",
"version": "4.9.184"
},
"version": "1.16.248"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
"arn:aws:iam::111111111111:role/JohnRole2"
],
"user": [
"JohnRole1",
"AROAIN5ATK5U7KEXAMPLE:JohnRole1",
"JohnDoe",
"JohnRole1"
"JohnDoe"
]
},
"source": {
Expand Down Expand Up @@ -145,9 +145,6 @@
}
},
"user": {
"changes": {
"name": "JohnRole1"
},
"entity": {
"id": [
"arn:aws:iam::111111111111:role/JohnRole1"
Expand Down Expand Up @@ -293,9 +290,9 @@
"arn:aws:iam::111111111111:role/JohnRole2"
],
"user": [
"JohnRole1",
"AROAIN5ATK5U7KEXAMPLE:JohnRole1",
"JohnDoe",
"JohnRole1"
"JohnDoe"
]
},
"source": {
Expand Down Expand Up @@ -326,9 +323,6 @@
}
},
"user": {
"changes": {
"name": "JohnRole1"
},
"entity": {
"id": [
"arn:aws:iam::111111111111:role/JohnRole1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
"arn:aws:iam::000000000:role/ec2-instance-role"
],
"user": [
"i-06815aa7cf7d21f8f",
"pwncloud-backdoor-user",
"PRINCIPALID:i-06815aa7cf7d21f8f",
"ec2-instance-role",
"i-06815aa7cf7d21f8f"
"ec2-instance-role"
]
},
"service": {
Expand Down Expand Up @@ -138,9 +138,6 @@
"version_protocol": "tls"
},
"user": {
"changes": {
"name": "i-06815aa7cf7d21f8f"
},
"entity": {
"id": [
"arn:aws:sts::000000000:assumed-role/ec2-instance-role/i-06815aa7cf7d21f8f"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
"sg-038ccc3a1f7b05f42"
],
"user": [
"i-06815aa7cf7d21f8f",
"PRINCIPALID:i-06815aa7cf7d21f8f",
"ec2-instance-role",
"i-06815aa7cf7d21f8f"
"ec2-instance-role"
]
},
"service": {
Expand Down Expand Up @@ -162,9 +162,6 @@
"version_protocol": "tls"
},
"user": {
"changes": {
"name": "i-06815aa7cf7d21f8f"
},
"entity": {
"id": [
"arn:aws:sts::000000000:assumed-role/ec2-instance-role/i-06815aa7cf7d21f8f"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@
"RoleToBeAssumed"
],
"user": [
"MySessionName",
"AROAIDPPEZS35WEXAMPLE:AssumedRoleSessionName",
"RoleToBeAssumed",
"MySessionName"
"RoleToBeAssumed"
]
},
"source": {
Expand Down Expand Up @@ -353,9 +353,6 @@
"actor_target_mapping"
],
"user": {
"changes": {
"name": "MySessionName"
},
"entity": {
"id": [
"arn:aws:sts::123456789012:assumed-role/RoleToBeAssumed/MySessionName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
"arn:aws:sts::00000000000:assumed-role/private-ec2-instance-role/i-03cd6b2a7eb4bf3ae"
],
"user": [
"i-03cd6b2a7eb4bf3ae",
"PRINCIPALID:i-03cd6b2a7eb4bf3ae",
"private-ec2-instance-role",
"i-03cd6b2a7eb4bf3ae"
"private-ec2-instance-role"
]
},
"source": {
Expand Down Expand Up @@ -121,9 +121,6 @@
"version_protocol": "tls"
},
"user": {
"changes": {
"name": "i-03cd6b2a7eb4bf3ae"
},
"entity": {
"id": [
"arn:aws:sts::00000000000:assumed-role/private-ec2-instance-role/i-03cd6b2a7eb4bf3ae"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
"arn:aws:ssmmessages:us-east-2:00000000000:control-channel/i-05e14c76fdb335957"
],
"user": [
"i-05e14c76fdb335957",
"PRINCIPALID:i-05e14c76fdb335957",
"bedrock_ec2_role",
"i-05e14c76fdb335957"
"bedrock_ec2_role"
]
},
"source": {
Expand Down Expand Up @@ -127,9 +127,6 @@
"version_protocol": "tls"
},
"user": {
"changes": {
"name": "i-05e14c76fdb335957"
},
"entity": {
"id": [
"arn:aws:sts::00000000000:assumed-role/bedrock_ec2_role/i-05e14c76fdb335957"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
"arn:aws:sts::777788889999:assumed-role/AssumeNothing/devdsk"
],
"user": [
"devdsk",
"AIDAQRSTUVWXYZEXAMPLE:devdsk",
"AssumeNothing",
"devdsk"
"AssumeNothing"
]
},
"source": {
Expand Down Expand Up @@ -103,9 +103,6 @@
"actor_target_mapping"
],
"user": {
"changes": {
"name": "devdsk"
},
"entity": {
"id": [
"arn:aws:sts::777788889999:assumed-role/AssumeNothing/devdsk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
"ACCESSKEY"
],
"user": [
"AWSConfig-Describe",
"PRINCIPALID:AWSConfig-Describe",
"AWSServiceRoleForConfig",
"AWSConfig-Describe"
"AWSServiceRoleForConfig"
]
},
"service": {
Expand Down Expand Up @@ -124,9 +124,6 @@
}
},
"user": {
"changes": {
"name": "AWSConfig-Describe"
},
"id": "PRINCIPALID:AWSConfig-Describe",
"name": "AWSServiceRoleForConfig"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
"Elastic-Cloud-Security-Posture-Man-ElasticAgentRole-EdUmKXybQxe9"
],
"user": [
"i-00486a46a6d8692b9",
"PRINCIPALID:i-00486a46a6d8692b9",
"Elastic-Cloud-Security-Posture-Man-ElasticAgentRole-EdUmKXybQxe9",
"i-00486a46a6d8692b9"
"Elastic-Cloud-Security-Posture-Man-ElasticAgentRole-EdUmKXybQxe9"
]
},
"service": {
Expand Down Expand Up @@ -126,9 +126,6 @@
"version_protocol": "tls"
},
"user": {
"changes": {
"name": "i-00486a46a6d8692b9"
},
"entity": {
"id": [
"arn:aws:sts::00000000000:assumed-role/Elastic-Cloud-Security-Posture-Man-ElasticAgentRole-EdUmKXybQxe9/i-00486a46a6d8692b9"
Expand Down
Loading
Loading