Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
24 changes: 24 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
# newer versions go on top
- version: "6.22.0"
changes:
- description: |
The changes below apply to the CloudTrail data stream only.
Replace every `ignore_failure: true` with an `ignore_missing` flag, a condition guard, or an explicit `on_failure` handler reporting to `error.message`, so real faults surface instead of being silently swallowed.
Add support for CloudTrail fields that were previously dropped.
Populate the `cloud.provider`, `cloud.service.name` and `related.*` ECS fields.
type: enhancement
link: https://github.com/elastic/integrations/pull/20403

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Severity: 🟡 Medium confidence: high path: packages/aws/changelog.yml:10

Changelog links a different PR number

Details

The changelog entries added on lines 10, 15, 25 point at pull/20403 (line 10), pull/20318 (line 15), pull/20403 (line 25), but they were added in PR #​20972. They are likely leftover template placeholders or copies from another PR.

Recommendation:

Point each added changelog entry's link at this PR:

link: https://github.com/elastic/integrations/pull/20972

🤖 AI-Generated Review | Vera Review Bot - v0.3.0 | 📚 Knowledge base: integration-skills

⚠️ Automated review — verify suggestions before applying.

- description: |
The change below applies to the CloudTrail data stream only.
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
- description: |
The fixes below apply to the CloudTrail data stream only.
Stop populating `file.hash.sha256` on digest records, where it held the hash of the previous digest file while `file.path` pointed at the current one. The value is still available as `aws.cloudtrail.digest.previous_hash_value` and in `related.hash`.
Fix `DeleteObject` using `event.type: delete`, which is not a valid ECS value. It is now `deletion`.
Fix `Publish`, `SendCommand` and `Converse` producing no `event.type`. They now use `info`, `start` and `info` respectively.
Fix `retain: none` behaving like `retain: all`. It now drops both the keyword and the flattened copies as documented.
Fix `retain: keyword` and `retain: minimal` discarding digest and Insights records. The setting governs API call payloads and no longer affects either record type.
Fix `aws.cloudtrail.service_event_details` surviving `retain: flattened` and `retain: none`. It is now governed like the other payload fields.
type: bugfix
link: https://github.com/elastic/integrations/pull/20403
- version: "6.21.0"
changes:
- description: Poll Amazon Inspector findings on `updatedAt` instead of `lastObservedAt` so that findings AWS marks CLOSED or SUPPRESSED are collected and no longer remain stale in Elastic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
"account": {
"id": "000000000"
},
"region": "us-east-1"
"provider": "aws",
"region": "us-east-1",
"service": {
"name": "lambda"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -72,6 +76,9 @@
"arn:aws:iam::000000000:user/test@elastic.co",
"cloudtrail-events-test"
],
"ip": [
"216.160.83.56"
],
"user": [
"PRINCIPALID",
"test@elastic.co"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"account": {
"id": "123456789012"
},
"region": "us-east-2"
"provider": "aws",
"region": "us-east-2",
"service": {
"name": "iam"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -64,6 +68,9 @@
"EXAMPLE_KEY_ID",
"Alice"
],
"ip": [
"127.0.0.1"
],
"user": [
"Bob",
"EX_PRINCIPAL_ID",
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,161 @@
{
"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"
},
"provider": "aws",
"region": "us-east-2",
"service": {
"name": "sts"
}
},
"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"
],
"ip": [
"81.2.69.144"
],
"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": {
"email": "firstname.lastname@example.com",
"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 @@ -80,7 +80,11 @@
"account": {
"id": "111111111111"
},
"region": "us-east-2"
"provider": "aws",
"region": "us-east-2",
"service": {
"name": "sts"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -111,10 +115,13 @@
"arn:aws:iam::111111111111:role/JohnRole1",
"arn:aws:iam::111111111111:role/JohnRole2"
],
"ip": [
"81.2.69.144"
],
"user": [
"JohnRole1",
"AROAIN5ATK5U7KEXAMPLE:JohnRole1",
"JohnDoe",
"JohnRole1"
"JohnDoe"
]
},
"source": {
Expand Down Expand Up @@ -145,9 +152,6 @@
}
},
"user": {
"changes": {
"name": "JohnRole1"
},
"entity": {
"id": [
"arn:aws:iam::111111111111:role/JohnRole1"
Expand Down Expand Up @@ -262,7 +266,11 @@
"account": {
"id": "111111111111"
},
"region": "us-east-2"
"provider": "aws",
"region": "us-east-2",
"service": {
"name": "sts"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -292,10 +300,16 @@
"arn:aws:iam::111111111111:role/JohnRole1",
"arn:aws:iam::111111111111:role/JohnRole2"
],
"hosts": [
"i-1234567890abcdef0"
],
"ip": [
"81.2.69.144"
],
"user": [
"JohnRole1",
"AROAIN5ATK5U7KEXAMPLE:JohnRole1",
"JohnDoe",
"JohnRole1"
"JohnDoe"
]
},
"source": {
Expand Down Expand Up @@ -326,9 +340,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 @@ -35,7 +35,11 @@
"account": {
"id": "000000000"
},
"region": "us-east-1"
"provider": "aws",
"region": "us-east-1",
"service": {
"name": "iam"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -74,6 +78,9 @@
"ACCESSKEYID",
"arn:aws:iam::000000000:user/test@elastic.co"
],
"ip": [
"216.160.83.56"
],
"user": [
"PRINCIPALID",
"test@elastic.co"
Expand Down Expand Up @@ -138,6 +145,9 @@
},
{
"@timestamp": "2021-11-11T01:02:03.123456789Z",
"cloud": {
"provider": "aws"
},
"ecs": {
"version": "8.11.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
"account": {
"id": "000000000"
},
"region": "us-east-1"
"provider": "aws",
"region": "us-east-1",
"service": {
"name": "iam"
}
},
"ecs": {
"version": "8.11.0"
Expand Down Expand Up @@ -70,6 +74,9 @@
"arn:aws:iam::000000000:user/test@elastic.co",
"cloudtrail-role"
],
"ip": [
"216.160.83.56"
],
"user": [
"PRINCIPALID",
"test@elastic.co"
Expand Down
Loading
Loading