Publish AriaCloudTrail synthetic CloudTrail lab and ruleset
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +53 -0
- data/cloudtrail_sample.json +446 -0
- data/evaluation.json +289 -0
- data/events.json +0 -0
- data/events.jsonl +80 -0
- data/events_preview.csv +320 -0
- data/events_preview.json +2822 -0
- data/gold_events.json +233 -0
- data/protocol.md +10 -0
- data/ruleset.json +18 -0
- data/sample_preview.json +28 -0
- data/schema.json +28 -0
- data/splits.json +7 -0
- demo/.gitattributes +11 -0
- demo/.gitignore +8 -0
- demo/README.md +55 -0
- demo/app.py +8 -0
- demo/evaluations/evaluation.json +289 -0
- demo/examples/cloudtrail_sample.json +446 -0
- demo/examples/evaluation.json +289 -0
- demo/examples/events.json +0 -0
- demo/examples/events.jsonl +80 -0
- demo/examples/events_preview.csv +320 -0
- demo/examples/events_preview.json +2822 -0
- demo/examples/gold_events.json +233 -0
- demo/examples/protocol.md +10 -0
- demo/examples/ruleset.json +18 -0
- demo/examples/sample_preview.json +28 -0
- demo/examples/schema.json +28 -0
- demo/examples/splits.json +7 -0
- demo/requirements.txt +5 -0
- demo/src/__init__.py +1 -0
- demo/src/detectors.py +173 -0
- demo/src/domain.py +203 -0
- demo/src/explain.py +125 -0
- demo/src/features.py +193 -0
- demo/src/generator.py +829 -0
- demo/src/i18n.py +203 -0
- demo/src/mapper.py +219 -0
- demo/src/metrics.py +191 -0
- demo/src/parsers.py +127 -0
- demo/src/pipeline.py +316 -0
- demo/src/plots.py +166 -0
- demo/src/redaction.py +124 -0
- demo/src/reporting.py +79 -0
- demo/src/ruleset.py +153 -0
- demo/src/schemas.py +168 -0
- demo/src/ui.py +343 -0
- demo/src/validation.py +83 -0
- demo/tests/conftest.py +1 -0
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: AriaCloudTrail laboratory AWS CloudTrail events
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-classification
|
| 6 |
+
- time-series-forecasting
|
| 7 |
+
tags:
|
| 8 |
+
- cybersecurity
|
| 9 |
+
- cloud-security
|
| 10 |
+
- audit-log
|
| 11 |
+
- aws-cloudtrail
|
| 12 |
+
- synthetic
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
- fa
|
| 16 |
+
size_categories:
|
| 17 |
+
- 1K<n<10K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# AriaCloudTrail laboratory AWS CloudTrail events
|
| 21 |
+
|
| 22 |
+
Synthetic fourteen-day CloudTrail fixture pack for the AriaCloudTrail change-review demo.
|
| 23 |
+
|
| 24 |
+
Accounts are lab aliases (`acct_prod`, `acct_staging`, `acct_sandbox`). Numeric IDs `111111111111` / `222222222222` / `333333333333` are not customer accounts. IPs are `net_*` aliases. Access keys are fake and redacted. No AWS credentials are included.
|
| 25 |
+
|
| 26 |
+
## Files
|
| 27 |
+
|
| 28 |
+
- data/events.json
|
| 29 |
+
- data/events_preview.json
|
| 30 |
+
- data/events.jsonl
|
| 31 |
+
- data/events_preview.csv
|
| 32 |
+
- data/gold_events.json
|
| 33 |
+
- data/cloudtrail_sample.json
|
| 34 |
+
- data/schema.json
|
| 35 |
+
- data/splits.json
|
| 36 |
+
- data/protocol.md
|
| 37 |
+
- data/ruleset.json
|
| 38 |
+
- data/evaluation.json
|
| 39 |
+
- data/sample_preview.json
|
| 40 |
+
- demo/ — runnable Gradio Space source
|
| 41 |
+
- showcase/ — organization static card
|
| 42 |
+
|
| 43 |
+
## Split
|
| 44 |
+
|
| 45 |
+
Development is 2026-04-01 through 2026-04-09. Test is 2026-04-10 through 2026-04-14. Rows that belong to one authored event stay in one split. Before/after links and actor bursts use only earlier events. Assumed-role service principals are modeled separately from IAM users.
|
| 46 |
+
|
| 47 |
+
## Gold policy
|
| 48 |
+
|
| 49 |
+
`needs_review_*` events are authored IAM escalation, public-access requests, logging disable, root activity, and wildcard trust. `benign_maintenance` and `benign_restricted_sg` are Sunday 02:00–06:00 UTC staging Terraform changes with ticket `CHG-4411`. A single `Put*` / `Delete*` without a pair is insufficient evidence, not current exposure.
|
| 50 |
+
|
| 51 |
+
## License
|
| 52 |
+
|
| 53 |
+
CC-BY-4.0. Keep the synthetic-data label.
|
data/cloudtrail_sample.json
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Records": [
|
| 3 |
+
{
|
| 4 |
+
"eventVersion": "1.09",
|
| 5 |
+
"userIdentity": {
|
| 6 |
+
"type": "AssumedRole",
|
| 7 |
+
"principalId": "222222222222:terraform-staging",
|
| 8 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 9 |
+
"accountId": "222222222222",
|
| 10 |
+
"sessionContext": {
|
| 11 |
+
"sessionIssuer": {
|
| 12 |
+
"type": "Role",
|
| 13 |
+
"userName": "terraform-staging",
|
| 14 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 15 |
+
"accountId": "222222222222"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"eventTime": "2026-04-05T02:15:00Z",
|
| 20 |
+
"eventSource": "iam.amazonaws.com",
|
| 21 |
+
"eventName": "AttachRolePolicy",
|
| 22 |
+
"awsRegion": "us-east-1",
|
| 23 |
+
"sourceIPAddress": "198.51.100.20",
|
| 24 |
+
"userAgent": "terraform/1.9.0",
|
| 25 |
+
"requestParameters": {
|
| 26 |
+
"roleName": "job-runner",
|
| 27 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 28 |
+
},
|
| 29 |
+
"responseElements": {
|
| 30 |
+
"_lab": true
|
| 31 |
+
},
|
| 32 |
+
"requestID": "req-evt-maint-dev-01",
|
| 33 |
+
"eventID": "EVT-MAINT-DEV-01",
|
| 34 |
+
"readOnly": false,
|
| 35 |
+
"eventType": "AwsApiCall",
|
| 36 |
+
"managementEvent": true,
|
| 37 |
+
"recipientAccountId": "222222222222",
|
| 38 |
+
"errorCode": null,
|
| 39 |
+
"lab_event_id": "EVT-MAINT-DEV-01",
|
| 40 |
+
"lab_family": "benign_maintenance",
|
| 41 |
+
"change_ticket": "CHG-4411",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"incomplete": false
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"eventVersion": "1.09",
|
| 47 |
+
"userIdentity": {
|
| 48 |
+
"type": "AssumedRole",
|
| 49 |
+
"principalId": "222222222222:terraform-staging",
|
| 50 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 51 |
+
"accountId": "222222222222",
|
| 52 |
+
"sessionContext": {
|
| 53 |
+
"sessionIssuer": {
|
| 54 |
+
"type": "Role",
|
| 55 |
+
"userName": "terraform-staging",
|
| 56 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 57 |
+
"accountId": "222222222222"
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"eventTime": "2026-04-05T02:40:00Z",
|
| 62 |
+
"eventSource": "ec2.amazonaws.com",
|
| 63 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 64 |
+
"awsRegion": "us-east-1",
|
| 65 |
+
"sourceIPAddress": "198.51.100.20",
|
| 66 |
+
"userAgent": "terraform/1.9.0",
|
| 67 |
+
"requestParameters": {
|
| 68 |
+
"groupId": "sg-staging-web",
|
| 69 |
+
"cidrIp": "10.0.0.0/8",
|
| 70 |
+
"fromPort": 443,
|
| 71 |
+
"toPort": 443
|
| 72 |
+
},
|
| 73 |
+
"responseElements": {
|
| 74 |
+
"_lab": true
|
| 75 |
+
},
|
| 76 |
+
"requestID": "req-evt-sg-safe-dev-01",
|
| 77 |
+
"eventID": "EVT-SG-SAFE-DEV-01",
|
| 78 |
+
"readOnly": false,
|
| 79 |
+
"eventType": "AwsApiCall",
|
| 80 |
+
"managementEvent": true,
|
| 81 |
+
"recipientAccountId": "222222222222",
|
| 82 |
+
"errorCode": null,
|
| 83 |
+
"lab_event_id": "EVT-SG-SAFE-DEV-01",
|
| 84 |
+
"lab_family": "benign_restricted_sg",
|
| 85 |
+
"change_ticket": "CHG-4411",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"incomplete": false
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"eventVersion": "1.09",
|
| 91 |
+
"userIdentity": {
|
| 92 |
+
"type": "IAMUser",
|
| 93 |
+
"principalId": "AIDAIALICELAB",
|
| 94 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 95 |
+
"accountId": "111111111111",
|
| 96 |
+
"userName": "alice"
|
| 97 |
+
},
|
| 98 |
+
"eventTime": "2026-04-03T03:12:00Z",
|
| 99 |
+
"eventSource": "iam.amazonaws.com",
|
| 100 |
+
"eventName": "AttachUserPolicy",
|
| 101 |
+
"awsRegion": "us-east-1",
|
| 102 |
+
"sourceIPAddress": "203.0.113.10",
|
| 103 |
+
"userAgent": "console.amazonaws.com",
|
| 104 |
+
"requestParameters": {
|
| 105 |
+
"userName": "carol",
|
| 106 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 107 |
+
},
|
| 108 |
+
"responseElements": {
|
| 109 |
+
"_lab": true
|
| 110 |
+
},
|
| 111 |
+
"requestID": "req-evt-iam-dev-01",
|
| 112 |
+
"eventID": "EVT-IAM-DEV-01",
|
| 113 |
+
"readOnly": false,
|
| 114 |
+
"eventType": "AwsApiCall",
|
| 115 |
+
"managementEvent": true,
|
| 116 |
+
"recipientAccountId": "111111111111",
|
| 117 |
+
"errorCode": null,
|
| 118 |
+
"lab_event_id": "EVT-IAM-DEV-01",
|
| 119 |
+
"lab_family": "needs_review_iam_escalation",
|
| 120 |
+
"change_ticket": "",
|
| 121 |
+
"split": "development",
|
| 122 |
+
"incomplete": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"eventVersion": "1.09",
|
| 126 |
+
"userIdentity": {
|
| 127 |
+
"type": "IAMUser",
|
| 128 |
+
"principalId": "AIDAIBOBLAB",
|
| 129 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 130 |
+
"accountId": "222222222222",
|
| 131 |
+
"userName": "bob"
|
| 132 |
+
},
|
| 133 |
+
"eventTime": "2026-04-04T14:22:00Z",
|
| 134 |
+
"eventSource": "s3.amazonaws.com",
|
| 135 |
+
"eventName": "DeletePublicAccessBlock",
|
| 136 |
+
"awsRegion": "us-east-1",
|
| 137 |
+
"sourceIPAddress": "192.0.2.55",
|
| 138 |
+
"userAgent": "aws-cli/2.15.0",
|
| 139 |
+
"requestParameters": {
|
| 140 |
+
"bucketName": "prod-invoice-export"
|
| 141 |
+
},
|
| 142 |
+
"responseElements": {
|
| 143 |
+
"_lab": true
|
| 144 |
+
},
|
| 145 |
+
"requestID": "req-evt-s3-dev-01",
|
| 146 |
+
"eventID": "EVT-S3-DEV-01",
|
| 147 |
+
"readOnly": false,
|
| 148 |
+
"eventType": "AwsApiCall",
|
| 149 |
+
"managementEvent": true,
|
| 150 |
+
"recipientAccountId": "222222222222",
|
| 151 |
+
"errorCode": null,
|
| 152 |
+
"lab_event_id": "EVT-S3-DEV-01",
|
| 153 |
+
"lab_family": "needs_review_public_exposure",
|
| 154 |
+
"change_ticket": "",
|
| 155 |
+
"split": "development",
|
| 156 |
+
"incomplete": false
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"eventVersion": "1.09",
|
| 160 |
+
"userIdentity": {
|
| 161 |
+
"type": "IAMUser",
|
| 162 |
+
"principalId": "AIDAIALICELAB",
|
| 163 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 164 |
+
"accountId": "111111111111",
|
| 165 |
+
"userName": "alice"
|
| 166 |
+
},
|
| 167 |
+
"eventTime": "2026-04-03T18:00:00Z",
|
| 168 |
+
"eventSource": "ec2.amazonaws.com",
|
| 169 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 170 |
+
"awsRegion": "us-east-1",
|
| 171 |
+
"sourceIPAddress": "203.0.113.10",
|
| 172 |
+
"userAgent": "console.amazonaws.com",
|
| 173 |
+
"requestParameters": {
|
| 174 |
+
"groupId": "sg-prod-web",
|
| 175 |
+
"cidrIp": "0.0.0.0/0",
|
| 176 |
+
"fromPort": 22,
|
| 177 |
+
"toPort": 22
|
| 178 |
+
},
|
| 179 |
+
"responseElements": {
|
| 180 |
+
"_lab": true
|
| 181 |
+
},
|
| 182 |
+
"requestID": "req-evt-sg-open-dev-01",
|
| 183 |
+
"eventID": "EVT-SG-OPEN-DEV-01",
|
| 184 |
+
"readOnly": false,
|
| 185 |
+
"eventType": "AwsApiCall",
|
| 186 |
+
"managementEvent": true,
|
| 187 |
+
"recipientAccountId": "111111111111",
|
| 188 |
+
"errorCode": null,
|
| 189 |
+
"lab_event_id": "EVT-SG-OPEN-DEV-01",
|
| 190 |
+
"lab_family": "needs_review_public_exposure",
|
| 191 |
+
"change_ticket": "",
|
| 192 |
+
"split": "development",
|
| 193 |
+
"incomplete": false
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"eventVersion": "1.09",
|
| 197 |
+
"userIdentity": {
|
| 198 |
+
"type": "IAMUser",
|
| 199 |
+
"principalId": "AIDAICAROLLAB",
|
| 200 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 201 |
+
"accountId": "333333333333",
|
| 202 |
+
"userName": "carol"
|
| 203 |
+
},
|
| 204 |
+
"eventTime": "2026-04-06T01:05:00Z",
|
| 205 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 206 |
+
"eventName": "StopLogging",
|
| 207 |
+
"awsRegion": "us-east-1",
|
| 208 |
+
"sourceIPAddress": "192.0.2.55",
|
| 209 |
+
"userAgent": "aws-cli/2.15.0",
|
| 210 |
+
"requestParameters": {
|
| 211 |
+
"name": "org-management"
|
| 212 |
+
},
|
| 213 |
+
"responseElements": {
|
| 214 |
+
"_lab": true
|
| 215 |
+
},
|
| 216 |
+
"requestID": "req-evt-trail-dev-01",
|
| 217 |
+
"eventID": "EVT-TRAIL-DEV-01",
|
| 218 |
+
"readOnly": false,
|
| 219 |
+
"eventType": "AwsApiCall",
|
| 220 |
+
"managementEvent": true,
|
| 221 |
+
"recipientAccountId": "333333333333",
|
| 222 |
+
"errorCode": null,
|
| 223 |
+
"lab_event_id": "EVT-TRAIL-DEV-01",
|
| 224 |
+
"lab_family": "needs_review_logging_disable",
|
| 225 |
+
"change_ticket": "",
|
| 226 |
+
"split": "development",
|
| 227 |
+
"incomplete": false
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"eventVersion": "1.09",
|
| 231 |
+
"userIdentity": {
|
| 232 |
+
"type": "Root",
|
| 233 |
+
"principalId": "111111111111",
|
| 234 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 235 |
+
"accountId": "111111111111"
|
| 236 |
+
},
|
| 237 |
+
"eventTime": "2026-04-07T09:00:00Z",
|
| 238 |
+
"eventSource": "signin.amazonaws.com",
|
| 239 |
+
"eventName": "ConsoleLogin",
|
| 240 |
+
"awsRegion": "us-east-1",
|
| 241 |
+
"sourceIPAddress": "203.0.113.10",
|
| 242 |
+
"userAgent": "signin.amazonaws.com",
|
| 243 |
+
"requestParameters": {},
|
| 244 |
+
"responseElements": {
|
| 245 |
+
"_lab": true
|
| 246 |
+
},
|
| 247 |
+
"requestID": "req-evt-root-dev-01",
|
| 248 |
+
"eventID": "EVT-ROOT-DEV-01",
|
| 249 |
+
"readOnly": false,
|
| 250 |
+
"eventType": "AwsApiCall",
|
| 251 |
+
"managementEvent": true,
|
| 252 |
+
"recipientAccountId": "111111111111",
|
| 253 |
+
"errorCode": null,
|
| 254 |
+
"lab_event_id": "EVT-ROOT-DEV-01",
|
| 255 |
+
"lab_family": "needs_review_root",
|
| 256 |
+
"change_ticket": "",
|
| 257 |
+
"split": "development",
|
| 258 |
+
"incomplete": false
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"eventVersion": "1.09",
|
| 262 |
+
"userIdentity": {
|
| 263 |
+
"type": "IAMUser",
|
| 264 |
+
"principalId": "AIDAIDAVELAB",
|
| 265 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 266 |
+
"accountId": "111111111111",
|
| 267 |
+
"userName": "dave"
|
| 268 |
+
},
|
| 269 |
+
"eventTime": "2026-04-08T16:10:00Z",
|
| 270 |
+
"eventSource": "iam.amazonaws.com",
|
| 271 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 272 |
+
"awsRegion": "us-east-1",
|
| 273 |
+
"sourceIPAddress": "203.0.113.10",
|
| 274 |
+
"userAgent": "aws-cli/2.15.0",
|
| 275 |
+
"requestParameters": {
|
| 276 |
+
"roleName": "ci-deploy",
|
| 277 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 278 |
+
},
|
| 279 |
+
"responseElements": {
|
| 280 |
+
"_lab": true
|
| 281 |
+
},
|
| 282 |
+
"requestID": "req-evt-trust-dev-01",
|
| 283 |
+
"eventID": "EVT-TRUST-DEV-01",
|
| 284 |
+
"readOnly": false,
|
| 285 |
+
"eventType": "AwsApiCall",
|
| 286 |
+
"managementEvent": true,
|
| 287 |
+
"recipientAccountId": "111111111111",
|
| 288 |
+
"errorCode": null,
|
| 289 |
+
"lab_event_id": "EVT-TRUST-DEV-01",
|
| 290 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 291 |
+
"change_ticket": "",
|
| 292 |
+
"split": "development",
|
| 293 |
+
"incomplete": false
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"eventVersion": "1.09",
|
| 297 |
+
"userIdentity": {
|
| 298 |
+
"type": "IAMUser",
|
| 299 |
+
"principalId": "AIDAIBOBLAB",
|
| 300 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 301 |
+
"accountId": "222222222222",
|
| 302 |
+
"userName": "bob"
|
| 303 |
+
},
|
| 304 |
+
"eventTime": "2026-04-07T11:20:00Z",
|
| 305 |
+
"eventSource": "iam.amazonaws.com",
|
| 306 |
+
"eventName": "CreateAccessKey",
|
| 307 |
+
"awsRegion": "us-east-1",
|
| 308 |
+
"sourceIPAddress": "203.0.113.10",
|
| 309 |
+
"userAgent": "aws-cli/2.15.0",
|
| 310 |
+
"requestParameters": {
|
| 311 |
+
"userName": "deploy-bot"
|
| 312 |
+
},
|
| 313 |
+
"responseElements": {
|
| 314 |
+
"_lab": true
|
| 315 |
+
},
|
| 316 |
+
"requestID": "req-evt-key-dev-01",
|
| 317 |
+
"eventID": "EVT-KEY-DEV-01",
|
| 318 |
+
"readOnly": false,
|
| 319 |
+
"eventType": "AwsApiCall",
|
| 320 |
+
"managementEvent": true,
|
| 321 |
+
"recipientAccountId": "222222222222",
|
| 322 |
+
"errorCode": null,
|
| 323 |
+
"lab_event_id": "EVT-KEY-DEV-01",
|
| 324 |
+
"lab_family": "needs_review_iam_escalation",
|
| 325 |
+
"change_ticket": "",
|
| 326 |
+
"split": "development",
|
| 327 |
+
"incomplete": false
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"eventVersion": "1.09",
|
| 331 |
+
"userIdentity": {
|
| 332 |
+
"type": "IAMUser",
|
| 333 |
+
"principalId": "AIDAIBOBLAB",
|
| 334 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 335 |
+
"accountId": "222222222222",
|
| 336 |
+
"userName": "bob"
|
| 337 |
+
},
|
| 338 |
+
"eventTime": "2026-04-02T11:00:00Z",
|
| 339 |
+
"eventSource": "s3.amazonaws.com",
|
| 340 |
+
"eventName": "PutBucketPolicy",
|
| 341 |
+
"awsRegion": "us-east-1",
|
| 342 |
+
"sourceIPAddress": "203.0.113.10",
|
| 343 |
+
"userAgent": "aws-cli/2.15.0",
|
| 344 |
+
"requestParameters": null,
|
| 345 |
+
"responseElements": null,
|
| 346 |
+
"requestID": "req-evt-insuff-dev-01",
|
| 347 |
+
"eventID": "EVT-INSUFF-DEV-01",
|
| 348 |
+
"readOnly": false,
|
| 349 |
+
"eventType": "AwsApiCall",
|
| 350 |
+
"managementEvent": true,
|
| 351 |
+
"recipientAccountId": "222222222222",
|
| 352 |
+
"errorCode": null,
|
| 353 |
+
"lab_event_id": "EVT-INSUFF-DEV-01",
|
| 354 |
+
"lab_family": "insufficient_evidence",
|
| 355 |
+
"change_ticket": "",
|
| 356 |
+
"split": "development",
|
| 357 |
+
"incomplete": true
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"eventVersion": "1.09",
|
| 361 |
+
"userIdentity": {
|
| 362 |
+
"type": "AssumedRole",
|
| 363 |
+
"principalId": "222222222222:terraform-staging",
|
| 364 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 365 |
+
"accountId": "222222222222",
|
| 366 |
+
"sessionContext": {
|
| 367 |
+
"sessionIssuer": {
|
| 368 |
+
"type": "Role",
|
| 369 |
+
"userName": "terraform-staging",
|
| 370 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 371 |
+
"accountId": "222222222222"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"eventTime": "2026-04-12T02:20:00Z",
|
| 376 |
+
"eventSource": "iam.amazonaws.com",
|
| 377 |
+
"eventName": "AttachRolePolicy",
|
| 378 |
+
"awsRegion": "us-east-1",
|
| 379 |
+
"sourceIPAddress": "198.51.100.20",
|
| 380 |
+
"userAgent": "terraform/1.9.0",
|
| 381 |
+
"requestParameters": {
|
| 382 |
+
"roleName": "job-runner",
|
| 383 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 384 |
+
},
|
| 385 |
+
"responseElements": {
|
| 386 |
+
"_lab": true
|
| 387 |
+
},
|
| 388 |
+
"requestID": "req-evt-maint-01",
|
| 389 |
+
"eventID": "EVT-MAINT-01",
|
| 390 |
+
"readOnly": false,
|
| 391 |
+
"eventType": "AwsApiCall",
|
| 392 |
+
"managementEvent": true,
|
| 393 |
+
"recipientAccountId": "222222222222",
|
| 394 |
+
"errorCode": null,
|
| 395 |
+
"lab_event_id": "EVT-MAINT-01",
|
| 396 |
+
"lab_family": "benign_maintenance",
|
| 397 |
+
"change_ticket": "CHG-4411",
|
| 398 |
+
"split": "test",
|
| 399 |
+
"incomplete": false
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"eventVersion": "1.09",
|
| 403 |
+
"userIdentity": {
|
| 404 |
+
"type": "AssumedRole",
|
| 405 |
+
"principalId": "222222222222:terraform-staging",
|
| 406 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 407 |
+
"accountId": "222222222222",
|
| 408 |
+
"sessionContext": {
|
| 409 |
+
"sessionIssuer": {
|
| 410 |
+
"type": "Role",
|
| 411 |
+
"userName": "terraform-staging",
|
| 412 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 413 |
+
"accountId": "222222222222"
|
| 414 |
+
}
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
"eventTime": "2026-04-12T03:05:00Z",
|
| 418 |
+
"eventSource": "ec2.amazonaws.com",
|
| 419 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 420 |
+
"awsRegion": "us-east-1",
|
| 421 |
+
"sourceIPAddress": "198.51.100.20",
|
| 422 |
+
"userAgent": "terraform/1.9.0",
|
| 423 |
+
"requestParameters": {
|
| 424 |
+
"groupId": "sg-staging-web",
|
| 425 |
+
"cidrIp": "10.0.0.0/8",
|
| 426 |
+
"fromPort": 443,
|
| 427 |
+
"toPort": 443
|
| 428 |
+
},
|
| 429 |
+
"responseElements": {
|
| 430 |
+
"_lab": true
|
| 431 |
+
},
|
| 432 |
+
"requestID": "req-evt-sg-safe-01",
|
| 433 |
+
"eventID": "EVT-SG-SAFE-01",
|
| 434 |
+
"readOnly": false,
|
| 435 |
+
"eventType": "AwsApiCall",
|
| 436 |
+
"managementEvent": true,
|
| 437 |
+
"recipientAccountId": "222222222222",
|
| 438 |
+
"errorCode": null,
|
| 439 |
+
"lab_event_id": "EVT-SG-SAFE-01",
|
| 440 |
+
"lab_family": "benign_restricted_s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|
+
"n_changes": 23,
|
| 11 |
+
"n_security_review": 14,
|
| 12 |
+
"n_context": 4,
|
| 13 |
+
"n_incomplete": 3,
|
| 14 |
+
"parse_coverage": 1.0,
|
| 15 |
+
"event_recall": 1.0,
|
| 16 |
+
"precision_at_k": 1.0,
|
| 17 |
+
"false_alarms_per_account_day": 0.0,
|
| 18 |
+
"change_type_accuracy": 1.0,
|
| 19 |
+
"maintenance_as_security": 0,
|
| 20 |
+
"ungrounded_claims": 0,
|
| 21 |
+
"seconds": 1.275,
|
| 22 |
+
"threshold": 3.0,
|
| 23 |
+
"model_names": "rules+baseline+correlation",
|
| 24 |
+
"daily_capacity": 8
|
| 25 |
+
},
|
| 26 |
+
"comparison": [
|
| 27 |
+
{
|
| 28 |
+
"method": "rule_severity",
|
| 29 |
+
"split": "development",
|
| 30 |
+
"event_recall": 1.0,
|
| 31 |
+
"precision_at_k": 0.7143,
|
| 32 |
+
"false_alarms_per_account_day": 0.1154,
|
| 33 |
+
"change_type_accuracy": 1.0,
|
| 34 |
+
"maintenance_as_security": 2,
|
| 35 |
+
"ungrounded_claims": 0,
|
| 36 |
+
"n_security_alerts": 10,
|
| 37 |
+
"n_context_alerts": 0,
|
| 38 |
+
"n_review_events": 7,
|
| 39 |
+
"parse_coverage": 1.0
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"method": "role_time_baseline",
|
| 43 |
+
"split": "development",
|
| 44 |
+
"event_recall": 0.2857,
|
| 45 |
+
"precision_at_k": 1.0,
|
| 46 |
+
"false_alarms_per_account_day": 0.0,
|
| 47 |
+
"change_type_accuracy": 1.0,
|
| 48 |
+
"maintenance_as_security": 0,
|
| 49 |
+
"ungrounded_claims": 0,
|
| 50 |
+
"n_security_alerts": 2,
|
| 51 |
+
"n_context_alerts": 0,
|
| 52 |
+
"n_review_events": 7,
|
| 53 |
+
"parse_coverage": 1.0
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"method": "correlation",
|
| 57 |
+
"split": "development",
|
| 58 |
+
"event_recall": 0.1429,
|
| 59 |
+
"precision_at_k": 0.5,
|
| 60 |
+
"false_alarms_per_account_day": 0.0385,
|
| 61 |
+
"change_type_accuracy": 1.0,
|
| 62 |
+
"maintenance_as_security": 1,
|
| 63 |
+
"ungrounded_claims": 0,
|
| 64 |
+
"n_security_alerts": 2,
|
| 65 |
+
"n_context_alerts": 0,
|
| 66 |
+
"n_review_events": 7,
|
| 67 |
+
"parse_coverage": 1.0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"method": "maintenance_aware_rules",
|
| 71 |
+
"split": "development",
|
| 72 |
+
"event_recall": 0.8571,
|
| 73 |
+
"precision_at_k": 1.0,
|
| 74 |
+
"false_alarms_per_account_day": 0.0,
|
| 75 |
+
"change_type_accuracy": 1.0,
|
| 76 |
+
"maintenance_as_security": 0,
|
| 77 |
+
"ungrounded_claims": 0,
|
| 78 |
+
"n_security_alerts": 6,
|
| 79 |
+
"n_context_alerts": 0,
|
| 80 |
+
"n_review_events": 7,
|
| 81 |
+
"parse_coverage": 1.0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"method": "ariacloudtrail",
|
| 85 |
+
"split": "development",
|
| 86 |
+
"event_recall": 0.8571,
|
| 87 |
+
"precision_at_k": 1.0,
|
| 88 |
+
"false_alarms_per_account_day": 0.0,
|
| 89 |
+
"change_type_accuracy": 1.0,
|
| 90 |
+
"maintenance_as_security": 0,
|
| 91 |
+
"ungrounded_claims": 0,
|
| 92 |
+
"n_security_alerts": 6,
|
| 93 |
+
"n_context_alerts": 2,
|
| 94 |
+
"n_review_events": 7,
|
| 95 |
+
"parse_coverage": 1.0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"method": "rule_severity",
|
| 99 |
+
"split": "test",
|
| 100 |
+
"event_recall": 1.0,
|
| 101 |
+
"precision_at_k": 0.6667,
|
| 102 |
+
"false_alarms_per_account_day": 0.2,
|
| 103 |
+
"change_type_accuracy": 1.0,
|
| 104 |
+
"maintenance_as_security": 2,
|
| 105 |
+
"ungrounded_claims": 0,
|
| 106 |
+
"n_security_alerts": 11,
|
| 107 |
+
"n_context_alerts": 0,
|
| 108 |
+
"n_review_events": 8,
|
| 109 |
+
"parse_coverage": 1.0
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"method": "role_time_baseline",
|
| 113 |
+
"split": "test",
|
| 114 |
+
"event_recall": 0.5,
|
| 115 |
+
"precision_at_k": 1.0,
|
| 116 |
+
"false_alarms_per_account_day": 0.0,
|
| 117 |
+
"change_type_accuracy": 1.0,
|
| 118 |
+
"maintenance_as_security": 0,
|
| 119 |
+
"ungrounded_claims": 0,
|
| 120 |
+
"n_security_alerts": 4,
|
| 121 |
+
"n_context_alerts": 0,
|
| 122 |
+
"n_review_events": 8,
|
| 123 |
+
"parse_coverage": 1.0
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"method": "correlation",
|
| 127 |
+
"split": "test",
|
| 128 |
+
"event_recall": 0.5,
|
| 129 |
+
"precision_at_k": 0.8333,
|
| 130 |
+
"false_alarms_per_account_day": 0.1333,
|
| 131 |
+
"change_type_accuracy": 1.0,
|
| 132 |
+
"maintenance_as_security": 2,
|
| 133 |
+
"ungrounded_claims": 0,
|
| 134 |
+
"n_security_alerts": 6,
|
| 135 |
+
"n_context_alerts": 0,
|
| 136 |
+
"n_review_events": 8,
|
| 137 |
+
"parse_coverage": 1.0
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"method": "maintenance_aware_rules",
|
| 141 |
+
"split": "test",
|
| 142 |
+
"event_recall": 1.0,
|
| 143 |
+
"precision_at_k": 1.0,
|
| 144 |
+
"false_alarms_per_account_day": 0.0,
|
| 145 |
+
"change_type_accuracy": 1.0,
|
| 146 |
+
"maintenance_as_security": 0,
|
| 147 |
+
"ungrounded_claims": 0,
|
| 148 |
+
"n_security_alerts": 8,
|
| 149 |
+
"n_context_alerts": 0,
|
| 150 |
+
"n_review_events": 8,
|
| 151 |
+
"parse_coverage": 1.0
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"method": "ariacloudtrail",
|
| 155 |
+
"split": "test",
|
| 156 |
+
"event_recall": 1.0,
|
| 157 |
+
"precision_at_k": 1.0,
|
| 158 |
+
"false_alarms_per_account_day": 0.0,
|
| 159 |
+
"change_type_accuracy": 1.0,
|
| 160 |
+
"maintenance_as_security": 0,
|
| 161 |
+
"ungrounded_claims": 0,
|
| 162 |
+
"n_security_alerts": 8,
|
| 163 |
+
"n_context_alerts": 2,
|
| 164 |
+
"n_review_events": 8,
|
| 165 |
+
"parse_coverage": 1.0
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"method": "rule_severity",
|
| 169 |
+
"split": "all",
|
| 170 |
+
"event_recall": 1.0,
|
| 171 |
+
"precision_at_k": 0.6944,
|
| 172 |
+
"false_alarms_per_account_day": 0.1463,
|
| 173 |
+
"change_type_accuracy": 1.0,
|
| 174 |
+
"maintenance_as_security": 4,
|
| 175 |
+
"ungrounded_claims": 0,
|
| 176 |
+
"n_security_alerts": 21,
|
| 177 |
+
"n_context_alerts": 0,
|
| 178 |
+
"n_review_events": 15,
|
| 179 |
+
"parse_coverage": 1.0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"method": "role_time_baseline",
|
| 183 |
+
"split": "all",
|
| 184 |
+
"event_recall": 0.4,
|
| 185 |
+
"precision_at_k": 1.0,
|
| 186 |
+
"false_alarms_per_account_day": 0.0,
|
| 187 |
+
"change_type_accuracy": 1.0,
|
| 188 |
+
"maintenance_as_security": 0,
|
| 189 |
+
"ungrounded_claims": 0,
|
| 190 |
+
"n_security_alerts": 6,
|
| 191 |
+
"n_context_alerts": 0,
|
| 192 |
+
"n_review_events": 15,
|
| 193 |
+
"parse_coverage": 1.0
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"method": "correlation",
|
| 197 |
+
"split": "all",
|
| 198 |
+
"event_recall": 0.3333,
|
| 199 |
+
"precision_at_k": 0.7222,
|
| 200 |
+
"false_alarms_per_account_day": 0.0732,
|
| 201 |
+
"change_type_accuracy": 1.0,
|
| 202 |
+
"maintenance_as_security": 3,
|
| 203 |
+
"ungrounded_claims": 0,
|
| 204 |
+
"n_security_alerts": 8,
|
| 205 |
+
"n_context_alerts": 0,
|
| 206 |
+
"n_review_events": 15,
|
| 207 |
+
"parse_coverage": 1.0
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"method": "maintenance_aware_rules",
|
| 211 |
+
"split": "all",
|
| 212 |
+
"event_recall": 0.9333,
|
| 213 |
+
"precision_at_k": 1.0,
|
| 214 |
+
"false_alarms_per_account_day": 0.0,
|
| 215 |
+
"change_type_accuracy": 1.0,
|
| 216 |
+
"maintenance_as_security": 0,
|
| 217 |
+
"ungrounded_claims": 0,
|
| 218 |
+
"n_security_alerts": 14,
|
| 219 |
+
"n_context_alerts": 0,
|
| 220 |
+
"n_review_events": 15,
|
| 221 |
+
"parse_coverage": 1.0
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"method": "ariacloudtrail",
|
| 225 |
+
"split": "all",
|
| 226 |
+
"event_recall": 0.9333,
|
| 227 |
+
"precision_at_k": 1.0,
|
| 228 |
+
"false_alarms_per_account_day": 0.0,
|
| 229 |
+
"change_type_accuracy": 1.0,
|
| 230 |
+
"maintenance_as_security": 0,
|
| 231 |
+
"ungrounded_claims": 0,
|
| 232 |
+
"n_security_alerts": 14,
|
| 233 |
+
"n_context_alerts": 4,
|
| 234 |
+
"n_review_events": 15,
|
| 235 |
+
"parse_coverage": 1.0
|
| 236 |
+
}
|
| 237 |
+
],
|
| 238 |
+
"calibration": [
|
| 239 |
+
{
|
| 240 |
+
"threshold": 1.5,
|
| 241 |
+
"n_security_alerts": 8,
|
| 242 |
+
"event_recall": 1.0,
|
| 243 |
+
"precision_at_k": 1.0,
|
| 244 |
+
"false_alarms_per_account_day": 0.0
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"threshold": 2.0,
|
| 248 |
+
"n_security_alerts": 8,
|
| 249 |
+
"event_recall": 1.0,
|
| 250 |
+
"precision_at_k": 1.0,
|
| 251 |
+
"false_alarms_per_account_day": 0.0
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"threshold": 2.5,
|
| 255 |
+
"n_security_alerts": 8,
|
| 256 |
+
"event_recall": 1.0,
|
| 257 |
+
"precision_at_k": 1.0,
|
| 258 |
+
"false_alarms_per_account_day": 0.0
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"threshold": 3.0,
|
| 262 |
+
"n_security_alerts": 8,
|
| 263 |
+
"event_recall": 1.0,
|
| 264 |
+
"precision_at_k": 1.0,
|
| 265 |
+
"false_alarms_per_account_day": 0.0
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"threshold": 3.5,
|
| 269 |
+
"n_security_alerts": 8,
|
| 270 |
+
"event_recall": 1.0,
|
| 271 |
+
"precision_at_k": 1.0,
|
| 272 |
+
"false_alarms_per_account_day": 0.0
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"threshold": 4.0,
|
| 276 |
+
"n_security_alerts": 8,
|
| 277 |
+
"event_recall": 1.0,
|
| 278 |
+
"precision_at_k": 1.0,
|
| 279 |
+
"false_alarms_per_account_day": 0.0
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"threshold": 5.0,
|
| 283 |
+
"n_security_alerts": 7,
|
| 284 |
+
"event_recall": 0.875,
|
| 285 |
+
"precision_at_k": 1.0,
|
| 286 |
+
"false_alarms_per_account_day": 0.0
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
}
|
data/events.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/events.jsonl
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-05T02:15:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-maint-dev-01", "eventID": "EVT-MAINT-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-MAINT-DEV-01", "lab_family": "benign_maintenance", "change_ticket": "CHG-4411", "split": "development", "incomplete": false}
|
| 2 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-05T02:40:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-safe-dev-01", "eventID": "EVT-SG-SAFE-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-SAFE-DEV-01", "lab_family": "benign_restricted_sg", "change_ticket": "CHG-4411", "split": "development", "incomplete": false}
|
| 3 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T03:12:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachUserPolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"userName": "carol", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-iam-dev-01", "eventID": "EVT-IAM-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-IAM-DEV-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "development", "incomplete": false}
|
| 4 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-04T14:22:00Z", "eventSource": "s3.amazonaws.com", "eventName": "DeletePublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-dev-01", "eventID": "EVT-S3-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-S3-DEV-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "development", "incomplete": false}
|
| 5 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T18:00:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-open-dev-01", "eventID": "EVT-SG-OPEN-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-SG-OPEN-DEV-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "development", "incomplete": false}
|
| 6 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-06T01:05:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StopLogging", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-dev-01", "eventID": "EVT-TRAIL-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "EVT-TRAIL-DEV-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "development", "incomplete": false}
|
| 7 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "Root", "principalId": "111111111111", "arn": "arn:aws:iam::111111111111:root", "accountId": "111111111111"}, "eventTime": "2026-04-07T09:00:00Z", "eventSource": "signin.amazonaws.com", "eventName": "ConsoleLogin", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "signin.amazonaws.com", "requestParameters": {}, "responseElements": {"_lab": true}, "requestID": "req-evt-root-dev-01", "eventID": "EVT-ROOT-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-ROOT-DEV-01", "lab_family": "needs_review_root", "change_ticket": "", "split": "development", "incomplete": false}
|
| 8 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-08T16:10:00Z", "eventSource": "iam.amazonaws.com", "eventName": "UpdateAssumeRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "ci-deploy", "policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trust-dev-01", "eventID": "EVT-TRUST-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-TRUST-DEV-01", "lab_family": "needs_review_trust_wildcard", "change_ticket": "", "split": "development", "incomplete": false}
|
| 9 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-07T11:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"userName": "deploy-bot"}, "responseElements": {"_lab": true}, "requestID": "req-evt-key-dev-01", "eventID": "EVT-KEY-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-KEY-DEV-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "development", "incomplete": false}
|
| 10 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T11:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutBucketPolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": null, "responseElements": null, "requestID": "req-evt-insuff-dev-01", "eventID": "EVT-INSUFF-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-INSUFF-DEV-01", "lab_family": "insufficient_evidence", "change_ticket": "", "split": "development", "incomplete": true}
|
| 11 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-12T02:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-maint-01", "eventID": "EVT-MAINT-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-MAINT-01", "lab_family": "benign_maintenance", "change_ticket": "CHG-4411", "split": "test", "incomplete": false}
|
| 12 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-12T03:05:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-safe-01", "eventID": "EVT-SG-SAFE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-SAFE-01", "lab_family": "benign_restricted_sg", "change_ticket": "CHG-4411", "split": "test", "incomplete": false}
|
| 13 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-11T02:48:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"roleName": "break-glass", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-iam-01", "eventID": "EVT-IAM-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-IAM-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "test", "incomplete": false}
|
| 14 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-11T15:30:00Z", "eventSource": "s3.amazonaws.com", "eventName": "DeletePublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-01", "eventID": "EVT-S3-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-S3-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "test", "incomplete": false}
|
| 15 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-11T18:20:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-open-01", "eventID": "EVT-SG-OPEN-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-OPEN-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "test", "incomplete": false}
|
| 16 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-13T00:40:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StopLogging", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-01", "eventID": "EVT-TRAIL-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "EVT-TRAIL-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "test", "incomplete": false}
|
| 17 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "Root", "principalId": "111111111111", "arn": "arn:aws:iam::111111111111:root", "accountId": "111111111111"}, "eventTime": "2026-04-13T10:15:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"userName": "root"}, "responseElements": {"_lab": true}, "requestID": "req-evt-root-01", "eventID": "EVT-ROOT-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-ROOT-01", "lab_family": "needs_review_root", "change_ticket": "", "split": "test", "incomplete": false}
|
| 18 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-14T11:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "UpdateAssumeRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "ci-deploy", "policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trust-01", "eventID": "EVT-TRUST-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-TRUST-01", "lab_family": "needs_review_trust_wildcard", "change_ticket": "", "split": "test", "incomplete": false}
|
| 19 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-14T01:10:00Z", "eventSource": "guardduty.amazonaws.com", "eventName": "UpdateDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"detectorId": "det-prod-01", "enable": false}, "responseElements": {"_lab": true}, "requestID": "req-evt-gd-01", "eventID": "EVT-GD-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-GD-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "test", "incomplete": false}
|
| 20 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-12T11:40:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"userName": "deploy-bot"}, "responseElements": {"_lab": true}, "requestID": "req-evt-key-01", "eventID": "EVT-KEY-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-KEY-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "test", "incomplete": false}
|
| 21 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-10T13:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": null, "responseElements": null, "requestID": "req-evt-insuff-01", "eventID": "EVT-INSUFF-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-INSUFF-01", "lab_family": "insufficient_evidence", "change_ticket": "", "split": "test", "incomplete": true}
|
| 22 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-04T10:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutPublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export", "PublicAccessBlockConfiguration": {"BlockPublicAcls": true, "IgnorePublicAcls": true, "BlockPublicPolicy": true, "RestrictPublicBuckets": true}}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-before-dev", "eventID": "EVT-S3-BEFORE-DEV", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 23 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-11T09:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutPublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export", "PublicAccessBlockConfiguration": {"BlockPublicAcls": true, "IgnorePublicAcls": true, "BlockPublicPolicy": true, "RestrictPublicBuckets": true}}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-before-01", "eventID": "EVT-S3-BEFORE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "test", "incomplete": false}
|
| 24 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T08:00:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StartLogging", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-before-dev", "eventID": "EVT-TRAIL-BEFORE-DEV", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 25 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-10T08:00:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StartLogging", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-before-01", "eventID": "EVT-TRAIL-BEFORE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "test", "incomplete": false}
|
| 26 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T16:25:38Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0001", "eventID": "bg-0001", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 27 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T11:00:31Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0002", "eventID": "bg-0002", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 28 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T10:52:03Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0003", "eventID": "bg-0003", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 29 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T08:08:40Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0004", "eventID": "bg-0004", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 30 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T16:41:25Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0005", "eventID": "bg-0005", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 31 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-01T14:15:47Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0006", "eventID": "bg-0006", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 32 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T11:39:09Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0007", "eventID": "bg-0007", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 33 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-01T11:45:13Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0008", "eventID": "bg-0008", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 34 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T17:17:44Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0009", "eventID": "bg-0009", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 35 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T12:44:06Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0010", "eventID": "bg-0010", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 36 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T10:46:47Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0011", "eventID": "bg-0011", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 37 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T14:36:29Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0012", "eventID": "bg-0012", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 38 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T09:43:26Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0013", "eventID": "bg-0013", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 39 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T16:30:07Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0014", "eventID": "bg-0014", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 40 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-01T09:52:05Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0015", "eventID": "bg-0015", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 41 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T17:43:31Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0016", "eventID": "bg-0016", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 42 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T12:03:49Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0017", "eventID": "bg-0017", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 43 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T14:37:32Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0018", "eventID": "bg-0018", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 44 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T09:00:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0019", "eventID": "tag-0019", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 45 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T15:49:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0020", "eventID": "tag-0020", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 46 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T09:04:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0021", "eventID": "tag-0021", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 47 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T15:00:26Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0022", "eventID": "bg-0022", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 48 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T08:48:10Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0023", "eventID": "bg-0023", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 49 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T11:43:15Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0024", "eventID": "bg-0024", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 50 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T11:08:23Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0025", "eventID": "bg-0025", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 51 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T09:14:23Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0026", "eventID": "bg-0026", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 52 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T15:30:24Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0027", "eventID": "bg-0027", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 53 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T17:46:04Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0028", "eventID": "bg-0028", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 54 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T13:45:11Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0029", "eventID": "bg-0029", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 55 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-02T14:55:03Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0030", "eventID": "bg-0030", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 56 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T10:52:19Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0031", "eventID": "bg-0031", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 57 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T09:38:46Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0032", "eventID": "bg-0032", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 58 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-02T17:04:24Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0033", "eventID": "bg-0033", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 59 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T13:06:04Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0034", "eventID": "bg-0034", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 60 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T11:18:27Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0035", "eventID": "bg-0035", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 61 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T11:53:35Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0036", "eventID": "bg-0036", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 62 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T09:35:12Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0037", "eventID": "bg-0037", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 63 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-02T16:04:15Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0038", "eventID": "bg-0038", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 64 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T08:51:34Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0039", "eventID": "bg-0039", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 65 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T13:30:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0040", "eventID": "tag-0040", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 66 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T15:59:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0041", "eventID": "tag-0041", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 67 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T14:36:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0042", "eventID": "tag-0042", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 68 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T10:18:17Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0043", "eventID": "bg-0043", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 69 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-03T12:04:15Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0044", "eventID": "bg-0044", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 70 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-03T08:39:42Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0045", "eventID": "bg-0045", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 71 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-03T10:22:31Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0046", "eventID": "bg-0046", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 72 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T09:28:43Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0047", "eventID": "bg-0047", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 73 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T14:12:49Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0048", "eventID": "bg-0048", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 74 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T12:36:31Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0049", "eventID": "bg-0049", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 75 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T11:49:17Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0050", "eventID": "bg-0050", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 76 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T10:56:12Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0051", "eventID": "bg-0051", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 77 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T14:28:22Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0052", "eventID": "bg-0052", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 78 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T10:56:46Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0053", "eventID": "bg-0053", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 79 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T16:44:49Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0054", "eventID": "bg-0054", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 80 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-03T17:43:18Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0055", "eventID": "bg-0055", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
data/events_preview.csv
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
event_id,timestamp,event_name,event_source,account_id,split,lab_event_id
|
| 2 |
+
EVT-MAINT-DEV-01,2026-04-05T02:15:00Z,AttachRolePolicy,iam.amazonaws.com,222222222222,development,EVT-MAINT-DEV-01
|
| 3 |
+
EVT-SG-SAFE-DEV-01,2026-04-05T02:40:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,development,EVT-SG-SAFE-DEV-01
|
| 4 |
+
EVT-IAM-DEV-01,2026-04-03T03:12:00Z,AttachUserPolicy,iam.amazonaws.com,111111111111,development,EVT-IAM-DEV-01
|
| 5 |
+
EVT-S3-DEV-01,2026-04-04T14:22:00Z,DeletePublicAccessBlock,s3.amazonaws.com,222222222222,development,EVT-S3-DEV-01
|
| 6 |
+
EVT-SG-OPEN-DEV-01,2026-04-03T18:00:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,111111111111,development,EVT-SG-OPEN-DEV-01
|
| 7 |
+
EVT-TRAIL-DEV-01,2026-04-06T01:05:00Z,StopLogging,cloudtrail.amazonaws.com,333333333333,development,EVT-TRAIL-DEV-01
|
| 8 |
+
EVT-ROOT-DEV-01,2026-04-07T09:00:00Z,ConsoleLogin,signin.amazonaws.com,111111111111,development,EVT-ROOT-DEV-01
|
| 9 |
+
EVT-TRUST-DEV-01,2026-04-08T16:10:00Z,UpdateAssumeRolePolicy,iam.amazonaws.com,111111111111,development,EVT-TRUST-DEV-01
|
| 10 |
+
EVT-KEY-DEV-01,2026-04-07T11:20:00Z,CreateAccessKey,iam.amazonaws.com,222222222222,development,EVT-KEY-DEV-01
|
| 11 |
+
EVT-INSUFF-DEV-01,2026-04-02T11:00:00Z,PutBucketPolicy,s3.amazonaws.com,222222222222,development,EVT-INSUFF-DEV-01
|
| 12 |
+
EVT-MAINT-01,2026-04-12T02:20:00Z,AttachRolePolicy,iam.amazonaws.com,222222222222,test,EVT-MAINT-01
|
| 13 |
+
EVT-SG-SAFE-01,2026-04-12T03:05:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,test,EVT-SG-SAFE-01
|
| 14 |
+
EVT-IAM-01,2026-04-11T02:48:00Z,AttachRolePolicy,iam.amazonaws.com,111111111111,test,EVT-IAM-01
|
| 15 |
+
EVT-S3-01,2026-04-11T15:30:00Z,DeletePublicAccessBlock,s3.amazonaws.com,222222222222,test,EVT-S3-01
|
| 16 |
+
EVT-SG-OPEN-01,2026-04-11T18:20:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,test,EVT-SG-OPEN-01
|
| 17 |
+
EVT-TRAIL-01,2026-04-13T00:40:00Z,StopLogging,cloudtrail.amazonaws.com,333333333333,test,EVT-TRAIL-01
|
| 18 |
+
EVT-ROOT-01,2026-04-13T10:15:00Z,CreateAccessKey,iam.amazonaws.com,111111111111,test,EVT-ROOT-01
|
| 19 |
+
EVT-TRUST-01,2026-04-14T11:20:00Z,UpdateAssumeRolePolicy,iam.amazonaws.com,111111111111,test,EVT-TRUST-01
|
| 20 |
+
EVT-GD-01,2026-04-14T01:10:00Z,UpdateDetector,guardduty.amazonaws.com,111111111111,test,EVT-GD-01
|
| 21 |
+
EVT-KEY-01,2026-04-12T11:40:00Z,CreateAccessKey,iam.amazonaws.com,222222222222,test,EVT-KEY-01
|
| 22 |
+
EVT-INSUFF-01,2026-04-10T13:00:00Z,PutBucketAcl,s3.amazonaws.com,222222222222,test,EVT-INSUFF-01
|
| 23 |
+
EVT-S3-BEFORE-DEV,2026-04-04T10:00:00Z,PutPublicAccessBlock,s3.amazonaws.com,111111111111,development,
|
| 24 |
+
EVT-S3-BEFORE-01,2026-04-11T09:00:00Z,PutPublicAccessBlock,s3.amazonaws.com,111111111111,test,
|
| 25 |
+
EVT-TRAIL-BEFORE-DEV,2026-04-02T08:00:00Z,StartLogging,cloudtrail.amazonaws.com,111111111111,development,
|
| 26 |
+
EVT-TRAIL-BEFORE-01,2026-04-10T08:00:00Z,StartLogging,cloudtrail.amazonaws.com,111111111111,test,
|
| 27 |
+
bg-0001,2026-04-01T16:25:38Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 28 |
+
bg-0002,2026-04-01T11:00:31Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 29 |
+
bg-0003,2026-04-01T10:52:03Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 30 |
+
bg-0004,2026-04-01T08:08:40Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 31 |
+
bg-0005,2026-04-01T16:41:25Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 32 |
+
bg-0006,2026-04-01T14:15:47Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 33 |
+
bg-0007,2026-04-01T11:39:09Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 34 |
+
bg-0008,2026-04-01T11:45:13Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 35 |
+
bg-0009,2026-04-01T17:17:44Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 36 |
+
bg-0010,2026-04-01T12:44:06Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 37 |
+
bg-0011,2026-04-01T10:46:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 38 |
+
bg-0012,2026-04-01T14:36:29Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 39 |
+
bg-0013,2026-04-01T09:43:26Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 40 |
+
bg-0014,2026-04-01T16:30:07Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 41 |
+
bg-0015,2026-04-01T09:52:05Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 42 |
+
bg-0016,2026-04-01T17:43:31Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 43 |
+
bg-0017,2026-04-01T12:03:49Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 44 |
+
bg-0018,2026-04-01T14:37:32Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 45 |
+
tag-0019,2026-04-01T09:00:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 46 |
+
tag-0020,2026-04-01T15:49:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 47 |
+
tag-0021,2026-04-01T09:04:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 48 |
+
bg-0022,2026-04-02T15:00:26Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 49 |
+
bg-0023,2026-04-02T08:48:10Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 50 |
+
bg-0024,2026-04-02T11:43:15Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 51 |
+
bg-0025,2026-04-02T11:08:23Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 52 |
+
bg-0026,2026-04-02T09:14:23Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 53 |
+
bg-0027,2026-04-02T15:30:24Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 54 |
+
bg-0028,2026-04-02T17:46:04Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 55 |
+
bg-0029,2026-04-02T13:45:11Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 56 |
+
bg-0030,2026-04-02T14:55:03Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 57 |
+
bg-0031,2026-04-02T10:52:19Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 58 |
+
bg-0032,2026-04-02T09:38:46Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 59 |
+
bg-0033,2026-04-02T17:04:24Z,GetRole,iam.amazonaws.com,333333333333,development,
|
| 60 |
+
bg-0034,2026-04-02T13:06:04Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 61 |
+
bg-0035,2026-04-02T11:18:27Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 62 |
+
bg-0036,2026-04-02T11:53:35Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 63 |
+
bg-0037,2026-04-02T09:35:12Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 64 |
+
bg-0038,2026-04-02T16:04:15Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 65 |
+
bg-0039,2026-04-02T08:51:34Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 66 |
+
tag-0040,2026-04-02T13:30:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 67 |
+
tag-0041,2026-04-02T15:59:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 68 |
+
tag-0042,2026-04-02T14:36:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 69 |
+
bg-0043,2026-04-03T10:18:17Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 70 |
+
bg-0044,2026-04-03T12:04:15Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 71 |
+
bg-0045,2026-04-03T08:39:42Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 72 |
+
bg-0046,2026-04-03T10:22:31Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 73 |
+
bg-0047,2026-04-03T09:28:43Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 74 |
+
bg-0048,2026-04-03T14:12:49Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 75 |
+
bg-0049,2026-04-03T12:36:31Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 76 |
+
bg-0050,2026-04-03T11:49:17Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 77 |
+
bg-0051,2026-04-03T10:56:12Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 78 |
+
bg-0052,2026-04-03T14:28:22Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 79 |
+
bg-0053,2026-04-03T10:56:46Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 80 |
+
bg-0054,2026-04-03T16:44:49Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 81 |
+
bg-0055,2026-04-03T17:43:18Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 82 |
+
bg-0056,2026-04-03T13:35:16Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 83 |
+
bg-0057,2026-04-03T14:26:47Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 84 |
+
bg-0058,2026-04-03T15:04:24Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 85 |
+
bg-0059,2026-04-03T12:03:44Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 86 |
+
bg-0060,2026-04-03T12:21:32Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 87 |
+
tag-0061,2026-04-03T09:16:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 88 |
+
tag-0062,2026-04-03T13:01:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 89 |
+
tag-0063,2026-04-03T12:04:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 90 |
+
bg-0064,2026-04-04T16:33:34Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 91 |
+
bg-0065,2026-04-04T15:36:21Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 92 |
+
bg-0066,2026-04-04T13:59:22Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 93 |
+
bg-0067,2026-04-04T14:10:34Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 94 |
+
bg-0068,2026-04-04T12:13:19Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 95 |
+
bg-0069,2026-04-04T14:09:23Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 96 |
+
bg-0070,2026-04-04T11:18:03Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 97 |
+
bg-0071,2026-04-04T10:44:14Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 98 |
+
bg-0072,2026-04-04T16:19:18Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 99 |
+
bg-0073,2026-04-04T09:16:33Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 100 |
+
bg-0074,2026-04-04T12:42:13Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 101 |
+
bg-0075,2026-04-04T08:49:35Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 102 |
+
bg-0076,2026-04-04T10:51:32Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 103 |
+
bg-0077,2026-04-04T13:52:45Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 104 |
+
bg-0078,2026-04-04T08:45:11Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 105 |
+
bg-0079,2026-04-04T11:05:49Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 106 |
+
bg-0080,2026-04-04T14:10:17Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 107 |
+
bg-0081,2026-04-04T10:03:27Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 108 |
+
tag-0082,2026-04-04T12:28:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 109 |
+
tag-0083,2026-04-04T14:24:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 110 |
+
tag-0084,2026-04-04T09:16:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 111 |
+
bg-0085,2026-04-05T12:02:09Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 112 |
+
bg-0086,2026-04-05T13:26:11Z,GetCallerIdentity,sts.amazonaws.com,333333333333,development,
|
| 113 |
+
bg-0087,2026-04-05T08:05:42Z,GetRole,iam.amazonaws.com,333333333333,development,
|
| 114 |
+
bg-0088,2026-04-05T10:49:09Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 115 |
+
bg-0089,2026-04-05T15:08:37Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 116 |
+
bg-0090,2026-04-05T08:27:03Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 117 |
+
bg-0091,2026-04-05T15:27:28Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 118 |
+
bg-0092,2026-04-05T12:20:00Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 119 |
+
bg-0093,2026-04-05T17:07:34Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 120 |
+
bg-0094,2026-04-05T16:56:01Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 121 |
+
bg-0095,2026-04-05T17:36:08Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 122 |
+
bg-0096,2026-04-05T10:30:09Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 123 |
+
bg-0097,2026-04-05T11:47:29Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 124 |
+
bg-0098,2026-04-05T12:11:45Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 125 |
+
bg-0099,2026-04-05T09:51:10Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 126 |
+
bg-0100,2026-04-05T12:02:09Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 127 |
+
bg-0101,2026-04-05T08:03:21Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 128 |
+
bg-0102,2026-04-05T17:52:15Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 129 |
+
tag-0103,2026-04-05T14:39:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 130 |
+
tag-0104,2026-04-05T11:32:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 131 |
+
tag-0105,2026-04-05T13:58:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 132 |
+
bg-0106,2026-04-06T13:26:47Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 133 |
+
bg-0107,2026-04-06T09:23:10Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 134 |
+
bg-0108,2026-04-06T16:14:19Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 135 |
+
bg-0109,2026-04-06T10:20:27Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 136 |
+
bg-0110,2026-04-06T16:20:20Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 137 |
+
bg-0111,2026-04-06T09:40:18Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 138 |
+
bg-0112,2026-04-06T14:12:20Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 139 |
+
bg-0113,2026-04-06T14:20:28Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 140 |
+
bg-0114,2026-04-06T14:48:48Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 141 |
+
bg-0115,2026-04-06T11:40:45Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 142 |
+
bg-0116,2026-04-06T14:15:49Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 143 |
+
bg-0117,2026-04-06T08:02:37Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 144 |
+
bg-0118,2026-04-06T12:59:34Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 145 |
+
bg-0119,2026-04-06T08:51:27Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 146 |
+
bg-0120,2026-04-06T13:23:22Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 147 |
+
bg-0121,2026-04-06T12:45:21Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 148 |
+
bg-0122,2026-04-06T16:37:30Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 149 |
+
bg-0123,2026-04-06T16:48:11Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 150 |
+
tag-0124,2026-04-06T12:57:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 151 |
+
tag-0125,2026-04-06T15:12:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 152 |
+
tag-0126,2026-04-06T09:04:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 153 |
+
bg-0127,2026-04-07T10:30:05Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 154 |
+
bg-0128,2026-04-07T08:31:12Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 155 |
+
bg-0129,2026-04-07T12:56:20Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 156 |
+
bg-0130,2026-04-07T09:43:38Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 157 |
+
bg-0131,2026-04-07T11:44:04Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 158 |
+
bg-0132,2026-04-07T09:29:33Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 159 |
+
bg-0133,2026-04-07T10:42:05Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 160 |
+
bg-0134,2026-04-07T08:53:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 161 |
+
bg-0135,2026-04-07T10:10:07Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 162 |
+
bg-0136,2026-04-07T10:48:40Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 163 |
+
bg-0137,2026-04-07T10:45:18Z,GetCallerIdentity,sts.amazonaws.com,333333333333,development,
|
| 164 |
+
bg-0138,2026-04-07T15:44:12Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 165 |
+
bg-0139,2026-04-07T09:56:35Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 166 |
+
bg-0140,2026-04-07T13:31:40Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 167 |
+
bg-0141,2026-04-07T09:51:12Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 168 |
+
bg-0142,2026-04-07T16:44:14Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 169 |
+
bg-0143,2026-04-07T13:58:47Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 170 |
+
bg-0144,2026-04-07T16:29:09Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 171 |
+
tag-0145,2026-04-07T09:33:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 172 |
+
tag-0146,2026-04-07T11:48:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 173 |
+
tag-0147,2026-04-07T15:01:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 174 |
+
bg-0148,2026-04-08T10:42:31Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 175 |
+
bg-0149,2026-04-08T16:42:23Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 176 |
+
bg-0150,2026-04-08T15:46:01Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 177 |
+
bg-0151,2026-04-08T10:28:40Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 178 |
+
bg-0152,2026-04-08T12:44:11Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 179 |
+
bg-0153,2026-04-08T13:48:28Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 180 |
+
bg-0154,2026-04-08T09:35:01Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 181 |
+
bg-0155,2026-04-08T09:42:28Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 182 |
+
bg-0156,2026-04-08T16:00:41Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 183 |
+
bg-0157,2026-04-08T15:54:29Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 184 |
+
bg-0158,2026-04-08T09:40:48Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 185 |
+
bg-0159,2026-04-08T08:40:01Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 186 |
+
bg-0160,2026-04-08T17:04:46Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 187 |
+
bg-0161,2026-04-08T15:18:46Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 188 |
+
bg-0162,2026-04-08T09:29:05Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 189 |
+
bg-0163,2026-04-08T17:36:48Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 190 |
+
bg-0164,2026-04-08T16:26:07Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 191 |
+
bg-0165,2026-04-08T10:52:40Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 192 |
+
tag-0166,2026-04-08T12:06:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 193 |
+
tag-0167,2026-04-08T13:24:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 194 |
+
tag-0168,2026-04-08T15:45:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 195 |
+
bg-0169,2026-04-09T10:21:40Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 196 |
+
bg-0170,2026-04-09T10:06:39Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 197 |
+
bg-0171,2026-04-09T08:10:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 198 |
+
bg-0172,2026-04-09T16:31:45Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 199 |
+
bg-0173,2026-04-09T11:27:40Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 200 |
+
bg-0174,2026-04-09T15:18:08Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 201 |
+
bg-0175,2026-04-09T13:40:16Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 202 |
+
bg-0176,2026-04-09T17:42:22Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 203 |
+
bg-0177,2026-04-09T16:15:05Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 204 |
+
bg-0178,2026-04-09T12:57:40Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 205 |
+
bg-0179,2026-04-09T08:43:14Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 206 |
+
bg-0180,2026-04-09T16:46:21Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 207 |
+
bg-0181,2026-04-09T14:36:40Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 208 |
+
bg-0182,2026-04-09T14:28:35Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 209 |
+
bg-0183,2026-04-09T15:26:01Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 210 |
+
bg-0184,2026-04-09T11:52:34Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 211 |
+
bg-0185,2026-04-09T08:33:33Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 212 |
+
bg-0186,2026-04-09T10:36:01Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 213 |
+
tag-0187,2026-04-09T14:43:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 214 |
+
tag-0188,2026-04-09T15:23:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 215 |
+
tag-0189,2026-04-09T09:07:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 216 |
+
bg-0190,2026-04-10T14:04:07Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 217 |
+
bg-0191,2026-04-10T17:24:17Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 218 |
+
bg-0192,2026-04-10T09:02:34Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 219 |
+
bg-0193,2026-04-10T15:32:08Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 220 |
+
bg-0194,2026-04-10T13:11:00Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 221 |
+
bg-0195,2026-04-10T13:28:49Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 222 |
+
bg-0196,2026-04-10T17:17:48Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 223 |
+
bg-0197,2026-04-10T11:47:20Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 224 |
+
bg-0198,2026-04-10T15:11:05Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 225 |
+
bg-0199,2026-04-10T14:33:02Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 226 |
+
bg-0200,2026-04-10T14:18:32Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 227 |
+
bg-0201,2026-04-10T10:24:47Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 228 |
+
bg-0202,2026-04-10T13:28:28Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 229 |
+
bg-0203,2026-04-10T08:28:03Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 230 |
+
bg-0204,2026-04-10T10:32:46Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 231 |
+
bg-0205,2026-04-10T12:22:37Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 232 |
+
bg-0206,2026-04-10T08:57:45Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 233 |
+
bg-0207,2026-04-10T16:47:11Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 234 |
+
tag-0208,2026-04-10T13:47:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 235 |
+
tag-0209,2026-04-10T09:37:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 236 |
+
tag-0210,2026-04-10T13:08:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 237 |
+
bg-0211,2026-04-11T13:35:42Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 238 |
+
bg-0212,2026-04-11T13:15:42Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 239 |
+
bg-0213,2026-04-11T16:13:40Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 240 |
+
bg-0214,2026-04-11T12:12:44Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 241 |
+
bg-0215,2026-04-11T11:13:11Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 242 |
+
bg-0216,2026-04-11T10:35:34Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 243 |
+
bg-0217,2026-04-11T14:30:29Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 244 |
+
bg-0218,2026-04-11T15:28:20Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 245 |
+
bg-0219,2026-04-11T16:31:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 246 |
+
bg-0220,2026-04-11T17:36:15Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 247 |
+
bg-0221,2026-04-11T12:51:20Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 248 |
+
bg-0222,2026-04-11T12:29:26Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 249 |
+
bg-0223,2026-04-11T17:17:42Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 250 |
+
bg-0224,2026-04-11T12:53:44Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 251 |
+
bg-0225,2026-04-11T14:50:20Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 252 |
+
bg-0226,2026-04-11T16:12:37Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 253 |
+
bg-0227,2026-04-11T10:50:25Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 254 |
+
bg-0228,2026-04-11T14:17:33Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 255 |
+
tag-0229,2026-04-11T09:56:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 256 |
+
tag-0230,2026-04-11T15:15:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 257 |
+
tag-0231,2026-04-11T11:04:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 258 |
+
bg-0232,2026-04-12T08:27:05Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 259 |
+
bg-0233,2026-04-12T09:17:25Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 260 |
+
bg-0234,2026-04-12T14:46:01Z,GetDetector,guardduty.amazonaws.com,222222222222,test,
|
| 261 |
+
bg-0235,2026-04-12T10:42:35Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 262 |
+
bg-0236,2026-04-12T09:04:22Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 263 |
+
bg-0237,2026-04-12T13:15:33Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 264 |
+
bg-0238,2026-04-12T17:28:20Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 265 |
+
bg-0239,2026-04-12T17:19:30Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 266 |
+
bg-0240,2026-04-12T08:11:47Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 267 |
+
bg-0241,2026-04-12T15:12:20Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 268 |
+
bg-0242,2026-04-12T10:51:11Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 269 |
+
bg-0243,2026-04-12T12:40:01Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 270 |
+
bg-0244,2026-04-12T12:31:36Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 271 |
+
bg-0245,2026-04-12T14:22:15Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 272 |
+
bg-0246,2026-04-12T12:24:29Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 273 |
+
bg-0247,2026-04-12T12:24:22Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 274 |
+
bg-0248,2026-04-12T09:57:36Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 275 |
+
bg-0249,2026-04-12T16:01:47Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 276 |
+
tag-0250,2026-04-12T09:01:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 277 |
+
tag-0251,2026-04-12T12:34:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 278 |
+
tag-0252,2026-04-12T12:21:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 279 |
+
bg-0253,2026-04-13T11:23:33Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 280 |
+
bg-0254,2026-04-13T14:43:31Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 281 |
+
bg-0255,2026-04-13T11:25:09Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 282 |
+
bg-0256,2026-04-13T13:12:46Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 283 |
+
bg-0257,2026-04-13T09:43:39Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 284 |
+
bg-0258,2026-04-13T08:41:24Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 285 |
+
bg-0259,2026-04-13T12:33:04Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 286 |
+
bg-0260,2026-04-13T11:55:19Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 287 |
+
bg-0261,2026-04-13T14:49:16Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 288 |
+
bg-0262,2026-04-13T10:01:48Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 289 |
+
bg-0263,2026-04-13T09:28:20Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 290 |
+
bg-0264,2026-04-13T10:45:02Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 291 |
+
bg-0265,2026-04-13T14:51:16Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 292 |
+
bg-0266,2026-04-13T15:49:10Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 293 |
+
bg-0267,2026-04-13T08:47:27Z,GetDetector,guardduty.amazonaws.com,222222222222,test,
|
| 294 |
+
bg-0268,2026-04-13T12:08:35Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 295 |
+
bg-0269,2026-04-13T14:34:02Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 296 |
+
bg-0270,2026-04-13T13:17:45Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 297 |
+
tag-0271,2026-04-13T12:25:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 298 |
+
tag-0272,2026-04-13T11:22:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 299 |
+
tag-0273,2026-04-13T15:31:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 300 |
+
bg-0274,2026-04-14T14:00:46Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 301 |
+
bg-0275,2026-04-14T16:17:41Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 302 |
+
bg-0276,2026-04-14T15:08:15Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 303 |
+
bg-0277,2026-04-14T14:53:40Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 304 |
+
bg-0278,2026-04-14T08:07:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 305 |
+
bg-0279,2026-04-14T14:59:40Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 306 |
+
bg-0280,2026-04-14T15:13:49Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 307 |
+
bg-0281,2026-04-14T17:29:47Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 308 |
+
bg-0282,2026-04-14T10:08:21Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 309 |
+
bg-0283,2026-04-14T08:32:39Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 310 |
+
bg-0284,2026-04-14T08:48:39Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 311 |
+
bg-0285,2026-04-14T09:03:21Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 312 |
+
bg-0286,2026-04-14T11:20:42Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 313 |
+
bg-0287,2026-04-14T11:15:23Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 314 |
+
bg-0288,2026-04-14T17:44:33Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 315 |
+
bg-0289,2026-04-14T12:15:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 316 |
+
bg-0290,2026-04-14T13:27:40Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 317 |
+
bg-0291,2026-04-14T10:17:33Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 318 |
+
tag-0292,2026-04-14T14:39:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 319 |
+
tag-0293,2026-04-14T15:06:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 320 |
+
tag-0294,2026-04-14T09:39:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
data/events_preview.json
ADDED
|
@@ -0,0 +1,2822 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 9 |
+
"accountId": "222222222222",
|
| 10 |
+
"sessionContext": {
|
| 11 |
+
"sessionIssuer": {
|
| 12 |
+
"type": "Role",
|
| 13 |
+
"userName": "terraform-staging",
|
| 14 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 15 |
+
"accountId": "222222222222"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"eventTime": "2026-04-05T02:15:00Z",
|
| 20 |
+
"eventSource": "iam.amazonaws.com",
|
| 21 |
+
"eventName": "AttachRolePolicy",
|
| 22 |
+
"awsRegion": "us-east-1",
|
| 23 |
+
"sourceIPAddress": "198.51.100.20",
|
| 24 |
+
"userAgent": "terraform/1.9.0",
|
| 25 |
+
"requestParameters": {
|
| 26 |
+
"roleName": "job-runner",
|
| 27 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 28 |
+
},
|
| 29 |
+
"responseElements": {
|
| 30 |
+
"_lab": true
|
| 31 |
+
},
|
| 32 |
+
"requestID": "req-evt-maint-dev-01",
|
| 33 |
+
"eventID": "EVT-MAINT-DEV-01",
|
| 34 |
+
"readOnly": false,
|
| 35 |
+
"eventType": "AwsApiCall",
|
| 36 |
+
"managementEvent": true,
|
| 37 |
+
"recipientAccountId": "222222222222",
|
| 38 |
+
"errorCode": null,
|
| 39 |
+
"lab_event_id": "EVT-MAINT-DEV-01",
|
| 40 |
+
"lab_family": "benign_maintenance",
|
| 41 |
+
"change_ticket": "CHG-4411",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"incomplete": false
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"eventVersion": "1.09",
|
| 47 |
+
"userIdentity": {
|
| 48 |
+
"type": "AssumedRole",
|
| 49 |
+
"principalId": "222222222222:terraform-staging",
|
| 50 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 51 |
+
"accountId": "222222222222",
|
| 52 |
+
"sessionContext": {
|
| 53 |
+
"sessionIssuer": {
|
| 54 |
+
"type": "Role",
|
| 55 |
+
"userName": "terraform-staging",
|
| 56 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 57 |
+
"accountId": "222222222222"
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"eventTime": "2026-04-05T02:40:00Z",
|
| 62 |
+
"eventSource": "ec2.amazonaws.com",
|
| 63 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 64 |
+
"awsRegion": "us-east-1",
|
| 65 |
+
"sourceIPAddress": "198.51.100.20",
|
| 66 |
+
"userAgent": "terraform/1.9.0",
|
| 67 |
+
"requestParameters": {
|
| 68 |
+
"groupId": "sg-staging-web",
|
| 69 |
+
"cidrIp": "10.0.0.0/8",
|
| 70 |
+
"fromPort": 443,
|
| 71 |
+
"toPort": 443
|
| 72 |
+
},
|
| 73 |
+
"responseElements": {
|
| 74 |
+
"_lab": true
|
| 75 |
+
},
|
| 76 |
+
"requestID": "req-evt-sg-safe-dev-01",
|
| 77 |
+
"eventID": "EVT-SG-SAFE-DEV-01",
|
| 78 |
+
"readOnly": false,
|
| 79 |
+
"eventType": "AwsApiCall",
|
| 80 |
+
"managementEvent": true,
|
| 81 |
+
"recipientAccountId": "222222222222",
|
| 82 |
+
"errorCode": null,
|
| 83 |
+
"lab_event_id": "EVT-SG-SAFE-DEV-01",
|
| 84 |
+
"lab_family": "benign_restricted_sg",
|
| 85 |
+
"change_ticket": "CHG-4411",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"incomplete": false
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"eventVersion": "1.09",
|
| 91 |
+
"userIdentity": {
|
| 92 |
+
"type": "IAMUser",
|
| 93 |
+
"principalId": "AIDAIALICELAB",
|
| 94 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 95 |
+
"accountId": "111111111111",
|
| 96 |
+
"userName": "alice"
|
| 97 |
+
},
|
| 98 |
+
"eventTime": "2026-04-03T03:12:00Z",
|
| 99 |
+
"eventSource": "iam.amazonaws.com",
|
| 100 |
+
"eventName": "AttachUserPolicy",
|
| 101 |
+
"awsRegion": "us-east-1",
|
| 102 |
+
"sourceIPAddress": "203.0.113.10",
|
| 103 |
+
"userAgent": "console.amazonaws.com",
|
| 104 |
+
"requestParameters": {
|
| 105 |
+
"userName": "carol",
|
| 106 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 107 |
+
},
|
| 108 |
+
"responseElements": {
|
| 109 |
+
"_lab": true
|
| 110 |
+
},
|
| 111 |
+
"requestID": "req-evt-iam-dev-01",
|
| 112 |
+
"eventID": "EVT-IAM-DEV-01",
|
| 113 |
+
"readOnly": false,
|
| 114 |
+
"eventType": "AwsApiCall",
|
| 115 |
+
"managementEvent": true,
|
| 116 |
+
"recipientAccountId": "111111111111",
|
| 117 |
+
"errorCode": null,
|
| 118 |
+
"lab_event_id": "EVT-IAM-DEV-01",
|
| 119 |
+
"lab_family": "needs_review_iam_escalation",
|
| 120 |
+
"change_ticket": "",
|
| 121 |
+
"split": "development",
|
| 122 |
+
"incomplete": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"eventVersion": "1.09",
|
| 126 |
+
"userIdentity": {
|
| 127 |
+
"type": "IAMUser",
|
| 128 |
+
"principalId": "AIDAIBOBLAB",
|
| 129 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 130 |
+
"accountId": "222222222222",
|
| 131 |
+
"userName": "bob"
|
| 132 |
+
},
|
| 133 |
+
"eventTime": "2026-04-04T14:22:00Z",
|
| 134 |
+
"eventSource": "s3.amazonaws.com",
|
| 135 |
+
"eventName": "DeletePublicAccessBlock",
|
| 136 |
+
"awsRegion": "us-east-1",
|
| 137 |
+
"sourceIPAddress": "192.0.2.55",
|
| 138 |
+
"userAgent": "aws-cli/2.15.0",
|
| 139 |
+
"requestParameters": {
|
| 140 |
+
"bucketName": "prod-invoice-export"
|
| 141 |
+
},
|
| 142 |
+
"responseElements": {
|
| 143 |
+
"_lab": true
|
| 144 |
+
},
|
| 145 |
+
"requestID": "req-evt-s3-dev-01",
|
| 146 |
+
"eventID": "EVT-S3-DEV-01",
|
| 147 |
+
"readOnly": false,
|
| 148 |
+
"eventType": "AwsApiCall",
|
| 149 |
+
"managementEvent": true,
|
| 150 |
+
"recipientAccountId": "222222222222",
|
| 151 |
+
"errorCode": null,
|
| 152 |
+
"lab_event_id": "EVT-S3-DEV-01",
|
| 153 |
+
"lab_family": "needs_review_public_exposure",
|
| 154 |
+
"change_ticket": "",
|
| 155 |
+
"split": "development",
|
| 156 |
+
"incomplete": false
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"eventVersion": "1.09",
|
| 160 |
+
"userIdentity": {
|
| 161 |
+
"type": "IAMUser",
|
| 162 |
+
"principalId": "AIDAIALICELAB",
|
| 163 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 164 |
+
"accountId": "111111111111",
|
| 165 |
+
"userName": "alice"
|
| 166 |
+
},
|
| 167 |
+
"eventTime": "2026-04-03T18:00:00Z",
|
| 168 |
+
"eventSource": "ec2.amazonaws.com",
|
| 169 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 170 |
+
"awsRegion": "us-east-1",
|
| 171 |
+
"sourceIPAddress": "203.0.113.10",
|
| 172 |
+
"userAgent": "console.amazonaws.com",
|
| 173 |
+
"requestParameters": {
|
| 174 |
+
"groupId": "sg-prod-web",
|
| 175 |
+
"cidrIp": "0.0.0.0/0",
|
| 176 |
+
"fromPort": 22,
|
| 177 |
+
"toPort": 22
|
| 178 |
+
},
|
| 179 |
+
"responseElements": {
|
| 180 |
+
"_lab": true
|
| 181 |
+
},
|
| 182 |
+
"requestID": "req-evt-sg-open-dev-01",
|
| 183 |
+
"eventID": "EVT-SG-OPEN-DEV-01",
|
| 184 |
+
"readOnly": false,
|
| 185 |
+
"eventType": "AwsApiCall",
|
| 186 |
+
"managementEvent": true,
|
| 187 |
+
"recipientAccountId": "111111111111",
|
| 188 |
+
"errorCode": null,
|
| 189 |
+
"lab_event_id": "EVT-SG-OPEN-DEV-01",
|
| 190 |
+
"lab_family": "needs_review_public_exposure",
|
| 191 |
+
"change_ticket": "",
|
| 192 |
+
"split": "development",
|
| 193 |
+
"incomplete": false
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"eventVersion": "1.09",
|
| 197 |
+
"userIdentity": {
|
| 198 |
+
"type": "IAMUser",
|
| 199 |
+
"principalId": "AIDAICAROLLAB",
|
| 200 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 201 |
+
"accountId": "333333333333",
|
| 202 |
+
"userName": "carol"
|
| 203 |
+
},
|
| 204 |
+
"eventTime": "2026-04-06T01:05:00Z",
|
| 205 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 206 |
+
"eventName": "StopLogging",
|
| 207 |
+
"awsRegion": "us-east-1",
|
| 208 |
+
"sourceIPAddress": "192.0.2.55",
|
| 209 |
+
"userAgent": "aws-cli/2.15.0",
|
| 210 |
+
"requestParameters": {
|
| 211 |
+
"name": "org-management"
|
| 212 |
+
},
|
| 213 |
+
"responseElements": {
|
| 214 |
+
"_lab": true
|
| 215 |
+
},
|
| 216 |
+
"requestID": "req-evt-trail-dev-01",
|
| 217 |
+
"eventID": "EVT-TRAIL-DEV-01",
|
| 218 |
+
"readOnly": false,
|
| 219 |
+
"eventType": "AwsApiCall",
|
| 220 |
+
"managementEvent": true,
|
| 221 |
+
"recipientAccountId": "333333333333",
|
| 222 |
+
"errorCode": null,
|
| 223 |
+
"lab_event_id": "EVT-TRAIL-DEV-01",
|
| 224 |
+
"lab_family": "needs_review_logging_disable",
|
| 225 |
+
"change_ticket": "",
|
| 226 |
+
"split": "development",
|
| 227 |
+
"incomplete": false
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"eventVersion": "1.09",
|
| 231 |
+
"userIdentity": {
|
| 232 |
+
"type": "Root",
|
| 233 |
+
"principalId": "111111111111",
|
| 234 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 235 |
+
"accountId": "111111111111"
|
| 236 |
+
},
|
| 237 |
+
"eventTime": "2026-04-07T09:00:00Z",
|
| 238 |
+
"eventSource": "signin.amazonaws.com",
|
| 239 |
+
"eventName": "ConsoleLogin",
|
| 240 |
+
"awsRegion": "us-east-1",
|
| 241 |
+
"sourceIPAddress": "203.0.113.10",
|
| 242 |
+
"userAgent": "signin.amazonaws.com",
|
| 243 |
+
"requestParameters": {},
|
| 244 |
+
"responseElements": {
|
| 245 |
+
"_lab": true
|
| 246 |
+
},
|
| 247 |
+
"requestID": "req-evt-root-dev-01",
|
| 248 |
+
"eventID": "EVT-ROOT-DEV-01",
|
| 249 |
+
"readOnly": false,
|
| 250 |
+
"eventType": "AwsApiCall",
|
| 251 |
+
"managementEvent": true,
|
| 252 |
+
"recipientAccountId": "111111111111",
|
| 253 |
+
"errorCode": null,
|
| 254 |
+
"lab_event_id": "EVT-ROOT-DEV-01",
|
| 255 |
+
"lab_family": "needs_review_root",
|
| 256 |
+
"change_ticket": "",
|
| 257 |
+
"split": "development",
|
| 258 |
+
"incomplete": false
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"eventVersion": "1.09",
|
| 262 |
+
"userIdentity": {
|
| 263 |
+
"type": "IAMUser",
|
| 264 |
+
"principalId": "AIDAIDAVELAB",
|
| 265 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 266 |
+
"accountId": "111111111111",
|
| 267 |
+
"userName": "dave"
|
| 268 |
+
},
|
| 269 |
+
"eventTime": "2026-04-08T16:10:00Z",
|
| 270 |
+
"eventSource": "iam.amazonaws.com",
|
| 271 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 272 |
+
"awsRegion": "us-east-1",
|
| 273 |
+
"sourceIPAddress": "203.0.113.10",
|
| 274 |
+
"userAgent": "aws-cli/2.15.0",
|
| 275 |
+
"requestParameters": {
|
| 276 |
+
"roleName": "ci-deploy",
|
| 277 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 278 |
+
},
|
| 279 |
+
"responseElements": {
|
| 280 |
+
"_lab": true
|
| 281 |
+
},
|
| 282 |
+
"requestID": "req-evt-trust-dev-01",
|
| 283 |
+
"eventID": "EVT-TRUST-DEV-01",
|
| 284 |
+
"readOnly": false,
|
| 285 |
+
"eventType": "AwsApiCall",
|
| 286 |
+
"managementEvent": true,
|
| 287 |
+
"recipientAccountId": "111111111111",
|
| 288 |
+
"errorCode": null,
|
| 289 |
+
"lab_event_id": "EVT-TRUST-DEV-01",
|
| 290 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 291 |
+
"change_ticket": "",
|
| 292 |
+
"split": "development",
|
| 293 |
+
"incomplete": false
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"eventVersion": "1.09",
|
| 297 |
+
"userIdentity": {
|
| 298 |
+
"type": "IAMUser",
|
| 299 |
+
"principalId": "AIDAIBOBLAB",
|
| 300 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 301 |
+
"accountId": "222222222222",
|
| 302 |
+
"userName": "bob"
|
| 303 |
+
},
|
| 304 |
+
"eventTime": "2026-04-07T11:20:00Z",
|
| 305 |
+
"eventSource": "iam.amazonaws.com",
|
| 306 |
+
"eventName": "CreateAccessKey",
|
| 307 |
+
"awsRegion": "us-east-1",
|
| 308 |
+
"sourceIPAddress": "203.0.113.10",
|
| 309 |
+
"userAgent": "aws-cli/2.15.0",
|
| 310 |
+
"requestParameters": {
|
| 311 |
+
"userName": "deploy-bot"
|
| 312 |
+
},
|
| 313 |
+
"responseElements": {
|
| 314 |
+
"_lab": true
|
| 315 |
+
},
|
| 316 |
+
"requestID": "req-evt-key-dev-01",
|
| 317 |
+
"eventID": "EVT-KEY-DEV-01",
|
| 318 |
+
"readOnly": false,
|
| 319 |
+
"eventType": "AwsApiCall",
|
| 320 |
+
"managementEvent": true,
|
| 321 |
+
"recipientAccountId": "222222222222",
|
| 322 |
+
"errorCode": null,
|
| 323 |
+
"lab_event_id": "EVT-KEY-DEV-01",
|
| 324 |
+
"lab_family": "needs_review_iam_escalation",
|
| 325 |
+
"change_ticket": "",
|
| 326 |
+
"split": "development",
|
| 327 |
+
"incomplete": false
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"eventVersion": "1.09",
|
| 331 |
+
"userIdentity": {
|
| 332 |
+
"type": "IAMUser",
|
| 333 |
+
"principalId": "AIDAIBOBLAB",
|
| 334 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 335 |
+
"accountId": "222222222222",
|
| 336 |
+
"userName": "bob"
|
| 337 |
+
},
|
| 338 |
+
"eventTime": "2026-04-02T11:00:00Z",
|
| 339 |
+
"eventSource": "s3.amazonaws.com",
|
| 340 |
+
"eventName": "PutBucketPolicy",
|
| 341 |
+
"awsRegion": "us-east-1",
|
| 342 |
+
"sourceIPAddress": "203.0.113.10",
|
| 343 |
+
"userAgent": "aws-cli/2.15.0",
|
| 344 |
+
"requestParameters": null,
|
| 345 |
+
"responseElements": null,
|
| 346 |
+
"requestID": "req-evt-insuff-dev-01",
|
| 347 |
+
"eventID": "EVT-INSUFF-DEV-01",
|
| 348 |
+
"readOnly": false,
|
| 349 |
+
"eventType": "AwsApiCall",
|
| 350 |
+
"managementEvent": true,
|
| 351 |
+
"recipientAccountId": "222222222222",
|
| 352 |
+
"errorCode": null,
|
| 353 |
+
"lab_event_id": "EVT-INSUFF-DEV-01",
|
| 354 |
+
"lab_family": "insufficient_evidence",
|
| 355 |
+
"change_ticket": "",
|
| 356 |
+
"split": "development",
|
| 357 |
+
"incomplete": true
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"eventVersion": "1.09",
|
| 361 |
+
"userIdentity": {
|
| 362 |
+
"type": "AssumedRole",
|
| 363 |
+
"principalId": "222222222222:terraform-staging",
|
| 364 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 365 |
+
"accountId": "222222222222",
|
| 366 |
+
"sessionContext": {
|
| 367 |
+
"sessionIssuer": {
|
| 368 |
+
"type": "Role",
|
| 369 |
+
"userName": "terraform-staging",
|
| 370 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 371 |
+
"accountId": "222222222222"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"eventTime": "2026-04-12T02:20:00Z",
|
| 376 |
+
"eventSource": "iam.amazonaws.com",
|
| 377 |
+
"eventName": "AttachRolePolicy",
|
| 378 |
+
"awsRegion": "us-east-1",
|
| 379 |
+
"sourceIPAddress": "198.51.100.20",
|
| 380 |
+
"userAgent": "terraform/1.9.0",
|
| 381 |
+
"requestParameters": {
|
| 382 |
+
"roleName": "job-runner",
|
| 383 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 384 |
+
},
|
| 385 |
+
"responseElements": {
|
| 386 |
+
"_lab": true
|
| 387 |
+
},
|
| 388 |
+
"requestID": "req-evt-maint-01",
|
| 389 |
+
"eventID": "EVT-MAINT-01",
|
| 390 |
+
"readOnly": false,
|
| 391 |
+
"eventType": "AwsApiCall",
|
| 392 |
+
"managementEvent": true,
|
| 393 |
+
"recipientAccountId": "222222222222",
|
| 394 |
+
"errorCode": null,
|
| 395 |
+
"lab_event_id": "EVT-MAINT-01",
|
| 396 |
+
"lab_family": "benign_maintenance",
|
| 397 |
+
"change_ticket": "CHG-4411",
|
| 398 |
+
"split": "test",
|
| 399 |
+
"incomplete": false
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"eventVersion": "1.09",
|
| 403 |
+
"userIdentity": {
|
| 404 |
+
"type": "AssumedRole",
|
| 405 |
+
"principalId": "222222222222:terraform-staging",
|
| 406 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 407 |
+
"accountId": "222222222222",
|
| 408 |
+
"sessionContext": {
|
| 409 |
+
"sessionIssuer": {
|
| 410 |
+
"type": "Role",
|
| 411 |
+
"userName": "terraform-staging",
|
| 412 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 413 |
+
"accountId": "222222222222"
|
| 414 |
+
}
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
"eventTime": "2026-04-12T03:05:00Z",
|
| 418 |
+
"eventSource": "ec2.amazonaws.com",
|
| 419 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 420 |
+
"awsRegion": "us-east-1",
|
| 421 |
+
"sourceIPAddress": "198.51.100.20",
|
| 422 |
+
"userAgent": "terraform/1.9.0",
|
| 423 |
+
"requestParameters": {
|
| 424 |
+
"groupId": "sg-staging-web",
|
| 425 |
+
"cidrIp": "10.0.0.0/8",
|
| 426 |
+
"fromPort": 443,
|
| 427 |
+
"toPort": 443
|
| 428 |
+
},
|
| 429 |
+
"responseElements": {
|
| 430 |
+
"_lab": true
|
| 431 |
+
},
|
| 432 |
+
"requestID": "req-evt-sg-safe-01",
|
| 433 |
+
"eventID": "EVT-SG-SAFE-01",
|
| 434 |
+
"readOnly": false,
|
| 435 |
+
"eventType": "AwsApiCall",
|
| 436 |
+
"managementEvent": true,
|
| 437 |
+
"recipientAccountId": "222222222222",
|
| 438 |
+
"errorCode": null,
|
| 439 |
+
"lab_event_id": "EVT-SG-SAFE-01",
|
| 440 |
+
"lab_family": "benign_restricted_sg",
|
| 441 |
+
"change_ticket": "CHG-4411",
|
| 442 |
+
"split": "test",
|
| 443 |
+
"incomplete": false
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"eventVersion": "1.09",
|
| 447 |
+
"userIdentity": {
|
| 448 |
+
"type": "IAMUser",
|
| 449 |
+
"principalId": "AIDAIALICELAB",
|
| 450 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 451 |
+
"accountId": "111111111111",
|
| 452 |
+
"userName": "alice"
|
| 453 |
+
},
|
| 454 |
+
"eventTime": "2026-04-11T02:48:00Z",
|
| 455 |
+
"eventSource": "iam.amazonaws.com",
|
| 456 |
+
"eventName": "AttachRolePolicy",
|
| 457 |
+
"awsRegion": "us-east-1",
|
| 458 |
+
"sourceIPAddress": "203.0.113.10",
|
| 459 |
+
"userAgent": "console.amazonaws.com",
|
| 460 |
+
"requestParameters": {
|
| 461 |
+
"roleName": "break-glass",
|
| 462 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 463 |
+
},
|
| 464 |
+
"responseElements": {
|
| 465 |
+
"_lab": true
|
| 466 |
+
},
|
| 467 |
+
"requestID": "req-evt-iam-01",
|
| 468 |
+
"eventID": "EVT-IAM-01",
|
| 469 |
+
"readOnly": false,
|
| 470 |
+
"eventType": "AwsApiCall",
|
| 471 |
+
"managementEvent": true,
|
| 472 |
+
"recipientAccountId": "111111111111",
|
| 473 |
+
"errorCode": null,
|
| 474 |
+
"lab_event_id": "EVT-IAM-01",
|
| 475 |
+
"lab_family": "needs_review_iam_escalation",
|
| 476 |
+
"change_ticket": "",
|
| 477 |
+
"split": "test",
|
| 478 |
+
"incomplete": false
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"eventVersion": "1.09",
|
| 482 |
+
"userIdentity": {
|
| 483 |
+
"type": "IAMUser",
|
| 484 |
+
"principalId": "AIDAIBOBLAB",
|
| 485 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 486 |
+
"accountId": "222222222222",
|
| 487 |
+
"userName": "bob"
|
| 488 |
+
},
|
| 489 |
+
"eventTime": "2026-04-11T15:30:00Z",
|
| 490 |
+
"eventSource": "s3.amazonaws.com",
|
| 491 |
+
"eventName": "DeletePublicAccessBlock",
|
| 492 |
+
"awsRegion": "us-east-1",
|
| 493 |
+
"sourceIPAddress": "192.0.2.55",
|
| 494 |
+
"userAgent": "aws-cli/2.15.0",
|
| 495 |
+
"requestParameters": {
|
| 496 |
+
"bucketName": "prod-invoice-export"
|
| 497 |
+
},
|
| 498 |
+
"responseElements": {
|
| 499 |
+
"_lab": true
|
| 500 |
+
},
|
| 501 |
+
"requestID": "req-evt-s3-01",
|
| 502 |
+
"eventID": "EVT-S3-01",
|
| 503 |
+
"readOnly": false,
|
| 504 |
+
"eventType": "AwsApiCall",
|
| 505 |
+
"managementEvent": true,
|
| 506 |
+
"recipientAccountId": "222222222222",
|
| 507 |
+
"errorCode": null,
|
| 508 |
+
"lab_event_id": "EVT-S3-01",
|
| 509 |
+
"lab_family": "needs_review_public_exposure",
|
| 510 |
+
"change_ticket": "",
|
| 511 |
+
"split": "test",
|
| 512 |
+
"incomplete": false
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"eventVersion": "1.09",
|
| 516 |
+
"userIdentity": {
|
| 517 |
+
"type": "IAMUser",
|
| 518 |
+
"principalId": "AIDAIBOBLAB",
|
| 519 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 520 |
+
"accountId": "222222222222",
|
| 521 |
+
"userName": "bob"
|
| 522 |
+
},
|
| 523 |
+
"eventTime": "2026-04-11T18:20:00Z",
|
| 524 |
+
"eventSource": "ec2.amazonaws.com",
|
| 525 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 526 |
+
"awsRegion": "us-east-1",
|
| 527 |
+
"sourceIPAddress": "203.0.113.10",
|
| 528 |
+
"userAgent": "aws-cli/2.15.0",
|
| 529 |
+
"requestParameters": {
|
| 530 |
+
"groupId": "sg-prod-web",
|
| 531 |
+
"cidrIp": "0.0.0.0/0",
|
| 532 |
+
"fromPort": 22,
|
| 533 |
+
"toPort": 22
|
| 534 |
+
},
|
| 535 |
+
"responseElements": {
|
| 536 |
+
"_lab": true
|
| 537 |
+
},
|
| 538 |
+
"requestID": "req-evt-sg-open-01",
|
| 539 |
+
"eventID": "EVT-SG-OPEN-01",
|
| 540 |
+
"readOnly": false,
|
| 541 |
+
"eventType": "AwsApiCall",
|
| 542 |
+
"managementEvent": true,
|
| 543 |
+
"recipientAccountId": "222222222222",
|
| 544 |
+
"errorCode": null,
|
| 545 |
+
"lab_event_id": "EVT-SG-OPEN-01",
|
| 546 |
+
"lab_family": "needs_review_public_exposure",
|
| 547 |
+
"change_ticket": "",
|
| 548 |
+
"split": "test",
|
| 549 |
+
"incomplete": false
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"eventVersion": "1.09",
|
| 553 |
+
"userIdentity": {
|
| 554 |
+
"type": "IAMUser",
|
| 555 |
+
"principalId": "AIDAICAROLLAB",
|
| 556 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 557 |
+
"accountId": "333333333333",
|
| 558 |
+
"userName": "carol"
|
| 559 |
+
},
|
| 560 |
+
"eventTime": "2026-04-13T00:40:00Z",
|
| 561 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 562 |
+
"eventName": "StopLogging",
|
| 563 |
+
"awsRegion": "us-east-1",
|
| 564 |
+
"sourceIPAddress": "192.0.2.55",
|
| 565 |
+
"userAgent": "aws-cli/2.15.0",
|
| 566 |
+
"requestParameters": {
|
| 567 |
+
"name": "org-management"
|
| 568 |
+
},
|
| 569 |
+
"responseElements": {
|
| 570 |
+
"_lab": true
|
| 571 |
+
},
|
| 572 |
+
"requestID": "req-evt-trail-01",
|
| 573 |
+
"eventID": "EVT-TRAIL-01",
|
| 574 |
+
"readOnly": false,
|
| 575 |
+
"eventType": "AwsApiCall",
|
| 576 |
+
"managementEvent": true,
|
| 577 |
+
"recipientAccountId": "333333333333",
|
| 578 |
+
"errorCode": null,
|
| 579 |
+
"lab_event_id": "EVT-TRAIL-01",
|
| 580 |
+
"lab_family": "needs_review_logging_disable",
|
| 581 |
+
"change_ticket": "",
|
| 582 |
+
"split": "test",
|
| 583 |
+
"incomplete": false
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"eventVersion": "1.09",
|
| 587 |
+
"userIdentity": {
|
| 588 |
+
"type": "Root",
|
| 589 |
+
"principalId": "111111111111",
|
| 590 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 591 |
+
"accountId": "111111111111"
|
| 592 |
+
},
|
| 593 |
+
"eventTime": "2026-04-13T10:15:00Z",
|
| 594 |
+
"eventSource": "iam.amazonaws.com",
|
| 595 |
+
"eventName": "CreateAccessKey",
|
| 596 |
+
"awsRegion": "us-east-1",
|
| 597 |
+
"sourceIPAddress": "203.0.113.10",
|
| 598 |
+
"userAgent": "console.amazonaws.com",
|
| 599 |
+
"requestParameters": {
|
| 600 |
+
"userName": "root"
|
| 601 |
+
},
|
| 602 |
+
"responseElements": {
|
| 603 |
+
"_lab": true
|
| 604 |
+
},
|
| 605 |
+
"requestID": "req-evt-root-01",
|
| 606 |
+
"eventID": "EVT-ROOT-01",
|
| 607 |
+
"readOnly": false,
|
| 608 |
+
"eventType": "AwsApiCall",
|
| 609 |
+
"managementEvent": true,
|
| 610 |
+
"recipientAccountId": "111111111111",
|
| 611 |
+
"errorCode": null,
|
| 612 |
+
"lab_event_id": "EVT-ROOT-01",
|
| 613 |
+
"lab_family": "needs_review_root",
|
| 614 |
+
"change_ticket": "",
|
| 615 |
+
"split": "test",
|
| 616 |
+
"incomplete": false
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"eventVersion": "1.09",
|
| 620 |
+
"userIdentity": {
|
| 621 |
+
"type": "IAMUser",
|
| 622 |
+
"principalId": "AIDAIDAVELAB",
|
| 623 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 624 |
+
"accountId": "111111111111",
|
| 625 |
+
"userName": "dave"
|
| 626 |
+
},
|
| 627 |
+
"eventTime": "2026-04-14T11:20:00Z",
|
| 628 |
+
"eventSource": "iam.amazonaws.com",
|
| 629 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 630 |
+
"awsRegion": "us-east-1",
|
| 631 |
+
"sourceIPAddress": "203.0.113.10",
|
| 632 |
+
"userAgent": "aws-cli/2.15.0",
|
| 633 |
+
"requestParameters": {
|
| 634 |
+
"roleName": "ci-deploy",
|
| 635 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 636 |
+
},
|
| 637 |
+
"responseElements": {
|
| 638 |
+
"_lab": true
|
| 639 |
+
},
|
| 640 |
+
"requestID": "req-evt-trust-01",
|
| 641 |
+
"eventID": "EVT-TRUST-01",
|
| 642 |
+
"readOnly": false,
|
| 643 |
+
"eventType": "AwsApiCall",
|
| 644 |
+
"managementEvent": true,
|
| 645 |
+
"recipientAccountId": "111111111111",
|
| 646 |
+
"errorCode": null,
|
| 647 |
+
"lab_event_id": "EVT-TRUST-01",
|
| 648 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 649 |
+
"change_ticket": "",
|
| 650 |
+
"split": "test",
|
| 651 |
+
"incomplete": false
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"eventVersion": "1.09",
|
| 655 |
+
"userIdentity": {
|
| 656 |
+
"type": "IAMUser",
|
| 657 |
+
"principalId": "AIDAIALICELAB",
|
| 658 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 659 |
+
"accountId": "111111111111",
|
| 660 |
+
"userName": "alice"
|
| 661 |
+
},
|
| 662 |
+
"eventTime": "2026-04-14T01:10:00Z",
|
| 663 |
+
"eventSource": "guardduty.amazonaws.com",
|
| 664 |
+
"eventName": "UpdateDetector",
|
| 665 |
+
"awsRegion": "us-east-1",
|
| 666 |
+
"sourceIPAddress": "203.0.113.10",
|
| 667 |
+
"userAgent": "console.amazonaws.com",
|
| 668 |
+
"requestParameters": {
|
| 669 |
+
"detectorId": "det-prod-01",
|
| 670 |
+
"enable": false
|
| 671 |
+
},
|
| 672 |
+
"responseElements": {
|
| 673 |
+
"_lab": true
|
| 674 |
+
},
|
| 675 |
+
"requestID": "req-evt-gd-01",
|
| 676 |
+
"eventID": "EVT-GD-01",
|
| 677 |
+
"readOnly": false,
|
| 678 |
+
"eventType": "AwsApiCall",
|
| 679 |
+
"managementEvent": true,
|
| 680 |
+
"recipientAccountId": "111111111111",
|
| 681 |
+
"errorCode": null,
|
| 682 |
+
"lab_event_id": "EVT-GD-01",
|
| 683 |
+
"lab_family": "needs_review_logging_disable",
|
| 684 |
+
"change_ticket": "",
|
| 685 |
+
"split": "test",
|
| 686 |
+
"incomplete": false
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"eventVersion": "1.09",
|
| 690 |
+
"userIdentity": {
|
| 691 |
+
"type": "IAMUser",
|
| 692 |
+
"principalId": "AIDAIBOBLAB",
|
| 693 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 694 |
+
"accountId": "222222222222",
|
| 695 |
+
"userName": "bob"
|
| 696 |
+
},
|
| 697 |
+
"eventTime": "2026-04-12T11:40:00Z",
|
| 698 |
+
"eventSource": "iam.amazonaws.com",
|
| 699 |
+
"eventName": "CreateAccessKey",
|
| 700 |
+
"awsRegion": "us-east-1",
|
| 701 |
+
"sourceIPAddress": "203.0.113.10",
|
| 702 |
+
"userAgent": "aws-cli/2.15.0",
|
| 703 |
+
"requestParameters": {
|
| 704 |
+
"userName": "deploy-bot"
|
| 705 |
+
},
|
| 706 |
+
"responseElements": {
|
| 707 |
+
"_lab": true
|
| 708 |
+
},
|
| 709 |
+
"requestID": "req-evt-key-01",
|
| 710 |
+
"eventID": "EVT-KEY-01",
|
| 711 |
+
"readOnly": false,
|
| 712 |
+
"eventType": "AwsApiCall",
|
| 713 |
+
"managementEvent": true,
|
| 714 |
+
"recipientAccountId": "222222222222",
|
| 715 |
+
"errorCode": null,
|
| 716 |
+
"lab_event_id": "EVT-KEY-01",
|
| 717 |
+
"lab_family": "needs_review_iam_escalation",
|
| 718 |
+
"change_ticket": "",
|
| 719 |
+
"split": "test",
|
| 720 |
+
"incomplete": false
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"eventVersion": "1.09",
|
| 724 |
+
"userIdentity": {
|
| 725 |
+
"type": "IAMUser",
|
| 726 |
+
"principalId": "AIDAIBOBLAB",
|
| 727 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 728 |
+
"accountId": "222222222222",
|
| 729 |
+
"userName": "bob"
|
| 730 |
+
},
|
| 731 |
+
"eventTime": "2026-04-10T13:00:00Z",
|
| 732 |
+
"eventSource": "s3.amazonaws.com",
|
| 733 |
+
"eventName": "PutBucketAcl",
|
| 734 |
+
"awsRegion": "us-east-1",
|
| 735 |
+
"sourceIPAddress": "203.0.113.10",
|
| 736 |
+
"userAgent": "aws-cli/2.15.0",
|
| 737 |
+
"requestParameters": null,
|
| 738 |
+
"responseElements": null,
|
| 739 |
+
"requestID": "req-evt-insuff-01",
|
| 740 |
+
"eventID": "EVT-INSUFF-01",
|
| 741 |
+
"readOnly": false,
|
| 742 |
+
"eventType": "AwsApiCall",
|
| 743 |
+
"managementEvent": true,
|
| 744 |
+
"recipientAccountId": "222222222222",
|
| 745 |
+
"errorCode": null,
|
| 746 |
+
"lab_event_id": "EVT-INSUFF-01",
|
| 747 |
+
"lab_family": "insufficient_evidence",
|
| 748 |
+
"change_ticket": "",
|
| 749 |
+
"split": "test",
|
| 750 |
+
"incomplete": true
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"eventVersion": "1.09",
|
| 754 |
+
"userIdentity": {
|
| 755 |
+
"type": "IAMUser",
|
| 756 |
+
"principalId": "AIDAIDAVELAB",
|
| 757 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 758 |
+
"accountId": "111111111111",
|
| 759 |
+
"userName": "dave"
|
| 760 |
+
},
|
| 761 |
+
"eventTime": "2026-04-04T10:00:00Z",
|
| 762 |
+
"eventSource": "s3.amazonaws.com",
|
| 763 |
+
"eventName": "PutPublicAccessBlock",
|
| 764 |
+
"awsRegion": "us-east-1",
|
| 765 |
+
"sourceIPAddress": "203.0.113.10",
|
| 766 |
+
"userAgent": "aws-cli/2.15.0",
|
| 767 |
+
"requestParameters": {
|
| 768 |
+
"bucketName": "prod-invoice-export",
|
| 769 |
+
"PublicAccessBlockConfiguration": {
|
| 770 |
+
"BlockPublicAcls": true,
|
| 771 |
+
"IgnorePublicAcls": true,
|
| 772 |
+
"BlockPublicPolicy": true,
|
| 773 |
+
"RestrictPublicBuckets": true
|
| 774 |
+
}
|
| 775 |
+
},
|
| 776 |
+
"responseElements": {
|
| 777 |
+
"_lab": true
|
| 778 |
+
},
|
| 779 |
+
"requestID": "req-evt-s3-before-dev",
|
| 780 |
+
"eventID": "EVT-S3-BEFORE-DEV",
|
| 781 |
+
"readOnly": false,
|
| 782 |
+
"eventType": "AwsApiCall",
|
| 783 |
+
"managementEvent": true,
|
| 784 |
+
"recipientAccountId": "111111111111",
|
| 785 |
+
"errorCode": null,
|
| 786 |
+
"lab_event_id": "",
|
| 787 |
+
"lab_family": "",
|
| 788 |
+
"change_ticket": "",
|
| 789 |
+
"split": "development",
|
| 790 |
+
"incomplete": false
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"eventVersion": "1.09",
|
| 794 |
+
"userIdentity": {
|
| 795 |
+
"type": "IAMUser",
|
| 796 |
+
"principalId": "AIDAIDAVELAB",
|
| 797 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 798 |
+
"accountId": "111111111111",
|
| 799 |
+
"userName": "dave"
|
| 800 |
+
},
|
| 801 |
+
"eventTime": "2026-04-11T09:00:00Z",
|
| 802 |
+
"eventSource": "s3.amazonaws.com",
|
| 803 |
+
"eventName": "PutPublicAccessBlock",
|
| 804 |
+
"awsRegion": "us-east-1",
|
| 805 |
+
"sourceIPAddress": "203.0.113.10",
|
| 806 |
+
"userAgent": "aws-cli/2.15.0",
|
| 807 |
+
"requestParameters": {
|
| 808 |
+
"bucketName": "prod-invoice-export",
|
| 809 |
+
"PublicAccessBlockConfiguration": {
|
| 810 |
+
"BlockPublicAcls": true,
|
| 811 |
+
"IgnorePublicAcls": true,
|
| 812 |
+
"BlockPublicPolicy": true,
|
| 813 |
+
"RestrictPublicBuckets": true
|
| 814 |
+
}
|
| 815 |
+
},
|
| 816 |
+
"responseElements": {
|
| 817 |
+
"_lab": true
|
| 818 |
+
},
|
| 819 |
+
"requestID": "req-evt-s3-before-01",
|
| 820 |
+
"eventID": "EVT-S3-BEFORE-01",
|
| 821 |
+
"readOnly": false,
|
| 822 |
+
"eventType": "AwsApiCall",
|
| 823 |
+
"managementEvent": true,
|
| 824 |
+
"recipientAccountId": "111111111111",
|
| 825 |
+
"errorCode": null,
|
| 826 |
+
"lab_event_id": "",
|
| 827 |
+
"lab_family": "",
|
| 828 |
+
"change_ticket": "",
|
| 829 |
+
"split": "test",
|
| 830 |
+
"incomplete": false
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"eventVersion": "1.09",
|
| 834 |
+
"userIdentity": {
|
| 835 |
+
"type": "IAMUser",
|
| 836 |
+
"principalId": "AIDAIDAVELAB",
|
| 837 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 838 |
+
"accountId": "111111111111",
|
| 839 |
+
"userName": "dave"
|
| 840 |
+
},
|
| 841 |
+
"eventTime": "2026-04-02T08:00:00Z",
|
| 842 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 843 |
+
"eventName": "StartLogging",
|
| 844 |
+
"awsRegion": "us-east-1",
|
| 845 |
+
"sourceIPAddress": "203.0.113.10",
|
| 846 |
+
"userAgent": "aws-cli/2.15.0",
|
| 847 |
+
"requestParameters": {
|
| 848 |
+
"name": "org-management"
|
| 849 |
+
},
|
| 850 |
+
"responseElements": {
|
| 851 |
+
"_lab": true
|
| 852 |
+
},
|
| 853 |
+
"requestID": "req-evt-trail-before-dev",
|
| 854 |
+
"eventID": "EVT-TRAIL-BEFORE-DEV",
|
| 855 |
+
"readOnly": false,
|
| 856 |
+
"eventType": "AwsApiCall",
|
| 857 |
+
"managementEvent": true,
|
| 858 |
+
"recipientAccountId": "111111111111",
|
| 859 |
+
"errorCode": null,
|
| 860 |
+
"lab_event_id": "",
|
| 861 |
+
"lab_family": "",
|
| 862 |
+
"change_ticket": "",
|
| 863 |
+
"split": "development",
|
| 864 |
+
"incomplete": false
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"eventVersion": "1.09",
|
| 868 |
+
"userIdentity": {
|
| 869 |
+
"type": "IAMUser",
|
| 870 |
+
"principalId": "AIDAIDAVELAB",
|
| 871 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 872 |
+
"accountId": "111111111111",
|
| 873 |
+
"userName": "dave"
|
| 874 |
+
},
|
| 875 |
+
"eventTime": "2026-04-10T08:00:00Z",
|
| 876 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 877 |
+
"eventName": "StartLogging",
|
| 878 |
+
"awsRegion": "us-east-1",
|
| 879 |
+
"sourceIPAddress": "203.0.113.10",
|
| 880 |
+
"userAgent": "aws-cli/2.15.0",
|
| 881 |
+
"requestParameters": {
|
| 882 |
+
"name": "org-management"
|
| 883 |
+
},
|
| 884 |
+
"responseElements": {
|
| 885 |
+
"_lab": true
|
| 886 |
+
},
|
| 887 |
+
"requestID": "req-evt-trail-before-01",
|
| 888 |
+
"eventID": "EVT-TRAIL-BEFORE-01",
|
| 889 |
+
"readOnly": false,
|
| 890 |
+
"eventType": "AwsApiCall",
|
| 891 |
+
"managementEvent": true,
|
| 892 |
+
"recipientAccountId": "111111111111",
|
| 893 |
+
"errorCode": null,
|
| 894 |
+
"lab_event_id": "",
|
| 895 |
+
"lab_family": "",
|
| 896 |
+
"change_ticket": "",
|
| 897 |
+
"split": "test",
|
| 898 |
+
"incomplete": false
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"eventVersion": "1.09",
|
| 902 |
+
"userIdentity": {
|
| 903 |
+
"type": "IAMUser",
|
| 904 |
+
"principalId": "AIDAIDAVELAB",
|
| 905 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 906 |
+
"accountId": "111111111111",
|
| 907 |
+
"userName": "dave"
|
| 908 |
+
},
|
| 909 |
+
"eventTime": "2026-04-01T10:52:03Z",
|
| 910 |
+
"eventSource": "iam.amazonaws.com",
|
| 911 |
+
"eventName": "ListUsers",
|
| 912 |
+
"awsRegion": "us-east-1",
|
| 913 |
+
"sourceIPAddress": "203.0.113.10",
|
| 914 |
+
"userAgent": "aws-cli/2.15.0",
|
| 915 |
+
"requestParameters": {
|
| 916 |
+
"marker": "lab-read"
|
| 917 |
+
},
|
| 918 |
+
"responseElements": null,
|
| 919 |
+
"requestID": "req-bg-0003",
|
| 920 |
+
"eventID": "bg-0003",
|
| 921 |
+
"readOnly": true,
|
| 922 |
+
"eventType": "AwsApiCall",
|
| 923 |
+
"managementEvent": true,
|
| 924 |
+
"recipientAccountId": "111111111111",
|
| 925 |
+
"errorCode": null,
|
| 926 |
+
"lab_event_id": "",
|
| 927 |
+
"lab_family": "",
|
| 928 |
+
"change_ticket": "",
|
| 929 |
+
"split": "development",
|
| 930 |
+
"incomplete": false
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"eventVersion": "1.09",
|
| 934 |
+
"userIdentity": {
|
| 935 |
+
"type": "AssumedRole",
|
| 936 |
+
"principalId": "111111111111:terraform-prod",
|
| 937 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session",
|
| 938 |
+
"accountId": "111111111111",
|
| 939 |
+
"sessionContext": {
|
| 940 |
+
"sessionIssuer": {
|
| 941 |
+
"type": "Role",
|
| 942 |
+
"userName": "terraform-prod",
|
| 943 |
+
"arn": "arn:aws:iam::111111111111:role/terraform-prod",
|
| 944 |
+
"accountId": "111111111111"
|
| 945 |
+
}
|
| 946 |
+
}
|
| 947 |
+
},
|
| 948 |
+
"eventTime": "2026-04-01T12:44:06Z",
|
| 949 |
+
"eventSource": "s3.amazonaws.com",
|
| 950 |
+
"eventName": "GetBucketAcl",
|
| 951 |
+
"awsRegion": "us-east-1",
|
| 952 |
+
"sourceIPAddress": "198.51.100.20",
|
| 953 |
+
"userAgent": "terraform/1.9.0",
|
| 954 |
+
"requestParameters": {
|
| 955 |
+
"bucketName": "prod-invoice-export"
|
| 956 |
+
},
|
| 957 |
+
"responseElements": null,
|
| 958 |
+
"requestID": "req-bg-0010",
|
| 959 |
+
"eventID": "bg-0010",
|
| 960 |
+
"readOnly": true,
|
| 961 |
+
"eventType": "AwsApiCall",
|
| 962 |
+
"managementEvent": true,
|
| 963 |
+
"recipientAccountId": "111111111111",
|
| 964 |
+
"errorCode": null,
|
| 965 |
+
"lab_event_id": "",
|
| 966 |
+
"lab_family": "",
|
| 967 |
+
"change_ticket": "",
|
| 968 |
+
"split": "development",
|
| 969 |
+
"incomplete": false
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"eventVersion": "1.09",
|
| 973 |
+
"userIdentity": {
|
| 974 |
+
"type": "AssumedRole",
|
| 975 |
+
"principalId": "111111111111:lambda-rotator",
|
| 976 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 977 |
+
"accountId": "111111111111",
|
| 978 |
+
"sessionContext": {
|
| 979 |
+
"sessionIssuer": {
|
| 980 |
+
"type": "Role",
|
| 981 |
+
"userName": "lambda-rotator",
|
| 982 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 983 |
+
"accountId": "111111111111"
|
| 984 |
+
}
|
| 985 |
+
}
|
| 986 |
+
},
|
| 987 |
+
"eventTime": "2026-04-01T10:46:47Z",
|
| 988 |
+
"eventSource": "s3.amazonaws.com",
|
| 989 |
+
"eventName": "GetBucketAcl",
|
| 990 |
+
"awsRegion": "us-east-1",
|
| 991 |
+
"sourceIPAddress": "198.51.100.20",
|
| 992 |
+
"userAgent": "terraform/1.9.0",
|
| 993 |
+
"requestParameters": {
|
| 994 |
+
"bucketName": "prod-invoice-export"
|
| 995 |
+
},
|
| 996 |
+
"responseElements": null,
|
| 997 |
+
"requestID": "req-bg-0011",
|
| 998 |
+
"eventID": "bg-0011",
|
| 999 |
+
"readOnly": true,
|
| 1000 |
+
"eventType": "AwsApiCall",
|
| 1001 |
+
"managementEvent": true,
|
| 1002 |
+
"recipientAccountId": "111111111111",
|
| 1003 |
+
"errorCode": null,
|
| 1004 |
+
"lab_event_id": "",
|
| 1005 |
+
"lab_family": "",
|
| 1006 |
+
"change_ticket": "",
|
| 1007 |
+
"split": "development",
|
| 1008 |
+
"incomplete": false
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"eventVersion": "1.09",
|
| 1012 |
+
"userIdentity": {
|
| 1013 |
+
"type": "AssumedRole",
|
| 1014 |
+
"principalId": "222222222222:terraform-staging",
|
| 1015 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1016 |
+
"accountId": "222222222222",
|
| 1017 |
+
"sessionContext": {
|
| 1018 |
+
"sessionIssuer": {
|
| 1019 |
+
"type": "Role",
|
| 1020 |
+
"userName": "terraform-staging",
|
| 1021 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1022 |
+
"accountId": "222222222222"
|
| 1023 |
+
}
|
| 1024 |
+
}
|
| 1025 |
+
},
|
| 1026 |
+
"eventTime": "2026-04-01T09:43:26Z",
|
| 1027 |
+
"eventSource": "iam.amazonaws.com",
|
| 1028 |
+
"eventName": "ListUsers",
|
| 1029 |
+
"awsRegion": "us-east-1",
|
| 1030 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1031 |
+
"userAgent": "terraform/1.9.0",
|
| 1032 |
+
"requestParameters": {
|
| 1033 |
+
"marker": "lab-read"
|
| 1034 |
+
},
|
| 1035 |
+
"responseElements": null,
|
| 1036 |
+
"requestID": "req-bg-0013",
|
| 1037 |
+
"eventID": "bg-0013",
|
| 1038 |
+
"readOnly": true,
|
| 1039 |
+
"eventType": "AwsApiCall",
|
| 1040 |
+
"managementEvent": true,
|
| 1041 |
+
"recipientAccountId": "222222222222",
|
| 1042 |
+
"errorCode": null,
|
| 1043 |
+
"lab_event_id": "",
|
| 1044 |
+
"lab_family": "",
|
| 1045 |
+
"change_ticket": "",
|
| 1046 |
+
"split": "development",
|
| 1047 |
+
"incomplete": false
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"eventVersion": "1.09",
|
| 1051 |
+
"userIdentity": {
|
| 1052 |
+
"type": "AssumedRole",
|
| 1053 |
+
"principalId": "222222222222:terraform-staging",
|
| 1054 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1055 |
+
"accountId": "222222222222",
|
| 1056 |
+
"sessionContext": {
|
| 1057 |
+
"sessionIssuer": {
|
| 1058 |
+
"type": "Role",
|
| 1059 |
+
"userName": "terraform-staging",
|
| 1060 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1061 |
+
"accountId": "222222222222"
|
| 1062 |
+
}
|
| 1063 |
+
}
|
| 1064 |
+
},
|
| 1065 |
+
"eventTime": "2026-04-01T16:30:07Z",
|
| 1066 |
+
"eventSource": "s3.amazonaws.com",
|
| 1067 |
+
"eventName": "GetBucketAcl",
|
| 1068 |
+
"awsRegion": "us-east-1",
|
| 1069 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1070 |
+
"userAgent": "terraform/1.9.0",
|
| 1071 |
+
"requestParameters": {
|
| 1072 |
+
"bucketName": "prod-invoice-export"
|
| 1073 |
+
},
|
| 1074 |
+
"responseElements": null,
|
| 1075 |
+
"requestID": "req-bg-0014",
|
| 1076 |
+
"eventID": "bg-0014",
|
| 1077 |
+
"readOnly": true,
|
| 1078 |
+
"eventType": "AwsApiCall",
|
| 1079 |
+
"managementEvent": true,
|
| 1080 |
+
"recipientAccountId": "222222222222",
|
| 1081 |
+
"errorCode": null,
|
| 1082 |
+
"lab_event_id": "",
|
| 1083 |
+
"lab_family": "",
|
| 1084 |
+
"change_ticket": "",
|
| 1085 |
+
"split": "development",
|
| 1086 |
+
"incomplete": false
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"eventVersion": "1.09",
|
| 1090 |
+
"userIdentity": {
|
| 1091 |
+
"type": "AssumedRole",
|
| 1092 |
+
"principalId": "222222222222:terraform-staging",
|
| 1093 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1094 |
+
"accountId": "222222222222",
|
| 1095 |
+
"sessionContext": {
|
| 1096 |
+
"sessionIssuer": {
|
| 1097 |
+
"type": "Role",
|
| 1098 |
+
"userName": "terraform-staging",
|
| 1099 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1100 |
+
"accountId": "222222222222"
|
| 1101 |
+
}
|
| 1102 |
+
}
|
| 1103 |
+
},
|
| 1104 |
+
"eventTime": "2026-04-01T12:03:49Z",
|
| 1105 |
+
"eventSource": "s3.amazonaws.com",
|
| 1106 |
+
"eventName": "GetBucketAcl",
|
| 1107 |
+
"awsRegion": "us-east-1",
|
| 1108 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1109 |
+
"userAgent": "terraform/1.9.0",
|
| 1110 |
+
"requestParameters": {
|
| 1111 |
+
"bucketName": "prod-invoice-export"
|
| 1112 |
+
},
|
| 1113 |
+
"responseElements": null,
|
| 1114 |
+
"requestID": "req-bg-0017",
|
| 1115 |
+
"eventID": "bg-0017",
|
| 1116 |
+
"readOnly": true,
|
| 1117 |
+
"eventType": "AwsApiCall",
|
| 1118 |
+
"managementEvent": true,
|
| 1119 |
+
"recipientAccountId": "222222222222",
|
| 1120 |
+
"errorCode": null,
|
| 1121 |
+
"lab_event_id": "",
|
| 1122 |
+
"lab_family": "",
|
| 1123 |
+
"change_ticket": "",
|
| 1124 |
+
"split": "development",
|
| 1125 |
+
"incomplete": false
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"eventVersion": "1.09",
|
| 1129 |
+
"userIdentity": {
|
| 1130 |
+
"type": "AssumedRole",
|
| 1131 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1132 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1133 |
+
"accountId": "111111111111",
|
| 1134 |
+
"sessionContext": {
|
| 1135 |
+
"sessionIssuer": {
|
| 1136 |
+
"type": "Role",
|
| 1137 |
+
"userName": "lambda-rotator",
|
| 1138 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1139 |
+
"accountId": "111111111111"
|
| 1140 |
+
}
|
| 1141 |
+
}
|
| 1142 |
+
},
|
| 1143 |
+
"eventTime": "2026-04-02T15:00:26Z",
|
| 1144 |
+
"eventSource": "iam.amazonaws.com",
|
| 1145 |
+
"eventName": "ListUsers",
|
| 1146 |
+
"awsRegion": "us-east-1",
|
| 1147 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1148 |
+
"userAgent": "terraform/1.9.0",
|
| 1149 |
+
"requestParameters": {
|
| 1150 |
+
"marker": "lab-read"
|
| 1151 |
+
},
|
| 1152 |
+
"responseElements": null,
|
| 1153 |
+
"requestID": "req-bg-0022",
|
| 1154 |
+
"eventID": "bg-0022",
|
| 1155 |
+
"readOnly": true,
|
| 1156 |
+
"eventType": "AwsApiCall",
|
| 1157 |
+
"managementEvent": true,
|
| 1158 |
+
"recipientAccountId": "111111111111",
|
| 1159 |
+
"errorCode": null,
|
| 1160 |
+
"lab_event_id": "",
|
| 1161 |
+
"lab_family": "",
|
| 1162 |
+
"change_ticket": "",
|
| 1163 |
+
"split": "development",
|
| 1164 |
+
"incomplete": false
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"eventVersion": "1.09",
|
| 1168 |
+
"userIdentity": {
|
| 1169 |
+
"type": "IAMUser",
|
| 1170 |
+
"principalId": "AIDAICAROLLAB",
|
| 1171 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1172 |
+
"accountId": "333333333333",
|
| 1173 |
+
"userName": "carol"
|
| 1174 |
+
},
|
| 1175 |
+
"eventTime": "2026-04-02T14:55:03Z",
|
| 1176 |
+
"eventSource": "iam.amazonaws.com",
|
| 1177 |
+
"eventName": "ListUsers",
|
| 1178 |
+
"awsRegion": "us-east-1",
|
| 1179 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1180 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1181 |
+
"requestParameters": {
|
| 1182 |
+
"marker": "lab-read"
|
| 1183 |
+
},
|
| 1184 |
+
"responseElements": null,
|
| 1185 |
+
"requestID": "req-bg-0030",
|
| 1186 |
+
"eventID": "bg-0030",
|
| 1187 |
+
"readOnly": true,
|
| 1188 |
+
"eventType": "AwsApiCall",
|
| 1189 |
+
"managementEvent": true,
|
| 1190 |
+
"recipientAccountId": "333333333333",
|
| 1191 |
+
"errorCode": null,
|
| 1192 |
+
"lab_event_id": "",
|
| 1193 |
+
"lab_family": "",
|
| 1194 |
+
"change_ticket": "",
|
| 1195 |
+
"split": "development",
|
| 1196 |
+
"incomplete": false
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"eventVersion": "1.09",
|
| 1200 |
+
"userIdentity": {
|
| 1201 |
+
"type": "IAMUser",
|
| 1202 |
+
"principalId": "AIDAIBOBLAB",
|
| 1203 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1204 |
+
"accountId": "222222222222",
|
| 1205 |
+
"userName": "bob"
|
| 1206 |
+
},
|
| 1207 |
+
"eventTime": "2026-04-02T10:52:19Z",
|
| 1208 |
+
"eventSource": "iam.amazonaws.com",
|
| 1209 |
+
"eventName": "ListUsers",
|
| 1210 |
+
"awsRegion": "us-east-1",
|
| 1211 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1212 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1213 |
+
"requestParameters": {
|
| 1214 |
+
"marker": "lab-read"
|
| 1215 |
+
},
|
| 1216 |
+
"responseElements": null,
|
| 1217 |
+
"requestID": "req-bg-0031",
|
| 1218 |
+
"eventID": "bg-0031",
|
| 1219 |
+
"readOnly": true,
|
| 1220 |
+
"eventType": "AwsApiCall",
|
| 1221 |
+
"managementEvent": true,
|
| 1222 |
+
"recipientAccountId": "222222222222",
|
| 1223 |
+
"errorCode": null,
|
| 1224 |
+
"lab_event_id": "",
|
| 1225 |
+
"lab_family": "",
|
| 1226 |
+
"change_ticket": "",
|
| 1227 |
+
"split": "development",
|
| 1228 |
+
"incomplete": false
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"eventVersion": "1.09",
|
| 1232 |
+
"userIdentity": {
|
| 1233 |
+
"type": "IAMUser",
|
| 1234 |
+
"principalId": "AIDAIALICELAB",
|
| 1235 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1236 |
+
"accountId": "111111111111",
|
| 1237 |
+
"userName": "alice"
|
| 1238 |
+
},
|
| 1239 |
+
"eventTime": "2026-04-02T16:04:15Z",
|
| 1240 |
+
"eventSource": "iam.amazonaws.com",
|
| 1241 |
+
"eventName": "ListUsers",
|
| 1242 |
+
"awsRegion": "us-east-1",
|
| 1243 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1244 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1245 |
+
"requestParameters": {
|
| 1246 |
+
"marker": "lab-read"
|
| 1247 |
+
},
|
| 1248 |
+
"responseElements": null,
|
| 1249 |
+
"requestID": "req-bg-0038",
|
| 1250 |
+
"eventID": "bg-0038",
|
| 1251 |
+
"readOnly": true,
|
| 1252 |
+
"eventType": "AwsApiCall",
|
| 1253 |
+
"managementEvent": true,
|
| 1254 |
+
"recipientAccountId": "111111111111",
|
| 1255 |
+
"errorCode": null,
|
| 1256 |
+
"lab_event_id": "",
|
| 1257 |
+
"lab_family": "",
|
| 1258 |
+
"change_ticket": "",
|
| 1259 |
+
"split": "development",
|
| 1260 |
+
"incomplete": false
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"eventVersion": "1.09",
|
| 1264 |
+
"userIdentity": {
|
| 1265 |
+
"type": "IAMUser",
|
| 1266 |
+
"principalId": "AIDAICAROLLAB",
|
| 1267 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1268 |
+
"accountId": "333333333333",
|
| 1269 |
+
"userName": "carol"
|
| 1270 |
+
},
|
| 1271 |
+
"eventTime": "2026-04-03T12:04:15Z",
|
| 1272 |
+
"eventSource": "s3.amazonaws.com",
|
| 1273 |
+
"eventName": "GetBucketAcl",
|
| 1274 |
+
"awsRegion": "us-east-1",
|
| 1275 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1276 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1277 |
+
"requestParameters": {
|
| 1278 |
+
"bucketName": "prod-invoice-export"
|
| 1279 |
+
},
|
| 1280 |
+
"responseElements": null,
|
| 1281 |
+
"requestID": "req-bg-0044",
|
| 1282 |
+
"eventID": "bg-0044",
|
| 1283 |
+
"readOnly": true,
|
| 1284 |
+
"eventType": "AwsApiCall",
|
| 1285 |
+
"managementEvent": true,
|
| 1286 |
+
"recipientAccountId": "333333333333",
|
| 1287 |
+
"errorCode": null,
|
| 1288 |
+
"lab_event_id": "",
|
| 1289 |
+
"lab_family": "",
|
| 1290 |
+
"change_ticket": "",
|
| 1291 |
+
"split": "development",
|
| 1292 |
+
"incomplete": false
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"eventVersion": "1.09",
|
| 1296 |
+
"userIdentity": {
|
| 1297 |
+
"type": "IAMUser",
|
| 1298 |
+
"principalId": "AIDAICAROLLAB",
|
| 1299 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1300 |
+
"accountId": "333333333333",
|
| 1301 |
+
"userName": "carol"
|
| 1302 |
+
},
|
| 1303 |
+
"eventTime": "2026-04-03T08:39:42Z",
|
| 1304 |
+
"eventSource": "s3.amazonaws.com",
|
| 1305 |
+
"eventName": "GetBucketAcl",
|
| 1306 |
+
"awsRegion": "us-east-1",
|
| 1307 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1308 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1309 |
+
"requestParameters": {
|
| 1310 |
+
"bucketName": "prod-invoice-export"
|
| 1311 |
+
},
|
| 1312 |
+
"responseElements": null,
|
| 1313 |
+
"requestID": "req-bg-0045",
|
| 1314 |
+
"eventID": "bg-0045",
|
| 1315 |
+
"readOnly": true,
|
| 1316 |
+
"eventType": "AwsApiCall",
|
| 1317 |
+
"managementEvent": true,
|
| 1318 |
+
"recipientAccountId": "333333333333",
|
| 1319 |
+
"errorCode": null,
|
| 1320 |
+
"lab_event_id": "",
|
| 1321 |
+
"lab_family": "",
|
| 1322 |
+
"change_ticket": "",
|
| 1323 |
+
"split": "development",
|
| 1324 |
+
"incomplete": false
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"eventVersion": "1.09",
|
| 1328 |
+
"userIdentity": {
|
| 1329 |
+
"type": "IAMUser",
|
| 1330 |
+
"principalId": "AIDAIBOBLAB",
|
| 1331 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1332 |
+
"accountId": "222222222222",
|
| 1333 |
+
"userName": "bob"
|
| 1334 |
+
},
|
| 1335 |
+
"eventTime": "2026-04-03T09:28:43Z",
|
| 1336 |
+
"eventSource": "s3.amazonaws.com",
|
| 1337 |
+
"eventName": "GetBucketAcl",
|
| 1338 |
+
"awsRegion": "us-east-1",
|
| 1339 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1340 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1341 |
+
"requestParameters": {
|
| 1342 |
+
"bucketName": "prod-invoice-export"
|
| 1343 |
+
},
|
| 1344 |
+
"responseElements": null,
|
| 1345 |
+
"requestID": "req-bg-0047",
|
| 1346 |
+
"eventID": "bg-0047",
|
| 1347 |
+
"readOnly": true,
|
| 1348 |
+
"eventType": "AwsApiCall",
|
| 1349 |
+
"managementEvent": true,
|
| 1350 |
+
"recipientAccountId": "222222222222",
|
| 1351 |
+
"errorCode": null,
|
| 1352 |
+
"lab_event_id": "",
|
| 1353 |
+
"lab_family": "",
|
| 1354 |
+
"change_ticket": "",
|
| 1355 |
+
"split": "development",
|
| 1356 |
+
"incomplete": false
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"eventVersion": "1.09",
|
| 1360 |
+
"userIdentity": {
|
| 1361 |
+
"type": "IAMUser",
|
| 1362 |
+
"principalId": "AIDAIBOBLAB",
|
| 1363 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1364 |
+
"accountId": "222222222222",
|
| 1365 |
+
"userName": "bob"
|
| 1366 |
+
},
|
| 1367 |
+
"eventTime": "2026-04-03T12:36:31Z",
|
| 1368 |
+
"eventSource": "s3.amazonaws.com",
|
| 1369 |
+
"eventName": "GetBucketAcl",
|
| 1370 |
+
"awsRegion": "us-east-1",
|
| 1371 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1372 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1373 |
+
"requestParameters": {
|
| 1374 |
+
"bucketName": "prod-invoice-export"
|
| 1375 |
+
},
|
| 1376 |
+
"responseElements": null,
|
| 1377 |
+
"requestID": "req-bg-0049",
|
| 1378 |
+
"eventID": "bg-0049",
|
| 1379 |
+
"readOnly": true,
|
| 1380 |
+
"eventType": "AwsApiCall",
|
| 1381 |
+
"managementEvent": true,
|
| 1382 |
+
"recipientAccountId": "222222222222",
|
| 1383 |
+
"errorCode": null,
|
| 1384 |
+
"lab_event_id": "",
|
| 1385 |
+
"lab_family": "",
|
| 1386 |
+
"change_ticket": "",
|
| 1387 |
+
"split": "development",
|
| 1388 |
+
"incomplete": false
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"eventVersion": "1.09",
|
| 1392 |
+
"userIdentity": {
|
| 1393 |
+
"type": "IAMUser",
|
| 1394 |
+
"principalId": "AIDAIALICELAB",
|
| 1395 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1396 |
+
"accountId": "111111111111",
|
| 1397 |
+
"userName": "alice"
|
| 1398 |
+
},
|
| 1399 |
+
"eventTime": "2026-04-03T14:28:22Z",
|
| 1400 |
+
"eventSource": "iam.amazonaws.com",
|
| 1401 |
+
"eventName": "ListUsers",
|
| 1402 |
+
"awsRegion": "us-east-1",
|
| 1403 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1404 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1405 |
+
"requestParameters": {
|
| 1406 |
+
"marker": "lab-read"
|
| 1407 |
+
},
|
| 1408 |
+
"responseElements": null,
|
| 1409 |
+
"requestID": "req-bg-0052",
|
| 1410 |
+
"eventID": "bg-0052",
|
| 1411 |
+
"readOnly": true,
|
| 1412 |
+
"eventType": "AwsApiCall",
|
| 1413 |
+
"managementEvent": true,
|
| 1414 |
+
"recipientAccountId": "111111111111",
|
| 1415 |
+
"errorCode": null,
|
| 1416 |
+
"lab_event_id": "",
|
| 1417 |
+
"lab_family": "",
|
| 1418 |
+
"change_ticket": "",
|
| 1419 |
+
"split": "development",
|
| 1420 |
+
"incomplete": false
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"eventVersion": "1.09",
|
| 1424 |
+
"userIdentity": {
|
| 1425 |
+
"type": "IAMUser",
|
| 1426 |
+
"principalId": "AIDAIDAVELAB",
|
| 1427 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1428 |
+
"accountId": "111111111111",
|
| 1429 |
+
"userName": "dave"
|
| 1430 |
+
},
|
| 1431 |
+
"eventTime": "2026-04-03T17:43:18Z",
|
| 1432 |
+
"eventSource": "s3.amazonaws.com",
|
| 1433 |
+
"eventName": "GetBucketAcl",
|
| 1434 |
+
"awsRegion": "us-east-1",
|
| 1435 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1436 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1437 |
+
"requestParameters": {
|
| 1438 |
+
"bucketName": "prod-invoice-export"
|
| 1439 |
+
},
|
| 1440 |
+
"responseElements": null,
|
| 1441 |
+
"requestID": "req-bg-0055",
|
| 1442 |
+
"eventID": "bg-0055",
|
| 1443 |
+
"readOnly": true,
|
| 1444 |
+
"eventType": "AwsApiCall",
|
| 1445 |
+
"managementEvent": true,
|
| 1446 |
+
"recipientAccountId": "111111111111",
|
| 1447 |
+
"errorCode": null,
|
| 1448 |
+
"lab_event_id": "",
|
| 1449 |
+
"lab_family": "",
|
| 1450 |
+
"change_ticket": "",
|
| 1451 |
+
"split": "development",
|
| 1452 |
+
"incomplete": false
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"eventVersion": "1.09",
|
| 1456 |
+
"userIdentity": {
|
| 1457 |
+
"type": "AssumedRole",
|
| 1458 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1459 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1460 |
+
"accountId": "111111111111",
|
| 1461 |
+
"sessionContext": {
|
| 1462 |
+
"sessionIssuer": {
|
| 1463 |
+
"type": "Role",
|
| 1464 |
+
"userName": "lambda-rotator",
|
| 1465 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1466 |
+
"accountId": "111111111111"
|
| 1467 |
+
}
|
| 1468 |
+
}
|
| 1469 |
+
},
|
| 1470 |
+
"eventTime": "2026-04-03T13:35:16Z",
|
| 1471 |
+
"eventSource": "s3.amazonaws.com",
|
| 1472 |
+
"eventName": "GetBucketAcl",
|
| 1473 |
+
"awsRegion": "us-east-1",
|
| 1474 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1475 |
+
"userAgent": "terraform/1.9.0",
|
| 1476 |
+
"requestParameters": {
|
| 1477 |
+
"bucketName": "prod-invoice-export"
|
| 1478 |
+
},
|
| 1479 |
+
"responseElements": null,
|
| 1480 |
+
"requestID": "req-bg-0056",
|
| 1481 |
+
"eventID": "bg-0056",
|
| 1482 |
+
"readOnly": true,
|
| 1483 |
+
"eventType": "AwsApiCall",
|
| 1484 |
+
"managementEvent": true,
|
| 1485 |
+
"recipientAccountId": "111111111111",
|
| 1486 |
+
"errorCode": null,
|
| 1487 |
+
"lab_event_id": "",
|
| 1488 |
+
"lab_family": "",
|
| 1489 |
+
"change_ticket": "",
|
| 1490 |
+
"split": "development",
|
| 1491 |
+
"incomplete": false
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"eventVersion": "1.09",
|
| 1495 |
+
"userIdentity": {
|
| 1496 |
+
"type": "IAMUser",
|
| 1497 |
+
"principalId": "AIDAIBOBLAB",
|
| 1498 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1499 |
+
"accountId": "222222222222",
|
| 1500 |
+
"userName": "bob"
|
| 1501 |
+
},
|
| 1502 |
+
"eventTime": "2026-04-03T12:03:44Z",
|
| 1503 |
+
"eventSource": "iam.amazonaws.com",
|
| 1504 |
+
"eventName": "ListUsers",
|
| 1505 |
+
"awsRegion": "us-east-1",
|
| 1506 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1507 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1508 |
+
"requestParameters": {
|
| 1509 |
+
"marker": "lab-read"
|
| 1510 |
+
},
|
| 1511 |
+
"responseElements": null,
|
| 1512 |
+
"requestID": "req-bg-0059",
|
| 1513 |
+
"eventID": "bg-0059",
|
| 1514 |
+
"readOnly": true,
|
| 1515 |
+
"eventType": "AwsApiCall",
|
| 1516 |
+
"managementEvent": true,
|
| 1517 |
+
"recipientAccountId": "222222222222",
|
| 1518 |
+
"errorCode": null,
|
| 1519 |
+
"lab_event_id": "",
|
| 1520 |
+
"lab_family": "",
|
| 1521 |
+
"change_ticket": "",
|
| 1522 |
+
"split": "development",
|
| 1523 |
+
"incomplete": false
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"eventVersion": "1.09",
|
| 1527 |
+
"userIdentity": {
|
| 1528 |
+
"type": "IAMUser",
|
| 1529 |
+
"principalId": "AIDAICAROLLAB",
|
| 1530 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1531 |
+
"accountId": "333333333333",
|
| 1532 |
+
"userName": "carol"
|
| 1533 |
+
},
|
| 1534 |
+
"eventTime": "2026-04-04T16:33:34Z",
|
| 1535 |
+
"eventSource": "s3.amazonaws.com",
|
| 1536 |
+
"eventName": "GetBucketAcl",
|
| 1537 |
+
"awsRegion": "us-east-1",
|
| 1538 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1539 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1540 |
+
"requestParameters": {
|
| 1541 |
+
"bucketName": "prod-invoice-export"
|
| 1542 |
+
},
|
| 1543 |
+
"responseElements": null,
|
| 1544 |
+
"requestID": "req-bg-0064",
|
| 1545 |
+
"eventID": "bg-0064",
|
| 1546 |
+
"readOnly": true,
|
| 1547 |
+
"eventType": "AwsApiCall",
|
| 1548 |
+
"managementEvent": true,
|
| 1549 |
+
"recipientAccountId": "333333333333",
|
| 1550 |
+
"errorCode": null,
|
| 1551 |
+
"lab_event_id": "",
|
| 1552 |
+
"lab_family": "",
|
| 1553 |
+
"change_ticket": "",
|
| 1554 |
+
"split": "development",
|
| 1555 |
+
"incomplete": false
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"eventVersion": "1.09",
|
| 1559 |
+
"userIdentity": {
|
| 1560 |
+
"type": "AssumedRole",
|
| 1561 |
+
"principalId": "222222222222:terraform-staging",
|
| 1562 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1563 |
+
"accountId": "222222222222",
|
| 1564 |
+
"sessionContext": {
|
| 1565 |
+
"sessionIssuer": {
|
| 1566 |
+
"type": "Role",
|
| 1567 |
+
"userName": "terraform-staging",
|
| 1568 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1569 |
+
"accountId": "222222222222"
|
| 1570 |
+
}
|
| 1571 |
+
}
|
| 1572 |
+
},
|
| 1573 |
+
"eventTime": "2026-04-04T13:59:22Z",
|
| 1574 |
+
"eventSource": "s3.amazonaws.com",
|
| 1575 |
+
"eventName": "GetBucketAcl",
|
| 1576 |
+
"awsRegion": "us-east-1",
|
| 1577 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1578 |
+
"userAgent": "terraform/1.9.0",
|
| 1579 |
+
"requestParameters": {
|
| 1580 |
+
"bucketName": "prod-invoice-export"
|
| 1581 |
+
},
|
| 1582 |
+
"responseElements": null,
|
| 1583 |
+
"requestID": "req-bg-0066",
|
| 1584 |
+
"eventID": "bg-0066",
|
| 1585 |
+
"readOnly": true,
|
| 1586 |
+
"eventType": "AwsApiCall",
|
| 1587 |
+
"managementEvent": true,
|
| 1588 |
+
"recipientAccountId": "222222222222",
|
| 1589 |
+
"errorCode": null,
|
| 1590 |
+
"lab_event_id": "",
|
| 1591 |
+
"lab_family": "",
|
| 1592 |
+
"change_ticket": "",
|
| 1593 |
+
"split": "development",
|
| 1594 |
+
"incomplete": false
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"eventVersion": "1.09",
|
| 1598 |
+
"userIdentity": {
|
| 1599 |
+
"type": "AssumedRole",
|
| 1600 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1601 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1602 |
+
"accountId": "111111111111",
|
| 1603 |
+
"sessionContext": {
|
| 1604 |
+
"sessionIssuer": {
|
| 1605 |
+
"type": "Role",
|
| 1606 |
+
"userName": "lambda-rotator",
|
| 1607 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1608 |
+
"accountId": "111111111111"
|
| 1609 |
+
}
|
| 1610 |
+
}
|
| 1611 |
+
},
|
| 1612 |
+
"eventTime": "2026-04-04T14:10:34Z",
|
| 1613 |
+
"eventSource": "iam.amazonaws.com",
|
| 1614 |
+
"eventName": "ListUsers",
|
| 1615 |
+
"awsRegion": "us-east-1",
|
| 1616 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1617 |
+
"userAgent": "terraform/1.9.0",
|
| 1618 |
+
"requestParameters": {
|
| 1619 |
+
"marker": "lab-read"
|
| 1620 |
+
},
|
| 1621 |
+
"responseElements": null,
|
| 1622 |
+
"requestID": "req-bg-0067",
|
| 1623 |
+
"eventID": "bg-0067",
|
| 1624 |
+
"readOnly": true,
|
| 1625 |
+
"eventType": "AwsApiCall",
|
| 1626 |
+
"managementEvent": true,
|
| 1627 |
+
"recipientAccountId": "111111111111",
|
| 1628 |
+
"errorCode": null,
|
| 1629 |
+
"lab_event_id": "",
|
| 1630 |
+
"lab_family": "",
|
| 1631 |
+
"change_ticket": "",
|
| 1632 |
+
"split": "development",
|
| 1633 |
+
"incomplete": false
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"eventVersion": "1.09",
|
| 1637 |
+
"userIdentity": {
|
| 1638 |
+
"type": "IAMUser",
|
| 1639 |
+
"principalId": "AIDAIDAVELAB",
|
| 1640 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1641 |
+
"accountId": "111111111111",
|
| 1642 |
+
"userName": "dave"
|
| 1643 |
+
},
|
| 1644 |
+
"eventTime": "2026-04-04T13:52:45Z",
|
| 1645 |
+
"eventSource": "iam.amazonaws.com",
|
| 1646 |
+
"eventName": "ListUsers",
|
| 1647 |
+
"awsRegion": "us-east-1",
|
| 1648 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1649 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1650 |
+
"requestParameters": {
|
| 1651 |
+
"marker": "lab-read"
|
| 1652 |
+
},
|
| 1653 |
+
"responseElements": null,
|
| 1654 |
+
"requestID": "req-bg-0077",
|
| 1655 |
+
"eventID": "bg-0077",
|
| 1656 |
+
"readOnly": true,
|
| 1657 |
+
"eventType": "AwsApiCall",
|
| 1658 |
+
"managementEvent": true,
|
| 1659 |
+
"recipientAccountId": "111111111111",
|
| 1660 |
+
"errorCode": null,
|
| 1661 |
+
"lab_event_id": "",
|
| 1662 |
+
"lab_family": "",
|
| 1663 |
+
"change_ticket": "",
|
| 1664 |
+
"split": "development",
|
| 1665 |
+
"incomplete": false
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"eventVersion": "1.09",
|
| 1669 |
+
"userIdentity": {
|
| 1670 |
+
"type": "IAMUser",
|
| 1671 |
+
"principalId": "AIDAIALICELAB",
|
| 1672 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1673 |
+
"accountId": "111111111111",
|
| 1674 |
+
"userName": "alice"
|
| 1675 |
+
},
|
| 1676 |
+
"eventTime": "2026-04-05T12:02:09Z",
|
| 1677 |
+
"eventSource": "iam.amazonaws.com",
|
| 1678 |
+
"eventName": "ListUsers",
|
| 1679 |
+
"awsRegion": "us-east-1",
|
| 1680 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1681 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1682 |
+
"requestParameters": {
|
| 1683 |
+
"marker": "lab-read"
|
| 1684 |
+
},
|
| 1685 |
+
"responseElements": null,
|
| 1686 |
+
"requestID": "req-bg-0085",
|
| 1687 |
+
"eventID": "bg-0085",
|
| 1688 |
+
"readOnly": true,
|
| 1689 |
+
"eventType": "AwsApiCall",
|
| 1690 |
+
"managementEvent": true,
|
| 1691 |
+
"recipientAccountId": "111111111111",
|
| 1692 |
+
"errorCode": null,
|
| 1693 |
+
"lab_event_id": "",
|
| 1694 |
+
"lab_family": "",
|
| 1695 |
+
"change_ticket": "",
|
| 1696 |
+
"split": "development",
|
| 1697 |
+
"incomplete": false
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"eventVersion": "1.09",
|
| 1701 |
+
"userIdentity": {
|
| 1702 |
+
"type": "IAMUser",
|
| 1703 |
+
"principalId": "AIDAIDAVELAB",
|
| 1704 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1705 |
+
"accountId": "111111111111",
|
| 1706 |
+
"userName": "dave"
|
| 1707 |
+
},
|
| 1708 |
+
"eventTime": "2026-04-05T15:08:37Z",
|
| 1709 |
+
"eventSource": "iam.amazonaws.com",
|
| 1710 |
+
"eventName": "ListUsers",
|
| 1711 |
+
"awsRegion": "us-east-1",
|
| 1712 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1713 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1714 |
+
"requestParameters": {
|
| 1715 |
+
"marker": "lab-read"
|
| 1716 |
+
},
|
| 1717 |
+
"responseElements": null,
|
| 1718 |
+
"requestID": "req-bg-0089",
|
| 1719 |
+
"eventID": "bg-0089",
|
| 1720 |
+
"readOnly": true,
|
| 1721 |
+
"eventType": "AwsApiCall",
|
| 1722 |
+
"managementEvent": true,
|
| 1723 |
+
"recipientAccountId": "111111111111",
|
| 1724 |
+
"errorCode": null,
|
| 1725 |
+
"lab_event_id": "",
|
| 1726 |
+
"lab_family": "",
|
| 1727 |
+
"change_ticket": "",
|
| 1728 |
+
"split": "development",
|
| 1729 |
+
"incomplete": false
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"eventVersion": "1.09",
|
| 1733 |
+
"userIdentity": {
|
| 1734 |
+
"type": "AssumedRole",
|
| 1735 |
+
"principalId": "222222222222:ci-github",
|
| 1736 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1737 |
+
"accountId": "222222222222",
|
| 1738 |
+
"sessionContext": {
|
| 1739 |
+
"sessionIssuer": {
|
| 1740 |
+
"type": "Role",
|
| 1741 |
+
"userName": "ci-github",
|
| 1742 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1743 |
+
"accountId": "222222222222"
|
| 1744 |
+
}
|
| 1745 |
+
}
|
| 1746 |
+
},
|
| 1747 |
+
"eventTime": "2026-04-05T08:27:03Z",
|
| 1748 |
+
"eventSource": "iam.amazonaws.com",
|
| 1749 |
+
"eventName": "ListUsers",
|
| 1750 |
+
"awsRegion": "us-east-1",
|
| 1751 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1752 |
+
"userAgent": "terraform/1.9.0",
|
| 1753 |
+
"requestParameters": {
|
| 1754 |
+
"marker": "lab-read"
|
| 1755 |
+
},
|
| 1756 |
+
"responseElements": null,
|
| 1757 |
+
"requestID": "req-bg-0090",
|
| 1758 |
+
"eventID": "bg-0090",
|
| 1759 |
+
"readOnly": true,
|
| 1760 |
+
"eventType": "AwsApiCall",
|
| 1761 |
+
"managementEvent": true,
|
| 1762 |
+
"recipientAccountId": "222222222222",
|
| 1763 |
+
"errorCode": null,
|
| 1764 |
+
"lab_event_id": "",
|
| 1765 |
+
"lab_family": "",
|
| 1766 |
+
"change_ticket": "",
|
| 1767 |
+
"split": "development",
|
| 1768 |
+
"incomplete": false
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"eventVersion": "1.09",
|
| 1772 |
+
"userIdentity": {
|
| 1773 |
+
"type": "AssumedRole",
|
| 1774 |
+
"principalId": "222222222222:ci-github",
|
| 1775 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1776 |
+
"accountId": "222222222222",
|
| 1777 |
+
"sessionContext": {
|
| 1778 |
+
"sessionIssuer": {
|
| 1779 |
+
"type": "Role",
|
| 1780 |
+
"userName": "ci-github",
|
| 1781 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1782 |
+
"accountId": "222222222222"
|
| 1783 |
+
}
|
| 1784 |
+
}
|
| 1785 |
+
},
|
| 1786 |
+
"eventTime": "2026-04-05T15:27:28Z",
|
| 1787 |
+
"eventSource": "s3.amazonaws.com",
|
| 1788 |
+
"eventName": "GetBucketAcl",
|
| 1789 |
+
"awsRegion": "us-east-1",
|
| 1790 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1791 |
+
"userAgent": "terraform/1.9.0",
|
| 1792 |
+
"requestParameters": {
|
| 1793 |
+
"bucketName": "prod-invoice-export"
|
| 1794 |
+
},
|
| 1795 |
+
"responseElements": null,
|
| 1796 |
+
"requestID": "req-bg-0091",
|
| 1797 |
+
"eventID": "bg-0091",
|
| 1798 |
+
"readOnly": true,
|
| 1799 |
+
"eventType": "AwsApiCall",
|
| 1800 |
+
"managementEvent": true,
|
| 1801 |
+
"recipientAccountId": "222222222222",
|
| 1802 |
+
"errorCode": null,
|
| 1803 |
+
"lab_event_id": "",
|
| 1804 |
+
"lab_family": "",
|
| 1805 |
+
"change_ticket": "",
|
| 1806 |
+
"split": "development",
|
| 1807 |
+
"incomplete": false
|
| 1808 |
+
},
|
| 1809 |
+
{
|
| 1810 |
+
"eventVersion": "1.09",
|
| 1811 |
+
"userIdentity": {
|
| 1812 |
+
"type": "IAMUser",
|
| 1813 |
+
"principalId": "AIDAIALICELAB",
|
| 1814 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1815 |
+
"accountId": "111111111111",
|
| 1816 |
+
"userName": "alice"
|
| 1817 |
+
},
|
| 1818 |
+
"eventTime": "2026-04-05T12:20:00Z",
|
| 1819 |
+
"eventSource": "s3.amazonaws.com",
|
| 1820 |
+
"eventName": "GetBucketAcl",
|
| 1821 |
+
"awsRegion": "us-east-1",
|
| 1822 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1823 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1824 |
+
"requestParameters": {
|
| 1825 |
+
"bucketName": "prod-invoice-export"
|
| 1826 |
+
},
|
| 1827 |
+
"responseElements": null,
|
| 1828 |
+
"requestID": "req-bg-0092",
|
| 1829 |
+
"eventID": "bg-0092",
|
| 1830 |
+
"readOnly": true,
|
| 1831 |
+
"eventType": "AwsApiCall",
|
| 1832 |
+
"managementEvent": true,
|
| 1833 |
+
"recipientAccountId": "111111111111",
|
| 1834 |
+
"errorCode": null,
|
| 1835 |
+
"lab_event_id": "",
|
| 1836 |
+
"lab_family": "",
|
| 1837 |
+
"change_ticket": "",
|
| 1838 |
+
"split": "development",
|
| 1839 |
+
"incomplete": false
|
| 1840 |
+
},
|
| 1841 |
+
{
|
| 1842 |
+
"eventVersion": "1.09",
|
| 1843 |
+
"userIdentity": {
|
| 1844 |
+
"type": "IAMUser",
|
| 1845 |
+
"principalId": "AIDAICAROLLAB",
|
| 1846 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1847 |
+
"accountId": "333333333333",
|
| 1848 |
+
"userName": "carol"
|
| 1849 |
+
},
|
| 1850 |
+
"eventTime": "2026-04-05T16:56:01Z",
|
| 1851 |
+
"eventSource": "iam.amazonaws.com",
|
| 1852 |
+
"eventName": "ListUsers",
|
| 1853 |
+
"awsRegion": "us-east-1",
|
| 1854 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1855 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1856 |
+
"requestParameters": {
|
| 1857 |
+
"marker": "lab-read"
|
| 1858 |
+
},
|
| 1859 |
+
"responseElements": null,
|
| 1860 |
+
"requestID": "req-bg-0094",
|
| 1861 |
+
"eventID": "bg-0094",
|
| 1862 |
+
"readOnly": true,
|
| 1863 |
+
"eventType": "AwsApiCall",
|
| 1864 |
+
"managementEvent": true,
|
| 1865 |
+
"recipientAccountId": "333333333333",
|
| 1866 |
+
"errorCode": null,
|
| 1867 |
+
"lab_event_id": "",
|
| 1868 |
+
"lab_family": "",
|
| 1869 |
+
"change_ticket": "",
|
| 1870 |
+
"split": "development",
|
| 1871 |
+
"incomplete": false
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"eventVersion": "1.09",
|
| 1875 |
+
"userIdentity": {
|
| 1876 |
+
"type": "IAMUser",
|
| 1877 |
+
"principalId": "AIDAIBOBLAB",
|
| 1878 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1879 |
+
"accountId": "222222222222",
|
| 1880 |
+
"userName": "bob"
|
| 1881 |
+
},
|
| 1882 |
+
"eventTime": "2026-04-05T10:30:09Z",
|
| 1883 |
+
"eventSource": "iam.amazonaws.com",
|
| 1884 |
+
"eventName": "ListUsers",
|
| 1885 |
+
"awsRegion": "us-east-1",
|
| 1886 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1887 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1888 |
+
"requestParameters": {
|
| 1889 |
+
"marker": "lab-read"
|
| 1890 |
+
},
|
| 1891 |
+
"responseElements": null,
|
| 1892 |
+
"requestID": "req-bg-0096",
|
| 1893 |
+
"eventID": "bg-0096",
|
| 1894 |
+
"readOnly": true,
|
| 1895 |
+
"eventType": "AwsApiCall",
|
| 1896 |
+
"managementEvent": true,
|
| 1897 |
+
"recipientAccountId": "222222222222",
|
| 1898 |
+
"errorCode": null,
|
| 1899 |
+
"lab_event_id": "",
|
| 1900 |
+
"lab_family": "",
|
| 1901 |
+
"change_ticket": "",
|
| 1902 |
+
"split": "development",
|
| 1903 |
+
"incomplete": false
|
| 1904 |
+
},
|
| 1905 |
+
{
|
| 1906 |
+
"eventVersion": "1.09",
|
| 1907 |
+
"userIdentity": {
|
| 1908 |
+
"type": "IAMUser",
|
| 1909 |
+
"principalId": "AIDAICAROLLAB",
|
| 1910 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1911 |
+
"accountId": "333333333333",
|
| 1912 |
+
"userName": "carol"
|
| 1913 |
+
},
|
| 1914 |
+
"eventTime": "2026-04-05T12:11:45Z",
|
| 1915 |
+
"eventSource": "iam.amazonaws.com",
|
| 1916 |
+
"eventName": "ListUsers",
|
| 1917 |
+
"awsRegion": "us-east-1",
|
| 1918 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1919 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1920 |
+
"requestParameters": {
|
| 1921 |
+
"marker": "lab-read"
|
| 1922 |
+
},
|
| 1923 |
+
"responseElements": null,
|
| 1924 |
+
"requestID": "req-bg-0098",
|
| 1925 |
+
"eventID": "bg-0098",
|
| 1926 |
+
"readOnly": true,
|
| 1927 |
+
"eventType": "AwsApiCall",
|
| 1928 |
+
"managementEvent": true,
|
| 1929 |
+
"recipientAccountId": "333333333333",
|
| 1930 |
+
"errorCode": null,
|
| 1931 |
+
"lab_event_id": "",
|
| 1932 |
+
"lab_family": "",
|
| 1933 |
+
"change_ticket": "",
|
| 1934 |
+
"split": "development",
|
| 1935 |
+
"incomplete": false
|
| 1936 |
+
},
|
| 1937 |
+
{
|
| 1938 |
+
"eventVersion": "1.09",
|
| 1939 |
+
"userIdentity": {
|
| 1940 |
+
"type": "AssumedRole",
|
| 1941 |
+
"principalId": "111111111111:terraform-prod",
|
| 1942 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session",
|
| 1943 |
+
"accountId": "111111111111",
|
| 1944 |
+
"sessionContext": {
|
| 1945 |
+
"sessionIssuer": {
|
| 1946 |
+
"type": "Role",
|
| 1947 |
+
"userName": "terraform-prod",
|
| 1948 |
+
"arn": "arn:aws:iam::111111111111:role/terraform-prod",
|
| 1949 |
+
"accountId": "111111111111"
|
| 1950 |
+
}
|
| 1951 |
+
}
|
| 1952 |
+
},
|
| 1953 |
+
"eventTime": "2026-04-06T16:14:19Z",
|
| 1954 |
+
"eventSource": "iam.amazonaws.com",
|
| 1955 |
+
"eventName": "ListUsers",
|
| 1956 |
+
"awsRegion": "us-east-1",
|
| 1957 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1958 |
+
"userAgent": "terraform/1.9.0",
|
| 1959 |
+
"requestParameters": {
|
| 1960 |
+
"marker": "lab-read"
|
| 1961 |
+
},
|
| 1962 |
+
"responseElements": null,
|
| 1963 |
+
"requestID": "req-bg-0108",
|
| 1964 |
+
"eventID": "bg-0108",
|
| 1965 |
+
"readOnly": true,
|
| 1966 |
+
"eventType": "AwsApiCall",
|
| 1967 |
+
"managementEvent": true,
|
| 1968 |
+
"recipientAccountId": "111111111111",
|
| 1969 |
+
"errorCode": null,
|
| 1970 |
+
"lab_event_id": "",
|
| 1971 |
+
"lab_family": "",
|
| 1972 |
+
"change_ticket": "",
|
| 1973 |
+
"split": "development",
|
| 1974 |
+
"incomplete": false
|
| 1975 |
+
},
|
| 1976 |
+
{
|
| 1977 |
+
"eventVersion": "1.09",
|
| 1978 |
+
"userIdentity": {
|
| 1979 |
+
"type": "AssumedRole",
|
| 1980 |
+
"principalId": "222222222222:ci-github",
|
| 1981 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1982 |
+
"accountId": "222222222222",
|
| 1983 |
+
"sessionContext": {
|
| 1984 |
+
"sessionIssuer": {
|
| 1985 |
+
"type": "Role",
|
| 1986 |
+
"userName": "ci-github",
|
| 1987 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1988 |
+
"accountId": "222222222222"
|
| 1989 |
+
}
|
| 1990 |
+
}
|
| 1991 |
+
},
|
| 1992 |
+
"eventTime": "2026-04-06T10:20:27Z",
|
| 1993 |
+
"eventSource": "s3.amazonaws.com",
|
| 1994 |
+
"eventName": "GetBucketAcl",
|
| 1995 |
+
"awsRegion": "us-east-1",
|
| 1996 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1997 |
+
"userAgent": "terraform/1.9.0",
|
| 1998 |
+
"requestParameters": {
|
| 1999 |
+
"bucketName": "prod-invoice-export"
|
| 2000 |
+
},
|
| 2001 |
+
"responseElements": null,
|
| 2002 |
+
"requestID": "req-bg-0109",
|
| 2003 |
+
"eventID": "bg-0109",
|
| 2004 |
+
"readOnly": true,
|
| 2005 |
+
"eventType": "AwsApiCall",
|
| 2006 |
+
"managementEvent": true,
|
| 2007 |
+
"recipientAccountId": "222222222222",
|
| 2008 |
+
"errorCode": null,
|
| 2009 |
+
"lab_event_id": "",
|
| 2010 |
+
"lab_family": "",
|
| 2011 |
+
"change_ticket": "",
|
| 2012 |
+
"split": "development",
|
| 2013 |
+
"incomplete": false
|
| 2014 |
+
},
|
| 2015 |
+
{
|
| 2016 |
+
"eventVersion": "1.09",
|
| 2017 |
+
"userIdentity": {
|
| 2018 |
+
"type": "AssumedRole",
|
| 2019 |
+
"principalId": "222222222222:terraform-staging",
|
| 2020 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2021 |
+
"accountId": "222222222222",
|
| 2022 |
+
"sessionContext": {
|
| 2023 |
+
"sessionIssuer": {
|
| 2024 |
+
"type": "Role",
|
| 2025 |
+
"userName": "terraform-staging",
|
| 2026 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2027 |
+
"accountId": "222222222222"
|
| 2028 |
+
}
|
| 2029 |
+
}
|
| 2030 |
+
},
|
| 2031 |
+
"eventTime": "2026-04-06T08:02:37Z",
|
| 2032 |
+
"eventSource": "s3.amazonaws.com",
|
| 2033 |
+
"eventName": "GetBucketAcl",
|
| 2034 |
+
"awsRegion": "us-east-1",
|
| 2035 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2036 |
+
"userAgent": "terraform/1.9.0",
|
| 2037 |
+
"requestParameters": {
|
| 2038 |
+
"bucketName": "prod-invoice-export"
|
| 2039 |
+
},
|
| 2040 |
+
"responseElements": null,
|
| 2041 |
+
"requestID": "req-bg-0117",
|
| 2042 |
+
"eventID": "bg-0117",
|
| 2043 |
+
"readOnly": true,
|
| 2044 |
+
"eventType": "AwsApiCall",
|
| 2045 |
+
"managementEvent": true,
|
| 2046 |
+
"recipientAccountId": "222222222222",
|
| 2047 |
+
"errorCode": null,
|
| 2048 |
+
"lab_event_id": "",
|
| 2049 |
+
"lab_family": "",
|
| 2050 |
+
"change_ticket": "",
|
| 2051 |
+
"split": "development",
|
| 2052 |
+
"incomplete": false
|
| 2053 |
+
},
|
| 2054 |
+
{
|
| 2055 |
+
"eventVersion": "1.09",
|
| 2056 |
+
"userIdentity": {
|
| 2057 |
+
"type": "AssumedRole",
|
| 2058 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2059 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2060 |
+
"accountId": "111111111111",
|
| 2061 |
+
"sessionContext": {
|
| 2062 |
+
"sessionIssuer": {
|
| 2063 |
+
"type": "Role",
|
| 2064 |
+
"userName": "lambda-rotator",
|
| 2065 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2066 |
+
"accountId": "111111111111"
|
| 2067 |
+
}
|
| 2068 |
+
}
|
| 2069 |
+
},
|
| 2070 |
+
"eventTime": "2026-04-06T13:23:22Z",
|
| 2071 |
+
"eventSource": "iam.amazonaws.com",
|
| 2072 |
+
"eventName": "ListUsers",
|
| 2073 |
+
"awsRegion": "us-east-1",
|
| 2074 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2075 |
+
"userAgent": "terraform/1.9.0",
|
| 2076 |
+
"requestParameters": {
|
| 2077 |
+
"marker": "lab-read"
|
| 2078 |
+
},
|
| 2079 |
+
"responseElements": null,
|
| 2080 |
+
"requestID": "req-bg-0120",
|
| 2081 |
+
"eventID": "bg-0120",
|
| 2082 |
+
"readOnly": true,
|
| 2083 |
+
"eventType": "AwsApiCall",
|
| 2084 |
+
"managementEvent": true,
|
| 2085 |
+
"recipientAccountId": "111111111111",
|
| 2086 |
+
"errorCode": null,
|
| 2087 |
+
"lab_event_id": "",
|
| 2088 |
+
"lab_family": "",
|
| 2089 |
+
"change_ticket": "",
|
| 2090 |
+
"split": "development",
|
| 2091 |
+
"incomplete": false
|
| 2092 |
+
},
|
| 2093 |
+
{
|
| 2094 |
+
"eventVersion": "1.09",
|
| 2095 |
+
"userIdentity": {
|
| 2096 |
+
"type": "AssumedRole",
|
| 2097 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2098 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2099 |
+
"accountId": "111111111111",
|
| 2100 |
+
"sessionContext": {
|
| 2101 |
+
"sessionIssuer": {
|
| 2102 |
+
"type": "Role",
|
| 2103 |
+
"userName": "lambda-rotator",
|
| 2104 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2105 |
+
"accountId": "111111111111"
|
| 2106 |
+
}
|
| 2107 |
+
}
|
| 2108 |
+
},
|
| 2109 |
+
"eventTime": "2026-04-07T10:30:05Z",
|
| 2110 |
+
"eventSource": "s3.amazonaws.com",
|
| 2111 |
+
"eventName": "GetBucketAcl",
|
| 2112 |
+
"awsRegion": "us-east-1",
|
| 2113 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2114 |
+
"userAgent": "terraform/1.9.0",
|
| 2115 |
+
"requestParameters": {
|
| 2116 |
+
"bucketName": "prod-invoice-export"
|
| 2117 |
+
},
|
| 2118 |
+
"responseElements": null,
|
| 2119 |
+
"requestID": "req-bg-0127",
|
| 2120 |
+
"eventID": "bg-0127",
|
| 2121 |
+
"readOnly": true,
|
| 2122 |
+
"eventType": "AwsApiCall",
|
| 2123 |
+
"managementEvent": true,
|
| 2124 |
+
"recipientAccountId": "111111111111",
|
| 2125 |
+
"errorCode": null,
|
| 2126 |
+
"lab_event_id": "",
|
| 2127 |
+
"lab_family": "",
|
| 2128 |
+
"change_ticket": "",
|
| 2129 |
+
"split": "development",
|
| 2130 |
+
"incomplete": false
|
| 2131 |
+
},
|
| 2132 |
+
{
|
| 2133 |
+
"eventVersion": "1.09",
|
| 2134 |
+
"userIdentity": {
|
| 2135 |
+
"type": "AssumedRole",
|
| 2136 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2137 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2138 |
+
"accountId": "111111111111",
|
| 2139 |
+
"sessionContext": {
|
| 2140 |
+
"sessionIssuer": {
|
| 2141 |
+
"type": "Role",
|
| 2142 |
+
"userName": "lambda-rotator",
|
| 2143 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2144 |
+
"accountId": "111111111111"
|
| 2145 |
+
}
|
| 2146 |
+
}
|
| 2147 |
+
},
|
| 2148 |
+
"eventTime": "2026-04-07T08:53:47Z",
|
| 2149 |
+
"eventSource": "s3.amazonaws.com",
|
| 2150 |
+
"eventName": "GetBucketAcl",
|
| 2151 |
+
"awsRegion": "us-east-1",
|
| 2152 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2153 |
+
"userAgent": "terraform/1.9.0",
|
| 2154 |
+
"requestParameters": {
|
| 2155 |
+
"bucketName": "prod-invoice-export"
|
| 2156 |
+
},
|
| 2157 |
+
"responseElements": null,
|
| 2158 |
+
"requestID": "req-bg-0134",
|
| 2159 |
+
"eventID": "bg-0134",
|
| 2160 |
+
"readOnly": true,
|
| 2161 |
+
"eventType": "AwsApiCall",
|
| 2162 |
+
"managementEvent": true,
|
| 2163 |
+
"recipientAccountId": "111111111111",
|
| 2164 |
+
"errorCode": null,
|
| 2165 |
+
"lab_event_id": "",
|
| 2166 |
+
"lab_family": "",
|
| 2167 |
+
"change_ticket": "",
|
| 2168 |
+
"split": "development",
|
| 2169 |
+
"incomplete": false
|
| 2170 |
+
},
|
| 2171 |
+
{
|
| 2172 |
+
"eventVersion": "1.09",
|
| 2173 |
+
"userIdentity": {
|
| 2174 |
+
"type": "AssumedRole",
|
| 2175 |
+
"principalId": "222222222222:terraform-staging",
|
| 2176 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2177 |
+
"accountId": "222222222222",
|
| 2178 |
+
"sessionContext": {
|
| 2179 |
+
"sessionIssuer": {
|
| 2180 |
+
"type": "Role",
|
| 2181 |
+
"userName": "terraform-staging",
|
| 2182 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2183 |
+
"accountId": "222222222222"
|
| 2184 |
+
}
|
| 2185 |
+
}
|
| 2186 |
+
},
|
| 2187 |
+
"eventTime": "2026-04-07T15:44:12Z",
|
| 2188 |
+
"eventSource": "iam.amazonaws.com",
|
| 2189 |
+
"eventName": "ListUsers",
|
| 2190 |
+
"awsRegion": "us-east-1",
|
| 2191 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2192 |
+
"userAgent": "terraform/1.9.0",
|
| 2193 |
+
"requestParameters": {
|
| 2194 |
+
"marker": "lab-read"
|
| 2195 |
+
},
|
| 2196 |
+
"responseElements": null,
|
| 2197 |
+
"requestID": "req-bg-0138",
|
| 2198 |
+
"eventID": "bg-0138",
|
| 2199 |
+
"readOnly": true,
|
| 2200 |
+
"eventType": "AwsApiCall",
|
| 2201 |
+
"managementEvent": true,
|
| 2202 |
+
"recipientAccountId": "222222222222",
|
| 2203 |
+
"errorCode": null,
|
| 2204 |
+
"lab_event_id": "",
|
| 2205 |
+
"lab_family": "",
|
| 2206 |
+
"change_ticket": "",
|
| 2207 |
+
"split": "development",
|
| 2208 |
+
"incomplete": false
|
| 2209 |
+
},
|
| 2210 |
+
{
|
| 2211 |
+
"eventVersion": "1.09",
|
| 2212 |
+
"userIdentity": {
|
| 2213 |
+
"type": "IAMUser",
|
| 2214 |
+
"principalId": "AIDAIDAVELAB",
|
| 2215 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2216 |
+
"accountId": "111111111111",
|
| 2217 |
+
"userName": "dave"
|
| 2218 |
+
},
|
| 2219 |
+
"eventTime": "2026-04-07T13:58:47Z",
|
| 2220 |
+
"eventSource": "iam.amazonaws.com",
|
| 2221 |
+
"eventName": "ListUsers",
|
| 2222 |
+
"awsRegion": "us-east-1",
|
| 2223 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2224 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2225 |
+
"requestParameters": {
|
| 2226 |
+
"marker": "lab-read"
|
| 2227 |
+
},
|
| 2228 |
+
"responseElements": null,
|
| 2229 |
+
"requestID": "req-bg-0143",
|
| 2230 |
+
"eventID": "bg-0143",
|
| 2231 |
+
"readOnly": true,
|
| 2232 |
+
"eventType": "AwsApiCall",
|
| 2233 |
+
"managementEvent": true,
|
| 2234 |
+
"recipientAccountId": "111111111111",
|
| 2235 |
+
"errorCode": null,
|
| 2236 |
+
"lab_event_id": "",
|
| 2237 |
+
"lab_family": "",
|
| 2238 |
+
"change_ticket": "",
|
| 2239 |
+
"split": "development",
|
| 2240 |
+
"incomplete": false
|
| 2241 |
+
},
|
| 2242 |
+
{
|
| 2243 |
+
"eventVersion": "1.09",
|
| 2244 |
+
"userIdentity": {
|
| 2245 |
+
"type": "IAMUser",
|
| 2246 |
+
"principalId": "AIDAIDAVELAB",
|
| 2247 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2248 |
+
"accountId": "111111111111",
|
| 2249 |
+
"userName": "dave"
|
| 2250 |
+
},
|
| 2251 |
+
"eventTime": "2026-04-08T15:46:01Z",
|
| 2252 |
+
"eventSource": "iam.amazonaws.com",
|
| 2253 |
+
"eventName": "ListUsers",
|
| 2254 |
+
"awsRegion": "us-east-1",
|
| 2255 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2256 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2257 |
+
"requestParameters": {
|
| 2258 |
+
"marker": "lab-read"
|
| 2259 |
+
},
|
| 2260 |
+
"responseElements": null,
|
| 2261 |
+
"requestID": "req-bg-0150",
|
| 2262 |
+
"eventID": "bg-0150",
|
| 2263 |
+
"readOnly": true,
|
| 2264 |
+
"eventType": "AwsApiCall",
|
| 2265 |
+
"managementEvent": true,
|
| 2266 |
+
"recipientAccountId": "111111111111",
|
| 2267 |
+
"errorCode": null,
|
| 2268 |
+
"lab_event_id": "",
|
| 2269 |
+
"lab_family": "",
|
| 2270 |
+
"change_ticket": "",
|
| 2271 |
+
"split": "development",
|
| 2272 |
+
"incomplete": false
|
| 2273 |
+
},
|
| 2274 |
+
{
|
| 2275 |
+
"eventVersion": "1.09",
|
| 2276 |
+
"userIdentity": {
|
| 2277 |
+
"type": "IAMUser",
|
| 2278 |
+
"principalId": "AIDAIALICELAB",
|
| 2279 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2280 |
+
"accountId": "111111111111",
|
| 2281 |
+
"userName": "alice"
|
| 2282 |
+
},
|
| 2283 |
+
"eventTime": "2026-04-08T10:28:40Z",
|
| 2284 |
+
"eventSource": "s3.amazonaws.com",
|
| 2285 |
+
"eventName": "GetBucketAcl",
|
| 2286 |
+
"awsRegion": "us-east-1",
|
| 2287 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2288 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2289 |
+
"requestParameters": {
|
| 2290 |
+
"bucketName": "prod-invoice-export"
|
| 2291 |
+
},
|
| 2292 |
+
"responseElements": null,
|
| 2293 |
+
"requestID": "req-bg-0151",
|
| 2294 |
+
"eventID": "bg-0151",
|
| 2295 |
+
"readOnly": true,
|
| 2296 |
+
"eventType": "AwsApiCall",
|
| 2297 |
+
"managementEvent": true,
|
| 2298 |
+
"recipientAccountId": "111111111111",
|
| 2299 |
+
"errorCode": null,
|
| 2300 |
+
"lab_event_id": "",
|
| 2301 |
+
"lab_family": "",
|
| 2302 |
+
"change_ticket": "",
|
| 2303 |
+
"split": "development",
|
| 2304 |
+
"incomplete": false
|
| 2305 |
+
},
|
| 2306 |
+
{
|
| 2307 |
+
"eventVersion": "1.09",
|
| 2308 |
+
"userIdentity": {
|
| 2309 |
+
"type": "AssumedRole",
|
| 2310 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2311 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2312 |
+
"accountId": "111111111111",
|
| 2313 |
+
"sessionContext": {
|
| 2314 |
+
"sessionIssuer": {
|
| 2315 |
+
"type": "Role",
|
| 2316 |
+
"userName": "lambda-rotator",
|
| 2317 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2318 |
+
"accountId": "111111111111"
|
| 2319 |
+
}
|
| 2320 |
+
}
|
| 2321 |
+
},
|
| 2322 |
+
"eventTime": "2026-04-08T15:18:46Z",
|
| 2323 |
+
"eventSource": "iam.amazonaws.com",
|
| 2324 |
+
"eventName": "ListUsers",
|
| 2325 |
+
"awsRegion": "us-east-1",
|
| 2326 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2327 |
+
"userAgent": "terraform/1.9.0",
|
| 2328 |
+
"requestParameters": {
|
| 2329 |
+
"marker": "lab-read"
|
| 2330 |
+
},
|
| 2331 |
+
"responseElements": null,
|
| 2332 |
+
"requestID": "req-bg-0161",
|
| 2333 |
+
"eventID": "bg-0161",
|
| 2334 |
+
"readOnly": true,
|
| 2335 |
+
"eventType": "AwsApiCall",
|
| 2336 |
+
"managementEvent": true,
|
| 2337 |
+
"recipientAccountId": "111111111111",
|
| 2338 |
+
"errorCode": null,
|
| 2339 |
+
"lab_event_id": "",
|
| 2340 |
+
"lab_family": "",
|
| 2341 |
+
"change_ticket": "",
|
| 2342 |
+
"split": "development",
|
| 2343 |
+
"incomplete": false
|
| 2344 |
+
},
|
| 2345 |
+
{
|
| 2346 |
+
"eventVersion": "1.09",
|
| 2347 |
+
"userIdentity": {
|
| 2348 |
+
"type": "AssumedRole",
|
| 2349 |
+
"principalId": "222222222222:ci-github",
|
| 2350 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2351 |
+
"accountId": "222222222222",
|
| 2352 |
+
"sessionContext": {
|
| 2353 |
+
"sessionIssuer": {
|
| 2354 |
+
"type": "Role",
|
| 2355 |
+
"userName": "ci-github",
|
| 2356 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2357 |
+
"accountId": "222222222222"
|
| 2358 |
+
}
|
| 2359 |
+
}
|
| 2360 |
+
},
|
| 2361 |
+
"eventTime": "2026-04-08T09:29:05Z",
|
| 2362 |
+
"eventSource": "s3.amazonaws.com",
|
| 2363 |
+
"eventName": "GetBucketAcl",
|
| 2364 |
+
"awsRegion": "us-east-1",
|
| 2365 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2366 |
+
"userAgent": "terraform/1.9.0",
|
| 2367 |
+
"requestParameters": {
|
| 2368 |
+
"bucketName": "prod-invoice-export"
|
| 2369 |
+
},
|
| 2370 |
+
"responseElements": null,
|
| 2371 |
+
"requestID": "req-bg-0162",
|
| 2372 |
+
"eventID": "bg-0162",
|
| 2373 |
+
"readOnly": true,
|
| 2374 |
+
"eventType": "AwsApiCall",
|
| 2375 |
+
"managementEvent": true,
|
| 2376 |
+
"recipientAccountId": "222222222222",
|
| 2377 |
+
"errorCode": null,
|
| 2378 |
+
"lab_event_id": "",
|
| 2379 |
+
"lab_family": "",
|
| 2380 |
+
"change_ticket": "",
|
| 2381 |
+
"split": "development",
|
| 2382 |
+
"incomplete": false
|
| 2383 |
+
},
|
| 2384 |
+
{
|
| 2385 |
+
"eventVersion": "1.09",
|
| 2386 |
+
"userIdentity": {
|
| 2387 |
+
"type": "IAMUser",
|
| 2388 |
+
"principalId": "AIDAIALICELAB",
|
| 2389 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2390 |
+
"accountId": "111111111111",
|
| 2391 |
+
"userName": "alice"
|
| 2392 |
+
},
|
| 2393 |
+
"eventTime": "2026-04-08T17:36:48Z",
|
| 2394 |
+
"eventSource": "iam.amazonaws.com",
|
| 2395 |
+
"eventName": "ListUsers",
|
| 2396 |
+
"awsRegion": "us-east-1",
|
| 2397 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2398 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2399 |
+
"requestParameters": {
|
| 2400 |
+
"marker": "lab-read"
|
| 2401 |
+
},
|
| 2402 |
+
"responseElements": null,
|
| 2403 |
+
"requestID": "req-bg-0163",
|
| 2404 |
+
"eventID": "bg-0163",
|
| 2405 |
+
"readOnly": true,
|
| 2406 |
+
"eventType": "AwsApiCall",
|
| 2407 |
+
"managementEvent": true,
|
| 2408 |
+
"recipientAccountId": "111111111111",
|
| 2409 |
+
"errorCode": null,
|
| 2410 |
+
"lab_event_id": "",
|
| 2411 |
+
"lab_family": "",
|
| 2412 |
+
"change_ticket": "",
|
| 2413 |
+
"split": "development",
|
| 2414 |
+
"incomplete": false
|
| 2415 |
+
},
|
| 2416 |
+
{
|
| 2417 |
+
"eventVersion": "1.09",
|
| 2418 |
+
"userIdentity": {
|
| 2419 |
+
"type": "AssumedRole",
|
| 2420 |
+
"principalId": "222222222222:ci-github",
|
| 2421 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2422 |
+
"accountId": "222222222222",
|
| 2423 |
+
"sessionContext": {
|
| 2424 |
+
"sessionIssuer": {
|
| 2425 |
+
"type": "Role",
|
| 2426 |
+
"userName": "ci-github",
|
| 2427 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2428 |
+
"accountId": "222222222222"
|
| 2429 |
+
}
|
| 2430 |
+
}
|
| 2431 |
+
},
|
| 2432 |
+
"eventTime": "2026-04-08T16:26:07Z",
|
| 2433 |
+
"eventSource": "iam.amazonaws.com",
|
| 2434 |
+
"eventName": "ListUsers",
|
| 2435 |
+
"awsRegion": "us-east-1",
|
| 2436 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2437 |
+
"userAgent": "terraform/1.9.0",
|
| 2438 |
+
"requestParameters": {
|
| 2439 |
+
"marker": "lab-read"
|
| 2440 |
+
},
|
| 2441 |
+
"responseElements": null,
|
| 2442 |
+
"requestID": "req-bg-0164",
|
| 2443 |
+
"eventID": "bg-0164",
|
| 2444 |
+
"readOnly": true,
|
| 2445 |
+
"eventType": "AwsApiCall",
|
| 2446 |
+
"managementEvent": true,
|
| 2447 |
+
"recipientAccountId": "222222222222",
|
| 2448 |
+
"errorCode": null,
|
| 2449 |
+
"lab_event_id": "",
|
| 2450 |
+
"lab_family": "",
|
| 2451 |
+
"change_ticket": "",
|
| 2452 |
+
"split": "development",
|
| 2453 |
+
"incomplete": false
|
| 2454 |
+
},
|
| 2455 |
+
{
|
| 2456 |
+
"eventVersion": "1.09",
|
| 2457 |
+
"userIdentity": {
|
| 2458 |
+
"type": "AssumedRole",
|
| 2459 |
+
"principalId": "222222222222:terraform-staging",
|
| 2460 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2461 |
+
"accountId": "222222222222",
|
| 2462 |
+
"sessionContext": {
|
| 2463 |
+
"sessionIssuer": {
|
| 2464 |
+
"type": "Role",
|
| 2465 |
+
"userName": "terraform-staging",
|
| 2466 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2467 |
+
"accountId": "222222222222"
|
| 2468 |
+
}
|
| 2469 |
+
}
|
| 2470 |
+
},
|
| 2471 |
+
"eventTime": "2026-04-08T10:52:40Z",
|
| 2472 |
+
"eventSource": "s3.amazonaws.com",
|
| 2473 |
+
"eventName": "GetBucketAcl",
|
| 2474 |
+
"awsRegion": "us-east-1",
|
| 2475 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2476 |
+
"userAgent": "terraform/1.9.0",
|
| 2477 |
+
"requestParameters": {
|
| 2478 |
+
"bucketName": "prod-invoice-export"
|
| 2479 |
+
},
|
| 2480 |
+
"responseElements": null,
|
| 2481 |
+
"requestID": "req-bg-0165",
|
| 2482 |
+
"eventID": "bg-0165",
|
| 2483 |
+
"readOnly": true,
|
| 2484 |
+
"eventType": "AwsApiCall",
|
| 2485 |
+
"managementEvent": true,
|
| 2486 |
+
"recipientAccountId": "222222222222",
|
| 2487 |
+
"errorCode": null,
|
| 2488 |
+
"lab_event_id": "",
|
| 2489 |
+
"lab_family": "",
|
| 2490 |
+
"change_ticket": "",
|
| 2491 |
+
"split": "development",
|
| 2492 |
+
"incomplete": false
|
| 2493 |
+
},
|
| 2494 |
+
{
|
| 2495 |
+
"eventVersion": "1.09",
|
| 2496 |
+
"userIdentity": {
|
| 2497 |
+
"type": "IAMUser",
|
| 2498 |
+
"principalId": "AIDAIDAVELAB",
|
| 2499 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2500 |
+
"accountId": "111111111111",
|
| 2501 |
+
"userName": "dave"
|
| 2502 |
+
},
|
| 2503 |
+
"eventTime": "2026-04-09T10:06:39Z",
|
| 2504 |
+
"eventSource": "s3.amazonaws.com",
|
| 2505 |
+
"eventName": "GetBucketAcl",
|
| 2506 |
+
"awsRegion": "us-east-1",
|
| 2507 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2508 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2509 |
+
"requestParameters": {
|
| 2510 |
+
"bucketName": "prod-invoice-export"
|
| 2511 |
+
},
|
| 2512 |
+
"responseElements": null,
|
| 2513 |
+
"requestID": "req-bg-0170",
|
| 2514 |
+
"eventID": "bg-0170",
|
| 2515 |
+
"readOnly": true,
|
| 2516 |
+
"eventType": "AwsApiCall",
|
| 2517 |
+
"managementEvent": true,
|
| 2518 |
+
"recipientAccountId": "111111111111",
|
| 2519 |
+
"errorCode": null,
|
| 2520 |
+
"lab_event_id": "",
|
| 2521 |
+
"lab_family": "",
|
| 2522 |
+
"change_ticket": "",
|
| 2523 |
+
"split": "development",
|
| 2524 |
+
"incomplete": false
|
| 2525 |
+
},
|
| 2526 |
+
{
|
| 2527 |
+
"eventVersion": "1.09",
|
| 2528 |
+
"userIdentity": {
|
| 2529 |
+
"type": "IAMUser",
|
| 2530 |
+
"principalId": "AIDAIDAVELAB",
|
| 2531 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2532 |
+
"accountId": "111111111111",
|
| 2533 |
+
"userName": "dave"
|
| 2534 |
+
},
|
| 2535 |
+
"eventTime": "2026-04-09T15:18:08Z",
|
| 2536 |
+
"eventSource": "iam.amazonaws.com",
|
| 2537 |
+
"eventName": "ListUsers",
|
| 2538 |
+
"awsRegion": "us-east-1",
|
| 2539 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2540 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2541 |
+
"requestParameters": {
|
| 2542 |
+
"marker": "lab-read"
|
| 2543 |
+
},
|
| 2544 |
+
"responseElements": null,
|
| 2545 |
+
"requestID": "req-bg-0174",
|
| 2546 |
+
"eventID": "bg-0174",
|
| 2547 |
+
"readOnly": true,
|
| 2548 |
+
"eventType": "AwsApiCall",
|
| 2549 |
+
"managementEvent": true,
|
| 2550 |
+
"recipientAccountId": "111111111111",
|
| 2551 |
+
"errorCode": null,
|
| 2552 |
+
"lab_event_id": "",
|
| 2553 |
+
"lab_family": "",
|
| 2554 |
+
"change_ticket": "",
|
| 2555 |
+
"split": "development",
|
| 2556 |
+
"incomplete": false
|
| 2557 |
+
},
|
| 2558 |
+
{
|
| 2559 |
+
"eventVersion": "1.09",
|
| 2560 |
+
"userIdentity": {
|
| 2561 |
+
"type": "AssumedRole",
|
| 2562 |
+
"principalId": "222222222222:ci-github",
|
| 2563 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2564 |
+
"accountId": "222222222222",
|
| 2565 |
+
"sessionContext": {
|
| 2566 |
+
"sessionIssuer": {
|
| 2567 |
+
"type": "Role",
|
| 2568 |
+
"userName": "ci-github",
|
| 2569 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2570 |
+
"accountId": "222222222222"
|
| 2571 |
+
}
|
| 2572 |
+
}
|
| 2573 |
+
},
|
| 2574 |
+
"eventTime": "2026-04-09T13:40:16Z",
|
| 2575 |
+
"eventSource": "iam.amazonaws.com",
|
| 2576 |
+
"eventName": "ListUsers",
|
| 2577 |
+
"awsRegion": "us-east-1",
|
| 2578 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2579 |
+
"userAgent": "terraform/1.9.0",
|
| 2580 |
+
"requestParameters": {
|
| 2581 |
+
"marker": "lab-read"
|
| 2582 |
+
},
|
| 2583 |
+
"responseElements": null,
|
| 2584 |
+
"requestID": "req-bg-0175",
|
| 2585 |
+
"eventID": "bg-0175",
|
| 2586 |
+
"readOnly": true,
|
| 2587 |
+
"eventType": "AwsApiCall",
|
| 2588 |
+
"managementEvent": true,
|
| 2589 |
+
"recipientAccountId": "222222222222",
|
| 2590 |
+
"errorCode": null,
|
| 2591 |
+
"lab_event_id": "",
|
| 2592 |
+
"lab_family": "",
|
| 2593 |
+
"change_ticket": "",
|
| 2594 |
+
"split": "development",
|
| 2595 |
+
"incomplete": false
|
| 2596 |
+
},
|
| 2597 |
+
{
|
| 2598 |
+
"eventVersion": "1.09",
|
| 2599 |
+
"userIdentity": {
|
| 2600 |
+
"type": "IAMUser",
|
| 2601 |
+
"principalId": "AIDAIALICELAB",
|
| 2602 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2603 |
+
"accountId": "111111111111",
|
| 2604 |
+
"userName": "alice"
|
| 2605 |
+
},
|
| 2606 |
+
"eventTime": "2026-04-09T14:36:40Z",
|
| 2607 |
+
"eventSource": "iam.amazonaws.com",
|
| 2608 |
+
"eventName": "ListUsers",
|
| 2609 |
+
"awsRegion": "us-east-1",
|
| 2610 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2611 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2612 |
+
"requestParameters": {
|
| 2613 |
+
"marker": "lab-read"
|
| 2614 |
+
},
|
| 2615 |
+
"responseElements": null,
|
| 2616 |
+
"requestID": "req-bg-0181",
|
| 2617 |
+
"eventID": "bg-0181",
|
| 2618 |
+
"readOnly": true,
|
| 2619 |
+
"eventType": "AwsApiCall",
|
| 2620 |
+
"managementEvent": true,
|
| 2621 |
+
"recipientAccountId": "111111111111",
|
| 2622 |
+
"errorCode": null,
|
| 2623 |
+
"lab_event_id": "",
|
| 2624 |
+
"lab_family": "",
|
| 2625 |
+
"change_ticket": "",
|
| 2626 |
+
"split": "development",
|
| 2627 |
+
"incomplete": false
|
| 2628 |
+
},
|
| 2629 |
+
{
|
| 2630 |
+
"eventVersion": "1.09",
|
| 2631 |
+
"userIdentity": {
|
| 2632 |
+
"type": "IAMUser",
|
| 2633 |
+
"principalId": "AIDAIDAVELAB",
|
| 2634 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2635 |
+
"accountId": "111111111111",
|
| 2636 |
+
"userName": "dave"
|
| 2637 |
+
},
|
| 2638 |
+
"eventTime": "2026-04-09T08:33:33Z",
|
| 2639 |
+
"eventSource": "iam.amazonaws.com",
|
| 2640 |
+
"eventName": "ListUsers",
|
| 2641 |
+
"awsRegion": "us-east-1",
|
| 2642 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2643 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2644 |
+
"requestParameters": {
|
| 2645 |
+
"marker": "lab-read"
|
| 2646 |
+
},
|
| 2647 |
+
"responseElements": null,
|
| 2648 |
+
"requestID": "req-bg-0185",
|
| 2649 |
+
"eventID": "bg-0185",
|
| 2650 |
+
"readOnly": true,
|
| 2651 |
+
"eventType": "AwsApiCall",
|
| 2652 |
+
"managementEvent": true,
|
| 2653 |
+
"recipientAccountId": "111111111111",
|
| 2654 |
+
"errorCode": null,
|
| 2655 |
+
"lab_event_id": "",
|
| 2656 |
+
"lab_family": "",
|
| 2657 |
+
"change_ticket": "",
|
| 2658 |
+
"split": "development",
|
| 2659 |
+
"incomplete": false
|
| 2660 |
+
},
|
| 2661 |
+
{
|
| 2662 |
+
"eventVersion": "1.09",
|
| 2663 |
+
"userIdentity": {
|
| 2664 |
+
"type": "IAMUser",
|
| 2665 |
+
"principalId": "AIDAIBOBLAB",
|
| 2666 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 2667 |
+
"accountId": "222222222222",
|
| 2668 |
+
"userName": "bob"
|
| 2669 |
+
},
|
| 2670 |
+
"eventTime": "2026-04-10T14:04:07Z",
|
| 2671 |
+
"eventSource": "iam.amazonaws.com",
|
| 2672 |
+
"eventName": "ListUsers",
|
| 2673 |
+
"awsRegion": "us-east-1",
|
| 2674 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2675 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2676 |
+
"requestParameters": {
|
| 2677 |
+
"marker": "lab-read"
|
| 2678 |
+
},
|
| 2679 |
+
"responseElements": null,
|
| 2680 |
+
"requestID": "req-bg-0190",
|
| 2681 |
+
"eventID": "bg-0190",
|
| 2682 |
+
"readOnly": true,
|
| 2683 |
+
"eventType": "AwsApiCall",
|
| 2684 |
+
"managementEvent": true,
|
| 2685 |
+
"recipientAccountId": "222222222222",
|
| 2686 |
+
"errorCode": null,
|
| 2687 |
+
"lab_event_id": "",
|
| 2688 |
+
"lab_family": "",
|
| 2689 |
+
"change_ticket": "",
|
| 2690 |
+
"split": "test",
|
| 2691 |
+
"incomplete": false
|
| 2692 |
+
},
|
| 2693 |
+
{
|
| 2694 |
+
"eventVersion": "1.09",
|
| 2695 |
+
"userIdentity": {
|
| 2696 |
+
"type": "IAMUser",
|
| 2697 |
+
"principalId": "AIDAIALICELAB",
|
| 2698 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2699 |
+
"accountId": "111111111111",
|
| 2700 |
+
"userName": "alice"
|
| 2701 |
+
},
|
| 2702 |
+
"eventTime": "2026-04-10T17:24:17Z",
|
| 2703 |
+
"eventSource": "iam.amazonaws.com",
|
| 2704 |
+
"eventName": "ListUsers",
|
| 2705 |
+
"awsRegion": "us-east-1",
|
| 2706 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2707 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2708 |
+
"requestParameters": {
|
| 2709 |
+
"marker": "lab-read"
|
| 2710 |
+
},
|
| 2711 |
+
"responseElements": null,
|
| 2712 |
+
"requestID": "req-bg-0191",
|
| 2713 |
+
"eventID": "bg-0191",
|
| 2714 |
+
"readOnly": true,
|
| 2715 |
+
"eventType": "AwsApiCall",
|
| 2716 |
+
"managementEvent": true,
|
| 2717 |
+
"recipientAccountId": "111111111111",
|
| 2718 |
+
"errorCode": null,
|
| 2719 |
+
"lab_event_id": "",
|
| 2720 |
+
"lab_family": "",
|
| 2721 |
+
"change_ticket": "",
|
| 2722 |
+
"split": "test",
|
| 2723 |
+
"incomplete": false
|
| 2724 |
+
},
|
| 2725 |
+
{
|
| 2726 |
+
"eventVersion": "1.09",
|
| 2727 |
+
"userIdentity": {
|
| 2728 |
+
"type": "IAMUser",
|
| 2729 |
+
"principalId": "AIDAICAROLLAB",
|
| 2730 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 2731 |
+
"accountId": "333333333333",
|
| 2732 |
+
"userName": "carol"
|
| 2733 |
+
},
|
| 2734 |
+
"eventTime": "2026-04-10T13:11:00Z",
|
| 2735 |
+
"eventSource": "iam.amazonaws.com",
|
| 2736 |
+
"eventName": "ListUsers",
|
| 2737 |
+
"awsRegion": "us-east-1",
|
| 2738 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2739 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2740 |
+
"requestParameters": {
|
| 2741 |
+
"marker": "lab-read"
|
| 2742 |
+
},
|
| 2743 |
+
"responseElements": null,
|
| 2744 |
+
"requestID": "req-bg-0194",
|
| 2745 |
+
"eventID": "bg-0194",
|
| 2746 |
+
"readOnly": true,
|
| 2747 |
+
"eventType": "AwsApiCall",
|
| 2748 |
+
"managementEvent": true,
|
| 2749 |
+
"recipientAccountId": "333333333333",
|
| 2750 |
+
"errorCode": null,
|
| 2751 |
+
"lab_event_id": "",
|
| 2752 |
+
"lab_family": "",
|
| 2753 |
+
"change_ticket": "",
|
| 2754 |
+
"split": "test",
|
| 2755 |
+
"incomplete": false
|
| 2756 |
+
},
|
| 2757 |
+
{
|
| 2758 |
+
"eventVersion": "1.09",
|
| 2759 |
+
"userIdentity": {
|
| 2760 |
+
"type": "IAMUser",
|
| 2761 |
+
"principalId": "AIDAICAROLLAB",
|
| 2762 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 2763 |
+
"accountId": "333333333333",
|
| 2764 |
+
"userName": "carol"
|
| 2765 |
+
},
|
| 2766 |
+
"eventTime": "2026-04-11T13:35:42Z",
|
| 2767 |
+
"eventSource": "iam.amazonaws.com",
|
| 2768 |
+
"eventName": "ListUsers",
|
| 2769 |
+
"awsRegion": "us-east-1",
|
| 2770 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2771 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2772 |
+
"requestParameters": {
|
| 2773 |
+
"marker": "lab-read"
|
| 2774 |
+
},
|
| 2775 |
+
"responseElements": null,
|
| 2776 |
+
"requestID": "req-bg-0211",
|
| 2777 |
+
"eventID": "bg-0211",
|
| 2778 |
+
"readOnly": true,
|
| 2779 |
+
"eventType": "AwsApiCall",
|
| 2780 |
+
"managementEvent": true,
|
| 2781 |
+
"recipientAccountId": "333333333333",
|
| 2782 |
+
"errorCode": null,
|
| 2783 |
+
"lab_event_id": "",
|
| 2784 |
+
"lab_family": "",
|
| 2785 |
+
"change_ticket": "",
|
| 2786 |
+
"split": "test",
|
| 2787 |
+
"incomplete": false
|
| 2788 |
+
},
|
| 2789 |
+
{
|
| 2790 |
+
"eventVersion": "1.09",
|
| 2791 |
+
"userIdentity": {
|
| 2792 |
+
"type": "IAMUser",
|
| 2793 |
+
"principalId": "AIDAIALICELAB",
|
| 2794 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2795 |
+
"accountId": "111111111111",
|
| 2796 |
+
"userName": "alice"
|
| 2797 |
+
},
|
| 2798 |
+
"eventTime": "2026-04-11T10:35:34Z",
|
| 2799 |
+
"eventSource": "s3.amazonaws.com",
|
| 2800 |
+
"eventName": "GetBucketAcl",
|
| 2801 |
+
"awsRegion": "us-east-1",
|
| 2802 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2803 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2804 |
+
"requestParameters": {
|
| 2805 |
+
"bucketName": "prod-invoice-export"
|
| 2806 |
+
},
|
| 2807 |
+
"responseElements": null,
|
| 2808 |
+
"requestID": "req-bg-0216",
|
| 2809 |
+
"eventID": "bg-0216",
|
| 2810 |
+
"readOnly": true,
|
| 2811 |
+
"eventType": "AwsApiCall",
|
| 2812 |
+
"managementEvent": true,
|
| 2813 |
+
"recipientAccountId": "111111111111",
|
| 2814 |
+
"errorCode": null,
|
| 2815 |
+
"lab_event_id": "",
|
| 2816 |
+
"lab_family": "",
|
| 2817 |
+
"change_ticket": "",
|
| 2818 |
+
"split": "test",
|
| 2819 |
+
"incomplete": false
|
| 2820 |
+
}
|
| 2821 |
+
]
|
| 2822 |
+
}
|
data/gold_events.json
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"event_id": "EVT-MAINT-DEV-01",
|
| 4 |
+
"account_alias": "acct_staging",
|
| 5 |
+
"actor_alias": "role_terraform-staging",
|
| 6 |
+
"start": "2026-04-05T02:15:00Z",
|
| 7 |
+
"end": "2026-04-05T02:16:00Z",
|
| 8 |
+
"family": "benign_maintenance",
|
| 9 |
+
"split": "development",
|
| 10 |
+
"change_type": "iam_privilege_grant",
|
| 11 |
+
"note": "Sunday staging window. Terraform attaches a job role policy with ticket CHG-4411."
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"event_id": "EVT-SG-SAFE-DEV-01",
|
| 15 |
+
"account_alias": "acct_staging",
|
| 16 |
+
"actor_alias": "role_terraform-staging",
|
| 17 |
+
"start": "2026-04-05T02:40:00Z",
|
| 18 |
+
"end": "2026-04-05T02:41:00Z",
|
| 19 |
+
"family": "benign_restricted_sg",
|
| 20 |
+
"split": "development",
|
| 21 |
+
"change_type": "security_group_ingress",
|
| 22 |
+
"note": "Maintenance SG ingress from 10.0.0.0/8, not 0.0.0.0/0."
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"event_id": "EVT-IAM-DEV-01",
|
| 26 |
+
"account_alias": "acct_prod",
|
| 27 |
+
"actor_alias": "usr_alice",
|
| 28 |
+
"start": "2026-04-03T03:12:00Z",
|
| 29 |
+
"end": "2026-04-03T03:13:00Z",
|
| 30 |
+
"family": "needs_review_iam_escalation",
|
| 31 |
+
"split": "development",
|
| 32 |
+
"change_type": "iam_privilege_grant",
|
| 33 |
+
"note": "Off-hours AttachUserPolicy AdministratorAccess on prod."
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"event_id": "EVT-S3-DEV-01",
|
| 37 |
+
"account_alias": "acct_prod",
|
| 38 |
+
"actor_alias": "usr_bob",
|
| 39 |
+
"start": "2026-04-04T14:22:00Z",
|
| 40 |
+
"end": "2026-04-04T14:23:00Z",
|
| 41 |
+
"family": "needs_review_public_exposure",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"change_type": "s3_public_exposure",
|
| 44 |
+
"note": "DeletePublicAccessBlock on a prod bucket. That is a request, not proven current exposure."
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"event_id": "EVT-SG-OPEN-DEV-01",
|
| 48 |
+
"account_alias": "acct_prod",
|
| 49 |
+
"actor_alias": "usr_alice",
|
| 50 |
+
"start": "2026-04-03T18:00:00Z",
|
| 51 |
+
"end": "2026-04-03T18:01:00Z",
|
| 52 |
+
"family": "needs_review_public_exposure",
|
| 53 |
+
"split": "development",
|
| 54 |
+
"change_type": "security_group_ingress",
|
| 55 |
+
"note": "AuthorizeSecurityGroupIngress 0.0.0.0/0 on prod."
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"event_id": "EVT-TRAIL-DEV-01",
|
| 59 |
+
"account_alias": "acct_prod",
|
| 60 |
+
"actor_alias": "usr_carol",
|
| 61 |
+
"start": "2026-04-06T01:05:00Z",
|
| 62 |
+
"end": "2026-04-06T01:06:00Z",
|
| 63 |
+
"family": "needs_review_logging_disable",
|
| 64 |
+
"split": "development",
|
| 65 |
+
"change_type": "trail_logging_change",
|
| 66 |
+
"note": "Contractor StopLogging on the prod trail."
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"event_id": "EVT-ROOT-DEV-01",
|
| 70 |
+
"account_alias": "acct_prod",
|
| 71 |
+
"actor_alias": "root_lab",
|
| 72 |
+
"start": "2026-04-07T09:00:00Z",
|
| 73 |
+
"end": "2026-04-07T09:01:00Z",
|
| 74 |
+
"family": "needs_review_root",
|
| 75 |
+
"split": "development",
|
| 76 |
+
"change_type": "root_activity",
|
| 77 |
+
"note": "Root console login."
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"event_id": "EVT-TRUST-DEV-01",
|
| 81 |
+
"account_alias": "acct_prod",
|
| 82 |
+
"actor_alias": "usr_dave",
|
| 83 |
+
"start": "2026-04-08T16:10:00Z",
|
| 84 |
+
"end": "2026-04-08T16:11:00Z",
|
| 85 |
+
"family": "needs_review_trust_wildcard",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"change_type": "role_trust_change",
|
| 88 |
+
"note": "UpdateAssumeRolePolicy with Principal *."
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"event_id": "EVT-KEY-DEV-01",
|
| 92 |
+
"account_alias": "acct_staging",
|
| 93 |
+
"actor_alias": "usr_bob",
|
| 94 |
+
"start": "2026-04-07T11:20:00Z",
|
| 95 |
+
"end": "2026-04-07T11:21:00Z",
|
| 96 |
+
"family": "needs_review_iam_escalation",
|
| 97 |
+
"split": "development",
|
| 98 |
+
"change_type": "iam_credential_create",
|
| 99 |
+
"note": "CreateAccessKey for a staging user during business hours."
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"event_id": "EVT-INSUFF-DEV-01",
|
| 103 |
+
"account_alias": "acct_prod",
|
| 104 |
+
"actor_alias": "usr_bob",
|
| 105 |
+
"start": "2026-04-02T11:00:00Z",
|
| 106 |
+
"end": "2026-04-02T11:01:00Z",
|
| 107 |
+
"family": "insufficient_evidence",
|
| 108 |
+
"split": "development",
|
| 109 |
+
"change_type": "s3_public_exposure",
|
| 110 |
+
"note": "PutBucketPolicy without requestParameters. Before/after unknown."
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"event_id": "EVT-MAINT-01",
|
| 114 |
+
"account_alias": "acct_staging",
|
| 115 |
+
"actor_alias": "role_terraform-staging",
|
| 116 |
+
"start": "2026-04-12T02:20:00Z",
|
| 117 |
+
"end": "2026-04-12T02:21:00Z",
|
| 118 |
+
"family": "benign_maintenance",
|
| 119 |
+
"split": "test",
|
| 120 |
+
"change_type": "iam_privilege_grant",
|
| 121 |
+
"note": "Held-out Sunday staging terraform AttachRolePolicy with CHG-4411."
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"event_id": "EVT-SG-SAFE-01",
|
| 125 |
+
"account_alias": "acct_staging",
|
| 126 |
+
"actor_alias": "role_terraform-staging",
|
| 127 |
+
"start": "2026-04-12T03:05:00Z",
|
| 128 |
+
"end": "2026-04-12T03:06:00Z",
|
| 129 |
+
"family": "benign_restricted_sg",
|
| 130 |
+
"split": "test",
|
| 131 |
+
"change_type": "security_group_ingress",
|
| 132 |
+
"note": "Held-out restricted SG during the approved window."
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"event_id": "EVT-IAM-01",
|
| 136 |
+
"account_alias": "acct_prod",
|
| 137 |
+
"actor_alias": "usr_alice",
|
| 138 |
+
"start": "2026-04-11T02:48:00Z",
|
| 139 |
+
"end": "2026-04-11T02:49:00Z",
|
| 140 |
+
"family": "needs_review_iam_escalation",
|
| 141 |
+
"split": "test",
|
| 142 |
+
"change_type": "iam_privilege_grant",
|
| 143 |
+
"note": "Held-out off-hours AdministratorAccess attach on prod."
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"event_id": "EVT-S3-01",
|
| 147 |
+
"account_alias": "acct_prod",
|
| 148 |
+
"actor_alias": "usr_bob",
|
| 149 |
+
"start": "2026-04-11T15:30:00Z",
|
| 150 |
+
"end": "2026-04-11T15:31:00Z",
|
| 151 |
+
"family": "needs_review_public_exposure",
|
| 152 |
+
"split": "test",
|
| 153 |
+
"change_type": "s3_public_exposure",
|
| 154 |
+
"note": "Held-out DeletePublicAccessBlock."
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"event_id": "EVT-SG-OPEN-01",
|
| 158 |
+
"account_alias": "acct_prod",
|
| 159 |
+
"actor_alias": "usr_bob",
|
| 160 |
+
"start": "2026-04-11T18:20:00Z",
|
| 161 |
+
"end": "2026-04-11T18:21:00Z",
|
| 162 |
+
"family": "needs_review_public_exposure",
|
| 163 |
+
"split": "test",
|
| 164 |
+
"change_type": "security_group_ingress",
|
| 165 |
+
"note": "Held-out 0.0.0.0/0 security group ingress."
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"event_id": "EVT-TRAIL-01",
|
| 169 |
+
"account_alias": "acct_prod",
|
| 170 |
+
"actor_alias": "usr_carol",
|
| 171 |
+
"start": "2026-04-13T00:40:00Z",
|
| 172 |
+
"end": "2026-04-13T00:41:00Z",
|
| 173 |
+
"family": "needs_review_logging_disable",
|
| 174 |
+
"split": "test",
|
| 175 |
+
"change_type": "trail_logging_change",
|
| 176 |
+
"note": "Held-out StopLogging."
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"event_id": "EVT-ROOT-01",
|
| 180 |
+
"account_alias": "acct_prod",
|
| 181 |
+
"actor_alias": "root_lab",
|
| 182 |
+
"start": "2026-04-13T10:15:00Z",
|
| 183 |
+
"end": "2026-04-13T10:16:00Z",
|
| 184 |
+
"family": "needs_review_root",
|
| 185 |
+
"split": "test",
|
| 186 |
+
"change_type": "root_activity",
|
| 187 |
+
"note": "Held-out root CreateAccessKey."
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"event_id": "EVT-TRUST-01",
|
| 191 |
+
"account_alias": "acct_prod",
|
| 192 |
+
"actor_alias": "usr_dave",
|
| 193 |
+
"start": "2026-04-14T11:20:00Z",
|
| 194 |
+
"end": "2026-04-14T11:21:00Z",
|
| 195 |
+
"family": "needs_review_trust_wildcard",
|
| 196 |
+
"split": "test",
|
| 197 |
+
"change_type": "role_trust_change",
|
| 198 |
+
"note": "Held-out wildcard trust policy."
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"event_id": "EVT-GD-01",
|
| 202 |
+
"account_alias": "acct_prod",
|
| 203 |
+
"actor_alias": "usr_alice",
|
| 204 |
+
"start": "2026-04-14T01:10:00Z",
|
| 205 |
+
"end": "2026-04-14T01:11:00Z",
|
| 206 |
+
"family": "needs_review_logging_disable",
|
| 207 |
+
"split": "test",
|
| 208 |
+
"change_type": "detector_disable",
|
| 209 |
+
"note": "Held-out GuardDuty UpdateDetector Enable=false."
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"event_id": "EVT-KEY-01",
|
| 213 |
+
"account_alias": "acct_staging",
|
| 214 |
+
"actor_alias": "usr_bob",
|
| 215 |
+
"start": "2026-04-12T11:40:00Z",
|
| 216 |
+
"end": "2026-04-12T11:41:00Z",
|
| 217 |
+
"family": "needs_review_iam_escalation",
|
| 218 |
+
"split": "test",
|
| 219 |
+
"change_type": "iam_credential_create",
|
| 220 |
+
"note": "Held-out CreateAccessKey. Medium severity; should drop at a high T."
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"event_id": "EVT-INSUFF-01",
|
| 224 |
+
"account_alias": "acct_prod",
|
| 225 |
+
"actor_alias": "usr_bob",
|
| 226 |
+
"start": "2026-04-10T13:00:00Z",
|
| 227 |
+
"end": "2026-04-10T13:01:00Z",
|
| 228 |
+
"family": "insufficient_evidence",
|
| 229 |
+
"split": "test",
|
| 230 |
+
"change_type": "s3_public_exposure",
|
| 231 |
+
"note": "Held-out PutBucketAcl without requestParameters."
|
| 232 |
+
}
|
| 233 |
+
]
|
data/protocol.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AriaCloudTrail laboratory protocol
|
| 2 |
+
|
| 3 |
+
Synthetic AWS CloudTrail management events, seed 16, three lab accounts.
|
| 4 |
+
Account IDs 111111111111 / 222222222222 / 333333333333 are aliases for prod/staging/sandbox.
|
| 5 |
+
No live cloud credentials, no configuration changes, no network calls to AWS.
|
| 6 |
+
|
| 7 |
+
Gold `needs_review_*` ranges are authored sensitive changes. Sunday 02:00-06:00 UTC on staging with ticket CHG-4411 is approved maintenance.
|
| 8 |
+
Before/after is only claimed when both events exist in the export. A single Put/Delete does not prove current exposure.
|
| 9 |
+
|
| 10 |
+
Split is by period (test starts 2026-04-10) and account. Rows of one authored event stay together.
|
data/ruleset.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"maintenance": {
|
| 3 |
+
"account": "acct_staging",
|
| 4 |
+
"actor": "role_terraform-staging",
|
| 5 |
+
"ticket": "CHG-4411",
|
| 6 |
+
"window": "Sunday 02:00-06:00 UTC",
|
| 7 |
+
"allowed": [
|
| 8 |
+
"iam_privilege_grant",
|
| 9 |
+
"security_group_ingress"
|
| 10 |
+
],
|
| 11 |
+
"forbidden": [
|
| 12 |
+
"AdministratorAccess",
|
| 13 |
+
"0.0.0.0/0",
|
| 14 |
+
"root"
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"event_map_count": 28
|
| 18 |
+
}
|
data/sample_preview.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "ariact-18b781e709479f28",
|
| 3 |
+
"status": "ready",
|
| 4 |
+
"status_label": "Changes ready for review \u00b7 Live parse, ruleset, role/time baseline, and limited correlation",
|
| 5 |
+
"kpis": {
|
| 6 |
+
"n_raw": 319,
|
| 7 |
+
"n_valid": 319,
|
| 8 |
+
"n_dropped": 0,
|
| 9 |
+
"n_changes": 23,
|
| 10 |
+
"n_security_review": 14,
|
| 11 |
+
"n_context": 4,
|
| 12 |
+
"n_incomplete": 3,
|
| 13 |
+
"parse_coverage": 1.0,
|
| 14 |
+
"event_recall": 1.0,
|
| 15 |
+
"precision_at_k": 1.0,
|
| 16 |
+
"false_alarms_per_account_day": 0.0,
|
| 17 |
+
"change_type_accuracy": 1.0,
|
| 18 |
+
"maintenance_as_security": 0,
|
| 19 |
+
"ungrounded_claims": 0,
|
| 20 |
+
"seconds": 1.275,
|
| 21 |
+
"threshold": 3.0,
|
| 22 |
+
"model_names": "rules+baseline+correlation",
|
| 23 |
+
"daily_capacity": 8
|
| 24 |
+
},
|
| 25 |
+
"kpi_html": "<div class='kpi-grid'><article class='kpi-card'><p class='kpi-label'>Needs security review</p><p class='kpi-value'>14</p><p class='kpi-sub'>4 context changes</p></article><article class='kpi-card'><p class='kpi-label'>Parse coverage</p><p class='kpi-value'>100%</p><p class='kpi-sub'>319/319</p></article><article class='kpi-card'><p class='kpi-label'>Insufficient rows</p><p class='kpi-value'>3</p><p class='kpi-sub'>missing time/event or request body</p></article><article class='kpi-card'><p class='kpi-label'>Test event recall</p><p class='kpi-value'>100%</p><p class='kpi-sub'>rule-severity baseline: 1.0</p></article><article class='kpi-card'><p class='kpi-label'>Precision @ 8/day</p><p class='kpi-value'>100%</p><p class='kpi-sub'>held-out daily review capacity</p></article><article class='kpi-card'><p class='kpi-label'>Change-type accuracy</p><p class='kpi-value'>100%</p><p class='kpi-sub'>gold eventName mapping</p></article><article class='kpi-card'><p class='kpi-label'>False alarms / account-day</p><p class='kpi-value'>0.000</p><p class='kpi-sub'>security-review without a review label</p></article><article class='kpi-card'><p class='kpi-label'>Analyze time</p><p class='kpi-value'>1.3s</p><p class='kpi-sub'>T=3.0</p></article></div>",
|
| 26 |
+
"validation_ok": true,
|
| 27 |
+
"precomputed": true
|
| 28 |
+
}
|
data/schema.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_id": "ariacloudtrail.change_event.v1",
|
| 3 |
+
"required_after_parse": [
|
| 4 |
+
"timestamp",
|
| 5 |
+
"event_name"
|
| 6 |
+
],
|
| 7 |
+
"cloudtrail_fields": [
|
| 8 |
+
"eventTime",
|
| 9 |
+
"eventName",
|
| 10 |
+
"eventSource",
|
| 11 |
+
"userIdentity",
|
| 12 |
+
"recipientAccountId"
|
| 13 |
+
],
|
| 14 |
+
"timezone": "UTC",
|
| 15 |
+
"null_meaning": "missing field, not a safe default",
|
| 16 |
+
"change_types": [
|
| 17 |
+
"iam_privilege_grant",
|
| 18 |
+
"iam_credential_create",
|
| 19 |
+
"security_group_ingress",
|
| 20 |
+
"s3_public_exposure",
|
| 21 |
+
"trail_logging_change",
|
| 22 |
+
"kms_control_change",
|
| 23 |
+
"root_activity",
|
| 24 |
+
"instance_exposure",
|
| 25 |
+
"role_trust_change",
|
| 26 |
+
"detector_disable"
|
| 27 |
+
]
|
| 28 |
+
}
|
data/splits.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"development": "2026-04-01T00:00:00Z/2026-04-10T00:00:00Z",
|
| 3 |
+
"test": "2026-04-10T00:00:00Z/2026-04-15T00:00:00Z",
|
| 4 |
+
"group": "account and period; one authored event stays in one split",
|
| 5 |
+
"service_principals": "AssumedRole actors are modeled separately from IAM users",
|
| 6 |
+
"history": "before/after and burst counts use only earlier events"
|
| 7 |
+
}
|
demo/.gitattributes
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* text=auto eol=lf
|
| 2 |
+
*.py text eol=lf
|
| 3 |
+
*.md text eol=lf
|
| 4 |
+
*.csv text eol=lf
|
| 5 |
+
*.json text eol=lf
|
| 6 |
+
*.jsonl text eol=lf
|
| 7 |
+
*.yml text eol=lf
|
| 8 |
+
*.yaml text eol=lf
|
| 9 |
+
*.html text eol=lf
|
| 10 |
+
*.txt text eol=lf
|
| 11 |
+
*.log text eol=lf
|
demo/.gitignore
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.py[cod]
|
| 3 |
+
.pytest_cache/
|
| 4 |
+
.venv/
|
| 5 |
+
.venv-cloudtrail/
|
| 6 |
+
*.egg-info/
|
| 7 |
+
.DS_Store
|
| 8 |
+
reports/
|
demo/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: AriaCloudTrail Sensitive Change Review
|
| 3 |
+
emoji: ☁️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.15.1
|
| 8 |
+
app_file: app.py
|
| 9 |
+
fullWidth: true
|
| 10 |
+
python_version: "3.12"
|
| 11 |
+
short_description: Review CloudTrail changes; maintenance is not exposure
|
| 12 |
+
pinned: true
|
| 13 |
+
license: apache-2.0
|
| 14 |
+
tags:
|
| 15 |
+
- cybersecurity
|
| 16 |
+
- cloud-security
|
| 17 |
+
- audit-log
|
| 18 |
+
- text-analysis
|
| 19 |
+
- data-visualization
|
| 20 |
+
datasets:
|
| 21 |
+
- AriaAICompany/cloudtrail-lab
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# AriaCloudTrail — Sensitive Cloud Change Review
|
| 25 |
+
|
| 26 |
+
**Aria AI** workstation for Cloud SOC. Exported AWS CloudTrail is parsed, actors and resources are aliased, and **ten change families** are ranked for a human look. An approved Sunday staging window is context. A single `Put*` or `Delete*` event is a request, not proof of current exposure.
|
| 27 |
+
|
| 28 |
+
Severity, confidence, and approval status stay three separate fields. This Space never asks for cloud credentials and never changes IAM, S3, security groups, or CloudTrail.
|
| 29 |
+
|
| 30 |
+
## What you can do
|
| 31 |
+
|
| 32 |
+
1. Run the 14-day 3-account laboratory pack (seed 16) or upload CloudTrail `Records` JSON / JSONL / CSV.
|
| 33 |
+
2. Compare AriaCloudTrail with raw `eventName` severity, a role/time baseline, limited correlation, and maintenance-aware rules.
|
| 34 |
+
3. Move threshold T and see **alert count and held-out event recall together**, plus precision at a daily review capacity of eight changes.
|
| 35 |
+
4. Open a change card for redacted evidence `event_id` values, before/after only when both sides exist, and the actor timeline. Filter actor, resource, or change type.
|
| 36 |
+
5. Download a hashed CSV/JSON bundle for this run.
|
| 37 |
+
|
| 38 |
+
CPU only. No paid API. Account IDs, ARNs, IPs, and access keys are not shown raw.
|
| 39 |
+
|
| 40 |
+
## Hosting
|
| 41 |
+
|
| 42 |
+
- Dataset: [AriaAICompany/cloudtrail-lab](https://huggingface.co/datasets/AriaAICompany/cloudtrail-lab)
|
| 43 |
+
- Collection: [Aria AI — Cybersecurity](https://huggingface.co/collections/AriaAICompany/aria-ai-cybersecurity-6ab01faa3995a3bb737b58a7)
|
| 44 |
+
- Live app: `alirezaaminzadeh/aria-cloud-trail` when Gradio hosting is available
|
| 45 |
+
- Organization card: `AriaAICompany/aria-cloud-trail` (static; org Gradio needs Team/Enterprise)
|
| 46 |
+
|
| 47 |
+
## Persian
|
| 48 |
+
|
| 49 |
+
آریاکلودتریل رویدادهای مدیریتی CloudTrail آزمایشگاهی را به ده نوع تغییر نگاشت میکند و پنجره نگهداری تأییدشده را از رفتار نیازمند بررسی جدا میکند. یک رویداد بهتنهایی مواجهه فعلی ابر را ثابت نمیکند. قبل/بعد فقط وقتی هر دو موجود باشند نشان داده میشود. اعتبارنامه ابر خواسته نمیشود و هیچ تغییری اعمال نمیشود.
|
| 50 |
+
|
| 51 |
+
## Links
|
| 52 |
+
|
| 53 |
+
- [AriaAICompany](https://huggingface.co/AriaAICompany)
|
| 54 |
+
- [aria-ai.ir](https://aria-ai.ir/)
|
| 55 |
+
- Roadmap project 16 of 25
|
demo/app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
from src.ui import CSS, build_demo
|
| 4 |
+
|
| 5 |
+
demo = build_demo()
|
| 6 |
+
|
| 7 |
+
if __name__ == "__main__":
|
| 8 |
+
demo.launch(theme=gr.themes.Soft(primary_hue="sky", secondary_hue="slate"), css=CSS)
|
demo/evaluations/evaluation.json
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"seed": 16,
|
| 3 |
+
"n_events": 319,
|
| 4 |
+
"n_accounts": 3,
|
| 5 |
+
"n_gold": 21,
|
| 6 |
+
"kpis": {
|
| 7 |
+
"n_raw": 319,
|
| 8 |
+
"n_valid": 319,
|
| 9 |
+
"n_dropped": 0,
|
| 10 |
+
"n_changes": 23,
|
| 11 |
+
"n_security_review": 14,
|
| 12 |
+
"n_context": 4,
|
| 13 |
+
"n_incomplete": 3,
|
| 14 |
+
"parse_coverage": 1.0,
|
| 15 |
+
"event_recall": 1.0,
|
| 16 |
+
"precision_at_k": 1.0,
|
| 17 |
+
"false_alarms_per_account_day": 0.0,
|
| 18 |
+
"change_type_accuracy": 1.0,
|
| 19 |
+
"maintenance_as_security": 0,
|
| 20 |
+
"ungrounded_claims": 0,
|
| 21 |
+
"seconds": 1.275,
|
| 22 |
+
"threshold": 3.0,
|
| 23 |
+
"model_names": "rules+baseline+correlation",
|
| 24 |
+
"daily_capacity": 8
|
| 25 |
+
},
|
| 26 |
+
"comparison": [
|
| 27 |
+
{
|
| 28 |
+
"method": "rule_severity",
|
| 29 |
+
"split": "development",
|
| 30 |
+
"event_recall": 1.0,
|
| 31 |
+
"precision_at_k": 0.7143,
|
| 32 |
+
"false_alarms_per_account_day": 0.1154,
|
| 33 |
+
"change_type_accuracy": 1.0,
|
| 34 |
+
"maintenance_as_security": 2,
|
| 35 |
+
"ungrounded_claims": 0,
|
| 36 |
+
"n_security_alerts": 10,
|
| 37 |
+
"n_context_alerts": 0,
|
| 38 |
+
"n_review_events": 7,
|
| 39 |
+
"parse_coverage": 1.0
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"method": "role_time_baseline",
|
| 43 |
+
"split": "development",
|
| 44 |
+
"event_recall": 0.2857,
|
| 45 |
+
"precision_at_k": 1.0,
|
| 46 |
+
"false_alarms_per_account_day": 0.0,
|
| 47 |
+
"change_type_accuracy": 1.0,
|
| 48 |
+
"maintenance_as_security": 0,
|
| 49 |
+
"ungrounded_claims": 0,
|
| 50 |
+
"n_security_alerts": 2,
|
| 51 |
+
"n_context_alerts": 0,
|
| 52 |
+
"n_review_events": 7,
|
| 53 |
+
"parse_coverage": 1.0
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"method": "correlation",
|
| 57 |
+
"split": "development",
|
| 58 |
+
"event_recall": 0.1429,
|
| 59 |
+
"precision_at_k": 0.5,
|
| 60 |
+
"false_alarms_per_account_day": 0.0385,
|
| 61 |
+
"change_type_accuracy": 1.0,
|
| 62 |
+
"maintenance_as_security": 1,
|
| 63 |
+
"ungrounded_claims": 0,
|
| 64 |
+
"n_security_alerts": 2,
|
| 65 |
+
"n_context_alerts": 0,
|
| 66 |
+
"n_review_events": 7,
|
| 67 |
+
"parse_coverage": 1.0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"method": "maintenance_aware_rules",
|
| 71 |
+
"split": "development",
|
| 72 |
+
"event_recall": 0.8571,
|
| 73 |
+
"precision_at_k": 1.0,
|
| 74 |
+
"false_alarms_per_account_day": 0.0,
|
| 75 |
+
"change_type_accuracy": 1.0,
|
| 76 |
+
"maintenance_as_security": 0,
|
| 77 |
+
"ungrounded_claims": 0,
|
| 78 |
+
"n_security_alerts": 6,
|
| 79 |
+
"n_context_alerts": 0,
|
| 80 |
+
"n_review_events": 7,
|
| 81 |
+
"parse_coverage": 1.0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"method": "ariacloudtrail",
|
| 85 |
+
"split": "development",
|
| 86 |
+
"event_recall": 0.8571,
|
| 87 |
+
"precision_at_k": 1.0,
|
| 88 |
+
"false_alarms_per_account_day": 0.0,
|
| 89 |
+
"change_type_accuracy": 1.0,
|
| 90 |
+
"maintenance_as_security": 0,
|
| 91 |
+
"ungrounded_claims": 0,
|
| 92 |
+
"n_security_alerts": 6,
|
| 93 |
+
"n_context_alerts": 2,
|
| 94 |
+
"n_review_events": 7,
|
| 95 |
+
"parse_coverage": 1.0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"method": "rule_severity",
|
| 99 |
+
"split": "test",
|
| 100 |
+
"event_recall": 1.0,
|
| 101 |
+
"precision_at_k": 0.6667,
|
| 102 |
+
"false_alarms_per_account_day": 0.2,
|
| 103 |
+
"change_type_accuracy": 1.0,
|
| 104 |
+
"maintenance_as_security": 2,
|
| 105 |
+
"ungrounded_claims": 0,
|
| 106 |
+
"n_security_alerts": 11,
|
| 107 |
+
"n_context_alerts": 0,
|
| 108 |
+
"n_review_events": 8,
|
| 109 |
+
"parse_coverage": 1.0
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"method": "role_time_baseline",
|
| 113 |
+
"split": "test",
|
| 114 |
+
"event_recall": 0.5,
|
| 115 |
+
"precision_at_k": 1.0,
|
| 116 |
+
"false_alarms_per_account_day": 0.0,
|
| 117 |
+
"change_type_accuracy": 1.0,
|
| 118 |
+
"maintenance_as_security": 0,
|
| 119 |
+
"ungrounded_claims": 0,
|
| 120 |
+
"n_security_alerts": 4,
|
| 121 |
+
"n_context_alerts": 0,
|
| 122 |
+
"n_review_events": 8,
|
| 123 |
+
"parse_coverage": 1.0
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"method": "correlation",
|
| 127 |
+
"split": "test",
|
| 128 |
+
"event_recall": 0.5,
|
| 129 |
+
"precision_at_k": 0.8333,
|
| 130 |
+
"false_alarms_per_account_day": 0.1333,
|
| 131 |
+
"change_type_accuracy": 1.0,
|
| 132 |
+
"maintenance_as_security": 2,
|
| 133 |
+
"ungrounded_claims": 0,
|
| 134 |
+
"n_security_alerts": 6,
|
| 135 |
+
"n_context_alerts": 0,
|
| 136 |
+
"n_review_events": 8,
|
| 137 |
+
"parse_coverage": 1.0
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"method": "maintenance_aware_rules",
|
| 141 |
+
"split": "test",
|
| 142 |
+
"event_recall": 1.0,
|
| 143 |
+
"precision_at_k": 1.0,
|
| 144 |
+
"false_alarms_per_account_day": 0.0,
|
| 145 |
+
"change_type_accuracy": 1.0,
|
| 146 |
+
"maintenance_as_security": 0,
|
| 147 |
+
"ungrounded_claims": 0,
|
| 148 |
+
"n_security_alerts": 8,
|
| 149 |
+
"n_context_alerts": 0,
|
| 150 |
+
"n_review_events": 8,
|
| 151 |
+
"parse_coverage": 1.0
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"method": "ariacloudtrail",
|
| 155 |
+
"split": "test",
|
| 156 |
+
"event_recall": 1.0,
|
| 157 |
+
"precision_at_k": 1.0,
|
| 158 |
+
"false_alarms_per_account_day": 0.0,
|
| 159 |
+
"change_type_accuracy": 1.0,
|
| 160 |
+
"maintenance_as_security": 0,
|
| 161 |
+
"ungrounded_claims": 0,
|
| 162 |
+
"n_security_alerts": 8,
|
| 163 |
+
"n_context_alerts": 2,
|
| 164 |
+
"n_review_events": 8,
|
| 165 |
+
"parse_coverage": 1.0
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"method": "rule_severity",
|
| 169 |
+
"split": "all",
|
| 170 |
+
"event_recall": 1.0,
|
| 171 |
+
"precision_at_k": 0.6944,
|
| 172 |
+
"false_alarms_per_account_day": 0.1463,
|
| 173 |
+
"change_type_accuracy": 1.0,
|
| 174 |
+
"maintenance_as_security": 4,
|
| 175 |
+
"ungrounded_claims": 0,
|
| 176 |
+
"n_security_alerts": 21,
|
| 177 |
+
"n_context_alerts": 0,
|
| 178 |
+
"n_review_events": 15,
|
| 179 |
+
"parse_coverage": 1.0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"method": "role_time_baseline",
|
| 183 |
+
"split": "all",
|
| 184 |
+
"event_recall": 0.4,
|
| 185 |
+
"precision_at_k": 1.0,
|
| 186 |
+
"false_alarms_per_account_day": 0.0,
|
| 187 |
+
"change_type_accuracy": 1.0,
|
| 188 |
+
"maintenance_as_security": 0,
|
| 189 |
+
"ungrounded_claims": 0,
|
| 190 |
+
"n_security_alerts": 6,
|
| 191 |
+
"n_context_alerts": 0,
|
| 192 |
+
"n_review_events": 15,
|
| 193 |
+
"parse_coverage": 1.0
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"method": "correlation",
|
| 197 |
+
"split": "all",
|
| 198 |
+
"event_recall": 0.3333,
|
| 199 |
+
"precision_at_k": 0.7222,
|
| 200 |
+
"false_alarms_per_account_day": 0.0732,
|
| 201 |
+
"change_type_accuracy": 1.0,
|
| 202 |
+
"maintenance_as_security": 3,
|
| 203 |
+
"ungrounded_claims": 0,
|
| 204 |
+
"n_security_alerts": 8,
|
| 205 |
+
"n_context_alerts": 0,
|
| 206 |
+
"n_review_events": 15,
|
| 207 |
+
"parse_coverage": 1.0
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"method": "maintenance_aware_rules",
|
| 211 |
+
"split": "all",
|
| 212 |
+
"event_recall": 0.9333,
|
| 213 |
+
"precision_at_k": 1.0,
|
| 214 |
+
"false_alarms_per_account_day": 0.0,
|
| 215 |
+
"change_type_accuracy": 1.0,
|
| 216 |
+
"maintenance_as_security": 0,
|
| 217 |
+
"ungrounded_claims": 0,
|
| 218 |
+
"n_security_alerts": 14,
|
| 219 |
+
"n_context_alerts": 0,
|
| 220 |
+
"n_review_events": 15,
|
| 221 |
+
"parse_coverage": 1.0
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"method": "ariacloudtrail",
|
| 225 |
+
"split": "all",
|
| 226 |
+
"event_recall": 0.9333,
|
| 227 |
+
"precision_at_k": 1.0,
|
| 228 |
+
"false_alarms_per_account_day": 0.0,
|
| 229 |
+
"change_type_accuracy": 1.0,
|
| 230 |
+
"maintenance_as_security": 0,
|
| 231 |
+
"ungrounded_claims": 0,
|
| 232 |
+
"n_security_alerts": 14,
|
| 233 |
+
"n_context_alerts": 4,
|
| 234 |
+
"n_review_events": 15,
|
| 235 |
+
"parse_coverage": 1.0
|
| 236 |
+
}
|
| 237 |
+
],
|
| 238 |
+
"calibration": [
|
| 239 |
+
{
|
| 240 |
+
"threshold": 1.5,
|
| 241 |
+
"n_security_alerts": 8,
|
| 242 |
+
"event_recall": 1.0,
|
| 243 |
+
"precision_at_k": 1.0,
|
| 244 |
+
"false_alarms_per_account_day": 0.0
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"threshold": 2.0,
|
| 248 |
+
"n_security_alerts": 8,
|
| 249 |
+
"event_recall": 1.0,
|
| 250 |
+
"precision_at_k": 1.0,
|
| 251 |
+
"false_alarms_per_account_day": 0.0
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"threshold": 2.5,
|
| 255 |
+
"n_security_alerts": 8,
|
| 256 |
+
"event_recall": 1.0,
|
| 257 |
+
"precision_at_k": 1.0,
|
| 258 |
+
"false_alarms_per_account_day": 0.0
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"threshold": 3.0,
|
| 262 |
+
"n_security_alerts": 8,
|
| 263 |
+
"event_recall": 1.0,
|
| 264 |
+
"precision_at_k": 1.0,
|
| 265 |
+
"false_alarms_per_account_day": 0.0
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"threshold": 3.5,
|
| 269 |
+
"n_security_alerts": 8,
|
| 270 |
+
"event_recall": 1.0,
|
| 271 |
+
"precision_at_k": 1.0,
|
| 272 |
+
"false_alarms_per_account_day": 0.0
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"threshold": 4.0,
|
| 276 |
+
"n_security_alerts": 8,
|
| 277 |
+
"event_recall": 1.0,
|
| 278 |
+
"precision_at_k": 1.0,
|
| 279 |
+
"false_alarms_per_account_day": 0.0
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"threshold": 5.0,
|
| 283 |
+
"n_security_alerts": 7,
|
| 284 |
+
"event_recall": 0.875,
|
| 285 |
+
"precision_at_k": 1.0,
|
| 286 |
+
"false_alarms_per_account_day": 0.0
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
}
|
demo/examples/cloudtrail_sample.json
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Records": [
|
| 3 |
+
{
|
| 4 |
+
"eventVersion": "1.09",
|
| 5 |
+
"userIdentity": {
|
| 6 |
+
"type": "AssumedRole",
|
| 7 |
+
"principalId": "222222222222:terraform-staging",
|
| 8 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 9 |
+
"accountId": "222222222222",
|
| 10 |
+
"sessionContext": {
|
| 11 |
+
"sessionIssuer": {
|
| 12 |
+
"type": "Role",
|
| 13 |
+
"userName": "terraform-staging",
|
| 14 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 15 |
+
"accountId": "222222222222"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"eventTime": "2026-04-05T02:15:00Z",
|
| 20 |
+
"eventSource": "iam.amazonaws.com",
|
| 21 |
+
"eventName": "AttachRolePolicy",
|
| 22 |
+
"awsRegion": "us-east-1",
|
| 23 |
+
"sourceIPAddress": "198.51.100.20",
|
| 24 |
+
"userAgent": "terraform/1.9.0",
|
| 25 |
+
"requestParameters": {
|
| 26 |
+
"roleName": "job-runner",
|
| 27 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 28 |
+
},
|
| 29 |
+
"responseElements": {
|
| 30 |
+
"_lab": true
|
| 31 |
+
},
|
| 32 |
+
"requestID": "req-evt-maint-dev-01",
|
| 33 |
+
"eventID": "EVT-MAINT-DEV-01",
|
| 34 |
+
"readOnly": false,
|
| 35 |
+
"eventType": "AwsApiCall",
|
| 36 |
+
"managementEvent": true,
|
| 37 |
+
"recipientAccountId": "222222222222",
|
| 38 |
+
"errorCode": null,
|
| 39 |
+
"lab_event_id": "EVT-MAINT-DEV-01",
|
| 40 |
+
"lab_family": "benign_maintenance",
|
| 41 |
+
"change_ticket": "CHG-4411",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"incomplete": false
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"eventVersion": "1.09",
|
| 47 |
+
"userIdentity": {
|
| 48 |
+
"type": "AssumedRole",
|
| 49 |
+
"principalId": "222222222222:terraform-staging",
|
| 50 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 51 |
+
"accountId": "222222222222",
|
| 52 |
+
"sessionContext": {
|
| 53 |
+
"sessionIssuer": {
|
| 54 |
+
"type": "Role",
|
| 55 |
+
"userName": "terraform-staging",
|
| 56 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 57 |
+
"accountId": "222222222222"
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"eventTime": "2026-04-05T02:40:00Z",
|
| 62 |
+
"eventSource": "ec2.amazonaws.com",
|
| 63 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 64 |
+
"awsRegion": "us-east-1",
|
| 65 |
+
"sourceIPAddress": "198.51.100.20",
|
| 66 |
+
"userAgent": "terraform/1.9.0",
|
| 67 |
+
"requestParameters": {
|
| 68 |
+
"groupId": "sg-staging-web",
|
| 69 |
+
"cidrIp": "10.0.0.0/8",
|
| 70 |
+
"fromPort": 443,
|
| 71 |
+
"toPort": 443
|
| 72 |
+
},
|
| 73 |
+
"responseElements": {
|
| 74 |
+
"_lab": true
|
| 75 |
+
},
|
| 76 |
+
"requestID": "req-evt-sg-safe-dev-01",
|
| 77 |
+
"eventID": "EVT-SG-SAFE-DEV-01",
|
| 78 |
+
"readOnly": false,
|
| 79 |
+
"eventType": "AwsApiCall",
|
| 80 |
+
"managementEvent": true,
|
| 81 |
+
"recipientAccountId": "222222222222",
|
| 82 |
+
"errorCode": null,
|
| 83 |
+
"lab_event_id": "EVT-SG-SAFE-DEV-01",
|
| 84 |
+
"lab_family": "benign_restricted_sg",
|
| 85 |
+
"change_ticket": "CHG-4411",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"incomplete": false
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"eventVersion": "1.09",
|
| 91 |
+
"userIdentity": {
|
| 92 |
+
"type": "IAMUser",
|
| 93 |
+
"principalId": "AIDAIALICELAB",
|
| 94 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 95 |
+
"accountId": "111111111111",
|
| 96 |
+
"userName": "alice"
|
| 97 |
+
},
|
| 98 |
+
"eventTime": "2026-04-03T03:12:00Z",
|
| 99 |
+
"eventSource": "iam.amazonaws.com",
|
| 100 |
+
"eventName": "AttachUserPolicy",
|
| 101 |
+
"awsRegion": "us-east-1",
|
| 102 |
+
"sourceIPAddress": "203.0.113.10",
|
| 103 |
+
"userAgent": "console.amazonaws.com",
|
| 104 |
+
"requestParameters": {
|
| 105 |
+
"userName": "carol",
|
| 106 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 107 |
+
},
|
| 108 |
+
"responseElements": {
|
| 109 |
+
"_lab": true
|
| 110 |
+
},
|
| 111 |
+
"requestID": "req-evt-iam-dev-01",
|
| 112 |
+
"eventID": "EVT-IAM-DEV-01",
|
| 113 |
+
"readOnly": false,
|
| 114 |
+
"eventType": "AwsApiCall",
|
| 115 |
+
"managementEvent": true,
|
| 116 |
+
"recipientAccountId": "111111111111",
|
| 117 |
+
"errorCode": null,
|
| 118 |
+
"lab_event_id": "EVT-IAM-DEV-01",
|
| 119 |
+
"lab_family": "needs_review_iam_escalation",
|
| 120 |
+
"change_ticket": "",
|
| 121 |
+
"split": "development",
|
| 122 |
+
"incomplete": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"eventVersion": "1.09",
|
| 126 |
+
"userIdentity": {
|
| 127 |
+
"type": "IAMUser",
|
| 128 |
+
"principalId": "AIDAIBOBLAB",
|
| 129 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 130 |
+
"accountId": "222222222222",
|
| 131 |
+
"userName": "bob"
|
| 132 |
+
},
|
| 133 |
+
"eventTime": "2026-04-04T14:22:00Z",
|
| 134 |
+
"eventSource": "s3.amazonaws.com",
|
| 135 |
+
"eventName": "DeletePublicAccessBlock",
|
| 136 |
+
"awsRegion": "us-east-1",
|
| 137 |
+
"sourceIPAddress": "192.0.2.55",
|
| 138 |
+
"userAgent": "aws-cli/2.15.0",
|
| 139 |
+
"requestParameters": {
|
| 140 |
+
"bucketName": "prod-invoice-export"
|
| 141 |
+
},
|
| 142 |
+
"responseElements": {
|
| 143 |
+
"_lab": true
|
| 144 |
+
},
|
| 145 |
+
"requestID": "req-evt-s3-dev-01",
|
| 146 |
+
"eventID": "EVT-S3-DEV-01",
|
| 147 |
+
"readOnly": false,
|
| 148 |
+
"eventType": "AwsApiCall",
|
| 149 |
+
"managementEvent": true,
|
| 150 |
+
"recipientAccountId": "222222222222",
|
| 151 |
+
"errorCode": null,
|
| 152 |
+
"lab_event_id": "EVT-S3-DEV-01",
|
| 153 |
+
"lab_family": "needs_review_public_exposure",
|
| 154 |
+
"change_ticket": "",
|
| 155 |
+
"split": "development",
|
| 156 |
+
"incomplete": false
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"eventVersion": "1.09",
|
| 160 |
+
"userIdentity": {
|
| 161 |
+
"type": "IAMUser",
|
| 162 |
+
"principalId": "AIDAIALICELAB",
|
| 163 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 164 |
+
"accountId": "111111111111",
|
| 165 |
+
"userName": "alice"
|
| 166 |
+
},
|
| 167 |
+
"eventTime": "2026-04-03T18:00:00Z",
|
| 168 |
+
"eventSource": "ec2.amazonaws.com",
|
| 169 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 170 |
+
"awsRegion": "us-east-1",
|
| 171 |
+
"sourceIPAddress": "203.0.113.10",
|
| 172 |
+
"userAgent": "console.amazonaws.com",
|
| 173 |
+
"requestParameters": {
|
| 174 |
+
"groupId": "sg-prod-web",
|
| 175 |
+
"cidrIp": "0.0.0.0/0",
|
| 176 |
+
"fromPort": 22,
|
| 177 |
+
"toPort": 22
|
| 178 |
+
},
|
| 179 |
+
"responseElements": {
|
| 180 |
+
"_lab": true
|
| 181 |
+
},
|
| 182 |
+
"requestID": "req-evt-sg-open-dev-01",
|
| 183 |
+
"eventID": "EVT-SG-OPEN-DEV-01",
|
| 184 |
+
"readOnly": false,
|
| 185 |
+
"eventType": "AwsApiCall",
|
| 186 |
+
"managementEvent": true,
|
| 187 |
+
"recipientAccountId": "111111111111",
|
| 188 |
+
"errorCode": null,
|
| 189 |
+
"lab_event_id": "EVT-SG-OPEN-DEV-01",
|
| 190 |
+
"lab_family": "needs_review_public_exposure",
|
| 191 |
+
"change_ticket": "",
|
| 192 |
+
"split": "development",
|
| 193 |
+
"incomplete": false
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"eventVersion": "1.09",
|
| 197 |
+
"userIdentity": {
|
| 198 |
+
"type": "IAMUser",
|
| 199 |
+
"principalId": "AIDAICAROLLAB",
|
| 200 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 201 |
+
"accountId": "333333333333",
|
| 202 |
+
"userName": "carol"
|
| 203 |
+
},
|
| 204 |
+
"eventTime": "2026-04-06T01:05:00Z",
|
| 205 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 206 |
+
"eventName": "StopLogging",
|
| 207 |
+
"awsRegion": "us-east-1",
|
| 208 |
+
"sourceIPAddress": "192.0.2.55",
|
| 209 |
+
"userAgent": "aws-cli/2.15.0",
|
| 210 |
+
"requestParameters": {
|
| 211 |
+
"name": "org-management"
|
| 212 |
+
},
|
| 213 |
+
"responseElements": {
|
| 214 |
+
"_lab": true
|
| 215 |
+
},
|
| 216 |
+
"requestID": "req-evt-trail-dev-01",
|
| 217 |
+
"eventID": "EVT-TRAIL-DEV-01",
|
| 218 |
+
"readOnly": false,
|
| 219 |
+
"eventType": "AwsApiCall",
|
| 220 |
+
"managementEvent": true,
|
| 221 |
+
"recipientAccountId": "333333333333",
|
| 222 |
+
"errorCode": null,
|
| 223 |
+
"lab_event_id": "EVT-TRAIL-DEV-01",
|
| 224 |
+
"lab_family": "needs_review_logging_disable",
|
| 225 |
+
"change_ticket": "",
|
| 226 |
+
"split": "development",
|
| 227 |
+
"incomplete": false
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"eventVersion": "1.09",
|
| 231 |
+
"userIdentity": {
|
| 232 |
+
"type": "Root",
|
| 233 |
+
"principalId": "111111111111",
|
| 234 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 235 |
+
"accountId": "111111111111"
|
| 236 |
+
},
|
| 237 |
+
"eventTime": "2026-04-07T09:00:00Z",
|
| 238 |
+
"eventSource": "signin.amazonaws.com",
|
| 239 |
+
"eventName": "ConsoleLogin",
|
| 240 |
+
"awsRegion": "us-east-1",
|
| 241 |
+
"sourceIPAddress": "203.0.113.10",
|
| 242 |
+
"userAgent": "signin.amazonaws.com",
|
| 243 |
+
"requestParameters": {},
|
| 244 |
+
"responseElements": {
|
| 245 |
+
"_lab": true
|
| 246 |
+
},
|
| 247 |
+
"requestID": "req-evt-root-dev-01",
|
| 248 |
+
"eventID": "EVT-ROOT-DEV-01",
|
| 249 |
+
"readOnly": false,
|
| 250 |
+
"eventType": "AwsApiCall",
|
| 251 |
+
"managementEvent": true,
|
| 252 |
+
"recipientAccountId": "111111111111",
|
| 253 |
+
"errorCode": null,
|
| 254 |
+
"lab_event_id": "EVT-ROOT-DEV-01",
|
| 255 |
+
"lab_family": "needs_review_root",
|
| 256 |
+
"change_ticket": "",
|
| 257 |
+
"split": "development",
|
| 258 |
+
"incomplete": false
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"eventVersion": "1.09",
|
| 262 |
+
"userIdentity": {
|
| 263 |
+
"type": "IAMUser",
|
| 264 |
+
"principalId": "AIDAIDAVELAB",
|
| 265 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 266 |
+
"accountId": "111111111111",
|
| 267 |
+
"userName": "dave"
|
| 268 |
+
},
|
| 269 |
+
"eventTime": "2026-04-08T16:10:00Z",
|
| 270 |
+
"eventSource": "iam.amazonaws.com",
|
| 271 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 272 |
+
"awsRegion": "us-east-1",
|
| 273 |
+
"sourceIPAddress": "203.0.113.10",
|
| 274 |
+
"userAgent": "aws-cli/2.15.0",
|
| 275 |
+
"requestParameters": {
|
| 276 |
+
"roleName": "ci-deploy",
|
| 277 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 278 |
+
},
|
| 279 |
+
"responseElements": {
|
| 280 |
+
"_lab": true
|
| 281 |
+
},
|
| 282 |
+
"requestID": "req-evt-trust-dev-01",
|
| 283 |
+
"eventID": "EVT-TRUST-DEV-01",
|
| 284 |
+
"readOnly": false,
|
| 285 |
+
"eventType": "AwsApiCall",
|
| 286 |
+
"managementEvent": true,
|
| 287 |
+
"recipientAccountId": "111111111111",
|
| 288 |
+
"errorCode": null,
|
| 289 |
+
"lab_event_id": "EVT-TRUST-DEV-01",
|
| 290 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 291 |
+
"change_ticket": "",
|
| 292 |
+
"split": "development",
|
| 293 |
+
"incomplete": false
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"eventVersion": "1.09",
|
| 297 |
+
"userIdentity": {
|
| 298 |
+
"type": "IAMUser",
|
| 299 |
+
"principalId": "AIDAIBOBLAB",
|
| 300 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 301 |
+
"accountId": "222222222222",
|
| 302 |
+
"userName": "bob"
|
| 303 |
+
},
|
| 304 |
+
"eventTime": "2026-04-07T11:20:00Z",
|
| 305 |
+
"eventSource": "iam.amazonaws.com",
|
| 306 |
+
"eventName": "CreateAccessKey",
|
| 307 |
+
"awsRegion": "us-east-1",
|
| 308 |
+
"sourceIPAddress": "203.0.113.10",
|
| 309 |
+
"userAgent": "aws-cli/2.15.0",
|
| 310 |
+
"requestParameters": {
|
| 311 |
+
"userName": "deploy-bot"
|
| 312 |
+
},
|
| 313 |
+
"responseElements": {
|
| 314 |
+
"_lab": true
|
| 315 |
+
},
|
| 316 |
+
"requestID": "req-evt-key-dev-01",
|
| 317 |
+
"eventID": "EVT-KEY-DEV-01",
|
| 318 |
+
"readOnly": false,
|
| 319 |
+
"eventType": "AwsApiCall",
|
| 320 |
+
"managementEvent": true,
|
| 321 |
+
"recipientAccountId": "222222222222",
|
| 322 |
+
"errorCode": null,
|
| 323 |
+
"lab_event_id": "EVT-KEY-DEV-01",
|
| 324 |
+
"lab_family": "needs_review_iam_escalation",
|
| 325 |
+
"change_ticket": "",
|
| 326 |
+
"split": "development",
|
| 327 |
+
"incomplete": false
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"eventVersion": "1.09",
|
| 331 |
+
"userIdentity": {
|
| 332 |
+
"type": "IAMUser",
|
| 333 |
+
"principalId": "AIDAIBOBLAB",
|
| 334 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 335 |
+
"accountId": "222222222222",
|
| 336 |
+
"userName": "bob"
|
| 337 |
+
},
|
| 338 |
+
"eventTime": "2026-04-02T11:00:00Z",
|
| 339 |
+
"eventSource": "s3.amazonaws.com",
|
| 340 |
+
"eventName": "PutBucketPolicy",
|
| 341 |
+
"awsRegion": "us-east-1",
|
| 342 |
+
"sourceIPAddress": "203.0.113.10",
|
| 343 |
+
"userAgent": "aws-cli/2.15.0",
|
| 344 |
+
"requestParameters": null,
|
| 345 |
+
"responseElements": null,
|
| 346 |
+
"requestID": "req-evt-insuff-dev-01",
|
| 347 |
+
"eventID": "EVT-INSUFF-DEV-01",
|
| 348 |
+
"readOnly": false,
|
| 349 |
+
"eventType": "AwsApiCall",
|
| 350 |
+
"managementEvent": true,
|
| 351 |
+
"recipientAccountId": "222222222222",
|
| 352 |
+
"errorCode": null,
|
| 353 |
+
"lab_event_id": "EVT-INSUFF-DEV-01",
|
| 354 |
+
"lab_family": "insufficient_evidence",
|
| 355 |
+
"change_ticket": "",
|
| 356 |
+
"split": "development",
|
| 357 |
+
"incomplete": true
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"eventVersion": "1.09",
|
| 361 |
+
"userIdentity": {
|
| 362 |
+
"type": "AssumedRole",
|
| 363 |
+
"principalId": "222222222222:terraform-staging",
|
| 364 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 365 |
+
"accountId": "222222222222",
|
| 366 |
+
"sessionContext": {
|
| 367 |
+
"sessionIssuer": {
|
| 368 |
+
"type": "Role",
|
| 369 |
+
"userName": "terraform-staging",
|
| 370 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 371 |
+
"accountId": "222222222222"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"eventTime": "2026-04-12T02:20:00Z",
|
| 376 |
+
"eventSource": "iam.amazonaws.com",
|
| 377 |
+
"eventName": "AttachRolePolicy",
|
| 378 |
+
"awsRegion": "us-east-1",
|
| 379 |
+
"sourceIPAddress": "198.51.100.20",
|
| 380 |
+
"userAgent": "terraform/1.9.0",
|
| 381 |
+
"requestParameters": {
|
| 382 |
+
"roleName": "job-runner",
|
| 383 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 384 |
+
},
|
| 385 |
+
"responseElements": {
|
| 386 |
+
"_lab": true
|
| 387 |
+
},
|
| 388 |
+
"requestID": "req-evt-maint-01",
|
| 389 |
+
"eventID": "EVT-MAINT-01",
|
| 390 |
+
"readOnly": false,
|
| 391 |
+
"eventType": "AwsApiCall",
|
| 392 |
+
"managementEvent": true,
|
| 393 |
+
"recipientAccountId": "222222222222",
|
| 394 |
+
"errorCode": null,
|
| 395 |
+
"lab_event_id": "EVT-MAINT-01",
|
| 396 |
+
"lab_family": "benign_maintenance",
|
| 397 |
+
"change_ticket": "CHG-4411",
|
| 398 |
+
"split": "test",
|
| 399 |
+
"incomplete": false
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"eventVersion": "1.09",
|
| 403 |
+
"userIdentity": {
|
| 404 |
+
"type": "AssumedRole",
|
| 405 |
+
"principalId": "222222222222:terraform-staging",
|
| 406 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 407 |
+
"accountId": "222222222222",
|
| 408 |
+
"sessionContext": {
|
| 409 |
+
"sessionIssuer": {
|
| 410 |
+
"type": "Role",
|
| 411 |
+
"userName": "terraform-staging",
|
| 412 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 413 |
+
"accountId": "222222222222"
|
| 414 |
+
}
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
"eventTime": "2026-04-12T03:05:00Z",
|
| 418 |
+
"eventSource": "ec2.amazonaws.com",
|
| 419 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 420 |
+
"awsRegion": "us-east-1",
|
| 421 |
+
"sourceIPAddress": "198.51.100.20",
|
| 422 |
+
"userAgent": "terraform/1.9.0",
|
| 423 |
+
"requestParameters": {
|
| 424 |
+
"groupId": "sg-staging-web",
|
| 425 |
+
"cidrIp": "10.0.0.0/8",
|
| 426 |
+
"fromPort": 443,
|
| 427 |
+
"toPort": 443
|
| 428 |
+
},
|
| 429 |
+
"responseElements": {
|
| 430 |
+
"_lab": true
|
| 431 |
+
},
|
| 432 |
+
"requestID": "req-evt-sg-safe-01",
|
| 433 |
+
"eventID": "EVT-SG-SAFE-01",
|
| 434 |
+
"readOnly": false,
|
| 435 |
+
"eventType": "AwsApiCall",
|
| 436 |
+
"managementEvent": true,
|
| 437 |
+
"recipientAccountId": "222222222222",
|
| 438 |
+
"errorCode": null,
|
| 439 |
+
"lab_event_id": "EVT-SG-SAFE-01",
|
| 440 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9 |
+
"n_dropped": 0,
|
| 10 |
+
"n_changes": 23,
|
| 11 |
+
"n_security_review": 14,
|
| 12 |
+
"n_context": 4,
|
| 13 |
+
"n_incomplete": 3,
|
| 14 |
+
"parse_coverage": 1.0,
|
| 15 |
+
"event_recall": 1.0,
|
| 16 |
+
"precision_at_k": 1.0,
|
| 17 |
+
"false_alarms_per_account_day": 0.0,
|
| 18 |
+
"change_type_accuracy": 1.0,
|
| 19 |
+
"maintenance_as_security": 0,
|
| 20 |
+
"ungrounded_claims": 0,
|
| 21 |
+
"seconds": 1.275,
|
| 22 |
+
"threshold": 3.0,
|
| 23 |
+
"model_names": "rules+baseline+correlation",
|
| 24 |
+
"daily_capacity": 8
|
| 25 |
+
},
|
| 26 |
+
"comparison": [
|
| 27 |
+
{
|
| 28 |
+
"method": "rule_severity",
|
| 29 |
+
"split": "development",
|
| 30 |
+
"event_recall": 1.0,
|
| 31 |
+
"precision_at_k": 0.7143,
|
| 32 |
+
"false_alarms_per_account_day": 0.1154,
|
| 33 |
+
"change_type_accuracy": 1.0,
|
| 34 |
+
"maintenance_as_security": 2,
|
| 35 |
+
"ungrounded_claims": 0,
|
| 36 |
+
"n_security_alerts": 10,
|
| 37 |
+
"n_context_alerts": 0,
|
| 38 |
+
"n_review_events": 7,
|
| 39 |
+
"parse_coverage": 1.0
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"method": "role_time_baseline",
|
| 43 |
+
"split": "development",
|
| 44 |
+
"event_recall": 0.2857,
|
| 45 |
+
"precision_at_k": 1.0,
|
| 46 |
+
"false_alarms_per_account_day": 0.0,
|
| 47 |
+
"change_type_accuracy": 1.0,
|
| 48 |
+
"maintenance_as_security": 0,
|
| 49 |
+
"ungrounded_claims": 0,
|
| 50 |
+
"n_security_alerts": 2,
|
| 51 |
+
"n_context_alerts": 0,
|
| 52 |
+
"n_review_events": 7,
|
| 53 |
+
"parse_coverage": 1.0
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"method": "correlation",
|
| 57 |
+
"split": "development",
|
| 58 |
+
"event_recall": 0.1429,
|
| 59 |
+
"precision_at_k": 0.5,
|
| 60 |
+
"false_alarms_per_account_day": 0.0385,
|
| 61 |
+
"change_type_accuracy": 1.0,
|
| 62 |
+
"maintenance_as_security": 1,
|
| 63 |
+
"ungrounded_claims": 0,
|
| 64 |
+
"n_security_alerts": 2,
|
| 65 |
+
"n_context_alerts": 0,
|
| 66 |
+
"n_review_events": 7,
|
| 67 |
+
"parse_coverage": 1.0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"method": "maintenance_aware_rules",
|
| 71 |
+
"split": "development",
|
| 72 |
+
"event_recall": 0.8571,
|
| 73 |
+
"precision_at_k": 1.0,
|
| 74 |
+
"false_alarms_per_account_day": 0.0,
|
| 75 |
+
"change_type_accuracy": 1.0,
|
| 76 |
+
"maintenance_as_security": 0,
|
| 77 |
+
"ungrounded_claims": 0,
|
| 78 |
+
"n_security_alerts": 6,
|
| 79 |
+
"n_context_alerts": 0,
|
| 80 |
+
"n_review_events": 7,
|
| 81 |
+
"parse_coverage": 1.0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"method": "ariacloudtrail",
|
| 85 |
+
"split": "development",
|
| 86 |
+
"event_recall": 0.8571,
|
| 87 |
+
"precision_at_k": 1.0,
|
| 88 |
+
"false_alarms_per_account_day": 0.0,
|
| 89 |
+
"change_type_accuracy": 1.0,
|
| 90 |
+
"maintenance_as_security": 0,
|
| 91 |
+
"ungrounded_claims": 0,
|
| 92 |
+
"n_security_alerts": 6,
|
| 93 |
+
"n_context_alerts": 2,
|
| 94 |
+
"n_review_events": 7,
|
| 95 |
+
"parse_coverage": 1.0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"method": "rule_severity",
|
| 99 |
+
"split": "test",
|
| 100 |
+
"event_recall": 1.0,
|
| 101 |
+
"precision_at_k": 0.6667,
|
| 102 |
+
"false_alarms_per_account_day": 0.2,
|
| 103 |
+
"change_type_accuracy": 1.0,
|
| 104 |
+
"maintenance_as_security": 2,
|
| 105 |
+
"ungrounded_claims": 0,
|
| 106 |
+
"n_security_alerts": 11,
|
| 107 |
+
"n_context_alerts": 0,
|
| 108 |
+
"n_review_events": 8,
|
| 109 |
+
"parse_coverage": 1.0
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"method": "role_time_baseline",
|
| 113 |
+
"split": "test",
|
| 114 |
+
"event_recall": 0.5,
|
| 115 |
+
"precision_at_k": 1.0,
|
| 116 |
+
"false_alarms_per_account_day": 0.0,
|
| 117 |
+
"change_type_accuracy": 1.0,
|
| 118 |
+
"maintenance_as_security": 0,
|
| 119 |
+
"ungrounded_claims": 0,
|
| 120 |
+
"n_security_alerts": 4,
|
| 121 |
+
"n_context_alerts": 0,
|
| 122 |
+
"n_review_events": 8,
|
| 123 |
+
"parse_coverage": 1.0
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"method": "correlation",
|
| 127 |
+
"split": "test",
|
| 128 |
+
"event_recall": 0.5,
|
| 129 |
+
"precision_at_k": 0.8333,
|
| 130 |
+
"false_alarms_per_account_day": 0.1333,
|
| 131 |
+
"change_type_accuracy": 1.0,
|
| 132 |
+
"maintenance_as_security": 2,
|
| 133 |
+
"ungrounded_claims": 0,
|
| 134 |
+
"n_security_alerts": 6,
|
| 135 |
+
"n_context_alerts": 0,
|
| 136 |
+
"n_review_events": 8,
|
| 137 |
+
"parse_coverage": 1.0
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"method": "maintenance_aware_rules",
|
| 141 |
+
"split": "test",
|
| 142 |
+
"event_recall": 1.0,
|
| 143 |
+
"precision_at_k": 1.0,
|
| 144 |
+
"false_alarms_per_account_day": 0.0,
|
| 145 |
+
"change_type_accuracy": 1.0,
|
| 146 |
+
"maintenance_as_security": 0,
|
| 147 |
+
"ungrounded_claims": 0,
|
| 148 |
+
"n_security_alerts": 8,
|
| 149 |
+
"n_context_alerts": 0,
|
| 150 |
+
"n_review_events": 8,
|
| 151 |
+
"parse_coverage": 1.0
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"method": "ariacloudtrail",
|
| 155 |
+
"split": "test",
|
| 156 |
+
"event_recall": 1.0,
|
| 157 |
+
"precision_at_k": 1.0,
|
| 158 |
+
"false_alarms_per_account_day": 0.0,
|
| 159 |
+
"change_type_accuracy": 1.0,
|
| 160 |
+
"maintenance_as_security": 0,
|
| 161 |
+
"ungrounded_claims": 0,
|
| 162 |
+
"n_security_alerts": 8,
|
| 163 |
+
"n_context_alerts": 2,
|
| 164 |
+
"n_review_events": 8,
|
| 165 |
+
"parse_coverage": 1.0
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"method": "rule_severity",
|
| 169 |
+
"split": "all",
|
| 170 |
+
"event_recall": 1.0,
|
| 171 |
+
"precision_at_k": 0.6944,
|
| 172 |
+
"false_alarms_per_account_day": 0.1463,
|
| 173 |
+
"change_type_accuracy": 1.0,
|
| 174 |
+
"maintenance_as_security": 4,
|
| 175 |
+
"ungrounded_claims": 0,
|
| 176 |
+
"n_security_alerts": 21,
|
| 177 |
+
"n_context_alerts": 0,
|
| 178 |
+
"n_review_events": 15,
|
| 179 |
+
"parse_coverage": 1.0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"method": "role_time_baseline",
|
| 183 |
+
"split": "all",
|
| 184 |
+
"event_recall": 0.4,
|
| 185 |
+
"precision_at_k": 1.0,
|
| 186 |
+
"false_alarms_per_account_day": 0.0,
|
| 187 |
+
"change_type_accuracy": 1.0,
|
| 188 |
+
"maintenance_as_security": 0,
|
| 189 |
+
"ungrounded_claims": 0,
|
| 190 |
+
"n_security_alerts": 6,
|
| 191 |
+
"n_context_alerts": 0,
|
| 192 |
+
"n_review_events": 15,
|
| 193 |
+
"parse_coverage": 1.0
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"method": "correlation",
|
| 197 |
+
"split": "all",
|
| 198 |
+
"event_recall": 0.3333,
|
| 199 |
+
"precision_at_k": 0.7222,
|
| 200 |
+
"false_alarms_per_account_day": 0.0732,
|
| 201 |
+
"change_type_accuracy": 1.0,
|
| 202 |
+
"maintenance_as_security": 3,
|
| 203 |
+
"ungrounded_claims": 0,
|
| 204 |
+
"n_security_alerts": 8,
|
| 205 |
+
"n_context_alerts": 0,
|
| 206 |
+
"n_review_events": 15,
|
| 207 |
+
"parse_coverage": 1.0
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"method": "maintenance_aware_rules",
|
| 211 |
+
"split": "all",
|
| 212 |
+
"event_recall": 0.9333,
|
| 213 |
+
"precision_at_k": 1.0,
|
| 214 |
+
"false_alarms_per_account_day": 0.0,
|
| 215 |
+
"change_type_accuracy": 1.0,
|
| 216 |
+
"maintenance_as_security": 0,
|
| 217 |
+
"ungrounded_claims": 0,
|
| 218 |
+
"n_security_alerts": 14,
|
| 219 |
+
"n_context_alerts": 0,
|
| 220 |
+
"n_review_events": 15,
|
| 221 |
+
"parse_coverage": 1.0
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"method": "ariacloudtrail",
|
| 225 |
+
"split": "all",
|
| 226 |
+
"event_recall": 0.9333,
|
| 227 |
+
"precision_at_k": 1.0,
|
| 228 |
+
"false_alarms_per_account_day": 0.0,
|
| 229 |
+
"change_type_accuracy": 1.0,
|
| 230 |
+
"maintenance_as_security": 0,
|
| 231 |
+
"ungrounded_claims": 0,
|
| 232 |
+
"n_security_alerts": 14,
|
| 233 |
+
"n_context_alerts": 4,
|
| 234 |
+
"n_review_events": 15,
|
| 235 |
+
"parse_coverage": 1.0
|
| 236 |
+
}
|
| 237 |
+
],
|
| 238 |
+
"calibration": [
|
| 239 |
+
{
|
| 240 |
+
"threshold": 1.5,
|
| 241 |
+
"n_security_alerts": 8,
|
| 242 |
+
"event_recall": 1.0,
|
| 243 |
+
"precision_at_k": 1.0,
|
| 244 |
+
"false_alarms_per_account_day": 0.0
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"threshold": 2.0,
|
| 248 |
+
"n_security_alerts": 8,
|
| 249 |
+
"event_recall": 1.0,
|
| 250 |
+
"precision_at_k": 1.0,
|
| 251 |
+
"false_alarms_per_account_day": 0.0
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"threshold": 2.5,
|
| 255 |
+
"n_security_alerts": 8,
|
| 256 |
+
"event_recall": 1.0,
|
| 257 |
+
"precision_at_k": 1.0,
|
| 258 |
+
"false_alarms_per_account_day": 0.0
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"threshold": 3.0,
|
| 262 |
+
"n_security_alerts": 8,
|
| 263 |
+
"event_recall": 1.0,
|
| 264 |
+
"precision_at_k": 1.0,
|
| 265 |
+
"false_alarms_per_account_day": 0.0
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"threshold": 3.5,
|
| 269 |
+
"n_security_alerts": 8,
|
| 270 |
+
"event_recall": 1.0,
|
| 271 |
+
"precision_at_k": 1.0,
|
| 272 |
+
"false_alarms_per_account_day": 0.0
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"threshold": 4.0,
|
| 276 |
+
"n_security_alerts": 8,
|
| 277 |
+
"event_recall": 1.0,
|
| 278 |
+
"precision_at_k": 1.0,
|
| 279 |
+
"false_alarms_per_account_day": 0.0
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"threshold": 5.0,
|
| 283 |
+
"n_security_alerts": 7,
|
| 284 |
+
"event_recall": 0.875,
|
| 285 |
+
"precision_at_k": 1.0,
|
| 286 |
+
"false_alarms_per_account_day": 0.0
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
}
|
demo/examples/events.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
demo/examples/events.jsonl
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-05T02:15:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-maint-dev-01", "eventID": "EVT-MAINT-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-MAINT-DEV-01", "lab_family": "benign_maintenance", "change_ticket": "CHG-4411", "split": "development", "incomplete": false}
|
| 2 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-05T02:40:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-safe-dev-01", "eventID": "EVT-SG-SAFE-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-SAFE-DEV-01", "lab_family": "benign_restricted_sg", "change_ticket": "CHG-4411", "split": "development", "incomplete": false}
|
| 3 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T03:12:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachUserPolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"userName": "carol", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-iam-dev-01", "eventID": "EVT-IAM-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-IAM-DEV-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "development", "incomplete": false}
|
| 4 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-04T14:22:00Z", "eventSource": "s3.amazonaws.com", "eventName": "DeletePublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-dev-01", "eventID": "EVT-S3-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-S3-DEV-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "development", "incomplete": false}
|
| 5 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T18:00:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-open-dev-01", "eventID": "EVT-SG-OPEN-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-SG-OPEN-DEV-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "development", "incomplete": false}
|
| 6 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-06T01:05:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StopLogging", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-dev-01", "eventID": "EVT-TRAIL-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "EVT-TRAIL-DEV-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "development", "incomplete": false}
|
| 7 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "Root", "principalId": "111111111111", "arn": "arn:aws:iam::111111111111:root", "accountId": "111111111111"}, "eventTime": "2026-04-07T09:00:00Z", "eventSource": "signin.amazonaws.com", "eventName": "ConsoleLogin", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "signin.amazonaws.com", "requestParameters": {}, "responseElements": {"_lab": true}, "requestID": "req-evt-root-dev-01", "eventID": "EVT-ROOT-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-ROOT-DEV-01", "lab_family": "needs_review_root", "change_ticket": "", "split": "development", "incomplete": false}
|
| 8 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-08T16:10:00Z", "eventSource": "iam.amazonaws.com", "eventName": "UpdateAssumeRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "ci-deploy", "policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trust-dev-01", "eventID": "EVT-TRUST-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-TRUST-DEV-01", "lab_family": "needs_review_trust_wildcard", "change_ticket": "", "split": "development", "incomplete": false}
|
| 9 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-07T11:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"userName": "deploy-bot"}, "responseElements": {"_lab": true}, "requestID": "req-evt-key-dev-01", "eventID": "EVT-KEY-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-KEY-DEV-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "development", "incomplete": false}
|
| 10 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T11:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutBucketPolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": null, "responseElements": null, "requestID": "req-evt-insuff-dev-01", "eventID": "EVT-INSUFF-DEV-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-INSUFF-DEV-01", "lab_family": "insufficient_evidence", "change_ticket": "", "split": "development", "incomplete": true}
|
| 11 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-12T02:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-maint-01", "eventID": "EVT-MAINT-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-MAINT-01", "lab_family": "benign_maintenance", "change_ticket": "CHG-4411", "split": "test", "incomplete": false}
|
| 12 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-12T03:05:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-safe-01", "eventID": "EVT-SG-SAFE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-SAFE-01", "lab_family": "benign_restricted_sg", "change_ticket": "CHG-4411", "split": "test", "incomplete": false}
|
| 13 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-11T02:48:00Z", "eventSource": "iam.amazonaws.com", "eventName": "AttachRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"roleName": "break-glass", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"}, "responseElements": {"_lab": true}, "requestID": "req-evt-iam-01", "eventID": "EVT-IAM-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-IAM-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "test", "incomplete": false}
|
| 14 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-11T15:30:00Z", "eventSource": "s3.amazonaws.com", "eventName": "DeletePublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-01", "eventID": "EVT-S3-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-S3-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "test", "incomplete": false}
|
| 15 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-11T18:20:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "AuthorizeSecurityGroupIngress", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22}, "responseElements": {"_lab": true}, "requestID": "req-evt-sg-open-01", "eventID": "EVT-SG-OPEN-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-SG-OPEN-01", "lab_family": "needs_review_public_exposure", "change_ticket": "", "split": "test", "incomplete": false}
|
| 16 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-13T00:40:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StopLogging", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.55", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-01", "eventID": "EVT-TRAIL-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "EVT-TRAIL-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "test", "incomplete": false}
|
| 17 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "Root", "principalId": "111111111111", "arn": "arn:aws:iam::111111111111:root", "accountId": "111111111111"}, "eventTime": "2026-04-13T10:15:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"userName": "root"}, "responseElements": {"_lab": true}, "requestID": "req-evt-root-01", "eventID": "EVT-ROOT-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-ROOT-01", "lab_family": "needs_review_root", "change_ticket": "", "split": "test", "incomplete": false}
|
| 18 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-14T11:20:00Z", "eventSource": "iam.amazonaws.com", "eventName": "UpdateAssumeRolePolicy", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "ci-deploy", "policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trust-01", "eventID": "EVT-TRUST-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-TRUST-01", "lab_family": "needs_review_trust_wildcard", "change_ticket": "", "split": "test", "incomplete": false}
|
| 19 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-14T01:10:00Z", "eventSource": "guardduty.amazonaws.com", "eventName": "UpdateDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "console.amazonaws.com", "requestParameters": {"detectorId": "det-prod-01", "enable": false}, "responseElements": {"_lab": true}, "requestID": "req-evt-gd-01", "eventID": "EVT-GD-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "EVT-GD-01", "lab_family": "needs_review_logging_disable", "change_ticket": "", "split": "test", "incomplete": false}
|
| 20 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-12T11:40:00Z", "eventSource": "iam.amazonaws.com", "eventName": "CreateAccessKey", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"userName": "deploy-bot"}, "responseElements": {"_lab": true}, "requestID": "req-evt-key-01", "eventID": "EVT-KEY-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-KEY-01", "lab_family": "needs_review_iam_escalation", "change_ticket": "", "split": "test", "incomplete": false}
|
| 21 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-10T13:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": null, "responseElements": null, "requestID": "req-evt-insuff-01", "eventID": "EVT-INSUFF-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "EVT-INSUFF-01", "lab_family": "insufficient_evidence", "change_ticket": "", "split": "test", "incomplete": true}
|
| 22 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-04T10:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutPublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export", "PublicAccessBlockConfiguration": {"BlockPublicAcls": true, "IgnorePublicAcls": true, "BlockPublicPolicy": true, "RestrictPublicBuckets": true}}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-before-dev", "eventID": "EVT-S3-BEFORE-DEV", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 23 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-11T09:00:00Z", "eventSource": "s3.amazonaws.com", "eventName": "PutPublicAccessBlock", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export", "PublicAccessBlockConfiguration": {"BlockPublicAcls": true, "IgnorePublicAcls": true, "BlockPublicPolicy": true, "RestrictPublicBuckets": true}}, "responseElements": {"_lab": true}, "requestID": "req-evt-s3-before-01", "eventID": "EVT-S3-BEFORE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "test", "incomplete": false}
|
| 24 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T08:00:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StartLogging", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-before-dev", "eventID": "EVT-TRAIL-BEFORE-DEV", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 25 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-10T08:00:00Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "StartLogging", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"name": "org-management"}, "responseElements": {"_lab": true}, "requestID": "req-evt-trail-before-01", "eventID": "EVT-TRAIL-BEFORE-01", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "test", "incomplete": false}
|
| 26 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T16:25:38Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0001", "eventID": "bg-0001", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 27 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T11:00:31Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0002", "eventID": "bg-0002", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 28 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T10:52:03Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0003", "eventID": "bg-0003", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 29 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T08:08:40Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0004", "eventID": "bg-0004", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 30 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T16:41:25Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0005", "eventID": "bg-0005", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 31 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-01T14:15:47Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0006", "eventID": "bg-0006", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 32 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T11:39:09Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0007", "eventID": "bg-0007", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 33 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-01T11:45:13Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0008", "eventID": "bg-0008", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 34 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-01T17:17:44Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0009", "eventID": "bg-0009", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 35 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T12:44:06Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0010", "eventID": "bg-0010", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 36 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T10:46:47Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0011", "eventID": "bg-0011", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 37 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-01T14:36:29Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0012", "eventID": "bg-0012", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 38 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T09:43:26Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0013", "eventID": "bg-0013", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 39 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T16:30:07Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0014", "eventID": "bg-0014", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 40 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-01T09:52:05Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0015", "eventID": "bg-0015", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 41 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T17:43:31Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0016", "eventID": "bg-0016", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 42 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T12:03:49Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0017", "eventID": "bg-0017", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 43 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T14:37:32Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0018", "eventID": "bg-0018", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 44 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-01T09:00:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0019", "eventID": "tag-0019", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 45 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T15:49:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0020", "eventID": "tag-0020", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 46 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-01T09:04:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0021", "eventID": "tag-0021", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 47 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T15:00:26Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0022", "eventID": "bg-0022", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 48 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T08:48:10Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0023", "eventID": "bg-0023", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 49 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T11:43:15Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0024", "eventID": "bg-0024", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 50 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T11:08:23Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0025", "eventID": "bg-0025", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 51 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T09:14:23Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0026", "eventID": "bg-0026", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 52 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T15:30:24Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0027", "eventID": "bg-0027", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 53 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T17:46:04Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0028", "eventID": "bg-0028", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 54 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T13:45:11Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0029", "eventID": "bg-0029", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 55 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-02T14:55:03Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0030", "eventID": "bg-0030", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 56 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T10:52:19Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0031", "eventID": "bg-0031", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 57 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T09:38:46Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0032", "eventID": "bg-0032", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 58 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-02T17:04:24Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0033", "eventID": "bg-0033", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 59 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T13:06:04Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0034", "eventID": "bg-0034", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 60 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T11:18:27Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0035", "eventID": "bg-0035", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 61 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:lambda-rotator", "arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "lambda-rotator", "arn": "arn:aws:iam::111111111111:role/lambda-rotator", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T11:53:35Z", "eventSource": "guardduty.amazonaws.com", "eventName": "GetDetector", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0036", "eventID": "bg-0036", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 62 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-02T09:35:12Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0037", "eventID": "bg-0037", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 63 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-02T16:04:15Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0038", "eventID": "bg-0038", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 64 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-02T08:51:34Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0039", "eventID": "bg-0039", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 65 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T13:30:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0040", "eventID": "tag-0040", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 66 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "111111111111:terraform-prod", "arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session", "accountId": "111111111111", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-prod", "arn": "arn:aws:iam::111111111111:role/terraform-prod", "accountId": "111111111111"}}}, "eventTime": "2026-04-02T15:59:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0041", "eventID": "tag-0041", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 67 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-02T14:36:00Z", "eventSource": "ec2.amazonaws.com", "eventName": "CreateTags", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}}, "responseElements": {"_lab": true}, "requestID": "req-tag-0042", "eventID": "tag-0042", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 68 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T10:18:17Z", "eventSource": "sts.amazonaws.com", "eventName": "GetCallerIdentity", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0043", "eventID": "bg-0043", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 69 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-03T12:04:15Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0044", "eventID": "bg-0044", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 70 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAICAROLLAB", "arn": "arn:aws:iam::333333333333:user/carol", "accountId": "333333333333", "userName": "carol"}, "eventTime": "2026-04-03T08:39:42Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0045", "eventID": "bg-0045", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "333333333333", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 71 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-03T10:22:31Z", "eventSource": "iam.amazonaws.com", "eventName": "GetRole", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"roleName": "job-runner"}, "responseElements": null, "requestID": "req-bg-0046", "eventID": "bg-0046", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 72 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T09:28:43Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0047", "eventID": "bg-0047", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 73 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T14:12:49Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0048", "eventID": "bg-0048", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 74 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIBOBLAB", "arn": "arn:aws:iam::222222222222:user/bob", "accountId": "222222222222", "userName": "bob"}, "eventTime": "2026-04-03T12:36:31Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0049", "eventID": "bg-0049", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 75 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:ci-github", "arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "ci-github", "arn": "arn:aws:iam::222222222222:role/ci-github", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T11:49:17Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0050", "eventID": "bg-0050", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 76 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "AssumedRole", "principalId": "222222222222:terraform-staging", "arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session", "accountId": "222222222222", "sessionContext": {"sessionIssuer": {"type": "Role", "userName": "terraform-staging", "arn": "arn:aws:iam::222222222222:role/terraform-staging", "accountId": "222222222222"}}}, "eventTime": "2026-04-03T10:56:12Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.20", "userAgent": "terraform/1.9.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0051", "eventID": "bg-0051", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "222222222222", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 77 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T14:28:22Z", "eventSource": "iam.amazonaws.com", "eventName": "ListUsers", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0052", "eventID": "bg-0052", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 78 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T10:56:46Z", "eventSource": "cloudtrail.amazonaws.com", "eventName": "DescribeTrails", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0053", "eventID": "bg-0053", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 79 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIALICELAB", "arn": "arn:aws:iam::111111111111:user/alice", "accountId": "111111111111", "userName": "alice"}, "eventTime": "2026-04-03T16:44:49Z", "eventSource": "ec2.amazonaws.com", "eventName": "DescribeInstances", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"marker": "lab-read"}, "responseElements": null, "requestID": "req-bg-0054", "eventID": "bg-0054", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
| 80 |
+
{"eventVersion": "1.09", "userIdentity": {"type": "IAMUser", "principalId": "AIDAIDAVELAB", "arn": "arn:aws:iam::111111111111:user/dave", "accountId": "111111111111", "userName": "dave"}, "eventTime": "2026-04-03T17:43:18Z", "eventSource": "s3.amazonaws.com", "eventName": "GetBucketAcl", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.10", "userAgent": "aws-cli/2.15.0", "requestParameters": {"bucketName": "prod-invoice-export"}, "responseElements": null, "requestID": "req-bg-0055", "eventID": "bg-0055", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111111111", "errorCode": null, "lab_event_id": "", "lab_family": "", "change_ticket": "", "split": "development", "incomplete": false}
|
demo/examples/events_preview.csv
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
event_id,timestamp,event_name,event_source,account_id,split,lab_event_id
|
| 2 |
+
EVT-MAINT-DEV-01,2026-04-05T02:15:00Z,AttachRolePolicy,iam.amazonaws.com,222222222222,development,EVT-MAINT-DEV-01
|
| 3 |
+
EVT-SG-SAFE-DEV-01,2026-04-05T02:40:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,development,EVT-SG-SAFE-DEV-01
|
| 4 |
+
EVT-IAM-DEV-01,2026-04-03T03:12:00Z,AttachUserPolicy,iam.amazonaws.com,111111111111,development,EVT-IAM-DEV-01
|
| 5 |
+
EVT-S3-DEV-01,2026-04-04T14:22:00Z,DeletePublicAccessBlock,s3.amazonaws.com,222222222222,development,EVT-S3-DEV-01
|
| 6 |
+
EVT-SG-OPEN-DEV-01,2026-04-03T18:00:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,111111111111,development,EVT-SG-OPEN-DEV-01
|
| 7 |
+
EVT-TRAIL-DEV-01,2026-04-06T01:05:00Z,StopLogging,cloudtrail.amazonaws.com,333333333333,development,EVT-TRAIL-DEV-01
|
| 8 |
+
EVT-ROOT-DEV-01,2026-04-07T09:00:00Z,ConsoleLogin,signin.amazonaws.com,111111111111,development,EVT-ROOT-DEV-01
|
| 9 |
+
EVT-TRUST-DEV-01,2026-04-08T16:10:00Z,UpdateAssumeRolePolicy,iam.amazonaws.com,111111111111,development,EVT-TRUST-DEV-01
|
| 10 |
+
EVT-KEY-DEV-01,2026-04-07T11:20:00Z,CreateAccessKey,iam.amazonaws.com,222222222222,development,EVT-KEY-DEV-01
|
| 11 |
+
EVT-INSUFF-DEV-01,2026-04-02T11:00:00Z,PutBucketPolicy,s3.amazonaws.com,222222222222,development,EVT-INSUFF-DEV-01
|
| 12 |
+
EVT-MAINT-01,2026-04-12T02:20:00Z,AttachRolePolicy,iam.amazonaws.com,222222222222,test,EVT-MAINT-01
|
| 13 |
+
EVT-SG-SAFE-01,2026-04-12T03:05:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,test,EVT-SG-SAFE-01
|
| 14 |
+
EVT-IAM-01,2026-04-11T02:48:00Z,AttachRolePolicy,iam.amazonaws.com,111111111111,test,EVT-IAM-01
|
| 15 |
+
EVT-S3-01,2026-04-11T15:30:00Z,DeletePublicAccessBlock,s3.amazonaws.com,222222222222,test,EVT-S3-01
|
| 16 |
+
EVT-SG-OPEN-01,2026-04-11T18:20:00Z,AuthorizeSecurityGroupIngress,ec2.amazonaws.com,222222222222,test,EVT-SG-OPEN-01
|
| 17 |
+
EVT-TRAIL-01,2026-04-13T00:40:00Z,StopLogging,cloudtrail.amazonaws.com,333333333333,test,EVT-TRAIL-01
|
| 18 |
+
EVT-ROOT-01,2026-04-13T10:15:00Z,CreateAccessKey,iam.amazonaws.com,111111111111,test,EVT-ROOT-01
|
| 19 |
+
EVT-TRUST-01,2026-04-14T11:20:00Z,UpdateAssumeRolePolicy,iam.amazonaws.com,111111111111,test,EVT-TRUST-01
|
| 20 |
+
EVT-GD-01,2026-04-14T01:10:00Z,UpdateDetector,guardduty.amazonaws.com,111111111111,test,EVT-GD-01
|
| 21 |
+
EVT-KEY-01,2026-04-12T11:40:00Z,CreateAccessKey,iam.amazonaws.com,222222222222,test,EVT-KEY-01
|
| 22 |
+
EVT-INSUFF-01,2026-04-10T13:00:00Z,PutBucketAcl,s3.amazonaws.com,222222222222,test,EVT-INSUFF-01
|
| 23 |
+
EVT-S3-BEFORE-DEV,2026-04-04T10:00:00Z,PutPublicAccessBlock,s3.amazonaws.com,111111111111,development,
|
| 24 |
+
EVT-S3-BEFORE-01,2026-04-11T09:00:00Z,PutPublicAccessBlock,s3.amazonaws.com,111111111111,test,
|
| 25 |
+
EVT-TRAIL-BEFORE-DEV,2026-04-02T08:00:00Z,StartLogging,cloudtrail.amazonaws.com,111111111111,development,
|
| 26 |
+
EVT-TRAIL-BEFORE-01,2026-04-10T08:00:00Z,StartLogging,cloudtrail.amazonaws.com,111111111111,test,
|
| 27 |
+
bg-0001,2026-04-01T16:25:38Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 28 |
+
bg-0002,2026-04-01T11:00:31Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 29 |
+
bg-0003,2026-04-01T10:52:03Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 30 |
+
bg-0004,2026-04-01T08:08:40Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 31 |
+
bg-0005,2026-04-01T16:41:25Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 32 |
+
bg-0006,2026-04-01T14:15:47Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 33 |
+
bg-0007,2026-04-01T11:39:09Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 34 |
+
bg-0008,2026-04-01T11:45:13Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 35 |
+
bg-0009,2026-04-01T17:17:44Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 36 |
+
bg-0010,2026-04-01T12:44:06Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 37 |
+
bg-0011,2026-04-01T10:46:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 38 |
+
bg-0012,2026-04-01T14:36:29Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 39 |
+
bg-0013,2026-04-01T09:43:26Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 40 |
+
bg-0014,2026-04-01T16:30:07Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 41 |
+
bg-0015,2026-04-01T09:52:05Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 42 |
+
bg-0016,2026-04-01T17:43:31Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 43 |
+
bg-0017,2026-04-01T12:03:49Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 44 |
+
bg-0018,2026-04-01T14:37:32Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 45 |
+
tag-0019,2026-04-01T09:00:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 46 |
+
tag-0020,2026-04-01T15:49:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 47 |
+
tag-0021,2026-04-01T09:04:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 48 |
+
bg-0022,2026-04-02T15:00:26Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 49 |
+
bg-0023,2026-04-02T08:48:10Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 50 |
+
bg-0024,2026-04-02T11:43:15Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 51 |
+
bg-0025,2026-04-02T11:08:23Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 52 |
+
bg-0026,2026-04-02T09:14:23Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 53 |
+
bg-0027,2026-04-02T15:30:24Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 54 |
+
bg-0028,2026-04-02T17:46:04Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 55 |
+
bg-0029,2026-04-02T13:45:11Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 56 |
+
bg-0030,2026-04-02T14:55:03Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 57 |
+
bg-0031,2026-04-02T10:52:19Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 58 |
+
bg-0032,2026-04-02T09:38:46Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 59 |
+
bg-0033,2026-04-02T17:04:24Z,GetRole,iam.amazonaws.com,333333333333,development,
|
| 60 |
+
bg-0034,2026-04-02T13:06:04Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 61 |
+
bg-0035,2026-04-02T11:18:27Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 62 |
+
bg-0036,2026-04-02T11:53:35Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 63 |
+
bg-0037,2026-04-02T09:35:12Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 64 |
+
bg-0038,2026-04-02T16:04:15Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 65 |
+
bg-0039,2026-04-02T08:51:34Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 66 |
+
tag-0040,2026-04-02T13:30:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 67 |
+
tag-0041,2026-04-02T15:59:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 68 |
+
tag-0042,2026-04-02T14:36:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 69 |
+
bg-0043,2026-04-03T10:18:17Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 70 |
+
bg-0044,2026-04-03T12:04:15Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 71 |
+
bg-0045,2026-04-03T08:39:42Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 72 |
+
bg-0046,2026-04-03T10:22:31Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 73 |
+
bg-0047,2026-04-03T09:28:43Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 74 |
+
bg-0048,2026-04-03T14:12:49Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 75 |
+
bg-0049,2026-04-03T12:36:31Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 76 |
+
bg-0050,2026-04-03T11:49:17Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 77 |
+
bg-0051,2026-04-03T10:56:12Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 78 |
+
bg-0052,2026-04-03T14:28:22Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 79 |
+
bg-0053,2026-04-03T10:56:46Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 80 |
+
bg-0054,2026-04-03T16:44:49Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 81 |
+
bg-0055,2026-04-03T17:43:18Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 82 |
+
bg-0056,2026-04-03T13:35:16Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 83 |
+
bg-0057,2026-04-03T14:26:47Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 84 |
+
bg-0058,2026-04-03T15:04:24Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 85 |
+
bg-0059,2026-04-03T12:03:44Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 86 |
+
bg-0060,2026-04-03T12:21:32Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 87 |
+
tag-0061,2026-04-03T09:16:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 88 |
+
tag-0062,2026-04-03T13:01:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 89 |
+
tag-0063,2026-04-03T12:04:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 90 |
+
bg-0064,2026-04-04T16:33:34Z,GetBucketAcl,s3.amazonaws.com,333333333333,development,
|
| 91 |
+
bg-0065,2026-04-04T15:36:21Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 92 |
+
bg-0066,2026-04-04T13:59:22Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 93 |
+
bg-0067,2026-04-04T14:10:34Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 94 |
+
bg-0068,2026-04-04T12:13:19Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 95 |
+
bg-0069,2026-04-04T14:09:23Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 96 |
+
bg-0070,2026-04-04T11:18:03Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 97 |
+
bg-0071,2026-04-04T10:44:14Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 98 |
+
bg-0072,2026-04-04T16:19:18Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 99 |
+
bg-0073,2026-04-04T09:16:33Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 100 |
+
bg-0074,2026-04-04T12:42:13Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 101 |
+
bg-0075,2026-04-04T08:49:35Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 102 |
+
bg-0076,2026-04-04T10:51:32Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 103 |
+
bg-0077,2026-04-04T13:52:45Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 104 |
+
bg-0078,2026-04-04T08:45:11Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 105 |
+
bg-0079,2026-04-04T11:05:49Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 106 |
+
bg-0080,2026-04-04T14:10:17Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 107 |
+
bg-0081,2026-04-04T10:03:27Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 108 |
+
tag-0082,2026-04-04T12:28:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 109 |
+
tag-0083,2026-04-04T14:24:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 110 |
+
tag-0084,2026-04-04T09:16:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 111 |
+
bg-0085,2026-04-05T12:02:09Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 112 |
+
bg-0086,2026-04-05T13:26:11Z,GetCallerIdentity,sts.amazonaws.com,333333333333,development,
|
| 113 |
+
bg-0087,2026-04-05T08:05:42Z,GetRole,iam.amazonaws.com,333333333333,development,
|
| 114 |
+
bg-0088,2026-04-05T10:49:09Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 115 |
+
bg-0089,2026-04-05T15:08:37Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 116 |
+
bg-0090,2026-04-05T08:27:03Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 117 |
+
bg-0091,2026-04-05T15:27:28Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 118 |
+
bg-0092,2026-04-05T12:20:00Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 119 |
+
bg-0093,2026-04-05T17:07:34Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 120 |
+
bg-0094,2026-04-05T16:56:01Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 121 |
+
bg-0095,2026-04-05T17:36:08Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 122 |
+
bg-0096,2026-04-05T10:30:09Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 123 |
+
bg-0097,2026-04-05T11:47:29Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 124 |
+
bg-0098,2026-04-05T12:11:45Z,ListUsers,iam.amazonaws.com,333333333333,development,
|
| 125 |
+
bg-0099,2026-04-05T09:51:10Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 126 |
+
bg-0100,2026-04-05T12:02:09Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 127 |
+
bg-0101,2026-04-05T08:03:21Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 128 |
+
bg-0102,2026-04-05T17:52:15Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 129 |
+
tag-0103,2026-04-05T14:39:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 130 |
+
tag-0104,2026-04-05T11:32:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 131 |
+
tag-0105,2026-04-05T13:58:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 132 |
+
bg-0106,2026-04-06T13:26:47Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 133 |
+
bg-0107,2026-04-06T09:23:10Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 134 |
+
bg-0108,2026-04-06T16:14:19Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 135 |
+
bg-0109,2026-04-06T10:20:27Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 136 |
+
bg-0110,2026-04-06T16:20:20Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 137 |
+
bg-0111,2026-04-06T09:40:18Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 138 |
+
bg-0112,2026-04-06T14:12:20Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 139 |
+
bg-0113,2026-04-06T14:20:28Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 140 |
+
bg-0114,2026-04-06T14:48:48Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 141 |
+
bg-0115,2026-04-06T11:40:45Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 142 |
+
bg-0116,2026-04-06T14:15:49Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 143 |
+
bg-0117,2026-04-06T08:02:37Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 144 |
+
bg-0118,2026-04-06T12:59:34Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 145 |
+
bg-0119,2026-04-06T08:51:27Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 146 |
+
bg-0120,2026-04-06T13:23:22Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 147 |
+
bg-0121,2026-04-06T12:45:21Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 148 |
+
bg-0122,2026-04-06T16:37:30Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 149 |
+
bg-0123,2026-04-06T16:48:11Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 150 |
+
tag-0124,2026-04-06T12:57:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 151 |
+
tag-0125,2026-04-06T15:12:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 152 |
+
tag-0126,2026-04-06T09:04:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 153 |
+
bg-0127,2026-04-07T10:30:05Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 154 |
+
bg-0128,2026-04-07T08:31:12Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 155 |
+
bg-0129,2026-04-07T12:56:20Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 156 |
+
bg-0130,2026-04-07T09:43:38Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 157 |
+
bg-0131,2026-04-07T11:44:04Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 158 |
+
bg-0132,2026-04-07T09:29:33Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 159 |
+
bg-0133,2026-04-07T10:42:05Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 160 |
+
bg-0134,2026-04-07T08:53:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 161 |
+
bg-0135,2026-04-07T10:10:07Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 162 |
+
bg-0136,2026-04-07T10:48:40Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 163 |
+
bg-0137,2026-04-07T10:45:18Z,GetCallerIdentity,sts.amazonaws.com,333333333333,development,
|
| 164 |
+
bg-0138,2026-04-07T15:44:12Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 165 |
+
bg-0139,2026-04-07T09:56:35Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 166 |
+
bg-0140,2026-04-07T13:31:40Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 167 |
+
bg-0141,2026-04-07T09:51:12Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 168 |
+
bg-0142,2026-04-07T16:44:14Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 169 |
+
bg-0143,2026-04-07T13:58:47Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 170 |
+
bg-0144,2026-04-07T16:29:09Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 171 |
+
tag-0145,2026-04-07T09:33:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 172 |
+
tag-0146,2026-04-07T11:48:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 173 |
+
tag-0147,2026-04-07T15:01:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 174 |
+
bg-0148,2026-04-08T10:42:31Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 175 |
+
bg-0149,2026-04-08T16:42:23Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 176 |
+
bg-0150,2026-04-08T15:46:01Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 177 |
+
bg-0151,2026-04-08T10:28:40Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 178 |
+
bg-0152,2026-04-08T12:44:11Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 179 |
+
bg-0153,2026-04-08T13:48:28Z,DescribeInstances,ec2.amazonaws.com,333333333333,development,
|
| 180 |
+
bg-0154,2026-04-08T09:35:01Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 181 |
+
bg-0155,2026-04-08T09:42:28Z,GetDetector,guardduty.amazonaws.com,333333333333,development,
|
| 182 |
+
bg-0156,2026-04-08T16:00:41Z,GetRole,iam.amazonaws.com,222222222222,development,
|
| 183 |
+
bg-0157,2026-04-08T15:54:29Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 184 |
+
bg-0158,2026-04-08T09:40:48Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 185 |
+
bg-0159,2026-04-08T08:40:01Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,development,
|
| 186 |
+
bg-0160,2026-04-08T17:04:46Z,GetDetector,guardduty.amazonaws.com,222222222222,development,
|
| 187 |
+
bg-0161,2026-04-08T15:18:46Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 188 |
+
bg-0162,2026-04-08T09:29:05Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 189 |
+
bg-0163,2026-04-08T17:36:48Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 190 |
+
bg-0164,2026-04-08T16:26:07Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 191 |
+
bg-0165,2026-04-08T10:52:40Z,GetBucketAcl,s3.amazonaws.com,222222222222,development,
|
| 192 |
+
tag-0166,2026-04-08T12:06:00Z,CreateTags,ec2.amazonaws.com,111111111111,development,
|
| 193 |
+
tag-0167,2026-04-08T13:24:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 194 |
+
tag-0168,2026-04-08T15:45:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 195 |
+
bg-0169,2026-04-09T10:21:40Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 196 |
+
bg-0170,2026-04-09T10:06:39Z,GetBucketAcl,s3.amazonaws.com,111111111111,development,
|
| 197 |
+
bg-0171,2026-04-09T08:10:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 198 |
+
bg-0172,2026-04-09T16:31:45Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 199 |
+
bg-0173,2026-04-09T11:27:40Z,GetDetector,guardduty.amazonaws.com,111111111111,development,
|
| 200 |
+
bg-0174,2026-04-09T15:18:08Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 201 |
+
bg-0175,2026-04-09T13:40:16Z,ListUsers,iam.amazonaws.com,222222222222,development,
|
| 202 |
+
bg-0176,2026-04-09T17:42:22Z,GetCallerIdentity,sts.amazonaws.com,111111111111,development,
|
| 203 |
+
bg-0177,2026-04-09T16:15:05Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 204 |
+
bg-0178,2026-04-09T12:57:40Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,development,
|
| 205 |
+
bg-0179,2026-04-09T08:43:14Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 206 |
+
bg-0180,2026-04-09T16:46:21Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 207 |
+
bg-0181,2026-04-09T14:36:40Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 208 |
+
bg-0182,2026-04-09T14:28:35Z,GetCallerIdentity,sts.amazonaws.com,222222222222,development,
|
| 209 |
+
bg-0183,2026-04-09T15:26:01Z,GetRole,iam.amazonaws.com,111111111111,development,
|
| 210 |
+
bg-0184,2026-04-09T11:52:34Z,DescribeInstances,ec2.amazonaws.com,111111111111,development,
|
| 211 |
+
bg-0185,2026-04-09T08:33:33Z,ListUsers,iam.amazonaws.com,111111111111,development,
|
| 212 |
+
bg-0186,2026-04-09T10:36:01Z,DescribeInstances,ec2.amazonaws.com,222222222222,development,
|
| 213 |
+
tag-0187,2026-04-09T14:43:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 214 |
+
tag-0188,2026-04-09T15:23:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 215 |
+
tag-0189,2026-04-09T09:07:00Z,CreateTags,ec2.amazonaws.com,222222222222,development,
|
| 216 |
+
bg-0190,2026-04-10T14:04:07Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 217 |
+
bg-0191,2026-04-10T17:24:17Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 218 |
+
bg-0192,2026-04-10T09:02:34Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 219 |
+
bg-0193,2026-04-10T15:32:08Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 220 |
+
bg-0194,2026-04-10T13:11:00Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 221 |
+
bg-0195,2026-04-10T13:28:49Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 222 |
+
bg-0196,2026-04-10T17:17:48Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 223 |
+
bg-0197,2026-04-10T11:47:20Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 224 |
+
bg-0198,2026-04-10T15:11:05Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 225 |
+
bg-0199,2026-04-10T14:33:02Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 226 |
+
bg-0200,2026-04-10T14:18:32Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 227 |
+
bg-0201,2026-04-10T10:24:47Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 228 |
+
bg-0202,2026-04-10T13:28:28Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 229 |
+
bg-0203,2026-04-10T08:28:03Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 230 |
+
bg-0204,2026-04-10T10:32:46Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 231 |
+
bg-0205,2026-04-10T12:22:37Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 232 |
+
bg-0206,2026-04-10T08:57:45Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 233 |
+
bg-0207,2026-04-10T16:47:11Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 234 |
+
tag-0208,2026-04-10T13:47:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 235 |
+
tag-0209,2026-04-10T09:37:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 236 |
+
tag-0210,2026-04-10T13:08:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 237 |
+
bg-0211,2026-04-11T13:35:42Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 238 |
+
bg-0212,2026-04-11T13:15:42Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 239 |
+
bg-0213,2026-04-11T16:13:40Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 240 |
+
bg-0214,2026-04-11T12:12:44Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 241 |
+
bg-0215,2026-04-11T11:13:11Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 242 |
+
bg-0216,2026-04-11T10:35:34Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 243 |
+
bg-0217,2026-04-11T14:30:29Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 244 |
+
bg-0218,2026-04-11T15:28:20Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 245 |
+
bg-0219,2026-04-11T16:31:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 246 |
+
bg-0220,2026-04-11T17:36:15Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 247 |
+
bg-0221,2026-04-11T12:51:20Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 248 |
+
bg-0222,2026-04-11T12:29:26Z,GetDetector,guardduty.amazonaws.com,111111111111,test,
|
| 249 |
+
bg-0223,2026-04-11T17:17:42Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 250 |
+
bg-0224,2026-04-11T12:53:44Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 251 |
+
bg-0225,2026-04-11T14:50:20Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 252 |
+
bg-0226,2026-04-11T16:12:37Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 253 |
+
bg-0227,2026-04-11T10:50:25Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 254 |
+
bg-0228,2026-04-11T14:17:33Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 255 |
+
tag-0229,2026-04-11T09:56:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 256 |
+
tag-0230,2026-04-11T15:15:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 257 |
+
tag-0231,2026-04-11T11:04:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 258 |
+
bg-0232,2026-04-12T08:27:05Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 259 |
+
bg-0233,2026-04-12T09:17:25Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 260 |
+
bg-0234,2026-04-12T14:46:01Z,GetDetector,guardduty.amazonaws.com,222222222222,test,
|
| 261 |
+
bg-0235,2026-04-12T10:42:35Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 262 |
+
bg-0236,2026-04-12T09:04:22Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 263 |
+
bg-0237,2026-04-12T13:15:33Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 264 |
+
bg-0238,2026-04-12T17:28:20Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 265 |
+
bg-0239,2026-04-12T17:19:30Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 266 |
+
bg-0240,2026-04-12T08:11:47Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 267 |
+
bg-0241,2026-04-12T15:12:20Z,GetRole,iam.amazonaws.com,333333333333,test,
|
| 268 |
+
bg-0242,2026-04-12T10:51:11Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 269 |
+
bg-0243,2026-04-12T12:40:01Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 270 |
+
bg-0244,2026-04-12T12:31:36Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 271 |
+
bg-0245,2026-04-12T14:22:15Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 272 |
+
bg-0246,2026-04-12T12:24:29Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 273 |
+
bg-0247,2026-04-12T12:24:22Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 274 |
+
bg-0248,2026-04-12T09:57:36Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 275 |
+
bg-0249,2026-04-12T16:01:47Z,ListUsers,iam.amazonaws.com,333333333333,test,
|
| 276 |
+
tag-0250,2026-04-12T09:01:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 277 |
+
tag-0251,2026-04-12T12:34:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 278 |
+
tag-0252,2026-04-12T12:21:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 279 |
+
bg-0253,2026-04-13T11:23:33Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 280 |
+
bg-0254,2026-04-13T14:43:31Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 281 |
+
bg-0255,2026-04-13T11:25:09Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 282 |
+
bg-0256,2026-04-13T13:12:46Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 283 |
+
bg-0257,2026-04-13T09:43:39Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 284 |
+
bg-0258,2026-04-13T08:41:24Z,GetCallerIdentity,sts.amazonaws.com,333333333333,test,
|
| 285 |
+
bg-0259,2026-04-13T12:33:04Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 286 |
+
bg-0260,2026-04-13T11:55:19Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 287 |
+
bg-0261,2026-04-13T14:49:16Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 288 |
+
bg-0262,2026-04-13T10:01:48Z,ListUsers,iam.amazonaws.com,111111111111,test,
|
| 289 |
+
bg-0263,2026-04-13T09:28:20Z,DescribeInstances,ec2.amazonaws.com,333333333333,test,
|
| 290 |
+
bg-0264,2026-04-13T10:45:02Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 291 |
+
bg-0265,2026-04-13T14:51:16Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 292 |
+
bg-0266,2026-04-13T15:49:10Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 293 |
+
bg-0267,2026-04-13T08:47:27Z,GetDetector,guardduty.amazonaws.com,222222222222,test,
|
| 294 |
+
bg-0268,2026-04-13T12:08:35Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 295 |
+
bg-0269,2026-04-13T14:34:02Z,GetRole,iam.amazonaws.com,222222222222,test,
|
| 296 |
+
bg-0270,2026-04-13T13:17:45Z,GetBucketAcl,s3.amazonaws.com,222222222222,test,
|
| 297 |
+
tag-0271,2026-04-13T12:25:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 298 |
+
tag-0272,2026-04-13T11:22:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 299 |
+
tag-0273,2026-04-13T15:31:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 300 |
+
bg-0274,2026-04-14T14:00:46Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 301 |
+
bg-0275,2026-04-14T16:17:41Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 302 |
+
bg-0276,2026-04-14T15:08:15Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 303 |
+
bg-0277,2026-04-14T14:53:40Z,GetDetector,guardduty.amazonaws.com,333333333333,test,
|
| 304 |
+
bg-0278,2026-04-14T08:07:47Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 305 |
+
bg-0279,2026-04-14T14:59:40Z,DescribeTrails,cloudtrail.amazonaws.com,111111111111,test,
|
| 306 |
+
bg-0280,2026-04-14T15:13:49Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 307 |
+
bg-0281,2026-04-14T17:29:47Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 308 |
+
bg-0282,2026-04-14T10:08:21Z,GetRole,iam.amazonaws.com,111111111111,test,
|
| 309 |
+
bg-0283,2026-04-14T08:32:39Z,GetBucketAcl,s3.amazonaws.com,333333333333,test,
|
| 310 |
+
bg-0284,2026-04-14T08:48:39Z,DescribeInstances,ec2.amazonaws.com,111111111111,test,
|
| 311 |
+
bg-0285,2026-04-14T09:03:21Z,GetCallerIdentity,sts.amazonaws.com,222222222222,test,
|
| 312 |
+
bg-0286,2026-04-14T11:20:42Z,GetCallerIdentity,sts.amazonaws.com,111111111111,test,
|
| 313 |
+
bg-0287,2026-04-14T11:15:23Z,ListUsers,iam.amazonaws.com,222222222222,test,
|
| 314 |
+
bg-0288,2026-04-14T17:44:33Z,DescribeInstances,ec2.amazonaws.com,222222222222,test,
|
| 315 |
+
bg-0289,2026-04-14T12:15:04Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 316 |
+
bg-0290,2026-04-14T13:27:40Z,GetBucketAcl,s3.amazonaws.com,111111111111,test,
|
| 317 |
+
bg-0291,2026-04-14T10:17:33Z,DescribeTrails,cloudtrail.amazonaws.com,222222222222,test,
|
| 318 |
+
tag-0292,2026-04-14T14:39:00Z,CreateTags,ec2.amazonaws.com,111111111111,test,
|
| 319 |
+
tag-0293,2026-04-14T15:06:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
| 320 |
+
tag-0294,2026-04-14T09:39:00Z,CreateTags,ec2.amazonaws.com,222222222222,test,
|
demo/examples/events_preview.json
ADDED
|
@@ -0,0 +1,2822 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
"principalId": "222222222222:terraform-staging",
|
| 8 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 9 |
+
"accountId": "222222222222",
|
| 10 |
+
"sessionContext": {
|
| 11 |
+
"sessionIssuer": {
|
| 12 |
+
"type": "Role",
|
| 13 |
+
"userName": "terraform-staging",
|
| 14 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 15 |
+
"accountId": "222222222222"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"eventTime": "2026-04-05T02:15:00Z",
|
| 20 |
+
"eventSource": "iam.amazonaws.com",
|
| 21 |
+
"eventName": "AttachRolePolicy",
|
| 22 |
+
"awsRegion": "us-east-1",
|
| 23 |
+
"sourceIPAddress": "198.51.100.20",
|
| 24 |
+
"userAgent": "terraform/1.9.0",
|
| 25 |
+
"requestParameters": {
|
| 26 |
+
"roleName": "job-runner",
|
| 27 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 28 |
+
},
|
| 29 |
+
"responseElements": {
|
| 30 |
+
"_lab": true
|
| 31 |
+
},
|
| 32 |
+
"requestID": "req-evt-maint-dev-01",
|
| 33 |
+
"eventID": "EVT-MAINT-DEV-01",
|
| 34 |
+
"readOnly": false,
|
| 35 |
+
"eventType": "AwsApiCall",
|
| 36 |
+
"managementEvent": true,
|
| 37 |
+
"recipientAccountId": "222222222222",
|
| 38 |
+
"errorCode": null,
|
| 39 |
+
"lab_event_id": "EVT-MAINT-DEV-01",
|
| 40 |
+
"lab_family": "benign_maintenance",
|
| 41 |
+
"change_ticket": "CHG-4411",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"incomplete": false
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"eventVersion": "1.09",
|
| 47 |
+
"userIdentity": {
|
| 48 |
+
"type": "AssumedRole",
|
| 49 |
+
"principalId": "222222222222:terraform-staging",
|
| 50 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 51 |
+
"accountId": "222222222222",
|
| 52 |
+
"sessionContext": {
|
| 53 |
+
"sessionIssuer": {
|
| 54 |
+
"type": "Role",
|
| 55 |
+
"userName": "terraform-staging",
|
| 56 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 57 |
+
"accountId": "222222222222"
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"eventTime": "2026-04-05T02:40:00Z",
|
| 62 |
+
"eventSource": "ec2.amazonaws.com",
|
| 63 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 64 |
+
"awsRegion": "us-east-1",
|
| 65 |
+
"sourceIPAddress": "198.51.100.20",
|
| 66 |
+
"userAgent": "terraform/1.9.0",
|
| 67 |
+
"requestParameters": {
|
| 68 |
+
"groupId": "sg-staging-web",
|
| 69 |
+
"cidrIp": "10.0.0.0/8",
|
| 70 |
+
"fromPort": 443,
|
| 71 |
+
"toPort": 443
|
| 72 |
+
},
|
| 73 |
+
"responseElements": {
|
| 74 |
+
"_lab": true
|
| 75 |
+
},
|
| 76 |
+
"requestID": "req-evt-sg-safe-dev-01",
|
| 77 |
+
"eventID": "EVT-SG-SAFE-DEV-01",
|
| 78 |
+
"readOnly": false,
|
| 79 |
+
"eventType": "AwsApiCall",
|
| 80 |
+
"managementEvent": true,
|
| 81 |
+
"recipientAccountId": "222222222222",
|
| 82 |
+
"errorCode": null,
|
| 83 |
+
"lab_event_id": "EVT-SG-SAFE-DEV-01",
|
| 84 |
+
"lab_family": "benign_restricted_sg",
|
| 85 |
+
"change_ticket": "CHG-4411",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"incomplete": false
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"eventVersion": "1.09",
|
| 91 |
+
"userIdentity": {
|
| 92 |
+
"type": "IAMUser",
|
| 93 |
+
"principalId": "AIDAIALICELAB",
|
| 94 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 95 |
+
"accountId": "111111111111",
|
| 96 |
+
"userName": "alice"
|
| 97 |
+
},
|
| 98 |
+
"eventTime": "2026-04-03T03:12:00Z",
|
| 99 |
+
"eventSource": "iam.amazonaws.com",
|
| 100 |
+
"eventName": "AttachUserPolicy",
|
| 101 |
+
"awsRegion": "us-east-1",
|
| 102 |
+
"sourceIPAddress": "203.0.113.10",
|
| 103 |
+
"userAgent": "console.amazonaws.com",
|
| 104 |
+
"requestParameters": {
|
| 105 |
+
"userName": "carol",
|
| 106 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 107 |
+
},
|
| 108 |
+
"responseElements": {
|
| 109 |
+
"_lab": true
|
| 110 |
+
},
|
| 111 |
+
"requestID": "req-evt-iam-dev-01",
|
| 112 |
+
"eventID": "EVT-IAM-DEV-01",
|
| 113 |
+
"readOnly": false,
|
| 114 |
+
"eventType": "AwsApiCall",
|
| 115 |
+
"managementEvent": true,
|
| 116 |
+
"recipientAccountId": "111111111111",
|
| 117 |
+
"errorCode": null,
|
| 118 |
+
"lab_event_id": "EVT-IAM-DEV-01",
|
| 119 |
+
"lab_family": "needs_review_iam_escalation",
|
| 120 |
+
"change_ticket": "",
|
| 121 |
+
"split": "development",
|
| 122 |
+
"incomplete": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"eventVersion": "1.09",
|
| 126 |
+
"userIdentity": {
|
| 127 |
+
"type": "IAMUser",
|
| 128 |
+
"principalId": "AIDAIBOBLAB",
|
| 129 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 130 |
+
"accountId": "222222222222",
|
| 131 |
+
"userName": "bob"
|
| 132 |
+
},
|
| 133 |
+
"eventTime": "2026-04-04T14:22:00Z",
|
| 134 |
+
"eventSource": "s3.amazonaws.com",
|
| 135 |
+
"eventName": "DeletePublicAccessBlock",
|
| 136 |
+
"awsRegion": "us-east-1",
|
| 137 |
+
"sourceIPAddress": "192.0.2.55",
|
| 138 |
+
"userAgent": "aws-cli/2.15.0",
|
| 139 |
+
"requestParameters": {
|
| 140 |
+
"bucketName": "prod-invoice-export"
|
| 141 |
+
},
|
| 142 |
+
"responseElements": {
|
| 143 |
+
"_lab": true
|
| 144 |
+
},
|
| 145 |
+
"requestID": "req-evt-s3-dev-01",
|
| 146 |
+
"eventID": "EVT-S3-DEV-01",
|
| 147 |
+
"readOnly": false,
|
| 148 |
+
"eventType": "AwsApiCall",
|
| 149 |
+
"managementEvent": true,
|
| 150 |
+
"recipientAccountId": "222222222222",
|
| 151 |
+
"errorCode": null,
|
| 152 |
+
"lab_event_id": "EVT-S3-DEV-01",
|
| 153 |
+
"lab_family": "needs_review_public_exposure",
|
| 154 |
+
"change_ticket": "",
|
| 155 |
+
"split": "development",
|
| 156 |
+
"incomplete": false
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"eventVersion": "1.09",
|
| 160 |
+
"userIdentity": {
|
| 161 |
+
"type": "IAMUser",
|
| 162 |
+
"principalId": "AIDAIALICELAB",
|
| 163 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 164 |
+
"accountId": "111111111111",
|
| 165 |
+
"userName": "alice"
|
| 166 |
+
},
|
| 167 |
+
"eventTime": "2026-04-03T18:00:00Z",
|
| 168 |
+
"eventSource": "ec2.amazonaws.com",
|
| 169 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 170 |
+
"awsRegion": "us-east-1",
|
| 171 |
+
"sourceIPAddress": "203.0.113.10",
|
| 172 |
+
"userAgent": "console.amazonaws.com",
|
| 173 |
+
"requestParameters": {
|
| 174 |
+
"groupId": "sg-prod-web",
|
| 175 |
+
"cidrIp": "0.0.0.0/0",
|
| 176 |
+
"fromPort": 22,
|
| 177 |
+
"toPort": 22
|
| 178 |
+
},
|
| 179 |
+
"responseElements": {
|
| 180 |
+
"_lab": true
|
| 181 |
+
},
|
| 182 |
+
"requestID": "req-evt-sg-open-dev-01",
|
| 183 |
+
"eventID": "EVT-SG-OPEN-DEV-01",
|
| 184 |
+
"readOnly": false,
|
| 185 |
+
"eventType": "AwsApiCall",
|
| 186 |
+
"managementEvent": true,
|
| 187 |
+
"recipientAccountId": "111111111111",
|
| 188 |
+
"errorCode": null,
|
| 189 |
+
"lab_event_id": "EVT-SG-OPEN-DEV-01",
|
| 190 |
+
"lab_family": "needs_review_public_exposure",
|
| 191 |
+
"change_ticket": "",
|
| 192 |
+
"split": "development",
|
| 193 |
+
"incomplete": false
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"eventVersion": "1.09",
|
| 197 |
+
"userIdentity": {
|
| 198 |
+
"type": "IAMUser",
|
| 199 |
+
"principalId": "AIDAICAROLLAB",
|
| 200 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 201 |
+
"accountId": "333333333333",
|
| 202 |
+
"userName": "carol"
|
| 203 |
+
},
|
| 204 |
+
"eventTime": "2026-04-06T01:05:00Z",
|
| 205 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 206 |
+
"eventName": "StopLogging",
|
| 207 |
+
"awsRegion": "us-east-1",
|
| 208 |
+
"sourceIPAddress": "192.0.2.55",
|
| 209 |
+
"userAgent": "aws-cli/2.15.0",
|
| 210 |
+
"requestParameters": {
|
| 211 |
+
"name": "org-management"
|
| 212 |
+
},
|
| 213 |
+
"responseElements": {
|
| 214 |
+
"_lab": true
|
| 215 |
+
},
|
| 216 |
+
"requestID": "req-evt-trail-dev-01",
|
| 217 |
+
"eventID": "EVT-TRAIL-DEV-01",
|
| 218 |
+
"readOnly": false,
|
| 219 |
+
"eventType": "AwsApiCall",
|
| 220 |
+
"managementEvent": true,
|
| 221 |
+
"recipientAccountId": "333333333333",
|
| 222 |
+
"errorCode": null,
|
| 223 |
+
"lab_event_id": "EVT-TRAIL-DEV-01",
|
| 224 |
+
"lab_family": "needs_review_logging_disable",
|
| 225 |
+
"change_ticket": "",
|
| 226 |
+
"split": "development",
|
| 227 |
+
"incomplete": false
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"eventVersion": "1.09",
|
| 231 |
+
"userIdentity": {
|
| 232 |
+
"type": "Root",
|
| 233 |
+
"principalId": "111111111111",
|
| 234 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 235 |
+
"accountId": "111111111111"
|
| 236 |
+
},
|
| 237 |
+
"eventTime": "2026-04-07T09:00:00Z",
|
| 238 |
+
"eventSource": "signin.amazonaws.com",
|
| 239 |
+
"eventName": "ConsoleLogin",
|
| 240 |
+
"awsRegion": "us-east-1",
|
| 241 |
+
"sourceIPAddress": "203.0.113.10",
|
| 242 |
+
"userAgent": "signin.amazonaws.com",
|
| 243 |
+
"requestParameters": {},
|
| 244 |
+
"responseElements": {
|
| 245 |
+
"_lab": true
|
| 246 |
+
},
|
| 247 |
+
"requestID": "req-evt-root-dev-01",
|
| 248 |
+
"eventID": "EVT-ROOT-DEV-01",
|
| 249 |
+
"readOnly": false,
|
| 250 |
+
"eventType": "AwsApiCall",
|
| 251 |
+
"managementEvent": true,
|
| 252 |
+
"recipientAccountId": "111111111111",
|
| 253 |
+
"errorCode": null,
|
| 254 |
+
"lab_event_id": "EVT-ROOT-DEV-01",
|
| 255 |
+
"lab_family": "needs_review_root",
|
| 256 |
+
"change_ticket": "",
|
| 257 |
+
"split": "development",
|
| 258 |
+
"incomplete": false
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"eventVersion": "1.09",
|
| 262 |
+
"userIdentity": {
|
| 263 |
+
"type": "IAMUser",
|
| 264 |
+
"principalId": "AIDAIDAVELAB",
|
| 265 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 266 |
+
"accountId": "111111111111",
|
| 267 |
+
"userName": "dave"
|
| 268 |
+
},
|
| 269 |
+
"eventTime": "2026-04-08T16:10:00Z",
|
| 270 |
+
"eventSource": "iam.amazonaws.com",
|
| 271 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 272 |
+
"awsRegion": "us-east-1",
|
| 273 |
+
"sourceIPAddress": "203.0.113.10",
|
| 274 |
+
"userAgent": "aws-cli/2.15.0",
|
| 275 |
+
"requestParameters": {
|
| 276 |
+
"roleName": "ci-deploy",
|
| 277 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 278 |
+
},
|
| 279 |
+
"responseElements": {
|
| 280 |
+
"_lab": true
|
| 281 |
+
},
|
| 282 |
+
"requestID": "req-evt-trust-dev-01",
|
| 283 |
+
"eventID": "EVT-TRUST-DEV-01",
|
| 284 |
+
"readOnly": false,
|
| 285 |
+
"eventType": "AwsApiCall",
|
| 286 |
+
"managementEvent": true,
|
| 287 |
+
"recipientAccountId": "111111111111",
|
| 288 |
+
"errorCode": null,
|
| 289 |
+
"lab_event_id": "EVT-TRUST-DEV-01",
|
| 290 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 291 |
+
"change_ticket": "",
|
| 292 |
+
"split": "development",
|
| 293 |
+
"incomplete": false
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"eventVersion": "1.09",
|
| 297 |
+
"userIdentity": {
|
| 298 |
+
"type": "IAMUser",
|
| 299 |
+
"principalId": "AIDAIBOBLAB",
|
| 300 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 301 |
+
"accountId": "222222222222",
|
| 302 |
+
"userName": "bob"
|
| 303 |
+
},
|
| 304 |
+
"eventTime": "2026-04-07T11:20:00Z",
|
| 305 |
+
"eventSource": "iam.amazonaws.com",
|
| 306 |
+
"eventName": "CreateAccessKey",
|
| 307 |
+
"awsRegion": "us-east-1",
|
| 308 |
+
"sourceIPAddress": "203.0.113.10",
|
| 309 |
+
"userAgent": "aws-cli/2.15.0",
|
| 310 |
+
"requestParameters": {
|
| 311 |
+
"userName": "deploy-bot"
|
| 312 |
+
},
|
| 313 |
+
"responseElements": {
|
| 314 |
+
"_lab": true
|
| 315 |
+
},
|
| 316 |
+
"requestID": "req-evt-key-dev-01",
|
| 317 |
+
"eventID": "EVT-KEY-DEV-01",
|
| 318 |
+
"readOnly": false,
|
| 319 |
+
"eventType": "AwsApiCall",
|
| 320 |
+
"managementEvent": true,
|
| 321 |
+
"recipientAccountId": "222222222222",
|
| 322 |
+
"errorCode": null,
|
| 323 |
+
"lab_event_id": "EVT-KEY-DEV-01",
|
| 324 |
+
"lab_family": "needs_review_iam_escalation",
|
| 325 |
+
"change_ticket": "",
|
| 326 |
+
"split": "development",
|
| 327 |
+
"incomplete": false
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"eventVersion": "1.09",
|
| 331 |
+
"userIdentity": {
|
| 332 |
+
"type": "IAMUser",
|
| 333 |
+
"principalId": "AIDAIBOBLAB",
|
| 334 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 335 |
+
"accountId": "222222222222",
|
| 336 |
+
"userName": "bob"
|
| 337 |
+
},
|
| 338 |
+
"eventTime": "2026-04-02T11:00:00Z",
|
| 339 |
+
"eventSource": "s3.amazonaws.com",
|
| 340 |
+
"eventName": "PutBucketPolicy",
|
| 341 |
+
"awsRegion": "us-east-1",
|
| 342 |
+
"sourceIPAddress": "203.0.113.10",
|
| 343 |
+
"userAgent": "aws-cli/2.15.0",
|
| 344 |
+
"requestParameters": null,
|
| 345 |
+
"responseElements": null,
|
| 346 |
+
"requestID": "req-evt-insuff-dev-01",
|
| 347 |
+
"eventID": "EVT-INSUFF-DEV-01",
|
| 348 |
+
"readOnly": false,
|
| 349 |
+
"eventType": "AwsApiCall",
|
| 350 |
+
"managementEvent": true,
|
| 351 |
+
"recipientAccountId": "222222222222",
|
| 352 |
+
"errorCode": null,
|
| 353 |
+
"lab_event_id": "EVT-INSUFF-DEV-01",
|
| 354 |
+
"lab_family": "insufficient_evidence",
|
| 355 |
+
"change_ticket": "",
|
| 356 |
+
"split": "development",
|
| 357 |
+
"incomplete": true
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"eventVersion": "1.09",
|
| 361 |
+
"userIdentity": {
|
| 362 |
+
"type": "AssumedRole",
|
| 363 |
+
"principalId": "222222222222:terraform-staging",
|
| 364 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 365 |
+
"accountId": "222222222222",
|
| 366 |
+
"sessionContext": {
|
| 367 |
+
"sessionIssuer": {
|
| 368 |
+
"type": "Role",
|
| 369 |
+
"userName": "terraform-staging",
|
| 370 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 371 |
+
"accountId": "222222222222"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"eventTime": "2026-04-12T02:20:00Z",
|
| 376 |
+
"eventSource": "iam.amazonaws.com",
|
| 377 |
+
"eventName": "AttachRolePolicy",
|
| 378 |
+
"awsRegion": "us-east-1",
|
| 379 |
+
"sourceIPAddress": "198.51.100.20",
|
| 380 |
+
"userAgent": "terraform/1.9.0",
|
| 381 |
+
"requestParameters": {
|
| 382 |
+
"roleName": "job-runner",
|
| 383 |
+
"policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
| 384 |
+
},
|
| 385 |
+
"responseElements": {
|
| 386 |
+
"_lab": true
|
| 387 |
+
},
|
| 388 |
+
"requestID": "req-evt-maint-01",
|
| 389 |
+
"eventID": "EVT-MAINT-01",
|
| 390 |
+
"readOnly": false,
|
| 391 |
+
"eventType": "AwsApiCall",
|
| 392 |
+
"managementEvent": true,
|
| 393 |
+
"recipientAccountId": "222222222222",
|
| 394 |
+
"errorCode": null,
|
| 395 |
+
"lab_event_id": "EVT-MAINT-01",
|
| 396 |
+
"lab_family": "benign_maintenance",
|
| 397 |
+
"change_ticket": "CHG-4411",
|
| 398 |
+
"split": "test",
|
| 399 |
+
"incomplete": false
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"eventVersion": "1.09",
|
| 403 |
+
"userIdentity": {
|
| 404 |
+
"type": "AssumedRole",
|
| 405 |
+
"principalId": "222222222222:terraform-staging",
|
| 406 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 407 |
+
"accountId": "222222222222",
|
| 408 |
+
"sessionContext": {
|
| 409 |
+
"sessionIssuer": {
|
| 410 |
+
"type": "Role",
|
| 411 |
+
"userName": "terraform-staging",
|
| 412 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 413 |
+
"accountId": "222222222222"
|
| 414 |
+
}
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
"eventTime": "2026-04-12T03:05:00Z",
|
| 418 |
+
"eventSource": "ec2.amazonaws.com",
|
| 419 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 420 |
+
"awsRegion": "us-east-1",
|
| 421 |
+
"sourceIPAddress": "198.51.100.20",
|
| 422 |
+
"userAgent": "terraform/1.9.0",
|
| 423 |
+
"requestParameters": {
|
| 424 |
+
"groupId": "sg-staging-web",
|
| 425 |
+
"cidrIp": "10.0.0.0/8",
|
| 426 |
+
"fromPort": 443,
|
| 427 |
+
"toPort": 443
|
| 428 |
+
},
|
| 429 |
+
"responseElements": {
|
| 430 |
+
"_lab": true
|
| 431 |
+
},
|
| 432 |
+
"requestID": "req-evt-sg-safe-01",
|
| 433 |
+
"eventID": "EVT-SG-SAFE-01",
|
| 434 |
+
"readOnly": false,
|
| 435 |
+
"eventType": "AwsApiCall",
|
| 436 |
+
"managementEvent": true,
|
| 437 |
+
"recipientAccountId": "222222222222",
|
| 438 |
+
"errorCode": null,
|
| 439 |
+
"lab_event_id": "EVT-SG-SAFE-01",
|
| 440 |
+
"lab_family": "benign_restricted_sg",
|
| 441 |
+
"change_ticket": "CHG-4411",
|
| 442 |
+
"split": "test",
|
| 443 |
+
"incomplete": false
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"eventVersion": "1.09",
|
| 447 |
+
"userIdentity": {
|
| 448 |
+
"type": "IAMUser",
|
| 449 |
+
"principalId": "AIDAIALICELAB",
|
| 450 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 451 |
+
"accountId": "111111111111",
|
| 452 |
+
"userName": "alice"
|
| 453 |
+
},
|
| 454 |
+
"eventTime": "2026-04-11T02:48:00Z",
|
| 455 |
+
"eventSource": "iam.amazonaws.com",
|
| 456 |
+
"eventName": "AttachRolePolicy",
|
| 457 |
+
"awsRegion": "us-east-1",
|
| 458 |
+
"sourceIPAddress": "203.0.113.10",
|
| 459 |
+
"userAgent": "console.amazonaws.com",
|
| 460 |
+
"requestParameters": {
|
| 461 |
+
"roleName": "break-glass",
|
| 462 |
+
"policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
|
| 463 |
+
},
|
| 464 |
+
"responseElements": {
|
| 465 |
+
"_lab": true
|
| 466 |
+
},
|
| 467 |
+
"requestID": "req-evt-iam-01",
|
| 468 |
+
"eventID": "EVT-IAM-01",
|
| 469 |
+
"readOnly": false,
|
| 470 |
+
"eventType": "AwsApiCall",
|
| 471 |
+
"managementEvent": true,
|
| 472 |
+
"recipientAccountId": "111111111111",
|
| 473 |
+
"errorCode": null,
|
| 474 |
+
"lab_event_id": "EVT-IAM-01",
|
| 475 |
+
"lab_family": "needs_review_iam_escalation",
|
| 476 |
+
"change_ticket": "",
|
| 477 |
+
"split": "test",
|
| 478 |
+
"incomplete": false
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"eventVersion": "1.09",
|
| 482 |
+
"userIdentity": {
|
| 483 |
+
"type": "IAMUser",
|
| 484 |
+
"principalId": "AIDAIBOBLAB",
|
| 485 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 486 |
+
"accountId": "222222222222",
|
| 487 |
+
"userName": "bob"
|
| 488 |
+
},
|
| 489 |
+
"eventTime": "2026-04-11T15:30:00Z",
|
| 490 |
+
"eventSource": "s3.amazonaws.com",
|
| 491 |
+
"eventName": "DeletePublicAccessBlock",
|
| 492 |
+
"awsRegion": "us-east-1",
|
| 493 |
+
"sourceIPAddress": "192.0.2.55",
|
| 494 |
+
"userAgent": "aws-cli/2.15.0",
|
| 495 |
+
"requestParameters": {
|
| 496 |
+
"bucketName": "prod-invoice-export"
|
| 497 |
+
},
|
| 498 |
+
"responseElements": {
|
| 499 |
+
"_lab": true
|
| 500 |
+
},
|
| 501 |
+
"requestID": "req-evt-s3-01",
|
| 502 |
+
"eventID": "EVT-S3-01",
|
| 503 |
+
"readOnly": false,
|
| 504 |
+
"eventType": "AwsApiCall",
|
| 505 |
+
"managementEvent": true,
|
| 506 |
+
"recipientAccountId": "222222222222",
|
| 507 |
+
"errorCode": null,
|
| 508 |
+
"lab_event_id": "EVT-S3-01",
|
| 509 |
+
"lab_family": "needs_review_public_exposure",
|
| 510 |
+
"change_ticket": "",
|
| 511 |
+
"split": "test",
|
| 512 |
+
"incomplete": false
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"eventVersion": "1.09",
|
| 516 |
+
"userIdentity": {
|
| 517 |
+
"type": "IAMUser",
|
| 518 |
+
"principalId": "AIDAIBOBLAB",
|
| 519 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 520 |
+
"accountId": "222222222222",
|
| 521 |
+
"userName": "bob"
|
| 522 |
+
},
|
| 523 |
+
"eventTime": "2026-04-11T18:20:00Z",
|
| 524 |
+
"eventSource": "ec2.amazonaws.com",
|
| 525 |
+
"eventName": "AuthorizeSecurityGroupIngress",
|
| 526 |
+
"awsRegion": "us-east-1",
|
| 527 |
+
"sourceIPAddress": "203.0.113.10",
|
| 528 |
+
"userAgent": "aws-cli/2.15.0",
|
| 529 |
+
"requestParameters": {
|
| 530 |
+
"groupId": "sg-prod-web",
|
| 531 |
+
"cidrIp": "0.0.0.0/0",
|
| 532 |
+
"fromPort": 22,
|
| 533 |
+
"toPort": 22
|
| 534 |
+
},
|
| 535 |
+
"responseElements": {
|
| 536 |
+
"_lab": true
|
| 537 |
+
},
|
| 538 |
+
"requestID": "req-evt-sg-open-01",
|
| 539 |
+
"eventID": "EVT-SG-OPEN-01",
|
| 540 |
+
"readOnly": false,
|
| 541 |
+
"eventType": "AwsApiCall",
|
| 542 |
+
"managementEvent": true,
|
| 543 |
+
"recipientAccountId": "222222222222",
|
| 544 |
+
"errorCode": null,
|
| 545 |
+
"lab_event_id": "EVT-SG-OPEN-01",
|
| 546 |
+
"lab_family": "needs_review_public_exposure",
|
| 547 |
+
"change_ticket": "",
|
| 548 |
+
"split": "test",
|
| 549 |
+
"incomplete": false
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"eventVersion": "1.09",
|
| 553 |
+
"userIdentity": {
|
| 554 |
+
"type": "IAMUser",
|
| 555 |
+
"principalId": "AIDAICAROLLAB",
|
| 556 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 557 |
+
"accountId": "333333333333",
|
| 558 |
+
"userName": "carol"
|
| 559 |
+
},
|
| 560 |
+
"eventTime": "2026-04-13T00:40:00Z",
|
| 561 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 562 |
+
"eventName": "StopLogging",
|
| 563 |
+
"awsRegion": "us-east-1",
|
| 564 |
+
"sourceIPAddress": "192.0.2.55",
|
| 565 |
+
"userAgent": "aws-cli/2.15.0",
|
| 566 |
+
"requestParameters": {
|
| 567 |
+
"name": "org-management"
|
| 568 |
+
},
|
| 569 |
+
"responseElements": {
|
| 570 |
+
"_lab": true
|
| 571 |
+
},
|
| 572 |
+
"requestID": "req-evt-trail-01",
|
| 573 |
+
"eventID": "EVT-TRAIL-01",
|
| 574 |
+
"readOnly": false,
|
| 575 |
+
"eventType": "AwsApiCall",
|
| 576 |
+
"managementEvent": true,
|
| 577 |
+
"recipientAccountId": "333333333333",
|
| 578 |
+
"errorCode": null,
|
| 579 |
+
"lab_event_id": "EVT-TRAIL-01",
|
| 580 |
+
"lab_family": "needs_review_logging_disable",
|
| 581 |
+
"change_ticket": "",
|
| 582 |
+
"split": "test",
|
| 583 |
+
"incomplete": false
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"eventVersion": "1.09",
|
| 587 |
+
"userIdentity": {
|
| 588 |
+
"type": "Root",
|
| 589 |
+
"principalId": "111111111111",
|
| 590 |
+
"arn": "arn:aws:iam::111111111111:root",
|
| 591 |
+
"accountId": "111111111111"
|
| 592 |
+
},
|
| 593 |
+
"eventTime": "2026-04-13T10:15:00Z",
|
| 594 |
+
"eventSource": "iam.amazonaws.com",
|
| 595 |
+
"eventName": "CreateAccessKey",
|
| 596 |
+
"awsRegion": "us-east-1",
|
| 597 |
+
"sourceIPAddress": "203.0.113.10",
|
| 598 |
+
"userAgent": "console.amazonaws.com",
|
| 599 |
+
"requestParameters": {
|
| 600 |
+
"userName": "root"
|
| 601 |
+
},
|
| 602 |
+
"responseElements": {
|
| 603 |
+
"_lab": true
|
| 604 |
+
},
|
| 605 |
+
"requestID": "req-evt-root-01",
|
| 606 |
+
"eventID": "EVT-ROOT-01",
|
| 607 |
+
"readOnly": false,
|
| 608 |
+
"eventType": "AwsApiCall",
|
| 609 |
+
"managementEvent": true,
|
| 610 |
+
"recipientAccountId": "111111111111",
|
| 611 |
+
"errorCode": null,
|
| 612 |
+
"lab_event_id": "EVT-ROOT-01",
|
| 613 |
+
"lab_family": "needs_review_root",
|
| 614 |
+
"change_ticket": "",
|
| 615 |
+
"split": "test",
|
| 616 |
+
"incomplete": false
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"eventVersion": "1.09",
|
| 620 |
+
"userIdentity": {
|
| 621 |
+
"type": "IAMUser",
|
| 622 |
+
"principalId": "AIDAIDAVELAB",
|
| 623 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 624 |
+
"accountId": "111111111111",
|
| 625 |
+
"userName": "dave"
|
| 626 |
+
},
|
| 627 |
+
"eventTime": "2026-04-14T11:20:00Z",
|
| 628 |
+
"eventSource": "iam.amazonaws.com",
|
| 629 |
+
"eventName": "UpdateAssumeRolePolicy",
|
| 630 |
+
"awsRegion": "us-east-1",
|
| 631 |
+
"sourceIPAddress": "203.0.113.10",
|
| 632 |
+
"userAgent": "aws-cli/2.15.0",
|
| 633 |
+
"requestParameters": {
|
| 634 |
+
"roleName": "ci-deploy",
|
| 635 |
+
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sts:AssumeRole\"}]}"
|
| 636 |
+
},
|
| 637 |
+
"responseElements": {
|
| 638 |
+
"_lab": true
|
| 639 |
+
},
|
| 640 |
+
"requestID": "req-evt-trust-01",
|
| 641 |
+
"eventID": "EVT-TRUST-01",
|
| 642 |
+
"readOnly": false,
|
| 643 |
+
"eventType": "AwsApiCall",
|
| 644 |
+
"managementEvent": true,
|
| 645 |
+
"recipientAccountId": "111111111111",
|
| 646 |
+
"errorCode": null,
|
| 647 |
+
"lab_event_id": "EVT-TRUST-01",
|
| 648 |
+
"lab_family": "needs_review_trust_wildcard",
|
| 649 |
+
"change_ticket": "",
|
| 650 |
+
"split": "test",
|
| 651 |
+
"incomplete": false
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"eventVersion": "1.09",
|
| 655 |
+
"userIdentity": {
|
| 656 |
+
"type": "IAMUser",
|
| 657 |
+
"principalId": "AIDAIALICELAB",
|
| 658 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 659 |
+
"accountId": "111111111111",
|
| 660 |
+
"userName": "alice"
|
| 661 |
+
},
|
| 662 |
+
"eventTime": "2026-04-14T01:10:00Z",
|
| 663 |
+
"eventSource": "guardduty.amazonaws.com",
|
| 664 |
+
"eventName": "UpdateDetector",
|
| 665 |
+
"awsRegion": "us-east-1",
|
| 666 |
+
"sourceIPAddress": "203.0.113.10",
|
| 667 |
+
"userAgent": "console.amazonaws.com",
|
| 668 |
+
"requestParameters": {
|
| 669 |
+
"detectorId": "det-prod-01",
|
| 670 |
+
"enable": false
|
| 671 |
+
},
|
| 672 |
+
"responseElements": {
|
| 673 |
+
"_lab": true
|
| 674 |
+
},
|
| 675 |
+
"requestID": "req-evt-gd-01",
|
| 676 |
+
"eventID": "EVT-GD-01",
|
| 677 |
+
"readOnly": false,
|
| 678 |
+
"eventType": "AwsApiCall",
|
| 679 |
+
"managementEvent": true,
|
| 680 |
+
"recipientAccountId": "111111111111",
|
| 681 |
+
"errorCode": null,
|
| 682 |
+
"lab_event_id": "EVT-GD-01",
|
| 683 |
+
"lab_family": "needs_review_logging_disable",
|
| 684 |
+
"change_ticket": "",
|
| 685 |
+
"split": "test",
|
| 686 |
+
"incomplete": false
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"eventVersion": "1.09",
|
| 690 |
+
"userIdentity": {
|
| 691 |
+
"type": "IAMUser",
|
| 692 |
+
"principalId": "AIDAIBOBLAB",
|
| 693 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 694 |
+
"accountId": "222222222222",
|
| 695 |
+
"userName": "bob"
|
| 696 |
+
},
|
| 697 |
+
"eventTime": "2026-04-12T11:40:00Z",
|
| 698 |
+
"eventSource": "iam.amazonaws.com",
|
| 699 |
+
"eventName": "CreateAccessKey",
|
| 700 |
+
"awsRegion": "us-east-1",
|
| 701 |
+
"sourceIPAddress": "203.0.113.10",
|
| 702 |
+
"userAgent": "aws-cli/2.15.0",
|
| 703 |
+
"requestParameters": {
|
| 704 |
+
"userName": "deploy-bot"
|
| 705 |
+
},
|
| 706 |
+
"responseElements": {
|
| 707 |
+
"_lab": true
|
| 708 |
+
},
|
| 709 |
+
"requestID": "req-evt-key-01",
|
| 710 |
+
"eventID": "EVT-KEY-01",
|
| 711 |
+
"readOnly": false,
|
| 712 |
+
"eventType": "AwsApiCall",
|
| 713 |
+
"managementEvent": true,
|
| 714 |
+
"recipientAccountId": "222222222222",
|
| 715 |
+
"errorCode": null,
|
| 716 |
+
"lab_event_id": "EVT-KEY-01",
|
| 717 |
+
"lab_family": "needs_review_iam_escalation",
|
| 718 |
+
"change_ticket": "",
|
| 719 |
+
"split": "test",
|
| 720 |
+
"incomplete": false
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"eventVersion": "1.09",
|
| 724 |
+
"userIdentity": {
|
| 725 |
+
"type": "IAMUser",
|
| 726 |
+
"principalId": "AIDAIBOBLAB",
|
| 727 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 728 |
+
"accountId": "222222222222",
|
| 729 |
+
"userName": "bob"
|
| 730 |
+
},
|
| 731 |
+
"eventTime": "2026-04-10T13:00:00Z",
|
| 732 |
+
"eventSource": "s3.amazonaws.com",
|
| 733 |
+
"eventName": "PutBucketAcl",
|
| 734 |
+
"awsRegion": "us-east-1",
|
| 735 |
+
"sourceIPAddress": "203.0.113.10",
|
| 736 |
+
"userAgent": "aws-cli/2.15.0",
|
| 737 |
+
"requestParameters": null,
|
| 738 |
+
"responseElements": null,
|
| 739 |
+
"requestID": "req-evt-insuff-01",
|
| 740 |
+
"eventID": "EVT-INSUFF-01",
|
| 741 |
+
"readOnly": false,
|
| 742 |
+
"eventType": "AwsApiCall",
|
| 743 |
+
"managementEvent": true,
|
| 744 |
+
"recipientAccountId": "222222222222",
|
| 745 |
+
"errorCode": null,
|
| 746 |
+
"lab_event_id": "EVT-INSUFF-01",
|
| 747 |
+
"lab_family": "insufficient_evidence",
|
| 748 |
+
"change_ticket": "",
|
| 749 |
+
"split": "test",
|
| 750 |
+
"incomplete": true
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"eventVersion": "1.09",
|
| 754 |
+
"userIdentity": {
|
| 755 |
+
"type": "IAMUser",
|
| 756 |
+
"principalId": "AIDAIDAVELAB",
|
| 757 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 758 |
+
"accountId": "111111111111",
|
| 759 |
+
"userName": "dave"
|
| 760 |
+
},
|
| 761 |
+
"eventTime": "2026-04-04T10:00:00Z",
|
| 762 |
+
"eventSource": "s3.amazonaws.com",
|
| 763 |
+
"eventName": "PutPublicAccessBlock",
|
| 764 |
+
"awsRegion": "us-east-1",
|
| 765 |
+
"sourceIPAddress": "203.0.113.10",
|
| 766 |
+
"userAgent": "aws-cli/2.15.0",
|
| 767 |
+
"requestParameters": {
|
| 768 |
+
"bucketName": "prod-invoice-export",
|
| 769 |
+
"PublicAccessBlockConfiguration": {
|
| 770 |
+
"BlockPublicAcls": true,
|
| 771 |
+
"IgnorePublicAcls": true,
|
| 772 |
+
"BlockPublicPolicy": true,
|
| 773 |
+
"RestrictPublicBuckets": true
|
| 774 |
+
}
|
| 775 |
+
},
|
| 776 |
+
"responseElements": {
|
| 777 |
+
"_lab": true
|
| 778 |
+
},
|
| 779 |
+
"requestID": "req-evt-s3-before-dev",
|
| 780 |
+
"eventID": "EVT-S3-BEFORE-DEV",
|
| 781 |
+
"readOnly": false,
|
| 782 |
+
"eventType": "AwsApiCall",
|
| 783 |
+
"managementEvent": true,
|
| 784 |
+
"recipientAccountId": "111111111111",
|
| 785 |
+
"errorCode": null,
|
| 786 |
+
"lab_event_id": "",
|
| 787 |
+
"lab_family": "",
|
| 788 |
+
"change_ticket": "",
|
| 789 |
+
"split": "development",
|
| 790 |
+
"incomplete": false
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"eventVersion": "1.09",
|
| 794 |
+
"userIdentity": {
|
| 795 |
+
"type": "IAMUser",
|
| 796 |
+
"principalId": "AIDAIDAVELAB",
|
| 797 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 798 |
+
"accountId": "111111111111",
|
| 799 |
+
"userName": "dave"
|
| 800 |
+
},
|
| 801 |
+
"eventTime": "2026-04-11T09:00:00Z",
|
| 802 |
+
"eventSource": "s3.amazonaws.com",
|
| 803 |
+
"eventName": "PutPublicAccessBlock",
|
| 804 |
+
"awsRegion": "us-east-1",
|
| 805 |
+
"sourceIPAddress": "203.0.113.10",
|
| 806 |
+
"userAgent": "aws-cli/2.15.0",
|
| 807 |
+
"requestParameters": {
|
| 808 |
+
"bucketName": "prod-invoice-export",
|
| 809 |
+
"PublicAccessBlockConfiguration": {
|
| 810 |
+
"BlockPublicAcls": true,
|
| 811 |
+
"IgnorePublicAcls": true,
|
| 812 |
+
"BlockPublicPolicy": true,
|
| 813 |
+
"RestrictPublicBuckets": true
|
| 814 |
+
}
|
| 815 |
+
},
|
| 816 |
+
"responseElements": {
|
| 817 |
+
"_lab": true
|
| 818 |
+
},
|
| 819 |
+
"requestID": "req-evt-s3-before-01",
|
| 820 |
+
"eventID": "EVT-S3-BEFORE-01",
|
| 821 |
+
"readOnly": false,
|
| 822 |
+
"eventType": "AwsApiCall",
|
| 823 |
+
"managementEvent": true,
|
| 824 |
+
"recipientAccountId": "111111111111",
|
| 825 |
+
"errorCode": null,
|
| 826 |
+
"lab_event_id": "",
|
| 827 |
+
"lab_family": "",
|
| 828 |
+
"change_ticket": "",
|
| 829 |
+
"split": "test",
|
| 830 |
+
"incomplete": false
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"eventVersion": "1.09",
|
| 834 |
+
"userIdentity": {
|
| 835 |
+
"type": "IAMUser",
|
| 836 |
+
"principalId": "AIDAIDAVELAB",
|
| 837 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 838 |
+
"accountId": "111111111111",
|
| 839 |
+
"userName": "dave"
|
| 840 |
+
},
|
| 841 |
+
"eventTime": "2026-04-02T08:00:00Z",
|
| 842 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 843 |
+
"eventName": "StartLogging",
|
| 844 |
+
"awsRegion": "us-east-1",
|
| 845 |
+
"sourceIPAddress": "203.0.113.10",
|
| 846 |
+
"userAgent": "aws-cli/2.15.0",
|
| 847 |
+
"requestParameters": {
|
| 848 |
+
"name": "org-management"
|
| 849 |
+
},
|
| 850 |
+
"responseElements": {
|
| 851 |
+
"_lab": true
|
| 852 |
+
},
|
| 853 |
+
"requestID": "req-evt-trail-before-dev",
|
| 854 |
+
"eventID": "EVT-TRAIL-BEFORE-DEV",
|
| 855 |
+
"readOnly": false,
|
| 856 |
+
"eventType": "AwsApiCall",
|
| 857 |
+
"managementEvent": true,
|
| 858 |
+
"recipientAccountId": "111111111111",
|
| 859 |
+
"errorCode": null,
|
| 860 |
+
"lab_event_id": "",
|
| 861 |
+
"lab_family": "",
|
| 862 |
+
"change_ticket": "",
|
| 863 |
+
"split": "development",
|
| 864 |
+
"incomplete": false
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"eventVersion": "1.09",
|
| 868 |
+
"userIdentity": {
|
| 869 |
+
"type": "IAMUser",
|
| 870 |
+
"principalId": "AIDAIDAVELAB",
|
| 871 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 872 |
+
"accountId": "111111111111",
|
| 873 |
+
"userName": "dave"
|
| 874 |
+
},
|
| 875 |
+
"eventTime": "2026-04-10T08:00:00Z",
|
| 876 |
+
"eventSource": "cloudtrail.amazonaws.com",
|
| 877 |
+
"eventName": "StartLogging",
|
| 878 |
+
"awsRegion": "us-east-1",
|
| 879 |
+
"sourceIPAddress": "203.0.113.10",
|
| 880 |
+
"userAgent": "aws-cli/2.15.0",
|
| 881 |
+
"requestParameters": {
|
| 882 |
+
"name": "org-management"
|
| 883 |
+
},
|
| 884 |
+
"responseElements": {
|
| 885 |
+
"_lab": true
|
| 886 |
+
},
|
| 887 |
+
"requestID": "req-evt-trail-before-01",
|
| 888 |
+
"eventID": "EVT-TRAIL-BEFORE-01",
|
| 889 |
+
"readOnly": false,
|
| 890 |
+
"eventType": "AwsApiCall",
|
| 891 |
+
"managementEvent": true,
|
| 892 |
+
"recipientAccountId": "111111111111",
|
| 893 |
+
"errorCode": null,
|
| 894 |
+
"lab_event_id": "",
|
| 895 |
+
"lab_family": "",
|
| 896 |
+
"change_ticket": "",
|
| 897 |
+
"split": "test",
|
| 898 |
+
"incomplete": false
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"eventVersion": "1.09",
|
| 902 |
+
"userIdentity": {
|
| 903 |
+
"type": "IAMUser",
|
| 904 |
+
"principalId": "AIDAIDAVELAB",
|
| 905 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 906 |
+
"accountId": "111111111111",
|
| 907 |
+
"userName": "dave"
|
| 908 |
+
},
|
| 909 |
+
"eventTime": "2026-04-01T10:52:03Z",
|
| 910 |
+
"eventSource": "iam.amazonaws.com",
|
| 911 |
+
"eventName": "ListUsers",
|
| 912 |
+
"awsRegion": "us-east-1",
|
| 913 |
+
"sourceIPAddress": "203.0.113.10",
|
| 914 |
+
"userAgent": "aws-cli/2.15.0",
|
| 915 |
+
"requestParameters": {
|
| 916 |
+
"marker": "lab-read"
|
| 917 |
+
},
|
| 918 |
+
"responseElements": null,
|
| 919 |
+
"requestID": "req-bg-0003",
|
| 920 |
+
"eventID": "bg-0003",
|
| 921 |
+
"readOnly": true,
|
| 922 |
+
"eventType": "AwsApiCall",
|
| 923 |
+
"managementEvent": true,
|
| 924 |
+
"recipientAccountId": "111111111111",
|
| 925 |
+
"errorCode": null,
|
| 926 |
+
"lab_event_id": "",
|
| 927 |
+
"lab_family": "",
|
| 928 |
+
"change_ticket": "",
|
| 929 |
+
"split": "development",
|
| 930 |
+
"incomplete": false
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"eventVersion": "1.09",
|
| 934 |
+
"userIdentity": {
|
| 935 |
+
"type": "AssumedRole",
|
| 936 |
+
"principalId": "111111111111:terraform-prod",
|
| 937 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session",
|
| 938 |
+
"accountId": "111111111111",
|
| 939 |
+
"sessionContext": {
|
| 940 |
+
"sessionIssuer": {
|
| 941 |
+
"type": "Role",
|
| 942 |
+
"userName": "terraform-prod",
|
| 943 |
+
"arn": "arn:aws:iam::111111111111:role/terraform-prod",
|
| 944 |
+
"accountId": "111111111111"
|
| 945 |
+
}
|
| 946 |
+
}
|
| 947 |
+
},
|
| 948 |
+
"eventTime": "2026-04-01T12:44:06Z",
|
| 949 |
+
"eventSource": "s3.amazonaws.com",
|
| 950 |
+
"eventName": "GetBucketAcl",
|
| 951 |
+
"awsRegion": "us-east-1",
|
| 952 |
+
"sourceIPAddress": "198.51.100.20",
|
| 953 |
+
"userAgent": "terraform/1.9.0",
|
| 954 |
+
"requestParameters": {
|
| 955 |
+
"bucketName": "prod-invoice-export"
|
| 956 |
+
},
|
| 957 |
+
"responseElements": null,
|
| 958 |
+
"requestID": "req-bg-0010",
|
| 959 |
+
"eventID": "bg-0010",
|
| 960 |
+
"readOnly": true,
|
| 961 |
+
"eventType": "AwsApiCall",
|
| 962 |
+
"managementEvent": true,
|
| 963 |
+
"recipientAccountId": "111111111111",
|
| 964 |
+
"errorCode": null,
|
| 965 |
+
"lab_event_id": "",
|
| 966 |
+
"lab_family": "",
|
| 967 |
+
"change_ticket": "",
|
| 968 |
+
"split": "development",
|
| 969 |
+
"incomplete": false
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"eventVersion": "1.09",
|
| 973 |
+
"userIdentity": {
|
| 974 |
+
"type": "AssumedRole",
|
| 975 |
+
"principalId": "111111111111:lambda-rotator",
|
| 976 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 977 |
+
"accountId": "111111111111",
|
| 978 |
+
"sessionContext": {
|
| 979 |
+
"sessionIssuer": {
|
| 980 |
+
"type": "Role",
|
| 981 |
+
"userName": "lambda-rotator",
|
| 982 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 983 |
+
"accountId": "111111111111"
|
| 984 |
+
}
|
| 985 |
+
}
|
| 986 |
+
},
|
| 987 |
+
"eventTime": "2026-04-01T10:46:47Z",
|
| 988 |
+
"eventSource": "s3.amazonaws.com",
|
| 989 |
+
"eventName": "GetBucketAcl",
|
| 990 |
+
"awsRegion": "us-east-1",
|
| 991 |
+
"sourceIPAddress": "198.51.100.20",
|
| 992 |
+
"userAgent": "terraform/1.9.0",
|
| 993 |
+
"requestParameters": {
|
| 994 |
+
"bucketName": "prod-invoice-export"
|
| 995 |
+
},
|
| 996 |
+
"responseElements": null,
|
| 997 |
+
"requestID": "req-bg-0011",
|
| 998 |
+
"eventID": "bg-0011",
|
| 999 |
+
"readOnly": true,
|
| 1000 |
+
"eventType": "AwsApiCall",
|
| 1001 |
+
"managementEvent": true,
|
| 1002 |
+
"recipientAccountId": "111111111111",
|
| 1003 |
+
"errorCode": null,
|
| 1004 |
+
"lab_event_id": "",
|
| 1005 |
+
"lab_family": "",
|
| 1006 |
+
"change_ticket": "",
|
| 1007 |
+
"split": "development",
|
| 1008 |
+
"incomplete": false
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"eventVersion": "1.09",
|
| 1012 |
+
"userIdentity": {
|
| 1013 |
+
"type": "AssumedRole",
|
| 1014 |
+
"principalId": "222222222222:terraform-staging",
|
| 1015 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1016 |
+
"accountId": "222222222222",
|
| 1017 |
+
"sessionContext": {
|
| 1018 |
+
"sessionIssuer": {
|
| 1019 |
+
"type": "Role",
|
| 1020 |
+
"userName": "terraform-staging",
|
| 1021 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1022 |
+
"accountId": "222222222222"
|
| 1023 |
+
}
|
| 1024 |
+
}
|
| 1025 |
+
},
|
| 1026 |
+
"eventTime": "2026-04-01T09:43:26Z",
|
| 1027 |
+
"eventSource": "iam.amazonaws.com",
|
| 1028 |
+
"eventName": "ListUsers",
|
| 1029 |
+
"awsRegion": "us-east-1",
|
| 1030 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1031 |
+
"userAgent": "terraform/1.9.0",
|
| 1032 |
+
"requestParameters": {
|
| 1033 |
+
"marker": "lab-read"
|
| 1034 |
+
},
|
| 1035 |
+
"responseElements": null,
|
| 1036 |
+
"requestID": "req-bg-0013",
|
| 1037 |
+
"eventID": "bg-0013",
|
| 1038 |
+
"readOnly": true,
|
| 1039 |
+
"eventType": "AwsApiCall",
|
| 1040 |
+
"managementEvent": true,
|
| 1041 |
+
"recipientAccountId": "222222222222",
|
| 1042 |
+
"errorCode": null,
|
| 1043 |
+
"lab_event_id": "",
|
| 1044 |
+
"lab_family": "",
|
| 1045 |
+
"change_ticket": "",
|
| 1046 |
+
"split": "development",
|
| 1047 |
+
"incomplete": false
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"eventVersion": "1.09",
|
| 1051 |
+
"userIdentity": {
|
| 1052 |
+
"type": "AssumedRole",
|
| 1053 |
+
"principalId": "222222222222:terraform-staging",
|
| 1054 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1055 |
+
"accountId": "222222222222",
|
| 1056 |
+
"sessionContext": {
|
| 1057 |
+
"sessionIssuer": {
|
| 1058 |
+
"type": "Role",
|
| 1059 |
+
"userName": "terraform-staging",
|
| 1060 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1061 |
+
"accountId": "222222222222"
|
| 1062 |
+
}
|
| 1063 |
+
}
|
| 1064 |
+
},
|
| 1065 |
+
"eventTime": "2026-04-01T16:30:07Z",
|
| 1066 |
+
"eventSource": "s3.amazonaws.com",
|
| 1067 |
+
"eventName": "GetBucketAcl",
|
| 1068 |
+
"awsRegion": "us-east-1",
|
| 1069 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1070 |
+
"userAgent": "terraform/1.9.0",
|
| 1071 |
+
"requestParameters": {
|
| 1072 |
+
"bucketName": "prod-invoice-export"
|
| 1073 |
+
},
|
| 1074 |
+
"responseElements": null,
|
| 1075 |
+
"requestID": "req-bg-0014",
|
| 1076 |
+
"eventID": "bg-0014",
|
| 1077 |
+
"readOnly": true,
|
| 1078 |
+
"eventType": "AwsApiCall",
|
| 1079 |
+
"managementEvent": true,
|
| 1080 |
+
"recipientAccountId": "222222222222",
|
| 1081 |
+
"errorCode": null,
|
| 1082 |
+
"lab_event_id": "",
|
| 1083 |
+
"lab_family": "",
|
| 1084 |
+
"change_ticket": "",
|
| 1085 |
+
"split": "development",
|
| 1086 |
+
"incomplete": false
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"eventVersion": "1.09",
|
| 1090 |
+
"userIdentity": {
|
| 1091 |
+
"type": "AssumedRole",
|
| 1092 |
+
"principalId": "222222222222:terraform-staging",
|
| 1093 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1094 |
+
"accountId": "222222222222",
|
| 1095 |
+
"sessionContext": {
|
| 1096 |
+
"sessionIssuer": {
|
| 1097 |
+
"type": "Role",
|
| 1098 |
+
"userName": "terraform-staging",
|
| 1099 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1100 |
+
"accountId": "222222222222"
|
| 1101 |
+
}
|
| 1102 |
+
}
|
| 1103 |
+
},
|
| 1104 |
+
"eventTime": "2026-04-01T12:03:49Z",
|
| 1105 |
+
"eventSource": "s3.amazonaws.com",
|
| 1106 |
+
"eventName": "GetBucketAcl",
|
| 1107 |
+
"awsRegion": "us-east-1",
|
| 1108 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1109 |
+
"userAgent": "terraform/1.9.0",
|
| 1110 |
+
"requestParameters": {
|
| 1111 |
+
"bucketName": "prod-invoice-export"
|
| 1112 |
+
},
|
| 1113 |
+
"responseElements": null,
|
| 1114 |
+
"requestID": "req-bg-0017",
|
| 1115 |
+
"eventID": "bg-0017",
|
| 1116 |
+
"readOnly": true,
|
| 1117 |
+
"eventType": "AwsApiCall",
|
| 1118 |
+
"managementEvent": true,
|
| 1119 |
+
"recipientAccountId": "222222222222",
|
| 1120 |
+
"errorCode": null,
|
| 1121 |
+
"lab_event_id": "",
|
| 1122 |
+
"lab_family": "",
|
| 1123 |
+
"change_ticket": "",
|
| 1124 |
+
"split": "development",
|
| 1125 |
+
"incomplete": false
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"eventVersion": "1.09",
|
| 1129 |
+
"userIdentity": {
|
| 1130 |
+
"type": "AssumedRole",
|
| 1131 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1132 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1133 |
+
"accountId": "111111111111",
|
| 1134 |
+
"sessionContext": {
|
| 1135 |
+
"sessionIssuer": {
|
| 1136 |
+
"type": "Role",
|
| 1137 |
+
"userName": "lambda-rotator",
|
| 1138 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1139 |
+
"accountId": "111111111111"
|
| 1140 |
+
}
|
| 1141 |
+
}
|
| 1142 |
+
},
|
| 1143 |
+
"eventTime": "2026-04-02T15:00:26Z",
|
| 1144 |
+
"eventSource": "iam.amazonaws.com",
|
| 1145 |
+
"eventName": "ListUsers",
|
| 1146 |
+
"awsRegion": "us-east-1",
|
| 1147 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1148 |
+
"userAgent": "terraform/1.9.0",
|
| 1149 |
+
"requestParameters": {
|
| 1150 |
+
"marker": "lab-read"
|
| 1151 |
+
},
|
| 1152 |
+
"responseElements": null,
|
| 1153 |
+
"requestID": "req-bg-0022",
|
| 1154 |
+
"eventID": "bg-0022",
|
| 1155 |
+
"readOnly": true,
|
| 1156 |
+
"eventType": "AwsApiCall",
|
| 1157 |
+
"managementEvent": true,
|
| 1158 |
+
"recipientAccountId": "111111111111",
|
| 1159 |
+
"errorCode": null,
|
| 1160 |
+
"lab_event_id": "",
|
| 1161 |
+
"lab_family": "",
|
| 1162 |
+
"change_ticket": "",
|
| 1163 |
+
"split": "development",
|
| 1164 |
+
"incomplete": false
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"eventVersion": "1.09",
|
| 1168 |
+
"userIdentity": {
|
| 1169 |
+
"type": "IAMUser",
|
| 1170 |
+
"principalId": "AIDAICAROLLAB",
|
| 1171 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1172 |
+
"accountId": "333333333333",
|
| 1173 |
+
"userName": "carol"
|
| 1174 |
+
},
|
| 1175 |
+
"eventTime": "2026-04-02T14:55:03Z",
|
| 1176 |
+
"eventSource": "iam.amazonaws.com",
|
| 1177 |
+
"eventName": "ListUsers",
|
| 1178 |
+
"awsRegion": "us-east-1",
|
| 1179 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1180 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1181 |
+
"requestParameters": {
|
| 1182 |
+
"marker": "lab-read"
|
| 1183 |
+
},
|
| 1184 |
+
"responseElements": null,
|
| 1185 |
+
"requestID": "req-bg-0030",
|
| 1186 |
+
"eventID": "bg-0030",
|
| 1187 |
+
"readOnly": true,
|
| 1188 |
+
"eventType": "AwsApiCall",
|
| 1189 |
+
"managementEvent": true,
|
| 1190 |
+
"recipientAccountId": "333333333333",
|
| 1191 |
+
"errorCode": null,
|
| 1192 |
+
"lab_event_id": "",
|
| 1193 |
+
"lab_family": "",
|
| 1194 |
+
"change_ticket": "",
|
| 1195 |
+
"split": "development",
|
| 1196 |
+
"incomplete": false
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"eventVersion": "1.09",
|
| 1200 |
+
"userIdentity": {
|
| 1201 |
+
"type": "IAMUser",
|
| 1202 |
+
"principalId": "AIDAIBOBLAB",
|
| 1203 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1204 |
+
"accountId": "222222222222",
|
| 1205 |
+
"userName": "bob"
|
| 1206 |
+
},
|
| 1207 |
+
"eventTime": "2026-04-02T10:52:19Z",
|
| 1208 |
+
"eventSource": "iam.amazonaws.com",
|
| 1209 |
+
"eventName": "ListUsers",
|
| 1210 |
+
"awsRegion": "us-east-1",
|
| 1211 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1212 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1213 |
+
"requestParameters": {
|
| 1214 |
+
"marker": "lab-read"
|
| 1215 |
+
},
|
| 1216 |
+
"responseElements": null,
|
| 1217 |
+
"requestID": "req-bg-0031",
|
| 1218 |
+
"eventID": "bg-0031",
|
| 1219 |
+
"readOnly": true,
|
| 1220 |
+
"eventType": "AwsApiCall",
|
| 1221 |
+
"managementEvent": true,
|
| 1222 |
+
"recipientAccountId": "222222222222",
|
| 1223 |
+
"errorCode": null,
|
| 1224 |
+
"lab_event_id": "",
|
| 1225 |
+
"lab_family": "",
|
| 1226 |
+
"change_ticket": "",
|
| 1227 |
+
"split": "development",
|
| 1228 |
+
"incomplete": false
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"eventVersion": "1.09",
|
| 1232 |
+
"userIdentity": {
|
| 1233 |
+
"type": "IAMUser",
|
| 1234 |
+
"principalId": "AIDAIALICELAB",
|
| 1235 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1236 |
+
"accountId": "111111111111",
|
| 1237 |
+
"userName": "alice"
|
| 1238 |
+
},
|
| 1239 |
+
"eventTime": "2026-04-02T16:04:15Z",
|
| 1240 |
+
"eventSource": "iam.amazonaws.com",
|
| 1241 |
+
"eventName": "ListUsers",
|
| 1242 |
+
"awsRegion": "us-east-1",
|
| 1243 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1244 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1245 |
+
"requestParameters": {
|
| 1246 |
+
"marker": "lab-read"
|
| 1247 |
+
},
|
| 1248 |
+
"responseElements": null,
|
| 1249 |
+
"requestID": "req-bg-0038",
|
| 1250 |
+
"eventID": "bg-0038",
|
| 1251 |
+
"readOnly": true,
|
| 1252 |
+
"eventType": "AwsApiCall",
|
| 1253 |
+
"managementEvent": true,
|
| 1254 |
+
"recipientAccountId": "111111111111",
|
| 1255 |
+
"errorCode": null,
|
| 1256 |
+
"lab_event_id": "",
|
| 1257 |
+
"lab_family": "",
|
| 1258 |
+
"change_ticket": "",
|
| 1259 |
+
"split": "development",
|
| 1260 |
+
"incomplete": false
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"eventVersion": "1.09",
|
| 1264 |
+
"userIdentity": {
|
| 1265 |
+
"type": "IAMUser",
|
| 1266 |
+
"principalId": "AIDAICAROLLAB",
|
| 1267 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1268 |
+
"accountId": "333333333333",
|
| 1269 |
+
"userName": "carol"
|
| 1270 |
+
},
|
| 1271 |
+
"eventTime": "2026-04-03T12:04:15Z",
|
| 1272 |
+
"eventSource": "s3.amazonaws.com",
|
| 1273 |
+
"eventName": "GetBucketAcl",
|
| 1274 |
+
"awsRegion": "us-east-1",
|
| 1275 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1276 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1277 |
+
"requestParameters": {
|
| 1278 |
+
"bucketName": "prod-invoice-export"
|
| 1279 |
+
},
|
| 1280 |
+
"responseElements": null,
|
| 1281 |
+
"requestID": "req-bg-0044",
|
| 1282 |
+
"eventID": "bg-0044",
|
| 1283 |
+
"readOnly": true,
|
| 1284 |
+
"eventType": "AwsApiCall",
|
| 1285 |
+
"managementEvent": true,
|
| 1286 |
+
"recipientAccountId": "333333333333",
|
| 1287 |
+
"errorCode": null,
|
| 1288 |
+
"lab_event_id": "",
|
| 1289 |
+
"lab_family": "",
|
| 1290 |
+
"change_ticket": "",
|
| 1291 |
+
"split": "development",
|
| 1292 |
+
"incomplete": false
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"eventVersion": "1.09",
|
| 1296 |
+
"userIdentity": {
|
| 1297 |
+
"type": "IAMUser",
|
| 1298 |
+
"principalId": "AIDAICAROLLAB",
|
| 1299 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1300 |
+
"accountId": "333333333333",
|
| 1301 |
+
"userName": "carol"
|
| 1302 |
+
},
|
| 1303 |
+
"eventTime": "2026-04-03T08:39:42Z",
|
| 1304 |
+
"eventSource": "s3.amazonaws.com",
|
| 1305 |
+
"eventName": "GetBucketAcl",
|
| 1306 |
+
"awsRegion": "us-east-1",
|
| 1307 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1308 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1309 |
+
"requestParameters": {
|
| 1310 |
+
"bucketName": "prod-invoice-export"
|
| 1311 |
+
},
|
| 1312 |
+
"responseElements": null,
|
| 1313 |
+
"requestID": "req-bg-0045",
|
| 1314 |
+
"eventID": "bg-0045",
|
| 1315 |
+
"readOnly": true,
|
| 1316 |
+
"eventType": "AwsApiCall",
|
| 1317 |
+
"managementEvent": true,
|
| 1318 |
+
"recipientAccountId": "333333333333",
|
| 1319 |
+
"errorCode": null,
|
| 1320 |
+
"lab_event_id": "",
|
| 1321 |
+
"lab_family": "",
|
| 1322 |
+
"change_ticket": "",
|
| 1323 |
+
"split": "development",
|
| 1324 |
+
"incomplete": false
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"eventVersion": "1.09",
|
| 1328 |
+
"userIdentity": {
|
| 1329 |
+
"type": "IAMUser",
|
| 1330 |
+
"principalId": "AIDAIBOBLAB",
|
| 1331 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1332 |
+
"accountId": "222222222222",
|
| 1333 |
+
"userName": "bob"
|
| 1334 |
+
},
|
| 1335 |
+
"eventTime": "2026-04-03T09:28:43Z",
|
| 1336 |
+
"eventSource": "s3.amazonaws.com",
|
| 1337 |
+
"eventName": "GetBucketAcl",
|
| 1338 |
+
"awsRegion": "us-east-1",
|
| 1339 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1340 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1341 |
+
"requestParameters": {
|
| 1342 |
+
"bucketName": "prod-invoice-export"
|
| 1343 |
+
},
|
| 1344 |
+
"responseElements": null,
|
| 1345 |
+
"requestID": "req-bg-0047",
|
| 1346 |
+
"eventID": "bg-0047",
|
| 1347 |
+
"readOnly": true,
|
| 1348 |
+
"eventType": "AwsApiCall",
|
| 1349 |
+
"managementEvent": true,
|
| 1350 |
+
"recipientAccountId": "222222222222",
|
| 1351 |
+
"errorCode": null,
|
| 1352 |
+
"lab_event_id": "",
|
| 1353 |
+
"lab_family": "",
|
| 1354 |
+
"change_ticket": "",
|
| 1355 |
+
"split": "development",
|
| 1356 |
+
"incomplete": false
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"eventVersion": "1.09",
|
| 1360 |
+
"userIdentity": {
|
| 1361 |
+
"type": "IAMUser",
|
| 1362 |
+
"principalId": "AIDAIBOBLAB",
|
| 1363 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1364 |
+
"accountId": "222222222222",
|
| 1365 |
+
"userName": "bob"
|
| 1366 |
+
},
|
| 1367 |
+
"eventTime": "2026-04-03T12:36:31Z",
|
| 1368 |
+
"eventSource": "s3.amazonaws.com",
|
| 1369 |
+
"eventName": "GetBucketAcl",
|
| 1370 |
+
"awsRegion": "us-east-1",
|
| 1371 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1372 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1373 |
+
"requestParameters": {
|
| 1374 |
+
"bucketName": "prod-invoice-export"
|
| 1375 |
+
},
|
| 1376 |
+
"responseElements": null,
|
| 1377 |
+
"requestID": "req-bg-0049",
|
| 1378 |
+
"eventID": "bg-0049",
|
| 1379 |
+
"readOnly": true,
|
| 1380 |
+
"eventType": "AwsApiCall",
|
| 1381 |
+
"managementEvent": true,
|
| 1382 |
+
"recipientAccountId": "222222222222",
|
| 1383 |
+
"errorCode": null,
|
| 1384 |
+
"lab_event_id": "",
|
| 1385 |
+
"lab_family": "",
|
| 1386 |
+
"change_ticket": "",
|
| 1387 |
+
"split": "development",
|
| 1388 |
+
"incomplete": false
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"eventVersion": "1.09",
|
| 1392 |
+
"userIdentity": {
|
| 1393 |
+
"type": "IAMUser",
|
| 1394 |
+
"principalId": "AIDAIALICELAB",
|
| 1395 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1396 |
+
"accountId": "111111111111",
|
| 1397 |
+
"userName": "alice"
|
| 1398 |
+
},
|
| 1399 |
+
"eventTime": "2026-04-03T14:28:22Z",
|
| 1400 |
+
"eventSource": "iam.amazonaws.com",
|
| 1401 |
+
"eventName": "ListUsers",
|
| 1402 |
+
"awsRegion": "us-east-1",
|
| 1403 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1404 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1405 |
+
"requestParameters": {
|
| 1406 |
+
"marker": "lab-read"
|
| 1407 |
+
},
|
| 1408 |
+
"responseElements": null,
|
| 1409 |
+
"requestID": "req-bg-0052",
|
| 1410 |
+
"eventID": "bg-0052",
|
| 1411 |
+
"readOnly": true,
|
| 1412 |
+
"eventType": "AwsApiCall",
|
| 1413 |
+
"managementEvent": true,
|
| 1414 |
+
"recipientAccountId": "111111111111",
|
| 1415 |
+
"errorCode": null,
|
| 1416 |
+
"lab_event_id": "",
|
| 1417 |
+
"lab_family": "",
|
| 1418 |
+
"change_ticket": "",
|
| 1419 |
+
"split": "development",
|
| 1420 |
+
"incomplete": false
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"eventVersion": "1.09",
|
| 1424 |
+
"userIdentity": {
|
| 1425 |
+
"type": "IAMUser",
|
| 1426 |
+
"principalId": "AIDAIDAVELAB",
|
| 1427 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1428 |
+
"accountId": "111111111111",
|
| 1429 |
+
"userName": "dave"
|
| 1430 |
+
},
|
| 1431 |
+
"eventTime": "2026-04-03T17:43:18Z",
|
| 1432 |
+
"eventSource": "s3.amazonaws.com",
|
| 1433 |
+
"eventName": "GetBucketAcl",
|
| 1434 |
+
"awsRegion": "us-east-1",
|
| 1435 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1436 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1437 |
+
"requestParameters": {
|
| 1438 |
+
"bucketName": "prod-invoice-export"
|
| 1439 |
+
},
|
| 1440 |
+
"responseElements": null,
|
| 1441 |
+
"requestID": "req-bg-0055",
|
| 1442 |
+
"eventID": "bg-0055",
|
| 1443 |
+
"readOnly": true,
|
| 1444 |
+
"eventType": "AwsApiCall",
|
| 1445 |
+
"managementEvent": true,
|
| 1446 |
+
"recipientAccountId": "111111111111",
|
| 1447 |
+
"errorCode": null,
|
| 1448 |
+
"lab_event_id": "",
|
| 1449 |
+
"lab_family": "",
|
| 1450 |
+
"change_ticket": "",
|
| 1451 |
+
"split": "development",
|
| 1452 |
+
"incomplete": false
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"eventVersion": "1.09",
|
| 1456 |
+
"userIdentity": {
|
| 1457 |
+
"type": "AssumedRole",
|
| 1458 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1459 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1460 |
+
"accountId": "111111111111",
|
| 1461 |
+
"sessionContext": {
|
| 1462 |
+
"sessionIssuer": {
|
| 1463 |
+
"type": "Role",
|
| 1464 |
+
"userName": "lambda-rotator",
|
| 1465 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1466 |
+
"accountId": "111111111111"
|
| 1467 |
+
}
|
| 1468 |
+
}
|
| 1469 |
+
},
|
| 1470 |
+
"eventTime": "2026-04-03T13:35:16Z",
|
| 1471 |
+
"eventSource": "s3.amazonaws.com",
|
| 1472 |
+
"eventName": "GetBucketAcl",
|
| 1473 |
+
"awsRegion": "us-east-1",
|
| 1474 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1475 |
+
"userAgent": "terraform/1.9.0",
|
| 1476 |
+
"requestParameters": {
|
| 1477 |
+
"bucketName": "prod-invoice-export"
|
| 1478 |
+
},
|
| 1479 |
+
"responseElements": null,
|
| 1480 |
+
"requestID": "req-bg-0056",
|
| 1481 |
+
"eventID": "bg-0056",
|
| 1482 |
+
"readOnly": true,
|
| 1483 |
+
"eventType": "AwsApiCall",
|
| 1484 |
+
"managementEvent": true,
|
| 1485 |
+
"recipientAccountId": "111111111111",
|
| 1486 |
+
"errorCode": null,
|
| 1487 |
+
"lab_event_id": "",
|
| 1488 |
+
"lab_family": "",
|
| 1489 |
+
"change_ticket": "",
|
| 1490 |
+
"split": "development",
|
| 1491 |
+
"incomplete": false
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"eventVersion": "1.09",
|
| 1495 |
+
"userIdentity": {
|
| 1496 |
+
"type": "IAMUser",
|
| 1497 |
+
"principalId": "AIDAIBOBLAB",
|
| 1498 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1499 |
+
"accountId": "222222222222",
|
| 1500 |
+
"userName": "bob"
|
| 1501 |
+
},
|
| 1502 |
+
"eventTime": "2026-04-03T12:03:44Z",
|
| 1503 |
+
"eventSource": "iam.amazonaws.com",
|
| 1504 |
+
"eventName": "ListUsers",
|
| 1505 |
+
"awsRegion": "us-east-1",
|
| 1506 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1507 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1508 |
+
"requestParameters": {
|
| 1509 |
+
"marker": "lab-read"
|
| 1510 |
+
},
|
| 1511 |
+
"responseElements": null,
|
| 1512 |
+
"requestID": "req-bg-0059",
|
| 1513 |
+
"eventID": "bg-0059",
|
| 1514 |
+
"readOnly": true,
|
| 1515 |
+
"eventType": "AwsApiCall",
|
| 1516 |
+
"managementEvent": true,
|
| 1517 |
+
"recipientAccountId": "222222222222",
|
| 1518 |
+
"errorCode": null,
|
| 1519 |
+
"lab_event_id": "",
|
| 1520 |
+
"lab_family": "",
|
| 1521 |
+
"change_ticket": "",
|
| 1522 |
+
"split": "development",
|
| 1523 |
+
"incomplete": false
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"eventVersion": "1.09",
|
| 1527 |
+
"userIdentity": {
|
| 1528 |
+
"type": "IAMUser",
|
| 1529 |
+
"principalId": "AIDAICAROLLAB",
|
| 1530 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1531 |
+
"accountId": "333333333333",
|
| 1532 |
+
"userName": "carol"
|
| 1533 |
+
},
|
| 1534 |
+
"eventTime": "2026-04-04T16:33:34Z",
|
| 1535 |
+
"eventSource": "s3.amazonaws.com",
|
| 1536 |
+
"eventName": "GetBucketAcl",
|
| 1537 |
+
"awsRegion": "us-east-1",
|
| 1538 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1539 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1540 |
+
"requestParameters": {
|
| 1541 |
+
"bucketName": "prod-invoice-export"
|
| 1542 |
+
},
|
| 1543 |
+
"responseElements": null,
|
| 1544 |
+
"requestID": "req-bg-0064",
|
| 1545 |
+
"eventID": "bg-0064",
|
| 1546 |
+
"readOnly": true,
|
| 1547 |
+
"eventType": "AwsApiCall",
|
| 1548 |
+
"managementEvent": true,
|
| 1549 |
+
"recipientAccountId": "333333333333",
|
| 1550 |
+
"errorCode": null,
|
| 1551 |
+
"lab_event_id": "",
|
| 1552 |
+
"lab_family": "",
|
| 1553 |
+
"change_ticket": "",
|
| 1554 |
+
"split": "development",
|
| 1555 |
+
"incomplete": false
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"eventVersion": "1.09",
|
| 1559 |
+
"userIdentity": {
|
| 1560 |
+
"type": "AssumedRole",
|
| 1561 |
+
"principalId": "222222222222:terraform-staging",
|
| 1562 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 1563 |
+
"accountId": "222222222222",
|
| 1564 |
+
"sessionContext": {
|
| 1565 |
+
"sessionIssuer": {
|
| 1566 |
+
"type": "Role",
|
| 1567 |
+
"userName": "terraform-staging",
|
| 1568 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 1569 |
+
"accountId": "222222222222"
|
| 1570 |
+
}
|
| 1571 |
+
}
|
| 1572 |
+
},
|
| 1573 |
+
"eventTime": "2026-04-04T13:59:22Z",
|
| 1574 |
+
"eventSource": "s3.amazonaws.com",
|
| 1575 |
+
"eventName": "GetBucketAcl",
|
| 1576 |
+
"awsRegion": "us-east-1",
|
| 1577 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1578 |
+
"userAgent": "terraform/1.9.0",
|
| 1579 |
+
"requestParameters": {
|
| 1580 |
+
"bucketName": "prod-invoice-export"
|
| 1581 |
+
},
|
| 1582 |
+
"responseElements": null,
|
| 1583 |
+
"requestID": "req-bg-0066",
|
| 1584 |
+
"eventID": "bg-0066",
|
| 1585 |
+
"readOnly": true,
|
| 1586 |
+
"eventType": "AwsApiCall",
|
| 1587 |
+
"managementEvent": true,
|
| 1588 |
+
"recipientAccountId": "222222222222",
|
| 1589 |
+
"errorCode": null,
|
| 1590 |
+
"lab_event_id": "",
|
| 1591 |
+
"lab_family": "",
|
| 1592 |
+
"change_ticket": "",
|
| 1593 |
+
"split": "development",
|
| 1594 |
+
"incomplete": false
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"eventVersion": "1.09",
|
| 1598 |
+
"userIdentity": {
|
| 1599 |
+
"type": "AssumedRole",
|
| 1600 |
+
"principalId": "111111111111:lambda-rotator",
|
| 1601 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 1602 |
+
"accountId": "111111111111",
|
| 1603 |
+
"sessionContext": {
|
| 1604 |
+
"sessionIssuer": {
|
| 1605 |
+
"type": "Role",
|
| 1606 |
+
"userName": "lambda-rotator",
|
| 1607 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 1608 |
+
"accountId": "111111111111"
|
| 1609 |
+
}
|
| 1610 |
+
}
|
| 1611 |
+
},
|
| 1612 |
+
"eventTime": "2026-04-04T14:10:34Z",
|
| 1613 |
+
"eventSource": "iam.amazonaws.com",
|
| 1614 |
+
"eventName": "ListUsers",
|
| 1615 |
+
"awsRegion": "us-east-1",
|
| 1616 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1617 |
+
"userAgent": "terraform/1.9.0",
|
| 1618 |
+
"requestParameters": {
|
| 1619 |
+
"marker": "lab-read"
|
| 1620 |
+
},
|
| 1621 |
+
"responseElements": null,
|
| 1622 |
+
"requestID": "req-bg-0067",
|
| 1623 |
+
"eventID": "bg-0067",
|
| 1624 |
+
"readOnly": true,
|
| 1625 |
+
"eventType": "AwsApiCall",
|
| 1626 |
+
"managementEvent": true,
|
| 1627 |
+
"recipientAccountId": "111111111111",
|
| 1628 |
+
"errorCode": null,
|
| 1629 |
+
"lab_event_id": "",
|
| 1630 |
+
"lab_family": "",
|
| 1631 |
+
"change_ticket": "",
|
| 1632 |
+
"split": "development",
|
| 1633 |
+
"incomplete": false
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"eventVersion": "1.09",
|
| 1637 |
+
"userIdentity": {
|
| 1638 |
+
"type": "IAMUser",
|
| 1639 |
+
"principalId": "AIDAIDAVELAB",
|
| 1640 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1641 |
+
"accountId": "111111111111",
|
| 1642 |
+
"userName": "dave"
|
| 1643 |
+
},
|
| 1644 |
+
"eventTime": "2026-04-04T13:52:45Z",
|
| 1645 |
+
"eventSource": "iam.amazonaws.com",
|
| 1646 |
+
"eventName": "ListUsers",
|
| 1647 |
+
"awsRegion": "us-east-1",
|
| 1648 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1649 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1650 |
+
"requestParameters": {
|
| 1651 |
+
"marker": "lab-read"
|
| 1652 |
+
},
|
| 1653 |
+
"responseElements": null,
|
| 1654 |
+
"requestID": "req-bg-0077",
|
| 1655 |
+
"eventID": "bg-0077",
|
| 1656 |
+
"readOnly": true,
|
| 1657 |
+
"eventType": "AwsApiCall",
|
| 1658 |
+
"managementEvent": true,
|
| 1659 |
+
"recipientAccountId": "111111111111",
|
| 1660 |
+
"errorCode": null,
|
| 1661 |
+
"lab_event_id": "",
|
| 1662 |
+
"lab_family": "",
|
| 1663 |
+
"change_ticket": "",
|
| 1664 |
+
"split": "development",
|
| 1665 |
+
"incomplete": false
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"eventVersion": "1.09",
|
| 1669 |
+
"userIdentity": {
|
| 1670 |
+
"type": "IAMUser",
|
| 1671 |
+
"principalId": "AIDAIALICELAB",
|
| 1672 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1673 |
+
"accountId": "111111111111",
|
| 1674 |
+
"userName": "alice"
|
| 1675 |
+
},
|
| 1676 |
+
"eventTime": "2026-04-05T12:02:09Z",
|
| 1677 |
+
"eventSource": "iam.amazonaws.com",
|
| 1678 |
+
"eventName": "ListUsers",
|
| 1679 |
+
"awsRegion": "us-east-1",
|
| 1680 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1681 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1682 |
+
"requestParameters": {
|
| 1683 |
+
"marker": "lab-read"
|
| 1684 |
+
},
|
| 1685 |
+
"responseElements": null,
|
| 1686 |
+
"requestID": "req-bg-0085",
|
| 1687 |
+
"eventID": "bg-0085",
|
| 1688 |
+
"readOnly": true,
|
| 1689 |
+
"eventType": "AwsApiCall",
|
| 1690 |
+
"managementEvent": true,
|
| 1691 |
+
"recipientAccountId": "111111111111",
|
| 1692 |
+
"errorCode": null,
|
| 1693 |
+
"lab_event_id": "",
|
| 1694 |
+
"lab_family": "",
|
| 1695 |
+
"change_ticket": "",
|
| 1696 |
+
"split": "development",
|
| 1697 |
+
"incomplete": false
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"eventVersion": "1.09",
|
| 1701 |
+
"userIdentity": {
|
| 1702 |
+
"type": "IAMUser",
|
| 1703 |
+
"principalId": "AIDAIDAVELAB",
|
| 1704 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 1705 |
+
"accountId": "111111111111",
|
| 1706 |
+
"userName": "dave"
|
| 1707 |
+
},
|
| 1708 |
+
"eventTime": "2026-04-05T15:08:37Z",
|
| 1709 |
+
"eventSource": "iam.amazonaws.com",
|
| 1710 |
+
"eventName": "ListUsers",
|
| 1711 |
+
"awsRegion": "us-east-1",
|
| 1712 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1713 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1714 |
+
"requestParameters": {
|
| 1715 |
+
"marker": "lab-read"
|
| 1716 |
+
},
|
| 1717 |
+
"responseElements": null,
|
| 1718 |
+
"requestID": "req-bg-0089",
|
| 1719 |
+
"eventID": "bg-0089",
|
| 1720 |
+
"readOnly": true,
|
| 1721 |
+
"eventType": "AwsApiCall",
|
| 1722 |
+
"managementEvent": true,
|
| 1723 |
+
"recipientAccountId": "111111111111",
|
| 1724 |
+
"errorCode": null,
|
| 1725 |
+
"lab_event_id": "",
|
| 1726 |
+
"lab_family": "",
|
| 1727 |
+
"change_ticket": "",
|
| 1728 |
+
"split": "development",
|
| 1729 |
+
"incomplete": false
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"eventVersion": "1.09",
|
| 1733 |
+
"userIdentity": {
|
| 1734 |
+
"type": "AssumedRole",
|
| 1735 |
+
"principalId": "222222222222:ci-github",
|
| 1736 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1737 |
+
"accountId": "222222222222",
|
| 1738 |
+
"sessionContext": {
|
| 1739 |
+
"sessionIssuer": {
|
| 1740 |
+
"type": "Role",
|
| 1741 |
+
"userName": "ci-github",
|
| 1742 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1743 |
+
"accountId": "222222222222"
|
| 1744 |
+
}
|
| 1745 |
+
}
|
| 1746 |
+
},
|
| 1747 |
+
"eventTime": "2026-04-05T08:27:03Z",
|
| 1748 |
+
"eventSource": "iam.amazonaws.com",
|
| 1749 |
+
"eventName": "ListUsers",
|
| 1750 |
+
"awsRegion": "us-east-1",
|
| 1751 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1752 |
+
"userAgent": "terraform/1.9.0",
|
| 1753 |
+
"requestParameters": {
|
| 1754 |
+
"marker": "lab-read"
|
| 1755 |
+
},
|
| 1756 |
+
"responseElements": null,
|
| 1757 |
+
"requestID": "req-bg-0090",
|
| 1758 |
+
"eventID": "bg-0090",
|
| 1759 |
+
"readOnly": true,
|
| 1760 |
+
"eventType": "AwsApiCall",
|
| 1761 |
+
"managementEvent": true,
|
| 1762 |
+
"recipientAccountId": "222222222222",
|
| 1763 |
+
"errorCode": null,
|
| 1764 |
+
"lab_event_id": "",
|
| 1765 |
+
"lab_family": "",
|
| 1766 |
+
"change_ticket": "",
|
| 1767 |
+
"split": "development",
|
| 1768 |
+
"incomplete": false
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"eventVersion": "1.09",
|
| 1772 |
+
"userIdentity": {
|
| 1773 |
+
"type": "AssumedRole",
|
| 1774 |
+
"principalId": "222222222222:ci-github",
|
| 1775 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1776 |
+
"accountId": "222222222222",
|
| 1777 |
+
"sessionContext": {
|
| 1778 |
+
"sessionIssuer": {
|
| 1779 |
+
"type": "Role",
|
| 1780 |
+
"userName": "ci-github",
|
| 1781 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1782 |
+
"accountId": "222222222222"
|
| 1783 |
+
}
|
| 1784 |
+
}
|
| 1785 |
+
},
|
| 1786 |
+
"eventTime": "2026-04-05T15:27:28Z",
|
| 1787 |
+
"eventSource": "s3.amazonaws.com",
|
| 1788 |
+
"eventName": "GetBucketAcl",
|
| 1789 |
+
"awsRegion": "us-east-1",
|
| 1790 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1791 |
+
"userAgent": "terraform/1.9.0",
|
| 1792 |
+
"requestParameters": {
|
| 1793 |
+
"bucketName": "prod-invoice-export"
|
| 1794 |
+
},
|
| 1795 |
+
"responseElements": null,
|
| 1796 |
+
"requestID": "req-bg-0091",
|
| 1797 |
+
"eventID": "bg-0091",
|
| 1798 |
+
"readOnly": true,
|
| 1799 |
+
"eventType": "AwsApiCall",
|
| 1800 |
+
"managementEvent": true,
|
| 1801 |
+
"recipientAccountId": "222222222222",
|
| 1802 |
+
"errorCode": null,
|
| 1803 |
+
"lab_event_id": "",
|
| 1804 |
+
"lab_family": "",
|
| 1805 |
+
"change_ticket": "",
|
| 1806 |
+
"split": "development",
|
| 1807 |
+
"incomplete": false
|
| 1808 |
+
},
|
| 1809 |
+
{
|
| 1810 |
+
"eventVersion": "1.09",
|
| 1811 |
+
"userIdentity": {
|
| 1812 |
+
"type": "IAMUser",
|
| 1813 |
+
"principalId": "AIDAIALICELAB",
|
| 1814 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 1815 |
+
"accountId": "111111111111",
|
| 1816 |
+
"userName": "alice"
|
| 1817 |
+
},
|
| 1818 |
+
"eventTime": "2026-04-05T12:20:00Z",
|
| 1819 |
+
"eventSource": "s3.amazonaws.com",
|
| 1820 |
+
"eventName": "GetBucketAcl",
|
| 1821 |
+
"awsRegion": "us-east-1",
|
| 1822 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1823 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1824 |
+
"requestParameters": {
|
| 1825 |
+
"bucketName": "prod-invoice-export"
|
| 1826 |
+
},
|
| 1827 |
+
"responseElements": null,
|
| 1828 |
+
"requestID": "req-bg-0092",
|
| 1829 |
+
"eventID": "bg-0092",
|
| 1830 |
+
"readOnly": true,
|
| 1831 |
+
"eventType": "AwsApiCall",
|
| 1832 |
+
"managementEvent": true,
|
| 1833 |
+
"recipientAccountId": "111111111111",
|
| 1834 |
+
"errorCode": null,
|
| 1835 |
+
"lab_event_id": "",
|
| 1836 |
+
"lab_family": "",
|
| 1837 |
+
"change_ticket": "",
|
| 1838 |
+
"split": "development",
|
| 1839 |
+
"incomplete": false
|
| 1840 |
+
},
|
| 1841 |
+
{
|
| 1842 |
+
"eventVersion": "1.09",
|
| 1843 |
+
"userIdentity": {
|
| 1844 |
+
"type": "IAMUser",
|
| 1845 |
+
"principalId": "AIDAICAROLLAB",
|
| 1846 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1847 |
+
"accountId": "333333333333",
|
| 1848 |
+
"userName": "carol"
|
| 1849 |
+
},
|
| 1850 |
+
"eventTime": "2026-04-05T16:56:01Z",
|
| 1851 |
+
"eventSource": "iam.amazonaws.com",
|
| 1852 |
+
"eventName": "ListUsers",
|
| 1853 |
+
"awsRegion": "us-east-1",
|
| 1854 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1855 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1856 |
+
"requestParameters": {
|
| 1857 |
+
"marker": "lab-read"
|
| 1858 |
+
},
|
| 1859 |
+
"responseElements": null,
|
| 1860 |
+
"requestID": "req-bg-0094",
|
| 1861 |
+
"eventID": "bg-0094",
|
| 1862 |
+
"readOnly": true,
|
| 1863 |
+
"eventType": "AwsApiCall",
|
| 1864 |
+
"managementEvent": true,
|
| 1865 |
+
"recipientAccountId": "333333333333",
|
| 1866 |
+
"errorCode": null,
|
| 1867 |
+
"lab_event_id": "",
|
| 1868 |
+
"lab_family": "",
|
| 1869 |
+
"change_ticket": "",
|
| 1870 |
+
"split": "development",
|
| 1871 |
+
"incomplete": false
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"eventVersion": "1.09",
|
| 1875 |
+
"userIdentity": {
|
| 1876 |
+
"type": "IAMUser",
|
| 1877 |
+
"principalId": "AIDAIBOBLAB",
|
| 1878 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 1879 |
+
"accountId": "222222222222",
|
| 1880 |
+
"userName": "bob"
|
| 1881 |
+
},
|
| 1882 |
+
"eventTime": "2026-04-05T10:30:09Z",
|
| 1883 |
+
"eventSource": "iam.amazonaws.com",
|
| 1884 |
+
"eventName": "ListUsers",
|
| 1885 |
+
"awsRegion": "us-east-1",
|
| 1886 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1887 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1888 |
+
"requestParameters": {
|
| 1889 |
+
"marker": "lab-read"
|
| 1890 |
+
},
|
| 1891 |
+
"responseElements": null,
|
| 1892 |
+
"requestID": "req-bg-0096",
|
| 1893 |
+
"eventID": "bg-0096",
|
| 1894 |
+
"readOnly": true,
|
| 1895 |
+
"eventType": "AwsApiCall",
|
| 1896 |
+
"managementEvent": true,
|
| 1897 |
+
"recipientAccountId": "222222222222",
|
| 1898 |
+
"errorCode": null,
|
| 1899 |
+
"lab_event_id": "",
|
| 1900 |
+
"lab_family": "",
|
| 1901 |
+
"change_ticket": "",
|
| 1902 |
+
"split": "development",
|
| 1903 |
+
"incomplete": false
|
| 1904 |
+
},
|
| 1905 |
+
{
|
| 1906 |
+
"eventVersion": "1.09",
|
| 1907 |
+
"userIdentity": {
|
| 1908 |
+
"type": "IAMUser",
|
| 1909 |
+
"principalId": "AIDAICAROLLAB",
|
| 1910 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 1911 |
+
"accountId": "333333333333",
|
| 1912 |
+
"userName": "carol"
|
| 1913 |
+
},
|
| 1914 |
+
"eventTime": "2026-04-05T12:11:45Z",
|
| 1915 |
+
"eventSource": "iam.amazonaws.com",
|
| 1916 |
+
"eventName": "ListUsers",
|
| 1917 |
+
"awsRegion": "us-east-1",
|
| 1918 |
+
"sourceIPAddress": "203.0.113.10",
|
| 1919 |
+
"userAgent": "aws-cli/2.15.0",
|
| 1920 |
+
"requestParameters": {
|
| 1921 |
+
"marker": "lab-read"
|
| 1922 |
+
},
|
| 1923 |
+
"responseElements": null,
|
| 1924 |
+
"requestID": "req-bg-0098",
|
| 1925 |
+
"eventID": "bg-0098",
|
| 1926 |
+
"readOnly": true,
|
| 1927 |
+
"eventType": "AwsApiCall",
|
| 1928 |
+
"managementEvent": true,
|
| 1929 |
+
"recipientAccountId": "333333333333",
|
| 1930 |
+
"errorCode": null,
|
| 1931 |
+
"lab_event_id": "",
|
| 1932 |
+
"lab_family": "",
|
| 1933 |
+
"change_ticket": "",
|
| 1934 |
+
"split": "development",
|
| 1935 |
+
"incomplete": false
|
| 1936 |
+
},
|
| 1937 |
+
{
|
| 1938 |
+
"eventVersion": "1.09",
|
| 1939 |
+
"userIdentity": {
|
| 1940 |
+
"type": "AssumedRole",
|
| 1941 |
+
"principalId": "111111111111:terraform-prod",
|
| 1942 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/terraform-prod/session",
|
| 1943 |
+
"accountId": "111111111111",
|
| 1944 |
+
"sessionContext": {
|
| 1945 |
+
"sessionIssuer": {
|
| 1946 |
+
"type": "Role",
|
| 1947 |
+
"userName": "terraform-prod",
|
| 1948 |
+
"arn": "arn:aws:iam::111111111111:role/terraform-prod",
|
| 1949 |
+
"accountId": "111111111111"
|
| 1950 |
+
}
|
| 1951 |
+
}
|
| 1952 |
+
},
|
| 1953 |
+
"eventTime": "2026-04-06T16:14:19Z",
|
| 1954 |
+
"eventSource": "iam.amazonaws.com",
|
| 1955 |
+
"eventName": "ListUsers",
|
| 1956 |
+
"awsRegion": "us-east-1",
|
| 1957 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1958 |
+
"userAgent": "terraform/1.9.0",
|
| 1959 |
+
"requestParameters": {
|
| 1960 |
+
"marker": "lab-read"
|
| 1961 |
+
},
|
| 1962 |
+
"responseElements": null,
|
| 1963 |
+
"requestID": "req-bg-0108",
|
| 1964 |
+
"eventID": "bg-0108",
|
| 1965 |
+
"readOnly": true,
|
| 1966 |
+
"eventType": "AwsApiCall",
|
| 1967 |
+
"managementEvent": true,
|
| 1968 |
+
"recipientAccountId": "111111111111",
|
| 1969 |
+
"errorCode": null,
|
| 1970 |
+
"lab_event_id": "",
|
| 1971 |
+
"lab_family": "",
|
| 1972 |
+
"change_ticket": "",
|
| 1973 |
+
"split": "development",
|
| 1974 |
+
"incomplete": false
|
| 1975 |
+
},
|
| 1976 |
+
{
|
| 1977 |
+
"eventVersion": "1.09",
|
| 1978 |
+
"userIdentity": {
|
| 1979 |
+
"type": "AssumedRole",
|
| 1980 |
+
"principalId": "222222222222:ci-github",
|
| 1981 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 1982 |
+
"accountId": "222222222222",
|
| 1983 |
+
"sessionContext": {
|
| 1984 |
+
"sessionIssuer": {
|
| 1985 |
+
"type": "Role",
|
| 1986 |
+
"userName": "ci-github",
|
| 1987 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 1988 |
+
"accountId": "222222222222"
|
| 1989 |
+
}
|
| 1990 |
+
}
|
| 1991 |
+
},
|
| 1992 |
+
"eventTime": "2026-04-06T10:20:27Z",
|
| 1993 |
+
"eventSource": "s3.amazonaws.com",
|
| 1994 |
+
"eventName": "GetBucketAcl",
|
| 1995 |
+
"awsRegion": "us-east-1",
|
| 1996 |
+
"sourceIPAddress": "198.51.100.20",
|
| 1997 |
+
"userAgent": "terraform/1.9.0",
|
| 1998 |
+
"requestParameters": {
|
| 1999 |
+
"bucketName": "prod-invoice-export"
|
| 2000 |
+
},
|
| 2001 |
+
"responseElements": null,
|
| 2002 |
+
"requestID": "req-bg-0109",
|
| 2003 |
+
"eventID": "bg-0109",
|
| 2004 |
+
"readOnly": true,
|
| 2005 |
+
"eventType": "AwsApiCall",
|
| 2006 |
+
"managementEvent": true,
|
| 2007 |
+
"recipientAccountId": "222222222222",
|
| 2008 |
+
"errorCode": null,
|
| 2009 |
+
"lab_event_id": "",
|
| 2010 |
+
"lab_family": "",
|
| 2011 |
+
"change_ticket": "",
|
| 2012 |
+
"split": "development",
|
| 2013 |
+
"incomplete": false
|
| 2014 |
+
},
|
| 2015 |
+
{
|
| 2016 |
+
"eventVersion": "1.09",
|
| 2017 |
+
"userIdentity": {
|
| 2018 |
+
"type": "AssumedRole",
|
| 2019 |
+
"principalId": "222222222222:terraform-staging",
|
| 2020 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2021 |
+
"accountId": "222222222222",
|
| 2022 |
+
"sessionContext": {
|
| 2023 |
+
"sessionIssuer": {
|
| 2024 |
+
"type": "Role",
|
| 2025 |
+
"userName": "terraform-staging",
|
| 2026 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2027 |
+
"accountId": "222222222222"
|
| 2028 |
+
}
|
| 2029 |
+
}
|
| 2030 |
+
},
|
| 2031 |
+
"eventTime": "2026-04-06T08:02:37Z",
|
| 2032 |
+
"eventSource": "s3.amazonaws.com",
|
| 2033 |
+
"eventName": "GetBucketAcl",
|
| 2034 |
+
"awsRegion": "us-east-1",
|
| 2035 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2036 |
+
"userAgent": "terraform/1.9.0",
|
| 2037 |
+
"requestParameters": {
|
| 2038 |
+
"bucketName": "prod-invoice-export"
|
| 2039 |
+
},
|
| 2040 |
+
"responseElements": null,
|
| 2041 |
+
"requestID": "req-bg-0117",
|
| 2042 |
+
"eventID": "bg-0117",
|
| 2043 |
+
"readOnly": true,
|
| 2044 |
+
"eventType": "AwsApiCall",
|
| 2045 |
+
"managementEvent": true,
|
| 2046 |
+
"recipientAccountId": "222222222222",
|
| 2047 |
+
"errorCode": null,
|
| 2048 |
+
"lab_event_id": "",
|
| 2049 |
+
"lab_family": "",
|
| 2050 |
+
"change_ticket": "",
|
| 2051 |
+
"split": "development",
|
| 2052 |
+
"incomplete": false
|
| 2053 |
+
},
|
| 2054 |
+
{
|
| 2055 |
+
"eventVersion": "1.09",
|
| 2056 |
+
"userIdentity": {
|
| 2057 |
+
"type": "AssumedRole",
|
| 2058 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2059 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2060 |
+
"accountId": "111111111111",
|
| 2061 |
+
"sessionContext": {
|
| 2062 |
+
"sessionIssuer": {
|
| 2063 |
+
"type": "Role",
|
| 2064 |
+
"userName": "lambda-rotator",
|
| 2065 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2066 |
+
"accountId": "111111111111"
|
| 2067 |
+
}
|
| 2068 |
+
}
|
| 2069 |
+
},
|
| 2070 |
+
"eventTime": "2026-04-06T13:23:22Z",
|
| 2071 |
+
"eventSource": "iam.amazonaws.com",
|
| 2072 |
+
"eventName": "ListUsers",
|
| 2073 |
+
"awsRegion": "us-east-1",
|
| 2074 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2075 |
+
"userAgent": "terraform/1.9.0",
|
| 2076 |
+
"requestParameters": {
|
| 2077 |
+
"marker": "lab-read"
|
| 2078 |
+
},
|
| 2079 |
+
"responseElements": null,
|
| 2080 |
+
"requestID": "req-bg-0120",
|
| 2081 |
+
"eventID": "bg-0120",
|
| 2082 |
+
"readOnly": true,
|
| 2083 |
+
"eventType": "AwsApiCall",
|
| 2084 |
+
"managementEvent": true,
|
| 2085 |
+
"recipientAccountId": "111111111111",
|
| 2086 |
+
"errorCode": null,
|
| 2087 |
+
"lab_event_id": "",
|
| 2088 |
+
"lab_family": "",
|
| 2089 |
+
"change_ticket": "",
|
| 2090 |
+
"split": "development",
|
| 2091 |
+
"incomplete": false
|
| 2092 |
+
},
|
| 2093 |
+
{
|
| 2094 |
+
"eventVersion": "1.09",
|
| 2095 |
+
"userIdentity": {
|
| 2096 |
+
"type": "AssumedRole",
|
| 2097 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2098 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2099 |
+
"accountId": "111111111111",
|
| 2100 |
+
"sessionContext": {
|
| 2101 |
+
"sessionIssuer": {
|
| 2102 |
+
"type": "Role",
|
| 2103 |
+
"userName": "lambda-rotator",
|
| 2104 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2105 |
+
"accountId": "111111111111"
|
| 2106 |
+
}
|
| 2107 |
+
}
|
| 2108 |
+
},
|
| 2109 |
+
"eventTime": "2026-04-07T10:30:05Z",
|
| 2110 |
+
"eventSource": "s3.amazonaws.com",
|
| 2111 |
+
"eventName": "GetBucketAcl",
|
| 2112 |
+
"awsRegion": "us-east-1",
|
| 2113 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2114 |
+
"userAgent": "terraform/1.9.0",
|
| 2115 |
+
"requestParameters": {
|
| 2116 |
+
"bucketName": "prod-invoice-export"
|
| 2117 |
+
},
|
| 2118 |
+
"responseElements": null,
|
| 2119 |
+
"requestID": "req-bg-0127",
|
| 2120 |
+
"eventID": "bg-0127",
|
| 2121 |
+
"readOnly": true,
|
| 2122 |
+
"eventType": "AwsApiCall",
|
| 2123 |
+
"managementEvent": true,
|
| 2124 |
+
"recipientAccountId": "111111111111",
|
| 2125 |
+
"errorCode": null,
|
| 2126 |
+
"lab_event_id": "",
|
| 2127 |
+
"lab_family": "",
|
| 2128 |
+
"change_ticket": "",
|
| 2129 |
+
"split": "development",
|
| 2130 |
+
"incomplete": false
|
| 2131 |
+
},
|
| 2132 |
+
{
|
| 2133 |
+
"eventVersion": "1.09",
|
| 2134 |
+
"userIdentity": {
|
| 2135 |
+
"type": "AssumedRole",
|
| 2136 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2137 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2138 |
+
"accountId": "111111111111",
|
| 2139 |
+
"sessionContext": {
|
| 2140 |
+
"sessionIssuer": {
|
| 2141 |
+
"type": "Role",
|
| 2142 |
+
"userName": "lambda-rotator",
|
| 2143 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2144 |
+
"accountId": "111111111111"
|
| 2145 |
+
}
|
| 2146 |
+
}
|
| 2147 |
+
},
|
| 2148 |
+
"eventTime": "2026-04-07T08:53:47Z",
|
| 2149 |
+
"eventSource": "s3.amazonaws.com",
|
| 2150 |
+
"eventName": "GetBucketAcl",
|
| 2151 |
+
"awsRegion": "us-east-1",
|
| 2152 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2153 |
+
"userAgent": "terraform/1.9.0",
|
| 2154 |
+
"requestParameters": {
|
| 2155 |
+
"bucketName": "prod-invoice-export"
|
| 2156 |
+
},
|
| 2157 |
+
"responseElements": null,
|
| 2158 |
+
"requestID": "req-bg-0134",
|
| 2159 |
+
"eventID": "bg-0134",
|
| 2160 |
+
"readOnly": true,
|
| 2161 |
+
"eventType": "AwsApiCall",
|
| 2162 |
+
"managementEvent": true,
|
| 2163 |
+
"recipientAccountId": "111111111111",
|
| 2164 |
+
"errorCode": null,
|
| 2165 |
+
"lab_event_id": "",
|
| 2166 |
+
"lab_family": "",
|
| 2167 |
+
"change_ticket": "",
|
| 2168 |
+
"split": "development",
|
| 2169 |
+
"incomplete": false
|
| 2170 |
+
},
|
| 2171 |
+
{
|
| 2172 |
+
"eventVersion": "1.09",
|
| 2173 |
+
"userIdentity": {
|
| 2174 |
+
"type": "AssumedRole",
|
| 2175 |
+
"principalId": "222222222222:terraform-staging",
|
| 2176 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2177 |
+
"accountId": "222222222222",
|
| 2178 |
+
"sessionContext": {
|
| 2179 |
+
"sessionIssuer": {
|
| 2180 |
+
"type": "Role",
|
| 2181 |
+
"userName": "terraform-staging",
|
| 2182 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2183 |
+
"accountId": "222222222222"
|
| 2184 |
+
}
|
| 2185 |
+
}
|
| 2186 |
+
},
|
| 2187 |
+
"eventTime": "2026-04-07T15:44:12Z",
|
| 2188 |
+
"eventSource": "iam.amazonaws.com",
|
| 2189 |
+
"eventName": "ListUsers",
|
| 2190 |
+
"awsRegion": "us-east-1",
|
| 2191 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2192 |
+
"userAgent": "terraform/1.9.0",
|
| 2193 |
+
"requestParameters": {
|
| 2194 |
+
"marker": "lab-read"
|
| 2195 |
+
},
|
| 2196 |
+
"responseElements": null,
|
| 2197 |
+
"requestID": "req-bg-0138",
|
| 2198 |
+
"eventID": "bg-0138",
|
| 2199 |
+
"readOnly": true,
|
| 2200 |
+
"eventType": "AwsApiCall",
|
| 2201 |
+
"managementEvent": true,
|
| 2202 |
+
"recipientAccountId": "222222222222",
|
| 2203 |
+
"errorCode": null,
|
| 2204 |
+
"lab_event_id": "",
|
| 2205 |
+
"lab_family": "",
|
| 2206 |
+
"change_ticket": "",
|
| 2207 |
+
"split": "development",
|
| 2208 |
+
"incomplete": false
|
| 2209 |
+
},
|
| 2210 |
+
{
|
| 2211 |
+
"eventVersion": "1.09",
|
| 2212 |
+
"userIdentity": {
|
| 2213 |
+
"type": "IAMUser",
|
| 2214 |
+
"principalId": "AIDAIDAVELAB",
|
| 2215 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2216 |
+
"accountId": "111111111111",
|
| 2217 |
+
"userName": "dave"
|
| 2218 |
+
},
|
| 2219 |
+
"eventTime": "2026-04-07T13:58:47Z",
|
| 2220 |
+
"eventSource": "iam.amazonaws.com",
|
| 2221 |
+
"eventName": "ListUsers",
|
| 2222 |
+
"awsRegion": "us-east-1",
|
| 2223 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2224 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2225 |
+
"requestParameters": {
|
| 2226 |
+
"marker": "lab-read"
|
| 2227 |
+
},
|
| 2228 |
+
"responseElements": null,
|
| 2229 |
+
"requestID": "req-bg-0143",
|
| 2230 |
+
"eventID": "bg-0143",
|
| 2231 |
+
"readOnly": true,
|
| 2232 |
+
"eventType": "AwsApiCall",
|
| 2233 |
+
"managementEvent": true,
|
| 2234 |
+
"recipientAccountId": "111111111111",
|
| 2235 |
+
"errorCode": null,
|
| 2236 |
+
"lab_event_id": "",
|
| 2237 |
+
"lab_family": "",
|
| 2238 |
+
"change_ticket": "",
|
| 2239 |
+
"split": "development",
|
| 2240 |
+
"incomplete": false
|
| 2241 |
+
},
|
| 2242 |
+
{
|
| 2243 |
+
"eventVersion": "1.09",
|
| 2244 |
+
"userIdentity": {
|
| 2245 |
+
"type": "IAMUser",
|
| 2246 |
+
"principalId": "AIDAIDAVELAB",
|
| 2247 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2248 |
+
"accountId": "111111111111",
|
| 2249 |
+
"userName": "dave"
|
| 2250 |
+
},
|
| 2251 |
+
"eventTime": "2026-04-08T15:46:01Z",
|
| 2252 |
+
"eventSource": "iam.amazonaws.com",
|
| 2253 |
+
"eventName": "ListUsers",
|
| 2254 |
+
"awsRegion": "us-east-1",
|
| 2255 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2256 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2257 |
+
"requestParameters": {
|
| 2258 |
+
"marker": "lab-read"
|
| 2259 |
+
},
|
| 2260 |
+
"responseElements": null,
|
| 2261 |
+
"requestID": "req-bg-0150",
|
| 2262 |
+
"eventID": "bg-0150",
|
| 2263 |
+
"readOnly": true,
|
| 2264 |
+
"eventType": "AwsApiCall",
|
| 2265 |
+
"managementEvent": true,
|
| 2266 |
+
"recipientAccountId": "111111111111",
|
| 2267 |
+
"errorCode": null,
|
| 2268 |
+
"lab_event_id": "",
|
| 2269 |
+
"lab_family": "",
|
| 2270 |
+
"change_ticket": "",
|
| 2271 |
+
"split": "development",
|
| 2272 |
+
"incomplete": false
|
| 2273 |
+
},
|
| 2274 |
+
{
|
| 2275 |
+
"eventVersion": "1.09",
|
| 2276 |
+
"userIdentity": {
|
| 2277 |
+
"type": "IAMUser",
|
| 2278 |
+
"principalId": "AIDAIALICELAB",
|
| 2279 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2280 |
+
"accountId": "111111111111",
|
| 2281 |
+
"userName": "alice"
|
| 2282 |
+
},
|
| 2283 |
+
"eventTime": "2026-04-08T10:28:40Z",
|
| 2284 |
+
"eventSource": "s3.amazonaws.com",
|
| 2285 |
+
"eventName": "GetBucketAcl",
|
| 2286 |
+
"awsRegion": "us-east-1",
|
| 2287 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2288 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2289 |
+
"requestParameters": {
|
| 2290 |
+
"bucketName": "prod-invoice-export"
|
| 2291 |
+
},
|
| 2292 |
+
"responseElements": null,
|
| 2293 |
+
"requestID": "req-bg-0151",
|
| 2294 |
+
"eventID": "bg-0151",
|
| 2295 |
+
"readOnly": true,
|
| 2296 |
+
"eventType": "AwsApiCall",
|
| 2297 |
+
"managementEvent": true,
|
| 2298 |
+
"recipientAccountId": "111111111111",
|
| 2299 |
+
"errorCode": null,
|
| 2300 |
+
"lab_event_id": "",
|
| 2301 |
+
"lab_family": "",
|
| 2302 |
+
"change_ticket": "",
|
| 2303 |
+
"split": "development",
|
| 2304 |
+
"incomplete": false
|
| 2305 |
+
},
|
| 2306 |
+
{
|
| 2307 |
+
"eventVersion": "1.09",
|
| 2308 |
+
"userIdentity": {
|
| 2309 |
+
"type": "AssumedRole",
|
| 2310 |
+
"principalId": "111111111111:lambda-rotator",
|
| 2311 |
+
"arn": "arn:aws:sts::111111111111:assumed-role/lambda-rotator/session",
|
| 2312 |
+
"accountId": "111111111111",
|
| 2313 |
+
"sessionContext": {
|
| 2314 |
+
"sessionIssuer": {
|
| 2315 |
+
"type": "Role",
|
| 2316 |
+
"userName": "lambda-rotator",
|
| 2317 |
+
"arn": "arn:aws:iam::111111111111:role/lambda-rotator",
|
| 2318 |
+
"accountId": "111111111111"
|
| 2319 |
+
}
|
| 2320 |
+
}
|
| 2321 |
+
},
|
| 2322 |
+
"eventTime": "2026-04-08T15:18:46Z",
|
| 2323 |
+
"eventSource": "iam.amazonaws.com",
|
| 2324 |
+
"eventName": "ListUsers",
|
| 2325 |
+
"awsRegion": "us-east-1",
|
| 2326 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2327 |
+
"userAgent": "terraform/1.9.0",
|
| 2328 |
+
"requestParameters": {
|
| 2329 |
+
"marker": "lab-read"
|
| 2330 |
+
},
|
| 2331 |
+
"responseElements": null,
|
| 2332 |
+
"requestID": "req-bg-0161",
|
| 2333 |
+
"eventID": "bg-0161",
|
| 2334 |
+
"readOnly": true,
|
| 2335 |
+
"eventType": "AwsApiCall",
|
| 2336 |
+
"managementEvent": true,
|
| 2337 |
+
"recipientAccountId": "111111111111",
|
| 2338 |
+
"errorCode": null,
|
| 2339 |
+
"lab_event_id": "",
|
| 2340 |
+
"lab_family": "",
|
| 2341 |
+
"change_ticket": "",
|
| 2342 |
+
"split": "development",
|
| 2343 |
+
"incomplete": false
|
| 2344 |
+
},
|
| 2345 |
+
{
|
| 2346 |
+
"eventVersion": "1.09",
|
| 2347 |
+
"userIdentity": {
|
| 2348 |
+
"type": "AssumedRole",
|
| 2349 |
+
"principalId": "222222222222:ci-github",
|
| 2350 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2351 |
+
"accountId": "222222222222",
|
| 2352 |
+
"sessionContext": {
|
| 2353 |
+
"sessionIssuer": {
|
| 2354 |
+
"type": "Role",
|
| 2355 |
+
"userName": "ci-github",
|
| 2356 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2357 |
+
"accountId": "222222222222"
|
| 2358 |
+
}
|
| 2359 |
+
}
|
| 2360 |
+
},
|
| 2361 |
+
"eventTime": "2026-04-08T09:29:05Z",
|
| 2362 |
+
"eventSource": "s3.amazonaws.com",
|
| 2363 |
+
"eventName": "GetBucketAcl",
|
| 2364 |
+
"awsRegion": "us-east-1",
|
| 2365 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2366 |
+
"userAgent": "terraform/1.9.0",
|
| 2367 |
+
"requestParameters": {
|
| 2368 |
+
"bucketName": "prod-invoice-export"
|
| 2369 |
+
},
|
| 2370 |
+
"responseElements": null,
|
| 2371 |
+
"requestID": "req-bg-0162",
|
| 2372 |
+
"eventID": "bg-0162",
|
| 2373 |
+
"readOnly": true,
|
| 2374 |
+
"eventType": "AwsApiCall",
|
| 2375 |
+
"managementEvent": true,
|
| 2376 |
+
"recipientAccountId": "222222222222",
|
| 2377 |
+
"errorCode": null,
|
| 2378 |
+
"lab_event_id": "",
|
| 2379 |
+
"lab_family": "",
|
| 2380 |
+
"change_ticket": "",
|
| 2381 |
+
"split": "development",
|
| 2382 |
+
"incomplete": false
|
| 2383 |
+
},
|
| 2384 |
+
{
|
| 2385 |
+
"eventVersion": "1.09",
|
| 2386 |
+
"userIdentity": {
|
| 2387 |
+
"type": "IAMUser",
|
| 2388 |
+
"principalId": "AIDAIALICELAB",
|
| 2389 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2390 |
+
"accountId": "111111111111",
|
| 2391 |
+
"userName": "alice"
|
| 2392 |
+
},
|
| 2393 |
+
"eventTime": "2026-04-08T17:36:48Z",
|
| 2394 |
+
"eventSource": "iam.amazonaws.com",
|
| 2395 |
+
"eventName": "ListUsers",
|
| 2396 |
+
"awsRegion": "us-east-1",
|
| 2397 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2398 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2399 |
+
"requestParameters": {
|
| 2400 |
+
"marker": "lab-read"
|
| 2401 |
+
},
|
| 2402 |
+
"responseElements": null,
|
| 2403 |
+
"requestID": "req-bg-0163",
|
| 2404 |
+
"eventID": "bg-0163",
|
| 2405 |
+
"readOnly": true,
|
| 2406 |
+
"eventType": "AwsApiCall",
|
| 2407 |
+
"managementEvent": true,
|
| 2408 |
+
"recipientAccountId": "111111111111",
|
| 2409 |
+
"errorCode": null,
|
| 2410 |
+
"lab_event_id": "",
|
| 2411 |
+
"lab_family": "",
|
| 2412 |
+
"change_ticket": "",
|
| 2413 |
+
"split": "development",
|
| 2414 |
+
"incomplete": false
|
| 2415 |
+
},
|
| 2416 |
+
{
|
| 2417 |
+
"eventVersion": "1.09",
|
| 2418 |
+
"userIdentity": {
|
| 2419 |
+
"type": "AssumedRole",
|
| 2420 |
+
"principalId": "222222222222:ci-github",
|
| 2421 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2422 |
+
"accountId": "222222222222",
|
| 2423 |
+
"sessionContext": {
|
| 2424 |
+
"sessionIssuer": {
|
| 2425 |
+
"type": "Role",
|
| 2426 |
+
"userName": "ci-github",
|
| 2427 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2428 |
+
"accountId": "222222222222"
|
| 2429 |
+
}
|
| 2430 |
+
}
|
| 2431 |
+
},
|
| 2432 |
+
"eventTime": "2026-04-08T16:26:07Z",
|
| 2433 |
+
"eventSource": "iam.amazonaws.com",
|
| 2434 |
+
"eventName": "ListUsers",
|
| 2435 |
+
"awsRegion": "us-east-1",
|
| 2436 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2437 |
+
"userAgent": "terraform/1.9.0",
|
| 2438 |
+
"requestParameters": {
|
| 2439 |
+
"marker": "lab-read"
|
| 2440 |
+
},
|
| 2441 |
+
"responseElements": null,
|
| 2442 |
+
"requestID": "req-bg-0164",
|
| 2443 |
+
"eventID": "bg-0164",
|
| 2444 |
+
"readOnly": true,
|
| 2445 |
+
"eventType": "AwsApiCall",
|
| 2446 |
+
"managementEvent": true,
|
| 2447 |
+
"recipientAccountId": "222222222222",
|
| 2448 |
+
"errorCode": null,
|
| 2449 |
+
"lab_event_id": "",
|
| 2450 |
+
"lab_family": "",
|
| 2451 |
+
"change_ticket": "",
|
| 2452 |
+
"split": "development",
|
| 2453 |
+
"incomplete": false
|
| 2454 |
+
},
|
| 2455 |
+
{
|
| 2456 |
+
"eventVersion": "1.09",
|
| 2457 |
+
"userIdentity": {
|
| 2458 |
+
"type": "AssumedRole",
|
| 2459 |
+
"principalId": "222222222222:terraform-staging",
|
| 2460 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/terraform-staging/session",
|
| 2461 |
+
"accountId": "222222222222",
|
| 2462 |
+
"sessionContext": {
|
| 2463 |
+
"sessionIssuer": {
|
| 2464 |
+
"type": "Role",
|
| 2465 |
+
"userName": "terraform-staging",
|
| 2466 |
+
"arn": "arn:aws:iam::222222222222:role/terraform-staging",
|
| 2467 |
+
"accountId": "222222222222"
|
| 2468 |
+
}
|
| 2469 |
+
}
|
| 2470 |
+
},
|
| 2471 |
+
"eventTime": "2026-04-08T10:52:40Z",
|
| 2472 |
+
"eventSource": "s3.amazonaws.com",
|
| 2473 |
+
"eventName": "GetBucketAcl",
|
| 2474 |
+
"awsRegion": "us-east-1",
|
| 2475 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2476 |
+
"userAgent": "terraform/1.9.0",
|
| 2477 |
+
"requestParameters": {
|
| 2478 |
+
"bucketName": "prod-invoice-export"
|
| 2479 |
+
},
|
| 2480 |
+
"responseElements": null,
|
| 2481 |
+
"requestID": "req-bg-0165",
|
| 2482 |
+
"eventID": "bg-0165",
|
| 2483 |
+
"readOnly": true,
|
| 2484 |
+
"eventType": "AwsApiCall",
|
| 2485 |
+
"managementEvent": true,
|
| 2486 |
+
"recipientAccountId": "222222222222",
|
| 2487 |
+
"errorCode": null,
|
| 2488 |
+
"lab_event_id": "",
|
| 2489 |
+
"lab_family": "",
|
| 2490 |
+
"change_ticket": "",
|
| 2491 |
+
"split": "development",
|
| 2492 |
+
"incomplete": false
|
| 2493 |
+
},
|
| 2494 |
+
{
|
| 2495 |
+
"eventVersion": "1.09",
|
| 2496 |
+
"userIdentity": {
|
| 2497 |
+
"type": "IAMUser",
|
| 2498 |
+
"principalId": "AIDAIDAVELAB",
|
| 2499 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2500 |
+
"accountId": "111111111111",
|
| 2501 |
+
"userName": "dave"
|
| 2502 |
+
},
|
| 2503 |
+
"eventTime": "2026-04-09T10:06:39Z",
|
| 2504 |
+
"eventSource": "s3.amazonaws.com",
|
| 2505 |
+
"eventName": "GetBucketAcl",
|
| 2506 |
+
"awsRegion": "us-east-1",
|
| 2507 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2508 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2509 |
+
"requestParameters": {
|
| 2510 |
+
"bucketName": "prod-invoice-export"
|
| 2511 |
+
},
|
| 2512 |
+
"responseElements": null,
|
| 2513 |
+
"requestID": "req-bg-0170",
|
| 2514 |
+
"eventID": "bg-0170",
|
| 2515 |
+
"readOnly": true,
|
| 2516 |
+
"eventType": "AwsApiCall",
|
| 2517 |
+
"managementEvent": true,
|
| 2518 |
+
"recipientAccountId": "111111111111",
|
| 2519 |
+
"errorCode": null,
|
| 2520 |
+
"lab_event_id": "",
|
| 2521 |
+
"lab_family": "",
|
| 2522 |
+
"change_ticket": "",
|
| 2523 |
+
"split": "development",
|
| 2524 |
+
"incomplete": false
|
| 2525 |
+
},
|
| 2526 |
+
{
|
| 2527 |
+
"eventVersion": "1.09",
|
| 2528 |
+
"userIdentity": {
|
| 2529 |
+
"type": "IAMUser",
|
| 2530 |
+
"principalId": "AIDAIDAVELAB",
|
| 2531 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2532 |
+
"accountId": "111111111111",
|
| 2533 |
+
"userName": "dave"
|
| 2534 |
+
},
|
| 2535 |
+
"eventTime": "2026-04-09T15:18:08Z",
|
| 2536 |
+
"eventSource": "iam.amazonaws.com",
|
| 2537 |
+
"eventName": "ListUsers",
|
| 2538 |
+
"awsRegion": "us-east-1",
|
| 2539 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2540 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2541 |
+
"requestParameters": {
|
| 2542 |
+
"marker": "lab-read"
|
| 2543 |
+
},
|
| 2544 |
+
"responseElements": null,
|
| 2545 |
+
"requestID": "req-bg-0174",
|
| 2546 |
+
"eventID": "bg-0174",
|
| 2547 |
+
"readOnly": true,
|
| 2548 |
+
"eventType": "AwsApiCall",
|
| 2549 |
+
"managementEvent": true,
|
| 2550 |
+
"recipientAccountId": "111111111111",
|
| 2551 |
+
"errorCode": null,
|
| 2552 |
+
"lab_event_id": "",
|
| 2553 |
+
"lab_family": "",
|
| 2554 |
+
"change_ticket": "",
|
| 2555 |
+
"split": "development",
|
| 2556 |
+
"incomplete": false
|
| 2557 |
+
},
|
| 2558 |
+
{
|
| 2559 |
+
"eventVersion": "1.09",
|
| 2560 |
+
"userIdentity": {
|
| 2561 |
+
"type": "AssumedRole",
|
| 2562 |
+
"principalId": "222222222222:ci-github",
|
| 2563 |
+
"arn": "arn:aws:sts::222222222222:assumed-role/ci-github/session",
|
| 2564 |
+
"accountId": "222222222222",
|
| 2565 |
+
"sessionContext": {
|
| 2566 |
+
"sessionIssuer": {
|
| 2567 |
+
"type": "Role",
|
| 2568 |
+
"userName": "ci-github",
|
| 2569 |
+
"arn": "arn:aws:iam::222222222222:role/ci-github",
|
| 2570 |
+
"accountId": "222222222222"
|
| 2571 |
+
}
|
| 2572 |
+
}
|
| 2573 |
+
},
|
| 2574 |
+
"eventTime": "2026-04-09T13:40:16Z",
|
| 2575 |
+
"eventSource": "iam.amazonaws.com",
|
| 2576 |
+
"eventName": "ListUsers",
|
| 2577 |
+
"awsRegion": "us-east-1",
|
| 2578 |
+
"sourceIPAddress": "198.51.100.20",
|
| 2579 |
+
"userAgent": "terraform/1.9.0",
|
| 2580 |
+
"requestParameters": {
|
| 2581 |
+
"marker": "lab-read"
|
| 2582 |
+
},
|
| 2583 |
+
"responseElements": null,
|
| 2584 |
+
"requestID": "req-bg-0175",
|
| 2585 |
+
"eventID": "bg-0175",
|
| 2586 |
+
"readOnly": true,
|
| 2587 |
+
"eventType": "AwsApiCall",
|
| 2588 |
+
"managementEvent": true,
|
| 2589 |
+
"recipientAccountId": "222222222222",
|
| 2590 |
+
"errorCode": null,
|
| 2591 |
+
"lab_event_id": "",
|
| 2592 |
+
"lab_family": "",
|
| 2593 |
+
"change_ticket": "",
|
| 2594 |
+
"split": "development",
|
| 2595 |
+
"incomplete": false
|
| 2596 |
+
},
|
| 2597 |
+
{
|
| 2598 |
+
"eventVersion": "1.09",
|
| 2599 |
+
"userIdentity": {
|
| 2600 |
+
"type": "IAMUser",
|
| 2601 |
+
"principalId": "AIDAIALICELAB",
|
| 2602 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2603 |
+
"accountId": "111111111111",
|
| 2604 |
+
"userName": "alice"
|
| 2605 |
+
},
|
| 2606 |
+
"eventTime": "2026-04-09T14:36:40Z",
|
| 2607 |
+
"eventSource": "iam.amazonaws.com",
|
| 2608 |
+
"eventName": "ListUsers",
|
| 2609 |
+
"awsRegion": "us-east-1",
|
| 2610 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2611 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2612 |
+
"requestParameters": {
|
| 2613 |
+
"marker": "lab-read"
|
| 2614 |
+
},
|
| 2615 |
+
"responseElements": null,
|
| 2616 |
+
"requestID": "req-bg-0181",
|
| 2617 |
+
"eventID": "bg-0181",
|
| 2618 |
+
"readOnly": true,
|
| 2619 |
+
"eventType": "AwsApiCall",
|
| 2620 |
+
"managementEvent": true,
|
| 2621 |
+
"recipientAccountId": "111111111111",
|
| 2622 |
+
"errorCode": null,
|
| 2623 |
+
"lab_event_id": "",
|
| 2624 |
+
"lab_family": "",
|
| 2625 |
+
"change_ticket": "",
|
| 2626 |
+
"split": "development",
|
| 2627 |
+
"incomplete": false
|
| 2628 |
+
},
|
| 2629 |
+
{
|
| 2630 |
+
"eventVersion": "1.09",
|
| 2631 |
+
"userIdentity": {
|
| 2632 |
+
"type": "IAMUser",
|
| 2633 |
+
"principalId": "AIDAIDAVELAB",
|
| 2634 |
+
"arn": "arn:aws:iam::111111111111:user/dave",
|
| 2635 |
+
"accountId": "111111111111",
|
| 2636 |
+
"userName": "dave"
|
| 2637 |
+
},
|
| 2638 |
+
"eventTime": "2026-04-09T08:33:33Z",
|
| 2639 |
+
"eventSource": "iam.amazonaws.com",
|
| 2640 |
+
"eventName": "ListUsers",
|
| 2641 |
+
"awsRegion": "us-east-1",
|
| 2642 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2643 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2644 |
+
"requestParameters": {
|
| 2645 |
+
"marker": "lab-read"
|
| 2646 |
+
},
|
| 2647 |
+
"responseElements": null,
|
| 2648 |
+
"requestID": "req-bg-0185",
|
| 2649 |
+
"eventID": "bg-0185",
|
| 2650 |
+
"readOnly": true,
|
| 2651 |
+
"eventType": "AwsApiCall",
|
| 2652 |
+
"managementEvent": true,
|
| 2653 |
+
"recipientAccountId": "111111111111",
|
| 2654 |
+
"errorCode": null,
|
| 2655 |
+
"lab_event_id": "",
|
| 2656 |
+
"lab_family": "",
|
| 2657 |
+
"change_ticket": "",
|
| 2658 |
+
"split": "development",
|
| 2659 |
+
"incomplete": false
|
| 2660 |
+
},
|
| 2661 |
+
{
|
| 2662 |
+
"eventVersion": "1.09",
|
| 2663 |
+
"userIdentity": {
|
| 2664 |
+
"type": "IAMUser",
|
| 2665 |
+
"principalId": "AIDAIBOBLAB",
|
| 2666 |
+
"arn": "arn:aws:iam::222222222222:user/bob",
|
| 2667 |
+
"accountId": "222222222222",
|
| 2668 |
+
"userName": "bob"
|
| 2669 |
+
},
|
| 2670 |
+
"eventTime": "2026-04-10T14:04:07Z",
|
| 2671 |
+
"eventSource": "iam.amazonaws.com",
|
| 2672 |
+
"eventName": "ListUsers",
|
| 2673 |
+
"awsRegion": "us-east-1",
|
| 2674 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2675 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2676 |
+
"requestParameters": {
|
| 2677 |
+
"marker": "lab-read"
|
| 2678 |
+
},
|
| 2679 |
+
"responseElements": null,
|
| 2680 |
+
"requestID": "req-bg-0190",
|
| 2681 |
+
"eventID": "bg-0190",
|
| 2682 |
+
"readOnly": true,
|
| 2683 |
+
"eventType": "AwsApiCall",
|
| 2684 |
+
"managementEvent": true,
|
| 2685 |
+
"recipientAccountId": "222222222222",
|
| 2686 |
+
"errorCode": null,
|
| 2687 |
+
"lab_event_id": "",
|
| 2688 |
+
"lab_family": "",
|
| 2689 |
+
"change_ticket": "",
|
| 2690 |
+
"split": "test",
|
| 2691 |
+
"incomplete": false
|
| 2692 |
+
},
|
| 2693 |
+
{
|
| 2694 |
+
"eventVersion": "1.09",
|
| 2695 |
+
"userIdentity": {
|
| 2696 |
+
"type": "IAMUser",
|
| 2697 |
+
"principalId": "AIDAIALICELAB",
|
| 2698 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2699 |
+
"accountId": "111111111111",
|
| 2700 |
+
"userName": "alice"
|
| 2701 |
+
},
|
| 2702 |
+
"eventTime": "2026-04-10T17:24:17Z",
|
| 2703 |
+
"eventSource": "iam.amazonaws.com",
|
| 2704 |
+
"eventName": "ListUsers",
|
| 2705 |
+
"awsRegion": "us-east-1",
|
| 2706 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2707 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2708 |
+
"requestParameters": {
|
| 2709 |
+
"marker": "lab-read"
|
| 2710 |
+
},
|
| 2711 |
+
"responseElements": null,
|
| 2712 |
+
"requestID": "req-bg-0191",
|
| 2713 |
+
"eventID": "bg-0191",
|
| 2714 |
+
"readOnly": true,
|
| 2715 |
+
"eventType": "AwsApiCall",
|
| 2716 |
+
"managementEvent": true,
|
| 2717 |
+
"recipientAccountId": "111111111111",
|
| 2718 |
+
"errorCode": null,
|
| 2719 |
+
"lab_event_id": "",
|
| 2720 |
+
"lab_family": "",
|
| 2721 |
+
"change_ticket": "",
|
| 2722 |
+
"split": "test",
|
| 2723 |
+
"incomplete": false
|
| 2724 |
+
},
|
| 2725 |
+
{
|
| 2726 |
+
"eventVersion": "1.09",
|
| 2727 |
+
"userIdentity": {
|
| 2728 |
+
"type": "IAMUser",
|
| 2729 |
+
"principalId": "AIDAICAROLLAB",
|
| 2730 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 2731 |
+
"accountId": "333333333333",
|
| 2732 |
+
"userName": "carol"
|
| 2733 |
+
},
|
| 2734 |
+
"eventTime": "2026-04-10T13:11:00Z",
|
| 2735 |
+
"eventSource": "iam.amazonaws.com",
|
| 2736 |
+
"eventName": "ListUsers",
|
| 2737 |
+
"awsRegion": "us-east-1",
|
| 2738 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2739 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2740 |
+
"requestParameters": {
|
| 2741 |
+
"marker": "lab-read"
|
| 2742 |
+
},
|
| 2743 |
+
"responseElements": null,
|
| 2744 |
+
"requestID": "req-bg-0194",
|
| 2745 |
+
"eventID": "bg-0194",
|
| 2746 |
+
"readOnly": true,
|
| 2747 |
+
"eventType": "AwsApiCall",
|
| 2748 |
+
"managementEvent": true,
|
| 2749 |
+
"recipientAccountId": "333333333333",
|
| 2750 |
+
"errorCode": null,
|
| 2751 |
+
"lab_event_id": "",
|
| 2752 |
+
"lab_family": "",
|
| 2753 |
+
"change_ticket": "",
|
| 2754 |
+
"split": "test",
|
| 2755 |
+
"incomplete": false
|
| 2756 |
+
},
|
| 2757 |
+
{
|
| 2758 |
+
"eventVersion": "1.09",
|
| 2759 |
+
"userIdentity": {
|
| 2760 |
+
"type": "IAMUser",
|
| 2761 |
+
"principalId": "AIDAICAROLLAB",
|
| 2762 |
+
"arn": "arn:aws:iam::333333333333:user/carol",
|
| 2763 |
+
"accountId": "333333333333",
|
| 2764 |
+
"userName": "carol"
|
| 2765 |
+
},
|
| 2766 |
+
"eventTime": "2026-04-11T13:35:42Z",
|
| 2767 |
+
"eventSource": "iam.amazonaws.com",
|
| 2768 |
+
"eventName": "ListUsers",
|
| 2769 |
+
"awsRegion": "us-east-1",
|
| 2770 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2771 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2772 |
+
"requestParameters": {
|
| 2773 |
+
"marker": "lab-read"
|
| 2774 |
+
},
|
| 2775 |
+
"responseElements": null,
|
| 2776 |
+
"requestID": "req-bg-0211",
|
| 2777 |
+
"eventID": "bg-0211",
|
| 2778 |
+
"readOnly": true,
|
| 2779 |
+
"eventType": "AwsApiCall",
|
| 2780 |
+
"managementEvent": true,
|
| 2781 |
+
"recipientAccountId": "333333333333",
|
| 2782 |
+
"errorCode": null,
|
| 2783 |
+
"lab_event_id": "",
|
| 2784 |
+
"lab_family": "",
|
| 2785 |
+
"change_ticket": "",
|
| 2786 |
+
"split": "test",
|
| 2787 |
+
"incomplete": false
|
| 2788 |
+
},
|
| 2789 |
+
{
|
| 2790 |
+
"eventVersion": "1.09",
|
| 2791 |
+
"userIdentity": {
|
| 2792 |
+
"type": "IAMUser",
|
| 2793 |
+
"principalId": "AIDAIALICELAB",
|
| 2794 |
+
"arn": "arn:aws:iam::111111111111:user/alice",
|
| 2795 |
+
"accountId": "111111111111",
|
| 2796 |
+
"userName": "alice"
|
| 2797 |
+
},
|
| 2798 |
+
"eventTime": "2026-04-11T10:35:34Z",
|
| 2799 |
+
"eventSource": "s3.amazonaws.com",
|
| 2800 |
+
"eventName": "GetBucketAcl",
|
| 2801 |
+
"awsRegion": "us-east-1",
|
| 2802 |
+
"sourceIPAddress": "203.0.113.10",
|
| 2803 |
+
"userAgent": "aws-cli/2.15.0",
|
| 2804 |
+
"requestParameters": {
|
| 2805 |
+
"bucketName": "prod-invoice-export"
|
| 2806 |
+
},
|
| 2807 |
+
"responseElements": null,
|
| 2808 |
+
"requestID": "req-bg-0216",
|
| 2809 |
+
"eventID": "bg-0216",
|
| 2810 |
+
"readOnly": true,
|
| 2811 |
+
"eventType": "AwsApiCall",
|
| 2812 |
+
"managementEvent": true,
|
| 2813 |
+
"recipientAccountId": "111111111111",
|
| 2814 |
+
"errorCode": null,
|
| 2815 |
+
"lab_event_id": "",
|
| 2816 |
+
"lab_family": "",
|
| 2817 |
+
"change_ticket": "",
|
| 2818 |
+
"split": "test",
|
| 2819 |
+
"incomplete": false
|
| 2820 |
+
}
|
| 2821 |
+
]
|
| 2822 |
+
}
|
demo/examples/gold_events.json
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"event_id": "EVT-MAINT-DEV-01",
|
| 4 |
+
"account_alias": "acct_staging",
|
| 5 |
+
"actor_alias": "role_terraform-staging",
|
| 6 |
+
"start": "2026-04-05T02:15:00Z",
|
| 7 |
+
"end": "2026-04-05T02:16:00Z",
|
| 8 |
+
"family": "benign_maintenance",
|
| 9 |
+
"split": "development",
|
| 10 |
+
"change_type": "iam_privilege_grant",
|
| 11 |
+
"note": "Sunday staging window. Terraform attaches a job role policy with ticket CHG-4411."
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"event_id": "EVT-SG-SAFE-DEV-01",
|
| 15 |
+
"account_alias": "acct_staging",
|
| 16 |
+
"actor_alias": "role_terraform-staging",
|
| 17 |
+
"start": "2026-04-05T02:40:00Z",
|
| 18 |
+
"end": "2026-04-05T02:41:00Z",
|
| 19 |
+
"family": "benign_restricted_sg",
|
| 20 |
+
"split": "development",
|
| 21 |
+
"change_type": "security_group_ingress",
|
| 22 |
+
"note": "Maintenance SG ingress from 10.0.0.0/8, not 0.0.0.0/0."
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"event_id": "EVT-IAM-DEV-01",
|
| 26 |
+
"account_alias": "acct_prod",
|
| 27 |
+
"actor_alias": "usr_alice",
|
| 28 |
+
"start": "2026-04-03T03:12:00Z",
|
| 29 |
+
"end": "2026-04-03T03:13:00Z",
|
| 30 |
+
"family": "needs_review_iam_escalation",
|
| 31 |
+
"split": "development",
|
| 32 |
+
"change_type": "iam_privilege_grant",
|
| 33 |
+
"note": "Off-hours AttachUserPolicy AdministratorAccess on prod."
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"event_id": "EVT-S3-DEV-01",
|
| 37 |
+
"account_alias": "acct_prod",
|
| 38 |
+
"actor_alias": "usr_bob",
|
| 39 |
+
"start": "2026-04-04T14:22:00Z",
|
| 40 |
+
"end": "2026-04-04T14:23:00Z",
|
| 41 |
+
"family": "needs_review_public_exposure",
|
| 42 |
+
"split": "development",
|
| 43 |
+
"change_type": "s3_public_exposure",
|
| 44 |
+
"note": "DeletePublicAccessBlock on a prod bucket. That is a request, not proven current exposure."
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"event_id": "EVT-SG-OPEN-DEV-01",
|
| 48 |
+
"account_alias": "acct_prod",
|
| 49 |
+
"actor_alias": "usr_alice",
|
| 50 |
+
"start": "2026-04-03T18:00:00Z",
|
| 51 |
+
"end": "2026-04-03T18:01:00Z",
|
| 52 |
+
"family": "needs_review_public_exposure",
|
| 53 |
+
"split": "development",
|
| 54 |
+
"change_type": "security_group_ingress",
|
| 55 |
+
"note": "AuthorizeSecurityGroupIngress 0.0.0.0/0 on prod."
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"event_id": "EVT-TRAIL-DEV-01",
|
| 59 |
+
"account_alias": "acct_prod",
|
| 60 |
+
"actor_alias": "usr_carol",
|
| 61 |
+
"start": "2026-04-06T01:05:00Z",
|
| 62 |
+
"end": "2026-04-06T01:06:00Z",
|
| 63 |
+
"family": "needs_review_logging_disable",
|
| 64 |
+
"split": "development",
|
| 65 |
+
"change_type": "trail_logging_change",
|
| 66 |
+
"note": "Contractor StopLogging on the prod trail."
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"event_id": "EVT-ROOT-DEV-01",
|
| 70 |
+
"account_alias": "acct_prod",
|
| 71 |
+
"actor_alias": "root_lab",
|
| 72 |
+
"start": "2026-04-07T09:00:00Z",
|
| 73 |
+
"end": "2026-04-07T09:01:00Z",
|
| 74 |
+
"family": "needs_review_root",
|
| 75 |
+
"split": "development",
|
| 76 |
+
"change_type": "root_activity",
|
| 77 |
+
"note": "Root console login."
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"event_id": "EVT-TRUST-DEV-01",
|
| 81 |
+
"account_alias": "acct_prod",
|
| 82 |
+
"actor_alias": "usr_dave",
|
| 83 |
+
"start": "2026-04-08T16:10:00Z",
|
| 84 |
+
"end": "2026-04-08T16:11:00Z",
|
| 85 |
+
"family": "needs_review_trust_wildcard",
|
| 86 |
+
"split": "development",
|
| 87 |
+
"change_type": "role_trust_change",
|
| 88 |
+
"note": "UpdateAssumeRolePolicy with Principal *."
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"event_id": "EVT-KEY-DEV-01",
|
| 92 |
+
"account_alias": "acct_staging",
|
| 93 |
+
"actor_alias": "usr_bob",
|
| 94 |
+
"start": "2026-04-07T11:20:00Z",
|
| 95 |
+
"end": "2026-04-07T11:21:00Z",
|
| 96 |
+
"family": "needs_review_iam_escalation",
|
| 97 |
+
"split": "development",
|
| 98 |
+
"change_type": "iam_credential_create",
|
| 99 |
+
"note": "CreateAccessKey for a staging user during business hours."
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"event_id": "EVT-INSUFF-DEV-01",
|
| 103 |
+
"account_alias": "acct_prod",
|
| 104 |
+
"actor_alias": "usr_bob",
|
| 105 |
+
"start": "2026-04-02T11:00:00Z",
|
| 106 |
+
"end": "2026-04-02T11:01:00Z",
|
| 107 |
+
"family": "insufficient_evidence",
|
| 108 |
+
"split": "development",
|
| 109 |
+
"change_type": "s3_public_exposure",
|
| 110 |
+
"note": "PutBucketPolicy without requestParameters. Before/after unknown."
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"event_id": "EVT-MAINT-01",
|
| 114 |
+
"account_alias": "acct_staging",
|
| 115 |
+
"actor_alias": "role_terraform-staging",
|
| 116 |
+
"start": "2026-04-12T02:20:00Z",
|
| 117 |
+
"end": "2026-04-12T02:21:00Z",
|
| 118 |
+
"family": "benign_maintenance",
|
| 119 |
+
"split": "test",
|
| 120 |
+
"change_type": "iam_privilege_grant",
|
| 121 |
+
"note": "Held-out Sunday staging terraform AttachRolePolicy with CHG-4411."
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"event_id": "EVT-SG-SAFE-01",
|
| 125 |
+
"account_alias": "acct_staging",
|
| 126 |
+
"actor_alias": "role_terraform-staging",
|
| 127 |
+
"start": "2026-04-12T03:05:00Z",
|
| 128 |
+
"end": "2026-04-12T03:06:00Z",
|
| 129 |
+
"family": "benign_restricted_sg",
|
| 130 |
+
"split": "test",
|
| 131 |
+
"change_type": "security_group_ingress",
|
| 132 |
+
"note": "Held-out restricted SG during the approved window."
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"event_id": "EVT-IAM-01",
|
| 136 |
+
"account_alias": "acct_prod",
|
| 137 |
+
"actor_alias": "usr_alice",
|
| 138 |
+
"start": "2026-04-11T02:48:00Z",
|
| 139 |
+
"end": "2026-04-11T02:49:00Z",
|
| 140 |
+
"family": "needs_review_iam_escalation",
|
| 141 |
+
"split": "test",
|
| 142 |
+
"change_type": "iam_privilege_grant",
|
| 143 |
+
"note": "Held-out off-hours AdministratorAccess attach on prod."
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"event_id": "EVT-S3-01",
|
| 147 |
+
"account_alias": "acct_prod",
|
| 148 |
+
"actor_alias": "usr_bob",
|
| 149 |
+
"start": "2026-04-11T15:30:00Z",
|
| 150 |
+
"end": "2026-04-11T15:31:00Z",
|
| 151 |
+
"family": "needs_review_public_exposure",
|
| 152 |
+
"split": "test",
|
| 153 |
+
"change_type": "s3_public_exposure",
|
| 154 |
+
"note": "Held-out DeletePublicAccessBlock."
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"event_id": "EVT-SG-OPEN-01",
|
| 158 |
+
"account_alias": "acct_prod",
|
| 159 |
+
"actor_alias": "usr_bob",
|
| 160 |
+
"start": "2026-04-11T18:20:00Z",
|
| 161 |
+
"end": "2026-04-11T18:21:00Z",
|
| 162 |
+
"family": "needs_review_public_exposure",
|
| 163 |
+
"split": "test",
|
| 164 |
+
"change_type": "security_group_ingress",
|
| 165 |
+
"note": "Held-out 0.0.0.0/0 security group ingress."
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"event_id": "EVT-TRAIL-01",
|
| 169 |
+
"account_alias": "acct_prod",
|
| 170 |
+
"actor_alias": "usr_carol",
|
| 171 |
+
"start": "2026-04-13T00:40:00Z",
|
| 172 |
+
"end": "2026-04-13T00:41:00Z",
|
| 173 |
+
"family": "needs_review_logging_disable",
|
| 174 |
+
"split": "test",
|
| 175 |
+
"change_type": "trail_logging_change",
|
| 176 |
+
"note": "Held-out StopLogging."
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"event_id": "EVT-ROOT-01",
|
| 180 |
+
"account_alias": "acct_prod",
|
| 181 |
+
"actor_alias": "root_lab",
|
| 182 |
+
"start": "2026-04-13T10:15:00Z",
|
| 183 |
+
"end": "2026-04-13T10:16:00Z",
|
| 184 |
+
"family": "needs_review_root",
|
| 185 |
+
"split": "test",
|
| 186 |
+
"change_type": "root_activity",
|
| 187 |
+
"note": "Held-out root CreateAccessKey."
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"event_id": "EVT-TRUST-01",
|
| 191 |
+
"account_alias": "acct_prod",
|
| 192 |
+
"actor_alias": "usr_dave",
|
| 193 |
+
"start": "2026-04-14T11:20:00Z",
|
| 194 |
+
"end": "2026-04-14T11:21:00Z",
|
| 195 |
+
"family": "needs_review_trust_wildcard",
|
| 196 |
+
"split": "test",
|
| 197 |
+
"change_type": "role_trust_change",
|
| 198 |
+
"note": "Held-out wildcard trust policy."
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"event_id": "EVT-GD-01",
|
| 202 |
+
"account_alias": "acct_prod",
|
| 203 |
+
"actor_alias": "usr_alice",
|
| 204 |
+
"start": "2026-04-14T01:10:00Z",
|
| 205 |
+
"end": "2026-04-14T01:11:00Z",
|
| 206 |
+
"family": "needs_review_logging_disable",
|
| 207 |
+
"split": "test",
|
| 208 |
+
"change_type": "detector_disable",
|
| 209 |
+
"note": "Held-out GuardDuty UpdateDetector Enable=false."
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"event_id": "EVT-KEY-01",
|
| 213 |
+
"account_alias": "acct_staging",
|
| 214 |
+
"actor_alias": "usr_bob",
|
| 215 |
+
"start": "2026-04-12T11:40:00Z",
|
| 216 |
+
"end": "2026-04-12T11:41:00Z",
|
| 217 |
+
"family": "needs_review_iam_escalation",
|
| 218 |
+
"split": "test",
|
| 219 |
+
"change_type": "iam_credential_create",
|
| 220 |
+
"note": "Held-out CreateAccessKey. Medium severity; should drop at a high T."
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"event_id": "EVT-INSUFF-01",
|
| 224 |
+
"account_alias": "acct_prod",
|
| 225 |
+
"actor_alias": "usr_bob",
|
| 226 |
+
"start": "2026-04-10T13:00:00Z",
|
| 227 |
+
"end": "2026-04-10T13:01:00Z",
|
| 228 |
+
"family": "insufficient_evidence",
|
| 229 |
+
"split": "test",
|
| 230 |
+
"change_type": "s3_public_exposure",
|
| 231 |
+
"note": "Held-out PutBucketAcl without requestParameters."
|
| 232 |
+
}
|
| 233 |
+
]
|
demo/examples/protocol.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AriaCloudTrail laboratory protocol
|
| 2 |
+
|
| 3 |
+
Synthetic AWS CloudTrail management events, seed 16, three lab accounts.
|
| 4 |
+
Account IDs 111111111111 / 222222222222 / 333333333333 are aliases for prod/staging/sandbox.
|
| 5 |
+
No live cloud credentials, no configuration changes, no network calls to AWS.
|
| 6 |
+
|
| 7 |
+
Gold `needs_review_*` ranges are authored sensitive changes. Sunday 02:00-06:00 UTC on staging with ticket CHG-4411 is approved maintenance.
|
| 8 |
+
Before/after is only claimed when both events exist in the export. A single Put/Delete does not prove current exposure.
|
| 9 |
+
|
| 10 |
+
Split is by period (test starts 2026-04-10) and account. Rows of one authored event stay together.
|
demo/examples/ruleset.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"maintenance": {
|
| 3 |
+
"account": "acct_staging",
|
| 4 |
+
"actor": "role_terraform-staging",
|
| 5 |
+
"ticket": "CHG-4411",
|
| 6 |
+
"window": "Sunday 02:00-06:00 UTC",
|
| 7 |
+
"allowed": [
|
| 8 |
+
"iam_privilege_grant",
|
| 9 |
+
"security_group_ingress"
|
| 10 |
+
],
|
| 11 |
+
"forbidden": [
|
| 12 |
+
"AdministratorAccess",
|
| 13 |
+
"0.0.0.0/0",
|
| 14 |
+
"root"
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"event_map_count": 28
|
| 18 |
+
}
|
demo/examples/sample_preview.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "ariact-18b781e709479f28",
|
| 3 |
+
"status": "ready",
|
| 4 |
+
"status_label": "Changes ready for review \u00b7 Live parse, ruleset, role/time baseline, and limited correlation",
|
| 5 |
+
"kpis": {
|
| 6 |
+
"n_raw": 319,
|
| 7 |
+
"n_valid": 319,
|
| 8 |
+
"n_dropped": 0,
|
| 9 |
+
"n_changes": 23,
|
| 10 |
+
"n_security_review": 14,
|
| 11 |
+
"n_context": 4,
|
| 12 |
+
"n_incomplete": 3,
|
| 13 |
+
"parse_coverage": 1.0,
|
| 14 |
+
"event_recall": 1.0,
|
| 15 |
+
"precision_at_k": 1.0,
|
| 16 |
+
"false_alarms_per_account_day": 0.0,
|
| 17 |
+
"change_type_accuracy": 1.0,
|
| 18 |
+
"maintenance_as_security": 0,
|
| 19 |
+
"ungrounded_claims": 0,
|
| 20 |
+
"seconds": 1.275,
|
| 21 |
+
"threshold": 3.0,
|
| 22 |
+
"model_names": "rules+baseline+correlation",
|
| 23 |
+
"daily_capacity": 8
|
| 24 |
+
},
|
| 25 |
+
"kpi_html": "<div class='kpi-grid'><article class='kpi-card'><p class='kpi-label'>Needs security review</p><p class='kpi-value'>14</p><p class='kpi-sub'>4 context changes</p></article><article class='kpi-card'><p class='kpi-label'>Parse coverage</p><p class='kpi-value'>100%</p><p class='kpi-sub'>319/319</p></article><article class='kpi-card'><p class='kpi-label'>Insufficient rows</p><p class='kpi-value'>3</p><p class='kpi-sub'>missing time/event or request body</p></article><article class='kpi-card'><p class='kpi-label'>Test event recall</p><p class='kpi-value'>100%</p><p class='kpi-sub'>rule-severity baseline: 1.0</p></article><article class='kpi-card'><p class='kpi-label'>Precision @ 8/day</p><p class='kpi-value'>100%</p><p class='kpi-sub'>held-out daily review capacity</p></article><article class='kpi-card'><p class='kpi-label'>Change-type accuracy</p><p class='kpi-value'>100%</p><p class='kpi-sub'>gold eventName mapping</p></article><article class='kpi-card'><p class='kpi-label'>False alarms / account-day</p><p class='kpi-value'>0.000</p><p class='kpi-sub'>security-review without a review label</p></article><article class='kpi-card'><p class='kpi-label'>Analyze time</p><p class='kpi-value'>1.3s</p><p class='kpi-sub'>T=3.0</p></article></div>",
|
| 26 |
+
"validation_ok": true,
|
| 27 |
+
"precomputed": true
|
| 28 |
+
}
|
demo/examples/schema.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_id": "ariacloudtrail.change_event.v1",
|
| 3 |
+
"required_after_parse": [
|
| 4 |
+
"timestamp",
|
| 5 |
+
"event_name"
|
| 6 |
+
],
|
| 7 |
+
"cloudtrail_fields": [
|
| 8 |
+
"eventTime",
|
| 9 |
+
"eventName",
|
| 10 |
+
"eventSource",
|
| 11 |
+
"userIdentity",
|
| 12 |
+
"recipientAccountId"
|
| 13 |
+
],
|
| 14 |
+
"timezone": "UTC",
|
| 15 |
+
"null_meaning": "missing field, not a safe default",
|
| 16 |
+
"change_types": [
|
| 17 |
+
"iam_privilege_grant",
|
| 18 |
+
"iam_credential_create",
|
| 19 |
+
"security_group_ingress",
|
| 20 |
+
"s3_public_exposure",
|
| 21 |
+
"trail_logging_change",
|
| 22 |
+
"kms_control_change",
|
| 23 |
+
"root_activity",
|
| 24 |
+
"instance_exposure",
|
| 25 |
+
"role_trust_change",
|
| 26 |
+
"detector_disable"
|
| 27 |
+
]
|
| 28 |
+
}
|
demo/examples/splits.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"development": "2026-04-01T00:00:00Z/2026-04-10T00:00:00Z",
|
| 3 |
+
"test": "2026-04-10T00:00:00Z/2026-04-15T00:00:00Z",
|
| 4 |
+
"group": "account and period; one authored event stays in one split",
|
| 5 |
+
"service_principals": "AssumedRole actors are modeled separately from IAM users",
|
| 6 |
+
"history": "before/after and burst counts use only earlier events"
|
| 7 |
+
}
|
demo/requirements.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
|
| 6 |
+
from src.domain import (
|
| 7 |
+
SEVERITY_WEIGHT,
|
| 8 |
+
AlertClass,
|
| 9 |
+
ChangeType,
|
| 10 |
+
Confidence,
|
| 11 |
+
Method,
|
| 12 |
+
Tag,
|
| 13 |
+
Workflow,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def _score_row(row: pd.Series) -> float:
|
| 18 |
+
score = float(SEVERITY_WEIGHT.get(str(row.get("severity") or "low"), 1.8))
|
| 19 |
+
if bool(row.get("cidr_open")) or bool(row.get("policy_public")) or bool(row.get("logging_off")):
|
| 20 |
+
score += 1.0
|
| 21 |
+
if bool(row.get("detector_off")) or bool(row.get("wildcard_trust")) or str(row.get("actor_kind")) == "root":
|
| 22 |
+
score += 1.0
|
| 23 |
+
if bool(row.get("admin_policy")):
|
| 24 |
+
score += 1.0
|
| 25 |
+
if float(row.get("unusual_hour") or 0) >= 1:
|
| 26 |
+
score += 0.8
|
| 27 |
+
score += 0.4 * min(float(row.get("burst_count") or 0), 3)
|
| 28 |
+
if bool(row.get("in_maintenance")):
|
| 29 |
+
score -= 2.5
|
| 30 |
+
if bool(row.get("hardening")):
|
| 31 |
+
score -= 2.0
|
| 32 |
+
return round(score, 3)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def score_changes(frame: pd.DataFrame) -> pd.DataFrame:
|
| 36 |
+
out = frame.copy()
|
| 37 |
+
if out.empty:
|
| 38 |
+
out["score"] = []
|
| 39 |
+
return out
|
| 40 |
+
out["score"] = [_score_row(row) for row in out.to_dict(orient="records")]
|
| 41 |
+
return out
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _tag_for(row: pd.Series) -> Tag:
|
| 45 |
+
if bool(row.get("incomplete")):
|
| 46 |
+
return Tag.INCOMPLETE
|
| 47 |
+
if bool(row.get("in_maintenance")):
|
| 48 |
+
return Tag.MAINTENANCE
|
| 49 |
+
if str(row.get("actor_kind")) == "root" or row.get("change_type") == ChangeType.ROOT_ACTIVITY.value:
|
| 50 |
+
return Tag.ROOT
|
| 51 |
+
if bool(row.get("wildcard_trust")):
|
| 52 |
+
return Tag.TRUST
|
| 53 |
+
if bool(row.get("logging_off")):
|
| 54 |
+
return Tag.TRAIL_STOP
|
| 55 |
+
if bool(row.get("detector_off")):
|
| 56 |
+
return Tag.DETECTOR
|
| 57 |
+
if bool(row.get("policy_public")):
|
| 58 |
+
return Tag.PUBLIC_S3
|
| 59 |
+
if bool(row.get("cidr_open")):
|
| 60 |
+
return Tag.OPEN_SG
|
| 61 |
+
if row.get("change_type") == ChangeType.SECURITY_GROUP_INGRESS.value:
|
| 62 |
+
return Tag.RESTRICTED_SG
|
| 63 |
+
if bool(row.get("admin_policy")) or row.get("change_type") == ChangeType.IAM_PRIVILEGE_GRANT.value:
|
| 64 |
+
return Tag.IAM_ESCALATION
|
| 65 |
+
if row.get("change_type") == ChangeType.IAM_CREDENTIAL_CREATE.value:
|
| 66 |
+
return Tag.ACCESS_KEY
|
| 67 |
+
if row.get("change_type") == ChangeType.KMS_CONTROL_CHANGE.value:
|
| 68 |
+
return Tag.KMS
|
| 69 |
+
if row.get("change_type") == ChangeType.INSTANCE_EXPOSURE.value:
|
| 70 |
+
return Tag.EIP
|
| 71 |
+
if float(row.get("burst_count") or 0) >= 3:
|
| 72 |
+
return Tag.BURST
|
| 73 |
+
if float(row.get("unusual_hour") or 0) >= 1:
|
| 74 |
+
return Tag.UNUSUAL_HOUR
|
| 75 |
+
return Tag.NONE
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
def apply_detectors(frame: pd.DataFrame, threshold: float) -> pd.DataFrame:
|
| 79 |
+
out = score_changes(frame)
|
| 80 |
+
if out.empty:
|
| 81 |
+
for column in ("tag", "alert_class", "confidence", "workflow", "methods_fired", "finding_id"):
|
| 82 |
+
out[column] = []
|
| 83 |
+
return out
|
| 84 |
+
tags = []
|
| 85 |
+
alerts = []
|
| 86 |
+
confidences = []
|
| 87 |
+
workflows = []
|
| 88 |
+
methods = []
|
| 89 |
+
for row in out.to_dict(orient="records"):
|
| 90 |
+
series = pd.Series(row)
|
| 91 |
+
tag = _tag_for(series)
|
| 92 |
+
incomplete = bool(row.get("incomplete"))
|
| 93 |
+
maintenance = bool(row.get("in_maintenance"))
|
| 94 |
+
hardening = bool(row.get("hardening"))
|
| 95 |
+
sensitive = str(row.get("change_type") or "none") != "none" and not hardening
|
| 96 |
+
score = float(row.get("score") or 0)
|
| 97 |
+
if incomplete and sensitive:
|
| 98 |
+
alert = AlertClass.INSUFFICIENT.value
|
| 99 |
+
workflow = Workflow.INSUFFICIENT.value
|
| 100 |
+
confidence = Confidence.LOW.value
|
| 101 |
+
elif maintenance:
|
| 102 |
+
alert = AlertClass.CONTEXT.value
|
| 103 |
+
workflow = Workflow.CONTEXT_ONLY.value
|
| 104 |
+
confidence = Confidence.MEDIUM.value
|
| 105 |
+
elif hardening:
|
| 106 |
+
alert = AlertClass.NONE.value
|
| 107 |
+
workflow = Workflow.CLEAR.value
|
| 108 |
+
confidence = Confidence.LOW.value
|
| 109 |
+
elif sensitive and score >= threshold:
|
| 110 |
+
alert = AlertClass.SECURITY_REVIEW.value
|
| 111 |
+
workflow = Workflow.NEEDS_REVIEW.value
|
| 112 |
+
confidence = Confidence.HIGH.value if score >= threshold + 1 else Confidence.MEDIUM.value
|
| 113 |
+
elif sensitive:
|
| 114 |
+
alert = AlertClass.CONTEXT.value
|
| 115 |
+
workflow = Workflow.CONTEXT_ONLY.value
|
| 116 |
+
confidence = Confidence.LOW.value
|
| 117 |
+
else:
|
| 118 |
+
alert = AlertClass.NONE.value
|
| 119 |
+
workflow = Workflow.CLEAR.value
|
| 120 |
+
confidence = Confidence.LOW.value
|
| 121 |
+
fired = []
|
| 122 |
+
if sensitive:
|
| 123 |
+
fired.append(Method.RULE_SEVERITY.value)
|
| 124 |
+
if float(row.get("unusual_hour") or 0) >= 1 and sensitive:
|
| 125 |
+
fired.append(Method.ROLE_TIME.value)
|
| 126 |
+
if float(row.get("burst_count") or 0) >= 2 or (float(row.get("has_before") or 0) >= 1 and float(row.get("has_after") or 0) >= 1):
|
| 127 |
+
if sensitive:
|
| 128 |
+
fired.append(Method.CORRELATION.value)
|
| 129 |
+
if maintenance or (sensitive and not incomplete):
|
| 130 |
+
fired.append(Method.MAINTENANCE_AWARE.value)
|
| 131 |
+
if alert != AlertClass.NONE.value:
|
| 132 |
+
fired.append(Method.ARIACLOUDTRAIL.value)
|
| 133 |
+
tags.append(tag.value)
|
| 134 |
+
alerts.append(alert)
|
| 135 |
+
confidences.append(confidence)
|
| 136 |
+
workflows.append(workflow)
|
| 137 |
+
methods.append(",".join(dict.fromkeys(fired)))
|
| 138 |
+
out["tag"] = tags
|
| 139 |
+
out["alert_class"] = alerts
|
| 140 |
+
out["confidence"] = confidences
|
| 141 |
+
out["workflow"] = workflows
|
| 142 |
+
out["methods_fired"] = methods
|
| 143 |
+
out["finding_id"] = [f"chg-{str(item)[:12]}" for item in out["event_id"].astype(str)]
|
| 144 |
+
return out
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
def method_flags(frame: pd.DataFrame, method: str, threshold: float) -> pd.Series:
|
| 148 |
+
if frame.empty:
|
| 149 |
+
return pd.Series(dtype=bool)
|
| 150 |
+
sensitive = frame["change_type"].ne("none") & ~frame["hardening"].astype(bool)
|
| 151 |
+
if method == Method.RULE_SEVERITY.value:
|
| 152 |
+
return sensitive
|
| 153 |
+
if method == Method.ROLE_TIME.value:
|
| 154 |
+
return sensitive & (frame["unusual_hour"] >= 1)
|
| 155 |
+
if method == Method.CORRELATION.value:
|
| 156 |
+
paired = (frame["has_before"] >= 1) & (frame["has_after"] >= 1)
|
| 157 |
+
return sensitive & ((frame["burst_count"] >= 2) | paired)
|
| 158 |
+
if method == Method.MAINTENANCE_AWARE.value:
|
| 159 |
+
return sensitive & ~frame["in_maintenance"].astype(bool) & ~frame["incomplete"].astype(bool)
|
| 160 |
+
return frame["alert_class"].eq(AlertClass.SECURITY_REVIEW.value)
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
def ungrounded_claim_count(frame: pd.DataFrame) -> int:
|
| 164 |
+
if frame.empty:
|
| 165 |
+
return 0
|
| 166 |
+
review = frame.loc[frame["alert_class"].eq(AlertClass.SECURITY_REVIEW.value)]
|
| 167 |
+
if review.empty:
|
| 168 |
+
return 0
|
| 169 |
+
missing_evidence = review["event_id"].astype(str).eq("")
|
| 170 |
+
claimed_both = (review["before_state"].eq("known") & review["after_state"].eq("known"))
|
| 171 |
+
actually_missing = (review["has_before"] < 1) | (review["has_after"] < 1)
|
| 172 |
+
overclaim = claimed_both & actually_missing
|
| 173 |
+
return int((missing_evidence | overclaim).sum())
|
demo/src/domain.py
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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riaCloudTrail"
|
| 6 |
+
CODE_VERSION = "1.0.0"
|
| 7 |
+
SCHEMA_ID = "ariacloudtrail.change_event.v1"
|
| 8 |
+
SNAPSHOT_ID = "lab-cloudtrail-2026-04-01"
|
| 9 |
+
DEFAULT_SEED = 16
|
| 10 |
+
MAX_EVENTS = 20_000
|
| 11 |
+
MAX_BYTES = 10 * 1024 * 1024
|
| 12 |
+
MAX_UI_ROWS = 400
|
| 13 |
+
MIN_VALID_EVENTS = 80
|
| 14 |
+
DEFAULT_THRESHOLD = 3.0
|
| 15 |
+
DAILY_REVIEW_CAPACITY = 8
|
| 16 |
+
BURST_WINDOW_MINUTES = 15
|
| 17 |
+
TEST_START_ISO = "2026-04-10T00:00:00Z"
|
| 18 |
+
MAINTENANCE_TICKET = "CHG-4411"
|
| 19 |
+
MAINTENANCE_ACCOUNT = "acct_staging"
|
| 20 |
+
MAINTENANCE_ACTOR = "role_terraform-staging"
|
| 21 |
+
|
| 22 |
+
FEATURE_COLUMNS = (
|
| 23 |
+
"severity_weight",
|
| 24 |
+
"unusual_hour",
|
| 25 |
+
"weekend",
|
| 26 |
+
"burst_count",
|
| 27 |
+
"cidr_open",
|
| 28 |
+
"policy_public",
|
| 29 |
+
"logging_off",
|
| 30 |
+
"detector_off",
|
| 31 |
+
"wildcard_trust",
|
| 32 |
+
"is_root",
|
| 33 |
+
"is_service",
|
| 34 |
+
"is_human",
|
| 35 |
+
"has_before",
|
| 36 |
+
"has_after",
|
| 37 |
+
"in_maintenance",
|
| 38 |
+
"admin_policy",
|
| 39 |
+
"error_event",
|
| 40 |
+
)
|
| 41 |
+
REQUIRED_EVENT_FIELDS = ("timestamp", "event_name")
|
| 42 |
+
ID_FIELDS = ("event_id", "actor_alias", "resource_alias", "account_alias")
|
| 43 |
+
|
| 44 |
+
ACCOUNT_IDS = {
|
| 45 |
+
"prod": "111111111111",
|
| 46 |
+
"staging": "222222222222",
|
| 47 |
+
"sandbox": "333333333333",
|
| 48 |
+
}
|
| 49 |
+
ACCOUNT_ALIASES = {
|
| 50 |
+
"111111111111": "acct_prod",
|
| 51 |
+
"222222222222": "acct_staging",
|
| 52 |
+
"333333333333": "acct_sandbox",
|
| 53 |
+
"prod": "acct_prod",
|
| 54 |
+
"staging": "acct_staging",
|
| 55 |
+
"sandbox": "acct_sandbox",
|
| 56 |
+
"acct_prod": "acct_prod",
|
| 57 |
+
"acct_staging": "acct_staging",
|
| 58 |
+
"acct_sandbox": "acct_sandbox",
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
class Split(str, Enum):
|
| 63 |
+
DEVELOPMENT = "development"
|
| 64 |
+
TEST = "test"
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
class Method(str, Enum):
|
| 68 |
+
RULE_SEVERITY = "rule_severity"
|
| 69 |
+
ROLE_TIME = "role_time_baseline"
|
| 70 |
+
CORRELATION = "correlation"
|
| 71 |
+
MAINTENANCE_AWARE = "maintenance_aware_rules"
|
| 72 |
+
ARIACLOUDTRAIL = "ariacloudtrail"
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
class ChangeType(str, Enum):
|
| 76 |
+
IAM_PRIVILEGE_GRANT = "iam_privilege_grant"
|
| 77 |
+
IAM_CREDENTIAL_CREATE = "iam_credential_create"
|
| 78 |
+
SECURITY_GROUP_INGRESS = "security_group_ingress"
|
| 79 |
+
S3_PUBLIC_EXPOSURE = "s3_public_exposure"
|
| 80 |
+
TRAIL_LOGGING_CHANGE = "trail_logging_change"
|
| 81 |
+
KMS_CONTROL_CHANGE = "kms_control_change"
|
| 82 |
+
ROOT_ACTIVITY = "root_activity"
|
| 83 |
+
INSTANCE_EXPOSURE = "instance_exposure"
|
| 84 |
+
ROLE_TRUST_CHANGE = "role_trust_change"
|
| 85 |
+
DETECTOR_DISABLE = "detector_disable"
|
| 86 |
+
NONE = "none"
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
class Family(str, Enum):
|
| 90 |
+
BACKGROUND = "background"
|
| 91 |
+
BENIGN_MAINTENANCE = "benign_maintenance"
|
| 92 |
+
BENIGN_RESTRICTED_SG = "benign_restricted_sg"
|
| 93 |
+
REVIEW_IAM = "needs_review_iam_escalation"
|
| 94 |
+
REVIEW_EXPOSURE = "needs_review_public_exposure"
|
| 95 |
+
REVIEW_LOGGING = "needs_review_logging_disable"
|
| 96 |
+
REVIEW_ROOT = "needs_review_root"
|
| 97 |
+
REVIEW_TRUST = "needs_review_trust_wildcard"
|
| 98 |
+
INSUFFICIENT = "insufficient_evidence"
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
class AlertClass(str, Enum):
|
| 102 |
+
SECURITY_REVIEW = "security_review"
|
| 103 |
+
CONTEXT = "context"
|
| 104 |
+
INSUFFICIENT = "insufficient_evidence"
|
| 105 |
+
NONE = "none"
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
class Tag(str, Enum):
|
| 109 |
+
IAM_ESCALATION = "iam_escalation"
|
| 110 |
+
ACCESS_KEY = "access_key_create"
|
| 111 |
+
OPEN_SG = "open_security_group"
|
| 112 |
+
RESTRICTED_SG = "restricted_security_group"
|
| 113 |
+
PUBLIC_S3 = "s3_public_request"
|
| 114 |
+
TRAIL_STOP = "trail_logging_stop"
|
| 115 |
+
KMS = "kms_control"
|
| 116 |
+
ROOT = "root_activity"
|
| 117 |
+
EIP = "instance_public_ip"
|
| 118 |
+
TRUST = "wildcard_trust"
|
| 119 |
+
DETECTOR = "detector_disabled"
|
| 120 |
+
MAINTENANCE = "approved_maintenance"
|
| 121 |
+
INCOMPLETE = "incomplete_event"
|
| 122 |
+
BURST = "actor_burst"
|
| 123 |
+
UNUSUAL_HOUR = "unusual_hour"
|
| 124 |
+
NONE = "none"
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
class Severity(str, Enum):
|
| 128 |
+
LOW = "low"
|
| 129 |
+
MEDIUM = "medium"
|
| 130 |
+
HIGH = "high"
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
class Confidence(str, Enum):
|
| 134 |
+
LOW = "low"
|
| 135 |
+
MEDIUM = "medium"
|
| 136 |
+
HIGH = "high"
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
class Workflow(str, Enum):
|
| 140 |
+
NEEDS_REVIEW = "needs_review"
|
| 141 |
+
CONTEXT_ONLY = "context_only"
|
| 142 |
+
INSUFFICIENT = "insufficient_evidence"
|
| 143 |
+
CLEAR = "no_alert"
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
class ApprovalStatus(str, Enum):
|
| 147 |
+
NONE = "none"
|
| 148 |
+
APPROVED_WINDOW = "approved_window"
|
| 149 |
+
UNKNOWN = "unknown"
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
class ActorKind(str, Enum):
|
| 153 |
+
HUMAN = "human"
|
| 154 |
+
SERVICE = "service"
|
| 155 |
+
ROOT = "root"
|
| 156 |
+
AWS_SERVICE = "aws_service"
|
| 157 |
+
UNKNOWN = "unknown"
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
class Verdict(str, Enum):
|
| 161 |
+
READY = "ready"
|
| 162 |
+
INSUFFICIENT = "insufficient_evidence"
|
| 163 |
+
INVALID = "invalid_input"
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
class Feedback(str, Enum):
|
| 167 |
+
CORRECT = "correct"
|
| 168 |
+
FALSE_POSITIVE = "false_positive"
|
| 169 |
+
INSUFFICIENT = "insufficient_evidence"
|
| 170 |
+
NEEDS_REVIEW = "needs_review"
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
class ClaimKind(str, Enum):
|
| 174 |
+
OBSERVED = "observed"
|
| 175 |
+
INFERRED = "inferred"
|
| 176 |
+
ACTION = "action"
|
| 177 |
+
UNKNOWN = "unknown"
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
class StateKnown(str, Enum):
|
| 181 |
+
KNOWN = "known"
|
| 182 |
+
UNKNOWN = "unknown"
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
REVIEW_FAMILIES = {
|
| 186 |
+
Family.REVIEW_IAM.value,
|
| 187 |
+
Family.REVIEW_EXPOSURE.value,
|
| 188 |
+
Family.REVIEW_LOGGING.value,
|
| 189 |
+
Family.REVIEW_ROOT.value,
|
| 190 |
+
Family.REVIEW_TRUST.value,
|
| 191 |
+
}
|
| 192 |
+
CONTEXT_FAMILIES = {
|
| 193 |
+
Family.BENIGN_MAINTENANCE.value,
|
| 194 |
+
Family.BENIGN_RESTRICTED_SG.value,
|
| 195 |
+
}
|
| 196 |
+
SENSITIVE_TYPES = {item.value for item in ChangeType if item != ChangeType.NONE}
|
| 197 |
+
MAINTENANCE_ALLOWED_TYPES = {
|
| 198 |
+
ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 199 |
+
ChangeType.SECURITY_GROUP_INGRESS.value,
|
| 200 |
+
}
|
| 201 |
+
ADMIN_POLICY_MARKERS = ("administratoraccess", "iamfullaccess", "poweruseraccess")
|
| 202 |
+
PUBLIC_MARKERS = ("http://acs.amazonaws.com/groups/global/allusers", '"principal":"*"', '"principal": "*"')
|
| 203 |
+
SEVERITY_WEIGHT = {Severity.HIGH.value: 4.0, Severity.MEDIUM.value: 3.2, Severity.LOW.value: 1.8}
|
demo/src/explain.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from src.domain import AlertClass, ClaimKind, MIN_VALID_EVENTS, StateKnown, Tag, Verdict
|
| 4 |
+
from src.i18n import t
|
| 5 |
+
from src.schemas import ChangeFinding, Claim, PipelineResult, ValidationReport
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def status_label(lang: str, verdict: Verdict, live: bool) -> str:
|
| 9 |
+
suffix = t(lang, "live_note") if live else t(lang, "cached_note")
|
| 10 |
+
return f"{t(lang, f'verdict_{verdict.value}')} · {suffix}"
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def decide_verdict(n_valid: int, report: ValidationReport) -> Verdict:
|
| 14 |
+
if not report.ok:
|
| 15 |
+
return Verdict.INVALID
|
| 16 |
+
if n_valid < MIN_VALID_EVENTS:
|
| 17 |
+
return Verdict.INSUFFICIENT
|
| 18 |
+
return Verdict.READY
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def reasons(lang: str, result: PipelineResult) -> list[str]:
|
| 22 |
+
kpis = result.kpis
|
| 23 |
+
lines = [
|
| 24 |
+
t(lang, "reason_counts").format(valid=kpis.n_valid, raw=kpis.n_raw, dropped=kpis.n_dropped, changes=kpis.n_changes),
|
| 25 |
+
t(lang, "reason_alerts").format(security=kpis.n_security_review, context=kpis.n_context, threshold=kpis.threshold),
|
| 26 |
+
t(lang, "reason_eval").format(
|
| 27 |
+
recall="—" if kpis.event_recall is None else f"{100 * kpis.event_recall:.0f}%",
|
| 28 |
+
precision="—" if kpis.precision_at_k is None else f"{100 * kpis.precision_at_k:.0f}%",
|
| 29 |
+
fa="—" if kpis.false_alarms_per_account_day is None else f"{kpis.false_alarms_per_account_day:.3f}",
|
| 30 |
+
),
|
| 31 |
+
t(lang, "reason_maint").format(n=kpis.maintenance_as_security),
|
| 32 |
+
t(lang, "reason_score"),
|
| 33 |
+
]
|
| 34 |
+
for issue in result.validation.issues[:6]:
|
| 35 |
+
lines.append(f"{issue.severity}: {issue.message}")
|
| 36 |
+
return lines
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def annotate_finding(row: ChangeFinding) -> ChangeFinding:
|
| 40 |
+
before = f"`{row.before_event_id}`" if row.before_state == StateKnown.KNOWN and row.before_event_id else "unknown"
|
| 41 |
+
after = f"`{row.after_event_id or row.event_id}`" if row.after_state == StateKnown.KNOWN else "unknown"
|
| 42 |
+
row.observed = [
|
| 43 |
+
f"`{row.event_name}` by `{row.actor_alias}` ({row.actor_kind}/{row.actor_role}) on `{row.account_alias}` at `{row.timestamp}`",
|
| 44 |
+
f"resource `{row.resource_alias}` ({row.resource_kind}) in `{row.region}`; change_type `{row.change_type}`",
|
| 45 |
+
f"request summary: {row.request_summary or '—'}",
|
| 46 |
+
f"before={before}; after={after}; ticket `{row.change_ticket or 'none'}`; approval `{row.approval_status.value}`",
|
| 47 |
+
f"evidence event_id values: {', '.join(row.evidence_event_ids[:6]) or row.event_id}",
|
| 48 |
+
]
|
| 49 |
+
row.inferred = [
|
| 50 |
+
f"tag `{row.tag.value}` is a review hint, not proof of current cloud exposure",
|
| 51 |
+
f"score={row.score:.2f}; methods={', '.join(row.methods_fired) or 'none'}",
|
| 52 |
+
f"open_cidr={row.cidr_open}; public_policy={row.policy_public}; logging_off={row.logging_off}; detector_off={row.detector_off}; wildcard_trust={row.wildcard_trust}",
|
| 53 |
+
f"severity `{row.severity.value}` is separate from approval `{row.approval_status.value}`",
|
| 54 |
+
]
|
| 55 |
+
if row.gold_event_ids:
|
| 56 |
+
row.inferred.append(f"overlaps lab event {', '.join(row.gold_event_ids)} ({row.gold_family or 'unlabeled'})")
|
| 57 |
+
if row.incomplete:
|
| 58 |
+
row.action = "Request parameters are missing. Mark as insufficient evidence. Do not conclude current exposure or apply a cloud change from this demo."
|
| 59 |
+
elif row.tag == Tag.MAINTENANCE:
|
| 60 |
+
row.action = "This matches the approved Sunday staging window and ticket. Keep it as context; severity can still be medium."
|
| 61 |
+
elif row.tag == Tag.OPEN_SG:
|
| 62 |
+
row.action = "The event requested 0.0.0.0/0. Review the security-group change. This screen does not update AWS."
|
| 63 |
+
elif row.tag == Tag.PUBLIC_S3:
|
| 64 |
+
row.action = "The event requested a public-access change. Current bucket exposure is unknown unless a before event is also in this export."
|
| 65 |
+
elif row.tag == Tag.TRAIL_STOP:
|
| 66 |
+
row.action = "Logging stop/delete was requested. Confirm with the change ticket; do not call the trail disabled in production from one event."
|
| 67 |
+
elif row.tag == Tag.DETECTOR:
|
| 68 |
+
row.action = "A detector or recorder disable was requested. Review as logging control, not as a confirmed blind spot."
|
| 69 |
+
elif row.tag == Tag.ROOT:
|
| 70 |
+
row.action = "Root activity is always reviewable. This demo never uses a root credential and never changes the account."
|
| 71 |
+
elif row.tag == Tag.TRUST:
|
| 72 |
+
row.action = "The trust policy request includes a wildcard principal. Review the role; do not assume the live policy equals this event."
|
| 73 |
+
elif row.tag == Tag.IAM_ESCALATION:
|
| 74 |
+
row.action = "A privilege-grant event is on the backlog. Confirm the intended role and ticket. No IAM write is sent from here."
|
| 75 |
+
elif row.tag == Tag.ACCESS_KEY:
|
| 76 |
+
row.action = "An access key create event needs a human look. Keys in this lab are fake and redacted."
|
| 77 |
+
elif row.tag == Tag.RESTRICTED_SG:
|
| 78 |
+
row.action = "Ingress is present but not 0.0.0.0/0. Treat as context unless other evidence appears."
|
| 79 |
+
else:
|
| 80 |
+
row.action = "No security-review alert. Keep the change as context or ignore read-only noise."
|
| 81 |
+
row.claims = [
|
| 82 |
+
Claim(kind=ClaimKind.OBSERVED, text=row.observed[0], locator=row.event_id, field="event"),
|
| 83 |
+
Claim(kind=ClaimKind.INFERRED, text=row.inferred[0], locator=row.event_id, field="tag"),
|
| 84 |
+
Claim(kind=ClaimKind.ACTION, text=row.action, locator=row.event_id, field="action"),
|
| 85 |
+
]
|
| 86 |
+
if row.before_state == StateKnown.UNKNOWN or row.after_state == StateKnown.UNKNOWN:
|
| 87 |
+
row.claims.append(
|
| 88 |
+
Claim(
|
| 89 |
+
kind=ClaimKind.UNKNOWN,
|
| 90 |
+
text="Before/after configuration is unknown unless both events exist in this export.",
|
| 91 |
+
locator=row.event_id,
|
| 92 |
+
field="before_after",
|
| 93 |
+
)
|
| 94 |
+
)
|
| 95 |
+
if row.alert_class == AlertClass.NONE and not row.gold_event_ids:
|
| 96 |
+
row.claims.append(Claim(kind=ClaimKind.UNKNOWN, text="No authored lab event overlaps this change.", locator=row.event_id, field="gold"))
|
| 97 |
+
return row
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def finding_markdown(lang: str, row: ChangeFinding | None) -> str:
|
| 101 |
+
if row is None:
|
| 102 |
+
return t(lang, "empty_card")
|
| 103 |
+
observed = "\n".join(f"- {text}" for text in row.observed) or "- —"
|
| 104 |
+
inferred = "\n".join(f"- {text}" for text in row.inferred) or "- —"
|
| 105 |
+
return (
|
| 106 |
+
f"### `{row.finding_id}`\n\n"
|
| 107 |
+
f"**{t(lang, 'observed')}**\n{observed}\n\n"
|
| 108 |
+
f"**{t(lang, 'inferred')}**\n{inferred}\n\n"
|
| 109 |
+
f"**{t(lang, 'action')}**\n- {row.action}\n\n"
|
| 110 |
+
f"{t(lang, 'severity')} `{row.severity.value}` · {t(lang, 'confidence')} `{row.confidence.value}` · "
|
| 111 |
+
f"{t(lang, 'workflow')} `{row.workflow.value}` · {t(lang, 'approval')} `{row.approval_status.value}` · "
|
| 112 |
+
f"gold `{row.gold_family or '—'}`"
|
| 113 |
+
)
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def state_markdown(lang: str, row: ChangeFinding | None) -> str:
|
| 117 |
+
if row is None:
|
| 118 |
+
return t(lang, "empty_state")
|
| 119 |
+
return (
|
| 120 |
+
f"**{t(lang, 'state_card')}** `{row.resource_alias}`\n\n"
|
| 121 |
+
f"- {t(lang, 'before')}: `{row.before_state.value}` {('· `' + row.before_event_id + '`') if row.before_event_id else ''}\n"
|
| 122 |
+
f"- {t(lang, 'after')}: `{row.after_state.value}` {('· `' + (row.after_event_id or row.event_id) + '`') if row.after_state.value == 'known' else ''}\n"
|
| 123 |
+
f"- {t(lang, 'state_note')}\n"
|
| 124 |
+
f"- {t(lang, 'approval')}: `{row.approval_status.value}` · ticket `{row.change_ticket or '—'}`"
|
| 125 |
+
)
|
demo/src/features.py
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
import numpy as np
|
| 6 |
+
import pandas as pd
|
| 7 |
+
|
| 8 |
+
from src.domain import (
|
| 9 |
+
BURST_WINDOW_MINUTES,
|
| 10 |
+
FEATURE_COLUMNS,
|
| 11 |
+
SENSITIVE_TYPES,
|
| 12 |
+
Split,
|
| 13 |
+
TEST_START_ISO,
|
| 14 |
+
)
|
| 15 |
+
from src.mapper import normalize_event
|
| 16 |
+
from src.parsers import parse_timestamp
|
| 17 |
+
from src.ruleset import maintenance_match, severity_for
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def events_frame(rows: list[dict[str, Any]] | pd.DataFrame) -> pd.DataFrame:
|
| 21 |
+
if isinstance(rows, pd.DataFrame):
|
| 22 |
+
records = rows.to_dict(orient="records")
|
| 23 |
+
else:
|
| 24 |
+
records = list(rows)
|
| 25 |
+
cleaned = [normalize_event(row) for row in records]
|
| 26 |
+
frame = pd.DataFrame(cleaned)
|
| 27 |
+
if frame.empty:
|
| 28 |
+
return frame
|
| 29 |
+
frame["ts"] = [parse_timestamp(value) for value in frame["timestamp"]]
|
| 30 |
+
valid = frame["ts"].notna() & frame["event_name"].astype(str).ne("")
|
| 31 |
+
frame = frame.loc[valid].copy().reset_index(drop=True)
|
| 32 |
+
if frame.empty:
|
| 33 |
+
return frame
|
| 34 |
+
test_start = pd.Timestamp(TEST_START_ISO)
|
| 35 |
+
existing = frame["split"].replace("", Split.DEVELOPMENT.value)
|
| 36 |
+
frame["split"] = np.where(pd.to_datetime(frame["ts"], utc=True) >= test_start, Split.TEST.value, existing)
|
| 37 |
+
frame["hour"] = pd.to_datetime(frame["ts"], utc=True).dt.hour
|
| 38 |
+
frame["weekday"] = pd.to_datetime(frame["ts"], utc=True).dt.weekday
|
| 39 |
+
frame["weekend"] = frame["weekday"].isin([5, 6]).astype(float)
|
| 40 |
+
human = frame["actor_kind"].eq("human")
|
| 41 |
+
unusual = human & ((frame["hour"] < 6) | (frame["hour"] >= 22) | frame["weekday"].eq(6))
|
| 42 |
+
frame["unusual_hour"] = unusual.astype(float)
|
| 43 |
+
frame["in_window"] = frame["weekday"].eq(6) & frame["hour"].between(2, 5)
|
| 44 |
+
flags = frame.apply(
|
| 45 |
+
lambda row: {
|
| 46 |
+
"cidr_open": bool(row.get("cidr_open")),
|
| 47 |
+
"policy_public": bool(row.get("policy_public")),
|
| 48 |
+
"admin_policy": bool(row.get("admin_policy")),
|
| 49 |
+
"logging_off": bool(row.get("logging_off")),
|
| 50 |
+
"detector_off": bool(row.get("detector_off")),
|
| 51 |
+
"wildcard_trust": bool(row.get("wildcard_trust")),
|
| 52 |
+
"is_root": row.get("actor_kind") == "root",
|
| 53 |
+
"hardening": bool(row.get("hardening")),
|
| 54 |
+
},
|
| 55 |
+
axis=1,
|
| 56 |
+
)
|
| 57 |
+
frame["severity"] = [
|
| 58 |
+
severity_for(str(row.change_type), flags.iloc[idx]).value for idx, row in enumerate(frame.itertuples(index=False))
|
| 59 |
+
]
|
| 60 |
+
frame["in_maintenance"] = [
|
| 61 |
+
maintenance_match(
|
| 62 |
+
str(row.account_alias),
|
| 63 |
+
str(row.actor_alias),
|
| 64 |
+
str(row.change_type),
|
| 65 |
+
flags.iloc[idx],
|
| 66 |
+
str(row.change_ticket or ""),
|
| 67 |
+
bool(row.in_window),
|
| 68 |
+
)
|
| 69 |
+
for idx, row in enumerate(frame.itertuples(index=False))
|
| 70 |
+
]
|
| 71 |
+
frame["approval_status"] = np.where(frame["in_maintenance"], "approved_window", "none")
|
| 72 |
+
frame["approval_status"] = np.where(
|
| 73 |
+
frame["change_ticket"].astype(str).ne("") & ~frame["in_maintenance"],
|
| 74 |
+
"unknown",
|
| 75 |
+
frame["approval_status"],
|
| 76 |
+
)
|
| 77 |
+
frame = _pair_before_after(frame)
|
| 78 |
+
frame = _burst_counts(frame)
|
| 79 |
+
frame["is_root"] = frame["actor_kind"].eq("root").astype(float)
|
| 80 |
+
frame["is_service"] = frame["actor_kind"].eq("service").astype(float)
|
| 81 |
+
frame["is_human"] = frame["actor_kind"].eq("human").astype(float)
|
| 82 |
+
frame["error_event"] = frame["error_code"].astype(str).ne("").astype(float)
|
| 83 |
+
frame["sensitive"] = frame["change_type"].isin(SENSITIVE_TYPES) & ~frame["hardening"].astype(bool)
|
| 84 |
+
return frame.sort_values(["ts", "event_id"]).reset_index(drop=True)
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def _pair_before_after(frame: pd.DataFrame) -> pd.DataFrame:
|
| 88 |
+
work = frame.sort_values("ts").copy()
|
| 89 |
+
before_ids: list[str] = []
|
| 90 |
+
before_known: list[bool] = []
|
| 91 |
+
after_known: list[bool] = []
|
| 92 |
+
for idx, row in work.iterrows():
|
| 93 |
+
if row["change_type"] not in SENSITIVE_TYPES or row["hardening"]:
|
| 94 |
+
before_ids.append("")
|
| 95 |
+
before_known.append(False)
|
| 96 |
+
after_known.append(False)
|
| 97 |
+
continue
|
| 98 |
+
prior = work.loc[
|
| 99 |
+
(work["ts"] < row["ts"])
|
| 100 |
+
& (work["account_alias"] == row["account_alias"])
|
| 101 |
+
& (work["resource_alias"] == row["resource_alias"])
|
| 102 |
+
& (work["resource_alias"].astype(str).ne("res_unknown"))
|
| 103 |
+
]
|
| 104 |
+
if prior.empty:
|
| 105 |
+
before_ids.append("")
|
| 106 |
+
before_known.append(False)
|
| 107 |
+
after_known.append(not bool(row.get("incomplete")))
|
| 108 |
+
continue
|
| 109 |
+
before_ids.append(str(prior.iloc[-1]["event_id"]))
|
| 110 |
+
before_known.append(True)
|
| 111 |
+
after_known.append(not bool(row.get("incomplete")))
|
| 112 |
+
work["before_event_id"] = before_ids
|
| 113 |
+
work["after_event_id"] = np.where(work["event_id"].astype(str).ne(""), work["event_id"], "")
|
| 114 |
+
work["has_before"] = np.array(before_known, dtype=float)
|
| 115 |
+
work["has_after"] = np.array(after_known, dtype=float)
|
| 116 |
+
work["before_state"] = np.where(work["has_before"] >= 1, "known", "unknown")
|
| 117 |
+
work["after_state"] = np.where(work["has_after"] >= 1, "known", "unknown")
|
| 118 |
+
return work
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def _burst_counts(frame: pd.DataFrame) -> pd.DataFrame:
|
| 122 |
+
work = frame.sort_values("ts").copy()
|
| 123 |
+
counts = []
|
| 124 |
+
window = pd.Timedelta(minutes=BURST_WINDOW_MINUTES)
|
| 125 |
+
sensitive = work["change_type"].isin(SENSITIVE_TYPES) & ~work["hardening"].astype(bool)
|
| 126 |
+
for _, row in work.iterrows():
|
| 127 |
+
if not bool(sensitive.loc[row.name] if row.name in sensitive.index else False):
|
| 128 |
+
counts.append(0)
|
| 129 |
+
continue
|
| 130 |
+
mask = (
|
| 131 |
+
(work["actor_alias"] == row["actor_alias"])
|
| 132 |
+
& (work["ts"] <= row["ts"])
|
| 133 |
+
& (work["ts"] >= row["ts"] - window)
|
| 134 |
+
& sensitive
|
| 135 |
+
)
|
| 136 |
+
counts.append(int(mask.sum()))
|
| 137 |
+
work["burst_count"] = counts
|
| 138 |
+
return work
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def feature_matrix(frame: pd.DataFrame) -> pd.DataFrame:
|
| 142 |
+
if frame.empty:
|
| 143 |
+
return pd.DataFrame(columns=list(FEATURE_COLUMNS))
|
| 144 |
+
data = {}
|
| 145 |
+
for column in FEATURE_COLUMNS:
|
| 146 |
+
if column == "severity_weight":
|
| 147 |
+
data[column] = frame["severity"].map({"high": 4.0, "medium": 3.2, "low": 1.8}).fillna(0.0)
|
| 148 |
+
elif column in frame.columns:
|
| 149 |
+
data[column] = pd.to_numeric(frame[column], errors="coerce").fillna(0.0)
|
| 150 |
+
else:
|
| 151 |
+
data[column] = 0.0
|
| 152 |
+
return pd.DataFrame(data, index=frame.index)
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
def attach_gold(frame: pd.DataFrame, gold: pd.DataFrame | list[dict[str, Any]] | None) -> pd.DataFrame:
|
| 156 |
+
out = frame.copy()
|
| 157 |
+
out["gold_event_ids"] = ""
|
| 158 |
+
out["gold_family"] = ""
|
| 159 |
+
out["detect_delay_min"] = np.nan
|
| 160 |
+
if gold is None:
|
| 161 |
+
return out
|
| 162 |
+
gold_frame = gold if isinstance(gold, pd.DataFrame) else pd.DataFrame(gold)
|
| 163 |
+
if gold_frame.empty:
|
| 164 |
+
return out
|
| 165 |
+
gold_frame = gold_frame.copy()
|
| 166 |
+
gold_frame["start_ts"] = [parse_timestamp(value) for value in gold_frame["start"]]
|
| 167 |
+
gold_frame["end_ts"] = [parse_timestamp(value) for value in gold_frame["end"]]
|
| 168 |
+
for event in gold_frame.itertuples(index=False):
|
| 169 |
+
lab_id = str(event.event_id)
|
| 170 |
+
direct = out["lab_event_id"].astype(str).eq(lab_id) | out["event_id"].astype(str).eq(lab_id)
|
| 171 |
+
if event.start_ts and event.end_ts:
|
| 172 |
+
overlap = (out["ts"] >= event.start_ts) & (out["ts"] <= event.end_ts)
|
| 173 |
+
if getattr(event, "account_alias", ""):
|
| 174 |
+
overlap = overlap & out["account_alias"].astype(str).eq(str(event.account_alias))
|
| 175 |
+
if getattr(event, "actor_alias", ""):
|
| 176 |
+
overlap = overlap & out["actor_alias"].astype(str).eq(str(event.actor_alias))
|
| 177 |
+
else:
|
| 178 |
+
overlap = pd.Series(False, index=out.index)
|
| 179 |
+
hit = direct | overlap
|
| 180 |
+
if not hit.any():
|
| 181 |
+
continue
|
| 182 |
+
current = out.loc[hit, "gold_event_ids"].astype(str)
|
| 183 |
+
out.loc[hit, "gold_event_ids"] = np.where(current.eq("") | current.eq("nan"), lab_id, current + "," + lab_id)
|
| 184 |
+
out.loc[hit, "gold_family"] = str(event.family)
|
| 185 |
+
delay = (pd.to_datetime(out.loc[hit, "ts"], utc=True) - pd.Timestamp(event.start_ts)).dt.total_seconds() / 60.0
|
| 186 |
+
out.loc[hit, "detect_delay_min"] = delay
|
| 187 |
+
return out
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
def change_view(frame: pd.DataFrame) -> pd.DataFrame:
|
| 191 |
+
if frame.empty:
|
| 192 |
+
return frame
|
| 193 |
+
return frame.loc[frame["change_type"].isin(SENSITIVE_TYPES)].copy()
|
demo/src/generator.py
ADDED
|
@@ -0,0 +1,829 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
from datetime import datetime, timedelta, timezone
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from typing import Any
|
| 7 |
+
|
| 8 |
+
import numpy as np
|
| 9 |
+
import pandas as pd
|
| 10 |
+
|
| 11 |
+
from src.domain import (
|
| 12 |
+
ACCOUNT_IDS,
|
| 13 |
+
DEFAULT_SEED,
|
| 14 |
+
MAINTENANCE_TICKET,
|
| 15 |
+
ChangeType,
|
| 16 |
+
Family,
|
| 17 |
+
Split,
|
| 18 |
+
TEST_START_ISO,
|
| 19 |
+
)
|
| 20 |
+
from src.schemas import LabEvent
|
| 21 |
+
|
| 22 |
+
UTC = timezone.utc
|
| 23 |
+
START = datetime(2026, 4, 1, tzinfo=UTC)
|
| 24 |
+
TEST_START = datetime.fromisoformat(TEST_START_ISO.replace("Z", "+00:00"))
|
| 25 |
+
DAYS = 14
|
| 26 |
+
REGION = "us-east-1"
|
| 27 |
+
|
| 28 |
+
ACTORS: dict[str, dict[str, str]] = {
|
| 29 |
+
"alice": {"type": "IAMUser", "account": "prod", "name": "alice"},
|
| 30 |
+
"bob": {"type": "IAMUser", "account": "staging", "name": "bob"},
|
| 31 |
+
"carol": {"type": "IAMUser", "account": "sandbox", "name": "carol"},
|
| 32 |
+
"dave": {"type": "IAMUser", "account": "prod", "name": "dave"},
|
| 33 |
+
"root": {"type": "Root", "account": "prod", "name": "root"},
|
| 34 |
+
"terraform-staging": {"type": "AssumedRole", "account": "staging", "name": "terraform-staging"},
|
| 35 |
+
"terraform-prod": {"type": "AssumedRole", "account": "prod", "name": "terraform-prod"},
|
| 36 |
+
"ci-github": {"type": "AssumedRole", "account": "staging", "name": "ci-github"},
|
| 37 |
+
"lambda-rotator": {"type": "AssumedRole", "account": "prod", "name": "lambda-rotator"},
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
READ_EVENTS = (
|
| 41 |
+
("iam.amazonaws.com", "ListUsers", True),
|
| 42 |
+
("iam.amazonaws.com", "GetRole", True),
|
| 43 |
+
("s3.amazonaws.com", "GetBucketAcl", True),
|
| 44 |
+
("ec2.amazonaws.com", "DescribeInstances", True),
|
| 45 |
+
("cloudtrail.amazonaws.com", "DescribeTrails", True),
|
| 46 |
+
("sts.amazonaws.com", "GetCallerIdentity", True),
|
| 47 |
+
("guardduty.amazonaws.com", "GetDetector", True),
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def iso(ts: datetime) -> str:
|
| 52 |
+
return ts.astimezone(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def split_for(ts: datetime) -> str:
|
| 56 |
+
return Split.TEST.value if ts >= TEST_START else Split.DEVELOPMENT.value
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def account_id(key: str) -> str:
|
| 60 |
+
return ACCOUNT_IDS[key]
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def lab_events() -> list[LabEvent]:
|
| 64 |
+
return [
|
| 65 |
+
LabEvent(
|
| 66 |
+
event_id="EVT-MAINT-DEV-01",
|
| 67 |
+
account_alias="acct_staging",
|
| 68 |
+
actor_alias="role_terraform-staging",
|
| 69 |
+
start=iso(START + timedelta(days=4, hours=2, minutes=15)),
|
| 70 |
+
end=iso(START + timedelta(days=4, hours=2, minutes=16)),
|
| 71 |
+
family=Family.BENIGN_MAINTENANCE.value,
|
| 72 |
+
split=Split.DEVELOPMENT.value,
|
| 73 |
+
change_type=ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 74 |
+
note="Sunday staging window. Terraform attaches a job role policy with ticket CHG-4411.",
|
| 75 |
+
),
|
| 76 |
+
LabEvent(
|
| 77 |
+
event_id="EVT-SG-SAFE-DEV-01",
|
| 78 |
+
account_alias="acct_staging",
|
| 79 |
+
actor_alias="role_terraform-staging",
|
| 80 |
+
start=iso(START + timedelta(days=4, hours=2, minutes=40)),
|
| 81 |
+
end=iso(START + timedelta(days=4, hours=2, minutes=41)),
|
| 82 |
+
family=Family.BENIGN_RESTRICTED_SG.value,
|
| 83 |
+
split=Split.DEVELOPMENT.value,
|
| 84 |
+
change_type=ChangeType.SECURITY_GROUP_INGRESS.value,
|
| 85 |
+
note="Maintenance SG ingress from 10.0.0.0/8, not 0.0.0.0/0.",
|
| 86 |
+
),
|
| 87 |
+
LabEvent(
|
| 88 |
+
event_id="EVT-IAM-DEV-01",
|
| 89 |
+
account_alias="acct_prod",
|
| 90 |
+
actor_alias="usr_alice",
|
| 91 |
+
start=iso(START + timedelta(days=2, hours=3, minutes=12)),
|
| 92 |
+
end=iso(START + timedelta(days=2, hours=3, minutes=13)),
|
| 93 |
+
family=Family.REVIEW_IAM.value,
|
| 94 |
+
split=Split.DEVELOPMENT.value,
|
| 95 |
+
change_type=ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 96 |
+
note="Off-hours AttachUserPolicy AdministratorAccess on prod.",
|
| 97 |
+
),
|
| 98 |
+
LabEvent(
|
| 99 |
+
event_id="EVT-S3-DEV-01",
|
| 100 |
+
account_alias="acct_prod",
|
| 101 |
+
actor_alias="usr_bob",
|
| 102 |
+
start=iso(START + timedelta(days=3, hours=14, minutes=22)),
|
| 103 |
+
end=iso(START + timedelta(days=3, hours=14, minutes=23)),
|
| 104 |
+
family=Family.REVIEW_EXPOSURE.value,
|
| 105 |
+
split=Split.DEVELOPMENT.value,
|
| 106 |
+
change_type=ChangeType.S3_PUBLIC_EXPOSURE.value,
|
| 107 |
+
note="DeletePublicAccessBlock on a prod bucket. That is a request, not proven current exposure.",
|
| 108 |
+
),
|
| 109 |
+
LabEvent(
|
| 110 |
+
event_id="EVT-SG-OPEN-DEV-01",
|
| 111 |
+
account_alias="acct_prod",
|
| 112 |
+
actor_alias="usr_alice",
|
| 113 |
+
start=iso(START + timedelta(days=2, hours=18)),
|
| 114 |
+
end=iso(START + timedelta(days=2, hours=18, minutes=1)),
|
| 115 |
+
family=Family.REVIEW_EXPOSURE.value,
|
| 116 |
+
split=Split.DEVELOPMENT.value,
|
| 117 |
+
change_type=ChangeType.SECURITY_GROUP_INGRESS.value,
|
| 118 |
+
note="AuthorizeSecurityGroupIngress 0.0.0.0/0 on prod.",
|
| 119 |
+
),
|
| 120 |
+
LabEvent(
|
| 121 |
+
event_id="EVT-TRAIL-DEV-01",
|
| 122 |
+
account_alias="acct_prod",
|
| 123 |
+
actor_alias="usr_carol",
|
| 124 |
+
start=iso(START + timedelta(days=5, hours=1, minutes=5)),
|
| 125 |
+
end=iso(START + timedelta(days=5, hours=1, minutes=6)),
|
| 126 |
+
family=Family.REVIEW_LOGGING.value,
|
| 127 |
+
split=Split.DEVELOPMENT.value,
|
| 128 |
+
change_type=ChangeType.TRAIL_LOGGING_CHANGE.value,
|
| 129 |
+
note="Contractor StopLogging on the prod trail.",
|
| 130 |
+
),
|
| 131 |
+
LabEvent(
|
| 132 |
+
event_id="EVT-ROOT-DEV-01",
|
| 133 |
+
account_alias="acct_prod",
|
| 134 |
+
actor_alias="root_lab",
|
| 135 |
+
start=iso(START + timedelta(days=6, hours=9)),
|
| 136 |
+
end=iso(START + timedelta(days=6, hours=9, minutes=1)),
|
| 137 |
+
family=Family.REVIEW_ROOT.value,
|
| 138 |
+
split=Split.DEVELOPMENT.value,
|
| 139 |
+
change_type=ChangeType.ROOT_ACTIVITY.value,
|
| 140 |
+
note="Root console login.",
|
| 141 |
+
),
|
| 142 |
+
LabEvent(
|
| 143 |
+
event_id="EVT-TRUST-DEV-01",
|
| 144 |
+
account_alias="acct_prod",
|
| 145 |
+
actor_alias="usr_dave",
|
| 146 |
+
start=iso(START + timedelta(days=7, hours=16, minutes=10)),
|
| 147 |
+
end=iso(START + timedelta(days=7, hours=16, minutes=11)),
|
| 148 |
+
family=Family.REVIEW_TRUST.value,
|
| 149 |
+
split=Split.DEVELOPMENT.value,
|
| 150 |
+
change_type=ChangeType.ROLE_TRUST_CHANGE.value,
|
| 151 |
+
note="UpdateAssumeRolePolicy with Principal *.",
|
| 152 |
+
),
|
| 153 |
+
LabEvent(
|
| 154 |
+
event_id="EVT-KEY-DEV-01",
|
| 155 |
+
account_alias="acct_staging",
|
| 156 |
+
actor_alias="usr_bob",
|
| 157 |
+
start=iso(START + timedelta(days=6, hours=11, minutes=20)),
|
| 158 |
+
end=iso(START + timedelta(days=6, hours=11, minutes=21)),
|
| 159 |
+
family=Family.REVIEW_IAM.value,
|
| 160 |
+
split=Split.DEVELOPMENT.value,
|
| 161 |
+
change_type=ChangeType.IAM_CREDENTIAL_CREATE.value,
|
| 162 |
+
note="CreateAccessKey for a staging user during business hours.",
|
| 163 |
+
),
|
| 164 |
+
LabEvent(
|
| 165 |
+
event_id="EVT-INSUFF-DEV-01",
|
| 166 |
+
account_alias="acct_prod",
|
| 167 |
+
actor_alias="usr_bob",
|
| 168 |
+
start=iso(START + timedelta(days=1, hours=11)),
|
| 169 |
+
end=iso(START + timedelta(days=1, hours=11, minutes=1)),
|
| 170 |
+
family=Family.INSUFFICIENT.value,
|
| 171 |
+
split=Split.DEVELOPMENT.value,
|
| 172 |
+
change_type=ChangeType.S3_PUBLIC_EXPOSURE.value,
|
| 173 |
+
note="PutBucketPolicy without requestParameters. Before/after unknown.",
|
| 174 |
+
),
|
| 175 |
+
LabEvent(
|
| 176 |
+
event_id="EVT-MAINT-01",
|
| 177 |
+
account_alias="acct_staging",
|
| 178 |
+
actor_alias="role_terraform-staging",
|
| 179 |
+
start=iso(START + timedelta(days=11, hours=2, minutes=20)),
|
| 180 |
+
end=iso(START + timedelta(days=11, hours=2, minutes=21)),
|
| 181 |
+
family=Family.BENIGN_MAINTENANCE.value,
|
| 182 |
+
split=Split.TEST.value,
|
| 183 |
+
change_type=ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 184 |
+
note="Held-out Sunday staging terraform AttachRolePolicy with CHG-4411.",
|
| 185 |
+
),
|
| 186 |
+
LabEvent(
|
| 187 |
+
event_id="EVT-SG-SAFE-01",
|
| 188 |
+
account_alias="acct_staging",
|
| 189 |
+
actor_alias="role_terraform-staging",
|
| 190 |
+
start=iso(START + timedelta(days=11, hours=3, minutes=5)),
|
| 191 |
+
end=iso(START + timedelta(days=11, hours=3, minutes=6)),
|
| 192 |
+
family=Family.BENIGN_RESTRICTED_SG.value,
|
| 193 |
+
split=Split.TEST.value,
|
| 194 |
+
change_type=ChangeType.SECURITY_GROUP_INGRESS.value,
|
| 195 |
+
note="Held-out restricted SG during the approved window.",
|
| 196 |
+
),
|
| 197 |
+
LabEvent(
|
| 198 |
+
event_id="EVT-IAM-01",
|
| 199 |
+
account_alias="acct_prod",
|
| 200 |
+
actor_alias="usr_alice",
|
| 201 |
+
start=iso(START + timedelta(days=10, hours=2, minutes=48)),
|
| 202 |
+
end=iso(START + timedelta(days=10, hours=2, minutes=49)),
|
| 203 |
+
family=Family.REVIEW_IAM.value,
|
| 204 |
+
split=Split.TEST.value,
|
| 205 |
+
change_type=ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 206 |
+
note="Held-out off-hours AdministratorAccess attach on prod.",
|
| 207 |
+
),
|
| 208 |
+
LabEvent(
|
| 209 |
+
event_id="EVT-S3-01",
|
| 210 |
+
account_alias="acct_prod",
|
| 211 |
+
actor_alias="usr_bob",
|
| 212 |
+
start=iso(START + timedelta(days=10, hours=15, minutes=30)),
|
| 213 |
+
end=iso(START + timedelta(days=10, hours=15, minutes=31)),
|
| 214 |
+
family=Family.REVIEW_EXPOSURE.value,
|
| 215 |
+
split=Split.TEST.value,
|
| 216 |
+
change_type=ChangeType.S3_PUBLIC_EXPOSURE.value,
|
| 217 |
+
note="Held-out DeletePublicAccessBlock.",
|
| 218 |
+
),
|
| 219 |
+
LabEvent(
|
| 220 |
+
event_id="EVT-SG-OPEN-01",
|
| 221 |
+
account_alias="acct_prod",
|
| 222 |
+
actor_alias="usr_bob",
|
| 223 |
+
start=iso(START + timedelta(days=10, hours=18, minutes=20)),
|
| 224 |
+
end=iso(START + timedelta(days=10, hours=18, minutes=21)),
|
| 225 |
+
family=Family.REVIEW_EXPOSURE.value,
|
| 226 |
+
split=Split.TEST.value,
|
| 227 |
+
change_type=ChangeType.SECURITY_GROUP_INGRESS.value,
|
| 228 |
+
note="Held-out 0.0.0.0/0 security group ingress.",
|
| 229 |
+
),
|
| 230 |
+
LabEvent(
|
| 231 |
+
event_id="EVT-TRAIL-01",
|
| 232 |
+
account_alias="acct_prod",
|
| 233 |
+
actor_alias="usr_carol",
|
| 234 |
+
start=iso(START + timedelta(days=12, hours=0, minutes=40)),
|
| 235 |
+
end=iso(START + timedelta(days=12, hours=0, minutes=41)),
|
| 236 |
+
family=Family.REVIEW_LOGGING.value,
|
| 237 |
+
split=Split.TEST.value,
|
| 238 |
+
change_type=ChangeType.TRAIL_LOGGING_CHANGE.value,
|
| 239 |
+
note="Held-out StopLogging.",
|
| 240 |
+
),
|
| 241 |
+
LabEvent(
|
| 242 |
+
event_id="EVT-ROOT-01",
|
| 243 |
+
account_alias="acct_prod",
|
| 244 |
+
actor_alias="root_lab",
|
| 245 |
+
start=iso(START + timedelta(days=12, hours=10, minutes=15)),
|
| 246 |
+
end=iso(START + timedelta(days=12, hours=10, minutes=16)),
|
| 247 |
+
family=Family.REVIEW_ROOT.value,
|
| 248 |
+
split=Split.TEST.value,
|
| 249 |
+
change_type=ChangeType.ROOT_ACTIVITY.value,
|
| 250 |
+
note="Held-out root CreateAccessKey.",
|
| 251 |
+
),
|
| 252 |
+
LabEvent(
|
| 253 |
+
event_id="EVT-TRUST-01",
|
| 254 |
+
account_alias="acct_prod",
|
| 255 |
+
actor_alias="usr_dave",
|
| 256 |
+
start=iso(START + timedelta(days=13, hours=11, minutes=20)),
|
| 257 |
+
end=iso(START + timedelta(days=13, hours=11, minutes=21)),
|
| 258 |
+
family=Family.REVIEW_TRUST.value,
|
| 259 |
+
split=Split.TEST.value,
|
| 260 |
+
change_type=ChangeType.ROLE_TRUST_CHANGE.value,
|
| 261 |
+
note="Held-out wildcard trust policy.",
|
| 262 |
+
),
|
| 263 |
+
LabEvent(
|
| 264 |
+
event_id="EVT-GD-01",
|
| 265 |
+
account_alias="acct_prod",
|
| 266 |
+
actor_alias="usr_alice",
|
| 267 |
+
start=iso(START + timedelta(days=13, hours=1, minutes=10)),
|
| 268 |
+
end=iso(START + timedelta(days=13, hours=1, minutes=11)),
|
| 269 |
+
family=Family.REVIEW_LOGGING.value,
|
| 270 |
+
split=Split.TEST.value,
|
| 271 |
+
change_type=ChangeType.DETECTOR_DISABLE.value,
|
| 272 |
+
note="Held-out GuardDuty UpdateDetector Enable=false.",
|
| 273 |
+
),
|
| 274 |
+
LabEvent(
|
| 275 |
+
event_id="EVT-KEY-01",
|
| 276 |
+
account_alias="acct_staging",
|
| 277 |
+
actor_alias="usr_bob",
|
| 278 |
+
start=iso(START + timedelta(days=11, hours=11, minutes=40)),
|
| 279 |
+
end=iso(START + timedelta(days=11, hours=11, minutes=41)),
|
| 280 |
+
family=Family.REVIEW_IAM.value,
|
| 281 |
+
split=Split.TEST.value,
|
| 282 |
+
change_type=ChangeType.IAM_CREDENTIAL_CREATE.value,
|
| 283 |
+
note="Held-out CreateAccessKey. Medium severity; should drop at a high T.",
|
| 284 |
+
),
|
| 285 |
+
LabEvent(
|
| 286 |
+
event_id="EVT-INSUFF-01",
|
| 287 |
+
account_alias="acct_prod",
|
| 288 |
+
actor_alias="usr_bob",
|
| 289 |
+
start=iso(START + timedelta(days=9, hours=13)),
|
| 290 |
+
end=iso(START + timedelta(days=9, hours=13, minutes=1)),
|
| 291 |
+
family=Family.INSUFFICIENT.value,
|
| 292 |
+
split=Split.TEST.value,
|
| 293 |
+
change_type=ChangeType.S3_PUBLIC_EXPOSURE.value,
|
| 294 |
+
note="Held-out PutBucketAcl without requestParameters.",
|
| 295 |
+
),
|
| 296 |
+
]
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
def _identity(actor_key: str) -> dict[str, Any]:
|
| 300 |
+
spec = ACTORS[actor_key]
|
| 301 |
+
acct = account_id(spec["account"])
|
| 302 |
+
name = spec["name"]
|
| 303 |
+
if spec["type"] == "Root":
|
| 304 |
+
return {
|
| 305 |
+
"type": "Root",
|
| 306 |
+
"principalId": f"{acct}",
|
| 307 |
+
"arn": f"arn:aws:iam::{acct}:root",
|
| 308 |
+
"accountId": acct,
|
| 309 |
+
}
|
| 310 |
+
if spec["type"] == "AssumedRole":
|
| 311 |
+
return {
|
| 312 |
+
"type": "AssumedRole",
|
| 313 |
+
"principalId": f"{acct}:{name}",
|
| 314 |
+
"arn": f"arn:aws:sts::{acct}:assumed-role/{name}/session",
|
| 315 |
+
"accountId": acct,
|
| 316 |
+
"sessionContext": {
|
| 317 |
+
"sessionIssuer": {
|
| 318 |
+
"type": "Role",
|
| 319 |
+
"userName": name,
|
| 320 |
+
"arn": f"arn:aws:iam::{acct}:role/{name}",
|
| 321 |
+
"accountId": acct,
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
}
|
| 325 |
+
return {
|
| 326 |
+
"type": "IAMUser",
|
| 327 |
+
"principalId": f"AIDAI{name.upper()[:8]}LAB",
|
| 328 |
+
"arn": f"arn:aws:iam::{acct}:user/{name}",
|
| 329 |
+
"accountId": acct,
|
| 330 |
+
"userName": name,
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
def _event(
|
| 335 |
+
event_id: str,
|
| 336 |
+
ts: datetime,
|
| 337 |
+
actor_key: str,
|
| 338 |
+
source: str,
|
| 339 |
+
name: str,
|
| 340 |
+
request: dict[str, Any] | None,
|
| 341 |
+
*,
|
| 342 |
+
read_only: bool = False,
|
| 343 |
+
user_agent: str = "aws-cli/2.15.0",
|
| 344 |
+
ip: str = "203.0.113.10",
|
| 345 |
+
lab_event_id: str = "",
|
| 346 |
+
lab_family: str = "",
|
| 347 |
+
ticket: str = "",
|
| 348 |
+
incomplete: bool = False,
|
| 349 |
+
error_code: str | None = None,
|
| 350 |
+
) -> dict[str, Any]:
|
| 351 |
+
spec = ACTORS[actor_key]
|
| 352 |
+
acct = account_id(spec["account"])
|
| 353 |
+
payload: dict[str, Any] = {
|
| 354 |
+
"eventVersion": "1.09",
|
| 355 |
+
"userIdentity": _identity(actor_key),
|
| 356 |
+
"eventTime": iso(ts),
|
| 357 |
+
"eventSource": source,
|
| 358 |
+
"eventName": name,
|
| 359 |
+
"awsRegion": REGION,
|
| 360 |
+
"sourceIPAddress": ip,
|
| 361 |
+
"userAgent": user_agent,
|
| 362 |
+
"requestParameters": None if incomplete else (request or {}),
|
| 363 |
+
"responseElements": None if read_only or incomplete else {"_lab": True},
|
| 364 |
+
"requestID": f"req-{event_id.lower()}",
|
| 365 |
+
"eventID": event_id,
|
| 366 |
+
"readOnly": read_only,
|
| 367 |
+
"eventType": "AwsApiCall",
|
| 368 |
+
"managementEvent": True,
|
| 369 |
+
"recipientAccountId": acct,
|
| 370 |
+
"errorCode": error_code,
|
| 371 |
+
"lab_event_id": lab_event_id,
|
| 372 |
+
"lab_family": lab_family,
|
| 373 |
+
"change_ticket": ticket,
|
| 374 |
+
"split": split_for(ts),
|
| 375 |
+
"incomplete": incomplete,
|
| 376 |
+
}
|
| 377 |
+
return payload
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _authored() -> list[dict[str, Any]]:
|
| 381 |
+
rows: list[dict[str, Any]] = []
|
| 382 |
+
specs = [
|
| 383 |
+
(
|
| 384 |
+
"EVT-MAINT-DEV-01",
|
| 385 |
+
START + timedelta(days=4, hours=2, minutes=15),
|
| 386 |
+
"terraform-staging",
|
| 387 |
+
"iam.amazonaws.com",
|
| 388 |
+
"AttachRolePolicy",
|
| 389 |
+
{"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"},
|
| 390 |
+
{"lab_family": Family.BENIGN_MAINTENANCE.value, "ticket": MAINTENANCE_TICKET, "ua": "terraform/1.9.0", "ip": "198.51.100.20"},
|
| 391 |
+
),
|
| 392 |
+
(
|
| 393 |
+
"EVT-SG-SAFE-DEV-01",
|
| 394 |
+
START + timedelta(days=4, hours=2, minutes=40),
|
| 395 |
+
"terraform-staging",
|
| 396 |
+
"ec2.amazonaws.com",
|
| 397 |
+
"AuthorizeSecurityGroupIngress",
|
| 398 |
+
{"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443},
|
| 399 |
+
{"lab_family": Family.BENIGN_RESTRICTED_SG.value, "ticket": MAINTENANCE_TICKET, "ua": "terraform/1.9.0", "ip": "198.51.100.20"},
|
| 400 |
+
),
|
| 401 |
+
(
|
| 402 |
+
"EVT-IAM-DEV-01",
|
| 403 |
+
START + timedelta(days=2, hours=3, minutes=12),
|
| 404 |
+
"alice",
|
| 405 |
+
"iam.amazonaws.com",
|
| 406 |
+
"AttachUserPolicy",
|
| 407 |
+
{"userName": "carol", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"},
|
| 408 |
+
{"lab_family": Family.REVIEW_IAM.value, "ua": "console.amazonaws.com", "ip": "203.0.113.10"},
|
| 409 |
+
),
|
| 410 |
+
(
|
| 411 |
+
"EVT-S3-DEV-01",
|
| 412 |
+
START + timedelta(days=3, hours=14, minutes=22),
|
| 413 |
+
"bob",
|
| 414 |
+
"s3.amazonaws.com",
|
| 415 |
+
"DeletePublicAccessBlock",
|
| 416 |
+
{"bucketName": "prod-invoice-export"},
|
| 417 |
+
{"lab_family": Family.REVIEW_EXPOSURE.value, "ua": "aws-cli/2.15.0", "ip": "192.0.2.55"},
|
| 418 |
+
),
|
| 419 |
+
(
|
| 420 |
+
"EVT-SG-OPEN-DEV-01",
|
| 421 |
+
START + timedelta(days=2, hours=18),
|
| 422 |
+
"alice",
|
| 423 |
+
"ec2.amazonaws.com",
|
| 424 |
+
"AuthorizeSecurityGroupIngress",
|
| 425 |
+
{"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22},
|
| 426 |
+
{"lab_family": Family.REVIEW_EXPOSURE.value, "ua": "console.amazonaws.com"},
|
| 427 |
+
),
|
| 428 |
+
(
|
| 429 |
+
"EVT-TRAIL-DEV-01",
|
| 430 |
+
START + timedelta(days=5, hours=1, minutes=5),
|
| 431 |
+
"carol",
|
| 432 |
+
"cloudtrail.amazonaws.com",
|
| 433 |
+
"StopLogging",
|
| 434 |
+
{"name": "org-management"},
|
| 435 |
+
{"lab_family": Family.REVIEW_LOGGING.value, "ip": "192.0.2.55"},
|
| 436 |
+
),
|
| 437 |
+
(
|
| 438 |
+
"EVT-ROOT-DEV-01",
|
| 439 |
+
START + timedelta(days=6, hours=9),
|
| 440 |
+
"root",
|
| 441 |
+
"signin.amazonaws.com",
|
| 442 |
+
"ConsoleLogin",
|
| 443 |
+
{},
|
| 444 |
+
{"lab_family": Family.REVIEW_ROOT.value, "ua": "signin.amazonaws.com"},
|
| 445 |
+
),
|
| 446 |
+
(
|
| 447 |
+
"EVT-TRUST-DEV-01",
|
| 448 |
+
START + timedelta(days=7, hours=16, minutes=10),
|
| 449 |
+
"dave",
|
| 450 |
+
"iam.amazonaws.com",
|
| 451 |
+
"UpdateAssumeRolePolicy",
|
| 452 |
+
{"roleName": "ci-deploy", "policyDocument": '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":"sts:AssumeRole"}]}'},
|
| 453 |
+
{"lab_family": Family.REVIEW_TRUST.value},
|
| 454 |
+
),
|
| 455 |
+
(
|
| 456 |
+
"EVT-KEY-DEV-01",
|
| 457 |
+
START + timedelta(days=6, hours=11, minutes=20),
|
| 458 |
+
"bob",
|
| 459 |
+
"iam.amazonaws.com",
|
| 460 |
+
"CreateAccessKey",
|
| 461 |
+
{"userName": "deploy-bot"},
|
| 462 |
+
{"lab_family": Family.REVIEW_IAM.value},
|
| 463 |
+
),
|
| 464 |
+
(
|
| 465 |
+
"EVT-INSUFF-DEV-01",
|
| 466 |
+
START + timedelta(days=1, hours=11),
|
| 467 |
+
"bob",
|
| 468 |
+
"s3.amazonaws.com",
|
| 469 |
+
"PutBucketPolicy",
|
| 470 |
+
None,
|
| 471 |
+
{"lab_family": Family.INSUFFICIENT.value, "incomplete": True},
|
| 472 |
+
),
|
| 473 |
+
(
|
| 474 |
+
"EVT-MAINT-01",
|
| 475 |
+
START + timedelta(days=11, hours=2, minutes=20),
|
| 476 |
+
"terraform-staging",
|
| 477 |
+
"iam.amazonaws.com",
|
| 478 |
+
"AttachRolePolicy",
|
| 479 |
+
{"roleName": "job-runner", "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"},
|
| 480 |
+
{"lab_family": Family.BENIGN_MAINTENANCE.value, "ticket": MAINTENANCE_TICKET, "ua": "terraform/1.9.0", "ip": "198.51.100.20"},
|
| 481 |
+
),
|
| 482 |
+
(
|
| 483 |
+
"EVT-SG-SAFE-01",
|
| 484 |
+
START + timedelta(days=11, hours=3, minutes=5),
|
| 485 |
+
"terraform-staging",
|
| 486 |
+
"ec2.amazonaws.com",
|
| 487 |
+
"AuthorizeSecurityGroupIngress",
|
| 488 |
+
{"groupId": "sg-staging-web", "cidrIp": "10.0.0.0/8", "fromPort": 443, "toPort": 443},
|
| 489 |
+
{"lab_family": Family.BENIGN_RESTRICTED_SG.value, "ticket": MAINTENANCE_TICKET, "ua": "terraform/1.9.0", "ip": "198.51.100.20"},
|
| 490 |
+
),
|
| 491 |
+
(
|
| 492 |
+
"EVT-IAM-01",
|
| 493 |
+
START + timedelta(days=10, hours=2, minutes=48),
|
| 494 |
+
"alice",
|
| 495 |
+
"iam.amazonaws.com",
|
| 496 |
+
"AttachRolePolicy",
|
| 497 |
+
{"roleName": "break-glass", "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess"},
|
| 498 |
+
{"lab_family": Family.REVIEW_IAM.value, "ua": "console.amazonaws.com"},
|
| 499 |
+
),
|
| 500 |
+
(
|
| 501 |
+
"EVT-S3-01",
|
| 502 |
+
START + timedelta(days=10, hours=15, minutes=30),
|
| 503 |
+
"bob",
|
| 504 |
+
"s3.amazonaws.com",
|
| 505 |
+
"DeletePublicAccessBlock",
|
| 506 |
+
{"bucketName": "prod-invoice-export"},
|
| 507 |
+
{"lab_family": Family.REVIEW_EXPOSURE.value, "ip": "192.0.2.55"},
|
| 508 |
+
),
|
| 509 |
+
(
|
| 510 |
+
"EVT-SG-OPEN-01",
|
| 511 |
+
START + timedelta(days=10, hours=18, minutes=20),
|
| 512 |
+
"bob",
|
| 513 |
+
"ec2.amazonaws.com",
|
| 514 |
+
"AuthorizeSecurityGroupIngress",
|
| 515 |
+
{"groupId": "sg-prod-web", "cidrIp": "0.0.0.0/0", "fromPort": 22, "toPort": 22},
|
| 516 |
+
{"lab_family": Family.REVIEW_EXPOSURE.value},
|
| 517 |
+
),
|
| 518 |
+
(
|
| 519 |
+
"EVT-TRAIL-01",
|
| 520 |
+
START + timedelta(days=12, hours=0, minutes=40),
|
| 521 |
+
"carol",
|
| 522 |
+
"cloudtrail.amazonaws.com",
|
| 523 |
+
"StopLogging",
|
| 524 |
+
{"name": "org-management"},
|
| 525 |
+
{"lab_family": Family.REVIEW_LOGGING.value, "ip": "192.0.2.55"},
|
| 526 |
+
),
|
| 527 |
+
(
|
| 528 |
+
"EVT-ROOT-01",
|
| 529 |
+
START + timedelta(days=12, hours=10, minutes=15),
|
| 530 |
+
"root",
|
| 531 |
+
"iam.amazonaws.com",
|
| 532 |
+
"CreateAccessKey",
|
| 533 |
+
{"userName": "root"},
|
| 534 |
+
{"lab_family": Family.REVIEW_ROOT.value, "ua": "console.amazonaws.com"},
|
| 535 |
+
),
|
| 536 |
+
(
|
| 537 |
+
"EVT-TRUST-01",
|
| 538 |
+
START + timedelta(days=13, hours=11, minutes=20),
|
| 539 |
+
"dave",
|
| 540 |
+
"iam.amazonaws.com",
|
| 541 |
+
"UpdateAssumeRolePolicy",
|
| 542 |
+
{"roleName": "ci-deploy", "policyDocument": '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":"sts:AssumeRole"}]}'},
|
| 543 |
+
{"lab_family": Family.REVIEW_TRUST.value},
|
| 544 |
+
),
|
| 545 |
+
(
|
| 546 |
+
"EVT-GD-01",
|
| 547 |
+
START + timedelta(days=13, hours=1, minutes=10),
|
| 548 |
+
"alice",
|
| 549 |
+
"guardduty.amazonaws.com",
|
| 550 |
+
"UpdateDetector",
|
| 551 |
+
{"detectorId": "det-prod-01", "enable": False},
|
| 552 |
+
{"lab_family": Family.REVIEW_LOGGING.value, "ua": "console.amazonaws.com"},
|
| 553 |
+
),
|
| 554 |
+
(
|
| 555 |
+
"EVT-KEY-01",
|
| 556 |
+
START + timedelta(days=11, hours=11, minutes=40),
|
| 557 |
+
"bob",
|
| 558 |
+
"iam.amazonaws.com",
|
| 559 |
+
"CreateAccessKey",
|
| 560 |
+
{"userName": "deploy-bot"},
|
| 561 |
+
{"lab_family": Family.REVIEW_IAM.value},
|
| 562 |
+
),
|
| 563 |
+
(
|
| 564 |
+
"EVT-INSUFF-01",
|
| 565 |
+
START + timedelta(days=9, hours=13),
|
| 566 |
+
"bob",
|
| 567 |
+
"s3.amazonaws.com",
|
| 568 |
+
"PutBucketAcl",
|
| 569 |
+
None,
|
| 570 |
+
{"lab_family": Family.INSUFFICIENT.value, "incomplete": True},
|
| 571 |
+
),
|
| 572 |
+
]
|
| 573 |
+
for event_id, ts, actor, source, name, request, extra in specs:
|
| 574 |
+
rows.append(
|
| 575 |
+
_event(
|
| 576 |
+
event_id,
|
| 577 |
+
ts,
|
| 578 |
+
actor,
|
| 579 |
+
source,
|
| 580 |
+
name,
|
| 581 |
+
request,
|
| 582 |
+
lab_event_id=event_id,
|
| 583 |
+
lab_family=str(extra.get("lab_family") or ""),
|
| 584 |
+
ticket=str(extra.get("ticket") or ""),
|
| 585 |
+
incomplete=bool(extra.get("incomplete")),
|
| 586 |
+
user_agent=str(extra.get("ua") or "aws-cli/2.15.0"),
|
| 587 |
+
ip=str(extra.get("ip") or "203.0.113.10"),
|
| 588 |
+
)
|
| 589 |
+
)
|
| 590 |
+
# Before-state companions (not gold review rows).
|
| 591 |
+
rows.append(
|
| 592 |
+
_event(
|
| 593 |
+
"EVT-S3-BEFORE-DEV",
|
| 594 |
+
START + timedelta(days=3, hours=10),
|
| 595 |
+
"dave",
|
| 596 |
+
"s3.amazonaws.com",
|
| 597 |
+
"PutPublicAccessBlock",
|
| 598 |
+
{
|
| 599 |
+
"bucketName": "prod-invoice-export",
|
| 600 |
+
"PublicAccessBlockConfiguration": {
|
| 601 |
+
"BlockPublicAcls": True,
|
| 602 |
+
"IgnorePublicAcls": True,
|
| 603 |
+
"BlockPublicPolicy": True,
|
| 604 |
+
"RestrictPublicBuckets": True,
|
| 605 |
+
},
|
| 606 |
+
},
|
| 607 |
+
read_only=False,
|
| 608 |
+
)
|
| 609 |
+
)
|
| 610 |
+
rows.append(
|
| 611 |
+
_event(
|
| 612 |
+
"EVT-S3-BEFORE-01",
|
| 613 |
+
START + timedelta(days=10, hours=9),
|
| 614 |
+
"dave",
|
| 615 |
+
"s3.amazonaws.com",
|
| 616 |
+
"PutPublicAccessBlock",
|
| 617 |
+
{
|
| 618 |
+
"bucketName": "prod-invoice-export",
|
| 619 |
+
"PublicAccessBlockConfiguration": {
|
| 620 |
+
"BlockPublicAcls": True,
|
| 621 |
+
"IgnorePublicAcls": True,
|
| 622 |
+
"BlockPublicPolicy": True,
|
| 623 |
+
"RestrictPublicBuckets": True,
|
| 624 |
+
},
|
| 625 |
+
},
|
| 626 |
+
)
|
| 627 |
+
)
|
| 628 |
+
rows.append(
|
| 629 |
+
_event(
|
| 630 |
+
"EVT-TRAIL-BEFORE-DEV",
|
| 631 |
+
START + timedelta(days=1, hours=8),
|
| 632 |
+
"dave",
|
| 633 |
+
"cloudtrail.amazonaws.com",
|
| 634 |
+
"StartLogging",
|
| 635 |
+
{"name": "org-management"},
|
| 636 |
+
)
|
| 637 |
+
)
|
| 638 |
+
rows.append(
|
| 639 |
+
_event(
|
| 640 |
+
"EVT-TRAIL-BEFORE-01",
|
| 641 |
+
START + timedelta(days=9, hours=8),
|
| 642 |
+
"dave",
|
| 643 |
+
"cloudtrail.amazonaws.com",
|
| 644 |
+
"StartLogging",
|
| 645 |
+
{"name": "org-management"},
|
| 646 |
+
)
|
| 647 |
+
)
|
| 648 |
+
return rows
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
def _background(seed: int) -> list[dict[str, Any]]:
|
| 652 |
+
rng = np.random.default_rng(seed)
|
| 653 |
+
rows: list[dict[str, Any]] = []
|
| 654 |
+
humans = ("alice", "bob", "carol", "dave")
|
| 655 |
+
services = ("terraform-prod", "terraform-staging", "ci-github", "lambda-rotator")
|
| 656 |
+
seq = 0
|
| 657 |
+
for day in range(DAYS):
|
| 658 |
+
for _ in range(18):
|
| 659 |
+
seq += 1
|
| 660 |
+
actor = str(rng.choice(humans + services))
|
| 661 |
+
source, name, read_only = READ_EVENTS[int(rng.integers(0, len(READ_EVENTS)))]
|
| 662 |
+
hour = int(rng.integers(8, 18))
|
| 663 |
+
minute = int(rng.integers(0, 60))
|
| 664 |
+
ts = START + timedelta(days=day, hours=hour, minutes=minute, seconds=int(rng.integers(0, 50)))
|
| 665 |
+
request = {"marker": "lab-read"}
|
| 666 |
+
if name == "GetBucketAcl":
|
| 667 |
+
request = {"bucketName": "prod-invoice-export"}
|
| 668 |
+
if name == "GetRole":
|
| 669 |
+
request = {"roleName": "job-runner"}
|
| 670 |
+
rows.append(
|
| 671 |
+
_event(
|
| 672 |
+
f"bg-{seq:04d}",
|
| 673 |
+
ts,
|
| 674 |
+
actor,
|
| 675 |
+
source,
|
| 676 |
+
name,
|
| 677 |
+
request,
|
| 678 |
+
read_only=read_only,
|
| 679 |
+
user_agent="aws-cli/2.15.0" if actor in humans else "terraform/1.9.0",
|
| 680 |
+
ip="198.51.100.20" if actor not in humans else "203.0.113.10",
|
| 681 |
+
)
|
| 682 |
+
)
|
| 683 |
+
for _ in range(3):
|
| 684 |
+
seq += 1
|
| 685 |
+
ts = START + timedelta(days=day, hours=int(rng.integers(9, 16)), minutes=int(rng.integers(0, 60)))
|
| 686 |
+
rows.append(
|
| 687 |
+
_event(
|
| 688 |
+
f"tag-{seq:04d}",
|
| 689 |
+
ts,
|
| 690 |
+
str(rng.choice(("terraform-prod", "terraform-staging", "ci-github"))),
|
| 691 |
+
"ec2.amazonaws.com",
|
| 692 |
+
"CreateTags",
|
| 693 |
+
{"resourcesSet": {"items": [{"resourceId": "i-labweb01"}]}, "tagSet": {"items": [{"key": "env", "value": "lab"}]}},
|
| 694 |
+
user_agent="terraform/1.9.0",
|
| 695 |
+
ip="198.51.100.20",
|
| 696 |
+
)
|
| 697 |
+
)
|
| 698 |
+
return rows
|
| 699 |
+
|
| 700 |
+
|
| 701 |
+
def build_lab(seed: int = DEFAULT_SEED) -> dict[str, Any]:
|
| 702 |
+
events = _authored() + _background(seed)
|
| 703 |
+
frame = pd.DataFrame(events)
|
| 704 |
+
gold = pd.DataFrame([item.model_dump() for item in lab_events()])
|
| 705 |
+
return {
|
| 706 |
+
"events": frame,
|
| 707 |
+
"gold": gold,
|
| 708 |
+
"n_events": int(len(frame)),
|
| 709 |
+
"n_accounts": 3,
|
| 710 |
+
"seed": seed,
|
| 711 |
+
}
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
def filter_lab(pack: dict[str, Any], scenario: str) -> dict[str, Any]:
|
| 715 |
+
events: pd.DataFrame = pack["events"].copy()
|
| 716 |
+
gold: pd.DataFrame = pack["gold"].copy()
|
| 717 |
+
if scenario == "maintenance":
|
| 718 |
+
keep = gold["family"].isin({Family.BENIGN_MAINTENANCE.value, Family.BENIGN_RESTRICTED_SG.value, Family.BACKGROUND.value})
|
| 719 |
+
gold = gold.loc[gold["family"].isin({Family.BENIGN_MAINTENANCE.value, Family.BENIGN_RESTRICTED_SG.value})].copy()
|
| 720 |
+
ids = set(gold["event_id"])
|
| 721 |
+
events = events.loc[events["eventID"].isin(ids) | events["eventName"].isin([item[1] for item in READ_EVENTS])].copy()
|
| 722 |
+
_ = keep
|
| 723 |
+
elif scenario == "exposure":
|
| 724 |
+
gold = gold.loc[gold["family"].eq(Family.REVIEW_EXPOSURE.value)].copy()
|
| 725 |
+
ids = set(gold["event_id"]) | {"EVT-S3-BEFORE-DEV", "EVT-S3-BEFORE-01"}
|
| 726 |
+
events = events.loc[events["eventID"].isin(ids) | events["eventName"].isin(["GetBucketAcl", "DescribeInstances"])].copy()
|
| 727 |
+
elif scenario == "iam":
|
| 728 |
+
gold = gold.loc[gold["family"].isin({Family.REVIEW_IAM.value, Family.REVIEW_ROOT.value, Family.REVIEW_TRUST.value})].copy()
|
| 729 |
+
ids = set(gold["event_id"])
|
| 730 |
+
events = events.loc[events["eventID"].isin(ids) | events["eventName"].eq("ListUsers")].copy()
|
| 731 |
+
elif scenario == "logging":
|
| 732 |
+
gold = gold.loc[gold["family"].eq(Family.REVIEW_LOGGING.value)].copy()
|
| 733 |
+
ids = set(gold["event_id"]) | {"EVT-TRAIL-BEFORE-DEV", "EVT-TRAIL-BEFORE-01"}
|
| 734 |
+
events = events.loc[events["eventID"].isin(ids) | events["eventName"].eq("DescribeTrails")].copy()
|
| 735 |
+
elif scenario == "broken":
|
| 736 |
+
broken = events.head(40).copy()
|
| 737 |
+
broken["eventTime"] = "not-a-timestamp"
|
| 738 |
+
return {"events": broken, "gold": gold.iloc[0:0], "n_events": len(broken), "n_accounts": 0, "seed": pack.get("seed")}
|
| 739 |
+
return {"events": events.reset_index(drop=True), "gold": gold.reset_index(drop=True), "n_events": int(len(events)), "n_accounts": 3, "seed": pack.get("seed")}
|
| 740 |
+
|
| 741 |
+
|
| 742 |
+
def cloudtrail_document(events: pd.DataFrame) -> dict[str, Any]:
|
| 743 |
+
records = []
|
| 744 |
+
for row in events.to_dict(orient="records"):
|
| 745 |
+
item = dict(row)
|
| 746 |
+
records.append(item)
|
| 747 |
+
return {"Records": records}
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
def write_examples(folder: Path, seed: int = DEFAULT_SEED) -> dict[str, Any]:
|
| 751 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 752 |
+
pack = build_lab(seed)
|
| 753 |
+
events: pd.DataFrame = pack["events"]
|
| 754 |
+
gold = [item.model_dump() for item in lab_events()]
|
| 755 |
+
document = cloudtrail_document(events)
|
| 756 |
+
(folder / "events.json").write_text(json.dumps(document, indent=2, default=str), encoding="utf-8")
|
| 757 |
+
preview_ids = {item["event_id"] for item in gold}
|
| 758 |
+
preview = events.loc[events["eventID"].isin(preview_ids) | events["eventName"].isin(["GetBucketAcl", "ListUsers", "StartLogging", "PutPublicAccessBlock"])]
|
| 759 |
+
(folder / "events_preview.json").write_text(json.dumps(cloudtrail_document(preview.head(80)), indent=2, default=str), encoding="utf-8")
|
| 760 |
+
with (folder / "events.jsonl").open("w", encoding="utf-8") as handle:
|
| 761 |
+
for row in events.head(80).to_dict(orient="records"):
|
| 762 |
+
handle.write(json.dumps(row, default=str) + "\n")
|
| 763 |
+
flat = pd.DataFrame(
|
| 764 |
+
{
|
| 765 |
+
"event_id": events["eventID"],
|
| 766 |
+
"timestamp": events["eventTime"],
|
| 767 |
+
"event_name": events["eventName"],
|
| 768 |
+
"event_source": events["eventSource"],
|
| 769 |
+
"account_id": events["recipientAccountId"],
|
| 770 |
+
"split": events["split"],
|
| 771 |
+
"lab_event_id": events["lab_event_id"],
|
| 772 |
+
}
|
| 773 |
+
)
|
| 774 |
+
flat.head(400).to_csv(folder / "events_preview.csv", index=False)
|
| 775 |
+
(folder / "gold_events.json").write_text(json.dumps(gold, indent=2), encoding="utf-8")
|
| 776 |
+
sample = cloudtrail_document(events.loc[events["eventID"].astype(str).str.startswith("EVT-")].head(12))
|
| 777 |
+
(folder / "cloudtrail_sample.json").write_text(json.dumps(sample, indent=2, default=str), encoding="utf-8")
|
| 778 |
+
schema = {
|
| 779 |
+
"schema_id": "ariacloudtrail.change_event.v1",
|
| 780 |
+
"required_after_parse": ["timestamp", "event_name"],
|
| 781 |
+
"cloudtrail_fields": ["eventTime", "eventName", "eventSource", "userIdentity", "recipientAccountId"],
|
| 782 |
+
"timezone": "UTC",
|
| 783 |
+
"null_meaning": "missing field, not a safe default",
|
| 784 |
+
"change_types": [item.value for item in ChangeType if item != ChangeType.NONE],
|
| 785 |
+
}
|
| 786 |
+
(folder / "schema.json").write_text(json.dumps(schema, indent=2), encoding="utf-8")
|
| 787 |
+
splits = {
|
| 788 |
+
"development": "2026-04-01T00:00:00Z/2026-04-10T00:00:00Z",
|
| 789 |
+
"test": "2026-04-10T00:00:00Z/2026-04-15T00:00:00Z",
|
| 790 |
+
"group": "account and period; one authored event stays in one split",
|
| 791 |
+
"service_principals": "AssumedRole actors are modeled separately from IAM users",
|
| 792 |
+
"history": "before/after and burst counts use only earlier events",
|
| 793 |
+
}
|
| 794 |
+
(folder / "splits.json").write_text(json.dumps(splits, indent=2), encoding="utf-8")
|
| 795 |
+
(folder / "protocol.md").write_text(
|
| 796 |
+
"\n".join(
|
| 797 |
+
[
|
| 798 |
+
"# AriaCloudTrail laboratory protocol",
|
| 799 |
+
"",
|
| 800 |
+
"Synthetic AWS CloudTrail management events, seed 16, three lab accounts.",
|
| 801 |
+
"Account IDs 111111111111 / 222222222222 / 333333333333 are aliases for prod/staging/sandbox.",
|
| 802 |
+
"No live cloud credentials, no configuration changes, no network calls to AWS.",
|
| 803 |
+
"",
|
| 804 |
+
"Gold `needs_review_*` ranges are authored sensitive changes. Sunday 02:00-06:00 UTC on staging with ticket CHG-4411 is approved maintenance.",
|
| 805 |
+
"Before/after is only claimed when both events exist in the export. A single Put/Delete does not prove current exposure.",
|
| 806 |
+
"",
|
| 807 |
+
"Split is by period (test starts 2026-04-10) and account. Rows of one authored event stay together.",
|
| 808 |
+
]
|
| 809 |
+
),
|
| 810 |
+
encoding="utf-8",
|
| 811 |
+
)
|
| 812 |
+
(folder / "ruleset.json").write_text(
|
| 813 |
+
json.dumps(
|
| 814 |
+
{
|
| 815 |
+
"maintenance": {
|
| 816 |
+
"account": "acct_staging",
|
| 817 |
+
"actor": "role_terraform-staging",
|
| 818 |
+
"ticket": MAINTENANCE_TICKET,
|
| 819 |
+
"window": "Sunday 02:00-06:00 UTC",
|
| 820 |
+
"allowed": ["iam_privilege_grant", "security_group_ingress"],
|
| 821 |
+
"forbidden": ["AdministratorAccess", "0.0.0.0/0", "root"],
|
| 822 |
+
},
|
| 823 |
+
"event_map_count": 28,
|
| 824 |
+
},
|
| 825 |
+
indent=2,
|
| 826 |
+
),
|
| 827 |
+
encoding="utf-8",
|
| 828 |
+
)
|
| 829 |
+
return {"n_events": int(len(events)), "n_accounts": 3, "n_gold": len(gold), "seed": seed}
|
demo/src/i18n.py
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
TEXTS = {
|
| 4 |
+
"en": {
|
| 5 |
+
"title": "AriaCloudTrail — Sensitive Cloud Change Review",
|
| 6 |
+
"subtitle": "Review IAM, logging, and exposure changes in exported AWS CloudTrail. An approved maintenance window is not the same as a live misconfiguration.",
|
| 7 |
+
"kind": "Cloud SOC workstation · CPU · synthetic CloudTrail lab · no cloud credentials",
|
| 8 |
+
"run_sample": "Run sample",
|
| 9 |
+
"cancel": "Cancel run",
|
| 10 |
+
"reset": "Reset defaults",
|
| 11 |
+
"load_sample": "Load 14-day lab pack",
|
| 12 |
+
"language": "Language",
|
| 13 |
+
"scenario": "Scenario",
|
| 14 |
+
"scenario_full": "Full lab (3 accounts, 14 days)",
|
| 15 |
+
"scenario_maintenance": "Sunday staging maintenance",
|
| 16 |
+
"scenario_exposure": "Public S3 / open security group",
|
| 17 |
+
"scenario_iam": "IAM, root, and wildcard trust",
|
| 18 |
+
"scenario_logging": "Trail / detector disable",
|
| 19 |
+
"scenario_broken": "Broken timestamps (insufficient)",
|
| 20 |
+
"threshold": "Review threshold T (score floor)",
|
| 21 |
+
"hide_context": "Hide approved-maintenance context",
|
| 22 |
+
"actor_filter": "Actor alias contains",
|
| 23 |
+
"resource_filter": "Resource alias contains",
|
| 24 |
+
"change_filter": "Change type",
|
| 25 |
+
"sample_note": "Synthetic CloudTrail management events, seed 16. Account IDs, ARNs, IPs, and access keys are aliased. Before/after appears only when both events are in this export. A finding means needs review, not proven current exposure. This demo never asks for cloud credentials and never changes AWS.",
|
| 26 |
+
"live_note": "Live parse, ruleset, role/time baseline, and limited correlation",
|
| 27 |
+
"cached_note": "Recorded preview",
|
| 28 |
+
"kpi_review": "Needs security review",
|
| 29 |
+
"kpi_context_sub": "context changes",
|
| 30 |
+
"kpi_coverage": "Parse coverage",
|
| 31 |
+
"kpi_incomplete": "Insufficient rows",
|
| 32 |
+
"kpi_incomplete_sub": "missing time/event or request body",
|
| 33 |
+
"kpi_recall": "Test event recall",
|
| 34 |
+
"kpi_precision": "Precision @ 8/day",
|
| 35 |
+
"kpi_precision_sub": "held-out daily review capacity",
|
| 36 |
+
"kpi_type": "Change-type accuracy",
|
| 37 |
+
"kpi_type_sub": "gold eventName mapping",
|
| 38 |
+
"kpi_fa": "False alarms / account-day",
|
| 39 |
+
"kpi_fa_sub": "security-review without a review label",
|
| 40 |
+
"kpi_time": "Analyze time",
|
| 41 |
+
"optimized": "AriaCloudTrail",
|
| 42 |
+
"baseline": "rule-severity baseline",
|
| 43 |
+
"empty": "No live result yet. Load the lab pack or upload CloudTrail JSON/JSONL/CSV, then run.",
|
| 44 |
+
"empty_card": "Select a finding to open observed facts, inferred tags, and why it is reviewable. A click shows redacted evidence events.",
|
| 45 |
+
"empty_state": "Select a change to open before/after. Both sides stay unknown unless both events exist.",
|
| 46 |
+
"status": "Run status",
|
| 47 |
+
"upload_hint": "CloudTrail JSON (`Records`), JSONL, or CSV. Required after parse: timestamp and eventName. No AWS keys. Uploaded account IDs, ARNs, IPs, and access keys are aliased.",
|
| 48 |
+
"advanced": "Advanced / paste extra events",
|
| 49 |
+
"custom_logs": "Extra CloudTrail events (JSON, JSONL, or CSV)",
|
| 50 |
+
"logs_file": "CloudTrail file",
|
| 51 |
+
"feedback": "Analyst note (not used to retrain)",
|
| 52 |
+
"correct": "Correct",
|
| 53 |
+
"false_positive": "False positive",
|
| 54 |
+
"insufficient": "Insufficient evidence",
|
| 55 |
+
"needs_review": "Needs review",
|
| 56 |
+
"timeline_plot": "Selected account change timeline (aliased actor vs time)",
|
| 57 |
+
"cmp_plot": "Held-out event recall and false alarms by method",
|
| 58 |
+
"cal_plot": "Threshold vs alert count and test recall",
|
| 59 |
+
"scatter_plot": "Review changes: score versus actor burst",
|
| 60 |
+
"graph_plot": "Actor–resource graph for visible findings",
|
| 61 |
+
"tab_data": "Data",
|
| 62 |
+
"tab_findings": "Findings",
|
| 63 |
+
"tab_evidence": "Evidence",
|
| 64 |
+
"tab_compare": "Compare",
|
| 65 |
+
"tab_method": "Method and limits",
|
| 66 |
+
"observed": "Observed fact",
|
| 67 |
+
"inferred": "Model inference",
|
| 68 |
+
"unknown": "Unknown / missing",
|
| 69 |
+
"action": "Suggested action",
|
| 70 |
+
"severity": "Severity",
|
| 71 |
+
"confidence": "Confidence",
|
| 72 |
+
"workflow": "Workflow",
|
| 73 |
+
"approval": "Approval status",
|
| 74 |
+
"state_card": "Before / after",
|
| 75 |
+
"before": "Before",
|
| 76 |
+
"after": "After",
|
| 77 |
+
"state_note": "Current exposure is unknown unless both events exist in this export. Inventory is not connected.",
|
| 78 |
+
"verdict_ready": "Changes ready for review",
|
| 79 |
+
"verdict_insufficient_evidence": "Insufficient evidence",
|
| 80 |
+
"verdict_invalid_input": "Invalid input",
|
| 81 |
+
"reason_counts": "Parsed {valid} of {raw} events ({dropped} dropped); {changes} mapped sensitive changes.",
|
| 82 |
+
"reason_alerts": "Security-review={security}, context-only={context} at threshold T={threshold}.",
|
| 83 |
+
"reason_eval": "Held-out event recall {recall}; precision@8/day {precision}; false alarms {fa} per account-day.",
|
| 84 |
+
"reason_maint": "Approved-maintenance cases counted as security-review: {n}. AriaCloudTrail should keep this at zero.",
|
| 85 |
+
"reason_score": "Score ranks changes for a human. It is not P(misconfiguration) and this demo never writes to AWS.",
|
| 86 |
+
"method_body": """
|
| 87 |
+
AriaCloudTrail is a laboratory review bench for **exported AWS CloudTrail management events**.
|
| 88 |
+
|
| 89 |
+
**What it decides.** Ten change families: IAM privilege grant, credential create, security-group ingress, S3 public-access request, trail logging change, KMS control, root activity, instance exposure, role-trust change, and detector/recorder disable. It does not prove current exposure and does not change cloud configuration.
|
| 90 |
+
|
| 91 |
+
**Parse and redaction.** CloudTrail `Records` JSON, JSONL, or CSV. Account IDs, ARNs, IPv4, and `AKIA…` keys are aliased. Cloud credentials are not requested.
|
| 92 |
+
|
| 93 |
+
**Before / after.** A previous event on the same account and resource is linked only when it is already in this export. Otherwise the state is **unknown**. One `Put*` or `Delete*` event is a request, not an inventory snapshot.
|
| 94 |
+
|
| 95 |
+
**Methods.** `rule_severity` maps `eventName` to a change type. `role_time_baseline` marks unusual hours for human actors. `correlation` adds actor bursts and paired before/after. `maintenance_aware_rules` keeps Sunday 02:00–06:00 UTC staging Terraform changes with ticket `CHG-4411` as context when they are not admin or 0.0.0.0/0. Threshold T is not chosen on the test split.
|
| 96 |
+
|
| 97 |
+
**Actors.** IAM users, assumed-role service principals, and root are modeled separately. Service principals are not scored as after-hours humans.
|
| 98 |
+
|
| 99 |
+
**Limits.** Synthetic lab, 20k-row / 10MB cap, one heavy analysis at a time. A high score is not malice. This Space never applies IAM, SG, S3, or CloudTrail changes.
|
| 100 |
+
""",
|
| 101 |
+
},
|
| 102 |
+
"fa": {
|
| 103 |
+
"title": "آریاکلودتریل — بازبینی تغییرات حساس ابر",
|
| 104 |
+
"subtitle": "تغییرات IAM، ثبت رویداد و مواجهه را در CloudTrail صادرشده ببینید. پنجره نگهداری تأییدشده با پیکربندی زنده یکی نیست.",
|
| 105 |
+
"kind": "میز کار Cloud SOC · CPU · رویداد آزمایشگاهی · بدون اعتبارنامه ابر",
|
| 106 |
+
"run_sample": "اجرای نمونه",
|
| 107 |
+
"cancel": "لغو اجرا",
|
| 108 |
+
"reset": "بازگشت به پیشفرض",
|
| 109 |
+
"load_sample": "بارگذاری بسته ۱۴روزه",
|
| 110 |
+
"language": "زبان",
|
| 111 |
+
"scenario": "سناریو",
|
| 112 |
+
"scenario_full": "آزمایش کامل (۳ حساب، ۱۴ روز)",
|
| 113 |
+
"scenario_maintenance": "نگهداری یکشنبه استیجینگ",
|
| 114 |
+
"scenario_exposure": "S3 عمومی / گروه امنیتی باز",
|
| 115 |
+
"scenario_iam": "IAM، root و اعتمادwildcard",
|
| 116 |
+
"scenario_logging": "توقف trail / آشکارساز",
|
| 117 |
+
"scenario_broken": "زمان خراب (شواهد ناکافی)",
|
| 118 |
+
"threshold": "آستانه بازبینی T",
|
| 119 |
+
"hide_context": "پنهان کردن زمینه نگهداری تأییدشده",
|
| 120 |
+
"actor_filter": "شناسه بازیگر شامل",
|
| 121 |
+
"resource_filter": "شناسه منبع شامل",
|
| 122 |
+
"change_filter": "نوع تغییر",
|
| 123 |
+
"sample_note": "رویداد ساختگی CloudTrail با بذر ۱۶. شناسه حساب، ARN، نشانی و کلید مستعار میشوند. قبل/بعد فقط وقتی هر دو رویداد در همین خروجی باشد نشان داده میشود. یافته یعنی نیازمند بررسی است نه مواجهه اثباتشده. این دمو اعتبارنامه ابر نمیخواهد و AWS را تغییر نمیدهد.",
|
| 124 |
+
"live_note": "تجزیه زنده، قواعد، خط مبنای نقش/زمان و همبستگی محدود",
|
| 125 |
+
"cached_note": "پیشنمایش ثبتشده",
|
| 126 |
+
"kpi_review": "نیازمند بررسی امنیتی",
|
| 127 |
+
"kpi_context_sub": "تغییر زمینهای",
|
| 128 |
+
"kpi_coverage": "پوشش تجزیه",
|
| 129 |
+
"kpi_incomplete": "ردیف ناکافی",
|
| 130 |
+
"kpi_incomplete_sub": "زمان/رویداد یا بدنه درخواست خالی",
|
| 131 |
+
"kpi_recall": "یادآوری رخداد آزمون",
|
| 132 |
+
"kpi_precision": "دقت در ظرفیت ۸/روز",
|
| 133 |
+
"kpi_precision_sub": "ظرفیت بازبینی روزانه آزمون",
|
| 134 |
+
"kpi_type": "دقت نوع تغییر",
|
| 135 |
+
"kpi_type_sub": "نگاشت eventName طلایی",
|
| 136 |
+
"kpi_fa": "هشدار کاذب در حساب-روز",
|
| 137 |
+
"kpi_fa_sub": "بررسی امنیتی بدون برچسب بررسی",
|
| 138 |
+
"kpi_time": "زمان تحلیل",
|
| 139 |
+
"optimized": "آریاکلودتریل",
|
| 140 |
+
"baseline": "خط مبنای شدت قاعده",
|
| 141 |
+
"empty": "هنوز نتیجه زندهای نیست. بسته آزمایشی را بارگذاری یا فایل CloudTrail را آپلود کنید و اجرا کنید.",
|
| 142 |
+
"empty_card": "یک یافته را انتخاب کنید تا واقعیت مشاهدهشده، ��ستنباط و علت بازبینی باز شود.",
|
| 143 |
+
"empty_state": "برای قبل/بعد یک تغییر را انتخاب کنید. اگر هر دو رویداد نباشد وضعیت نامعلوم است.",
|
| 144 |
+
"status": "وضعیت اجرا",
|
| 145 |
+
"upload_hint": "JSON کلودتریل (`Records`)، JSONL یا CSV. پس از تجزیه timestamp و eventName لازم است. کلید AWS خواسته نمیشود.",
|
| 146 |
+
"advanced": "پیشرفته / چسباندن رویداد اضافه",
|
| 147 |
+
"custom_logs": "رویدادهای اضافه CloudTrail",
|
| 148 |
+
"logs_file": "فایل CloudTrail",
|
| 149 |
+
"feedback": "یادداشت تحلیلگر (آموزش مجدد نمیشود)",
|
| 150 |
+
"correct": "صحیح",
|
| 151 |
+
"false_positive": "خطای مثبت",
|
| 152 |
+
"insufficient": "شواهد ناکافی",
|
| 153 |
+
"needs_review": "نیازمند بررسی",
|
| 154 |
+
"timeline_plot": "خط زمانی تغییر حساب منتخب",
|
| 155 |
+
"cmp_plot": "یادآوری رخداد آزمون و هشدار کاذب به تفکیک روش",
|
| 156 |
+
"cal_plot": "آستانه در برابر تعداد هشدار و یادآوری",
|
| 157 |
+
"scatter_plot": "تغییرهای بازبینی: امتیاز در برابر انفجار بازیگر",
|
| 158 |
+
"graph_plot": "گراف بازیگر–منبع برای یافتههای نمایان",
|
| 159 |
+
"tab_data": "داده",
|
| 160 |
+
"tab_findings": "یافتهها",
|
| 161 |
+
"tab_evidence": "شواهد",
|
| 162 |
+
"tab_compare": "مقایسه",
|
| 163 |
+
"tab_method": "روش و محدودیت",
|
| 164 |
+
"observed": "واقعیت مشاهدهشده",
|
| 165 |
+
"inferred": "استنباط مدل",
|
| 166 |
+
"unknown": "نامعلوم / مفقود",
|
| 167 |
+
"action": "اقدام پیشنهادی",
|
| 168 |
+
"severity": "شدت",
|
| 169 |
+
"confidence": "اطمینان",
|
| 170 |
+
"workflow": "وضعیت کار",
|
| 171 |
+
"approval": "وضعیت تأیید",
|
| 172 |
+
"state_card": "قبل / بعد",
|
| 173 |
+
"before": "قبل",
|
| 174 |
+
"after": "بعد",
|
| 175 |
+
"state_note": "مواجهه فعلی نامعلوم است مگر هر دو رویداد در همین خروجی باشد. موجودی ابر متصل نیست.",
|
| 176 |
+
"verdict_ready": "تغییرها آماده بازبینی",
|
| 177 |
+
"verdict_insufficient_evidence": "شواهد ناکافی",
|
| 178 |
+
"verdict_invalid_input": "ورودی نامعتبر",
|
| 179 |
+
"reason_counts": "از {raw} رویداد، {valid} معتبر ماند ({dropped} حذف) و {changes} تغییر حساس نگاشت شد.",
|
| 180 |
+
"reason_alerts": "بررسی امنیتی={security}، فقط زمینه={context} در آستانه T={threshold}.",
|
| 181 |
+
"reason_eval": "یادآوری رخداد نگهداشته {recall}؛ دقت ظرفیت روزانه {precision}؛ هشدار کاذب {fa} در حساب-روز.",
|
| 182 |
+
"reason_maint": "موارد نگهداری تأییدشده که بررسی امنیتی شمرده شد: {n}. این عدد باید صفر بماند.",
|
| 183 |
+
"reason_score": "امتیاز فقط رتبهبندی بازبینی است نه احتمال پیکربندی نادرست، و این دمو به AWS نمینویسد.",
|
| 184 |
+
"method_body": """
|
| 185 |
+
آریاکلودتریل یک میز بازبینی آزمایشگاهی برای **رویدادهای مدیریتی CloudTrail صادرشده AWS** است.
|
| 186 |
+
|
| 187 |
+
**تصمیم.** ده خانواده تغییر: اعطای دسترسی IAM، ساخت اعتبارنامه، ورود گروه امنیتی، درخواست دسترسی عمومی S3، تغییر ثبت trail، کنترل KMS، فعالیت root، مواجهه نمونه، تغییر اعتماد نقش و خاموشی آشکارساز. مواجهه فعلی را اثبات نمیکند و پیکربندی ابر را تغییر نمیدهد.
|
| 188 |
+
|
| 189 |
+
**تجزیه و پوشاندن.** JSON با `Records`، JSONL یا CSV. شناسه حساب، ARN، IPv4 و کلید `AKIA` مستعار میشوند. اعتبارنامه ابر خواسته نمیشود.
|
| 190 |
+
|
| 191 |
+
**قبل / بعد.** رویداد قبلی همان حساب و منبع فقط وقتی پیوند میخورد که در همین خروجی باشد. در غیر این صورت وضعیت **نامعلوم** است.
|
| 192 |
+
|
| 193 |
+
**روشها.** شدت قاعده `eventName` را نگاشت میکند. خط مبنای نقش/زمان ساعت نامعمول انسان را مشخص میکند. همبستگی انفجار بازیگر و جفت قبل/بعد را میافزاید. قواعد آگاه از نگهداری، تغییر Terraform استیجینگ یکشنبه با بلیت `CHG-4411` را زمینه نگه میدارد مگر Admin یا 0.0.0.0/0 باشد.
|
| 194 |
+
|
| 195 |
+
**محدودیت.** آزمایش ساختگی، سقف ۲۰هزار ردیف یا ۱۰ مگابایت. امتیاز بالا را بدخواهی نخوانید. این Space هیچ تغییری روی AWS اعمال نمیکند.
|
| 196 |
+
""",
|
| 197 |
+
},
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
def t(lang: str, key: str) -> str:
|
| 202 |
+
pack = TEXTS.get(lang) or TEXTS["en"]
|
| 203 |
+
return pack.get(key) or TEXTS["en"].get(key, key)
|
demo/src/mapper.py
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from src.domain import ActorKind, ChangeType
|
| 6 |
+
from src.redaction import (
|
| 7 |
+
alias_account,
|
| 8 |
+
alias_actor,
|
| 9 |
+
alias_ip,
|
| 10 |
+
alias_resource,
|
| 11 |
+
compact_json,
|
| 12 |
+
looks_sensitive,
|
| 13 |
+
normalize_id,
|
| 14 |
+
redact_text,
|
| 15 |
+
)
|
| 16 |
+
from src.ruleset import classify_event, flags_from_request
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def _as_dict(value: Any) -> dict[str, Any]:
|
| 20 |
+
return value if isinstance(value, dict) else {}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _identity(row: dict[str, Any]) -> dict[str, Any]:
|
| 24 |
+
nested = row.get("userIdentity")
|
| 25 |
+
if isinstance(nested, dict):
|
| 26 |
+
return nested
|
| 27 |
+
return {
|
| 28 |
+
"type": row.get("userIdentity.type") or row.get("user_type") or row.get("actor_kind") or "",
|
| 29 |
+
"userName": row.get("userIdentity.userName") or row.get("userName") or row.get("user_name") or "",
|
| 30 |
+
"arn": row.get("userIdentity.arn") or row.get("arn") or "",
|
| 31 |
+
"accountId": row.get("userIdentity.accountId") or row.get("accountId") or row.get("account_id") or "",
|
| 32 |
+
"principalId": row.get("userIdentity.principalId") or "",
|
| 33 |
+
"invokedBy": row.get("userIdentity.invokedBy") or "",
|
| 34 |
+
"sessionContext": row.get("userIdentity.sessionContext") or {},
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def actor_kind_of(identity: dict[str, Any]) -> str:
|
| 39 |
+
raw = normalize_id(identity.get("type")).lower()
|
| 40 |
+
if raw == "root":
|
| 41 |
+
return ActorKind.ROOT.value
|
| 42 |
+
if raw == "awsservice":
|
| 43 |
+
return ActorKind.AWS_SERVICE.value
|
| 44 |
+
if raw == "assumedrole":
|
| 45 |
+
return ActorKind.SERVICE.value
|
| 46 |
+
if raw == "iamuser":
|
| 47 |
+
return ActorKind.HUMAN.value
|
| 48 |
+
hinted = normalize_id(identity.get("actor_kind") or "").lower()
|
| 49 |
+
if hinted in {item.value for item in ActorKind}:
|
| 50 |
+
return hinted
|
| 51 |
+
return ActorKind.UNKNOWN.value
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def actor_name_of(identity: dict[str, Any]) -> str:
|
| 55 |
+
session = _as_dict(identity.get("sessionContext"))
|
| 56 |
+
issuer = _as_dict(session.get("sessionIssuer"))
|
| 57 |
+
return (
|
| 58 |
+
normalize_id(identity.get("userName"))
|
| 59 |
+
or normalize_id(issuer.get("userName"))
|
| 60 |
+
or normalize_id(identity.get("invokedBy"))
|
| 61 |
+
or normalize_id(str(identity.get("arn") or "").rsplit("/", 1)[-1])
|
| 62 |
+
or "unknown"
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def actor_role_of(kind: str, name: str) -> str:
|
| 67 |
+
lowered = name.lower()
|
| 68 |
+
if kind == ActorKind.ROOT.value:
|
| 69 |
+
return "root"
|
| 70 |
+
if "terraform" in lowered:
|
| 71 |
+
return "terraform"
|
| 72 |
+
if lowered.startswith("ci") or "github" in lowered:
|
| 73 |
+
return "ci"
|
| 74 |
+
if "rotator" in lowered or "lambda" in lowered:
|
| 75 |
+
return "rotator"
|
| 76 |
+
if lowered in {"alice", "dave"} or "admin" in lowered or "security" in lowered:
|
| 77 |
+
return "cloud-admin" if lowered == "alice" else ("security" if lowered == "dave" else "operator")
|
| 78 |
+
if lowered == "bob" or "dev" in lowered:
|
| 79 |
+
return "developer"
|
| 80 |
+
if lowered == "carol" or "contract" in lowered:
|
| 81 |
+
return "contractor"
|
| 82 |
+
if kind == ActorKind.SERVICE.value:
|
| 83 |
+
return "service"
|
| 84 |
+
if kind == ActorKind.HUMAN.value:
|
| 85 |
+
return "human"
|
| 86 |
+
return "unknown"
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def _request(row: dict[str, Any]) -> Any:
|
| 90 |
+
if "requestParameters" in row:
|
| 91 |
+
return row.get("requestParameters")
|
| 92 |
+
if "request_parameters" in row:
|
| 93 |
+
return row.get("request_parameters")
|
| 94 |
+
return row.get("request") or {}
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def _response(row: dict[str, Any]) -> Any:
|
| 98 |
+
if "responseElements" in row:
|
| 99 |
+
return row.get("responseElements")
|
| 100 |
+
if "response_elements" in row:
|
| 101 |
+
return row.get("response_elements")
|
| 102 |
+
return row.get("response") or {}
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def resource_from(event_name: str, request: Any, row: dict[str, Any]) -> tuple[str, str]:
|
| 106 |
+
params = request if isinstance(request, dict) else {}
|
| 107 |
+
resources = row.get("resources") if isinstance(row.get("resources"), list) else []
|
| 108 |
+
candidates = [
|
| 109 |
+
("bucket", params.get("bucketName") or params.get("bucket")),
|
| 110 |
+
("role", params.get("roleName") or params.get("roleArn")),
|
| 111 |
+
("user", params.get("userName") or params.get("userArn")),
|
| 112 |
+
("security-group", params.get("groupId") or params.get("groupName")),
|
| 113 |
+
("trail", params.get("name") or params.get("trailName")),
|
| 114 |
+
("kms-key", params.get("keyId") or params.get("keyArn")),
|
| 115 |
+
("instance", params.get("instanceId")),
|
| 116 |
+
("detector", params.get("detectorId")),
|
| 117 |
+
("config", params.get("configRuleName") or params.get("roleARN")),
|
| 118 |
+
]
|
| 119 |
+
for kind, value in candidates:
|
| 120 |
+
if value:
|
| 121 |
+
return kind, normalize_id(value).split("/")[-1]
|
| 122 |
+
if resources:
|
| 123 |
+
first = resources[0] if isinstance(resources[0], dict) else {}
|
| 124 |
+
arn = normalize_id(first.get("ARN") or first.get("arn"))
|
| 125 |
+
return normalize_id(first.get("type") or "resource"), arn.rsplit("/", 1)[-1] or arn
|
| 126 |
+
existing = normalize_id(row.get("resource_alias") or row.get("resource"))
|
| 127 |
+
if existing:
|
| 128 |
+
return normalize_id(row.get("resource_kind") or "resource"), existing
|
| 129 |
+
return "account", event_name or "unknown"
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
def user_agent_class(value: Any) -> str:
|
| 133 |
+
text = normalize_id(value).lower()
|
| 134 |
+
if "console.amazonaws.com" in text or "signin.amazonaws.com" in text:
|
| 135 |
+
return "console"
|
| 136 |
+
if "terraform" in text:
|
| 137 |
+
return "terraform"
|
| 138 |
+
if "aws-cli" in text or "awscli" in text:
|
| 139 |
+
return "cli"
|
| 140 |
+
if "boto" in text or "sdk" in text:
|
| 141 |
+
return "sdk"
|
| 142 |
+
if not text:
|
| 143 |
+
return "unknown"
|
| 144 |
+
return "other"
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
def normalize_event(row: dict[str, Any]) -> dict[str, Any]:
|
| 148 |
+
identity = _identity(row)
|
| 149 |
+
request = _request(row)
|
| 150 |
+
response = _response(row)
|
| 151 |
+
incomplete = request in (None, "", {}) and not row.get("request_summary")
|
| 152 |
+
kind = actor_kind_of(identity) if not row.get("actor_kind") else normalize_id(row.get("actor_kind"))
|
| 153 |
+
name = actor_name_of(identity) if not row.get("actor_alias") else normalize_id(row.get("actor_alias"))
|
| 154 |
+
account = alias_account(
|
| 155 |
+
identity.get("accountId")
|
| 156 |
+
or row.get("recipientAccountId")
|
| 157 |
+
or row.get("account_alias")
|
| 158 |
+
or row.get("account")
|
| 159 |
+
)
|
| 160 |
+
event_name = normalize_id(row.get("eventName") or row.get("event_name"))
|
| 161 |
+
event_source = normalize_id(row.get("eventSource") or row.get("event_source") or "")
|
| 162 |
+
change_type = classify_event(event_name, kind, request)
|
| 163 |
+
if row.get("change_type") and normalize_id(row.get("change_type")) in {item.value for item in ChangeType}:
|
| 164 |
+
change_type = ChangeType(normalize_id(row.get("change_type")))
|
| 165 |
+
flags = flags_from_request(change_type.value, event_name, request, kind)
|
| 166 |
+
resource_kind, resource_name = resource_from(event_name, request, row)
|
| 167 |
+
request_text = redact_text(compact_json(request) or normalize_id(row.get("request_summary")))
|
| 168 |
+
response_text = redact_text(compact_json(response) or normalize_id(row.get("response_summary")))
|
| 169 |
+
error_code = normalize_id(row.get("errorCode") or row.get("error_code"))
|
| 170 |
+
read_only = row.get("readOnly") if "readOnly" in row else row.get("read_only", False)
|
| 171 |
+
if isinstance(read_only, str):
|
| 172 |
+
read_only = read_only.lower() in {"1", "true", "yes"}
|
| 173 |
+
actor_alias = alias_actor(kind, name, account)
|
| 174 |
+
return {
|
| 175 |
+
"event_id": normalize_id(row.get("eventID") or row.get("event_id") or row.get("eventId")),
|
| 176 |
+
"timestamp": normalize_id(row.get("eventTime") or row.get("timestamp") or row.get("time")),
|
| 177 |
+
"account_alias": account,
|
| 178 |
+
"actor_alias": actor_alias,
|
| 179 |
+
"actor_kind": kind,
|
| 180 |
+
"actor_role": normalize_id(row.get("actor_role")) or actor_role_of(kind, name),
|
| 181 |
+
"event_source": event_source,
|
| 182 |
+
"event_name": event_name,
|
| 183 |
+
"change_type": change_type.value,
|
| 184 |
+
"region": normalize_id(row.get("awsRegion") or row.get("region") or "us-east-1"),
|
| 185 |
+
"resource_alias": alias_resource(resource_kind, resource_name),
|
| 186 |
+
"resource_kind": resource_kind,
|
| 187 |
+
"read_only": bool(read_only),
|
| 188 |
+
"error_code": error_code,
|
| 189 |
+
"console": user_agent_class(row.get("userAgent") or row.get("user_agent")) == "console",
|
| 190 |
+
"user_agent_class": user_agent_class(row.get("userAgent") or row.get("user_agent")),
|
| 191 |
+
"source_ip_alias": alias_ip(row.get("sourceIPAddress") or row.get("source_ip") or row.get("ip")),
|
| 192 |
+
"request_summary": request_text[:500],
|
| 193 |
+
"response_summary": response_text[:400],
|
| 194 |
+
"change_ticket": normalize_id(row.get("change_ticket") or row.get("ticket") or ""),
|
| 195 |
+
"lab_event_id": normalize_id(row.get("lab_event_id") or ""),
|
| 196 |
+
"lab_family": normalize_id(row.get("lab_family") or ""),
|
| 197 |
+
"split": normalize_id(row.get("split") or ""),
|
| 198 |
+
"incomplete": bool(incomplete or row.get("incomplete")),
|
| 199 |
+
"cidr_open": flags["cidr_open"],
|
| 200 |
+
"policy_public": flags["policy_public"],
|
| 201 |
+
"admin_policy": flags["admin_policy"],
|
| 202 |
+
"logging_off": flags["logging_off"],
|
| 203 |
+
"detector_off": flags["detector_off"],
|
| 204 |
+
"wildcard_trust": flags["wildcard_trust"],
|
| 205 |
+
"hardening": flags["hardening"],
|
| 206 |
+
"redacted": looks_sensitive(row),
|
| 207 |
+
"raw_redacted": {
|
| 208 |
+
"eventName": event_name,
|
| 209 |
+
"eventSource": event_source,
|
| 210 |
+
"eventTime": normalize_id(row.get("eventTime") or row.get("timestamp")),
|
| 211 |
+
"userIdentity": {
|
| 212 |
+
"type": identity.get("type"),
|
| 213 |
+
"userName": actor_alias,
|
| 214 |
+
"accountId": account,
|
| 215 |
+
},
|
| 216 |
+
"requestParameters": request_text[:500],
|
| 217 |
+
"errorCode": error_code or None,
|
| 218 |
+
},
|
| 219 |
+
}
|
demo/src/metrics.py
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
|
| 6 |
+
from src.domain import (
|
| 7 |
+
CONTEXT_FAMILIES,
|
| 8 |
+
DAILY_REVIEW_CAPACITY,
|
| 9 |
+
REVIEW_FAMILIES,
|
| 10 |
+
AlertClass,
|
| 11 |
+
Method,
|
| 12 |
+
Split,
|
| 13 |
+
)
|
| 14 |
+
from src.detectors import method_flags, ungrounded_claim_count
|
| 15 |
+
from src.schemas import EvaluationRow, Kpis, ThresholdPoint
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def _event_hits(changes: pd.DataFrame, flagged: pd.Series, gold: pd.DataFrame, split: str) -> tuple[float | None, int]:
|
| 19 |
+
if gold is None or gold.empty:
|
| 20 |
+
return None, 0
|
| 21 |
+
events = gold.loc[gold["family"].isin(REVIEW_FAMILIES)]
|
| 22 |
+
if split != "all":
|
| 23 |
+
events = events.loc[events["split"].eq(split)]
|
| 24 |
+
if events.empty:
|
| 25 |
+
return None, 0
|
| 26 |
+
view = changes.loc[changes["split"].eq(split)] if split != "all" else changes
|
| 27 |
+
flags = flagged.loc[view.index] if split != "all" else flagged
|
| 28 |
+
detected = set()
|
| 29 |
+
for event in events.itertuples(index=False):
|
| 30 |
+
overlap = view["gold_event_ids"].fillna("").astype(str).str.contains(event.event_id)
|
| 31 |
+
hit = view.loc[overlap & flags]
|
| 32 |
+
if not hit.empty:
|
| 33 |
+
detected.add(event.event_id)
|
| 34 |
+
return round(len(detected) / len(events), 4), len(events)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _account_days(view: pd.DataFrame) -> float:
|
| 38 |
+
if view.empty:
|
| 39 |
+
return 1.0
|
| 40 |
+
dates = pd.to_datetime(view["timestamp"], utc=True).dt.date
|
| 41 |
+
return float(max(1, view.assign(_date=dates).groupby(["account_alias", "_date"]).ngroups))
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _false_alarms(changes: pd.DataFrame, flagged: pd.Series, split: str) -> float | None:
|
| 45 |
+
view = changes.loc[changes["split"].eq(split)] if split != "all" else changes
|
| 46 |
+
flags = flagged.loc[view.index] if split != "all" else flagged
|
| 47 |
+
if view.empty:
|
| 48 |
+
return None
|
| 49 |
+
fa = view.loc[flags & ~view["gold_family"].isin(REVIEW_FAMILIES)]
|
| 50 |
+
return round(len(fa) / _account_days(view), 4)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _precision_at_k(changes: pd.DataFrame, flagged: pd.Series, split: str, k: int = DAILY_REVIEW_CAPACITY) -> float | None:
|
| 54 |
+
view = changes.loc[changes["split"].eq(split)].copy() if split != "all" else changes.copy()
|
| 55 |
+
if view.empty:
|
| 56 |
+
return None
|
| 57 |
+
flags = flagged.loc[view.index]
|
| 58 |
+
scored = view.loc[flags].copy()
|
| 59 |
+
if scored.empty:
|
| 60 |
+
return 0.0
|
| 61 |
+
scored = scored.assign(_score=scored.get("score", pd.Series(0.0, index=scored.index)), _date=pd.to_datetime(scored["timestamp"], utc=True).dt.date)
|
| 62 |
+
hits = []
|
| 63 |
+
for _, day in scored.groupby("_date"):
|
| 64 |
+
top = day.sort_values("_score", ascending=False).head(k)
|
| 65 |
+
if top.empty:
|
| 66 |
+
continue
|
| 67 |
+
hits.append(float(top["gold_family"].isin(REVIEW_FAMILIES).mean()))
|
| 68 |
+
if not hits:
|
| 69 |
+
return 0.0
|
| 70 |
+
return round(float(np.mean(hits)), 4)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def _change_type_accuracy(changes: pd.DataFrame, gold: pd.DataFrame, split: str) -> float | None:
|
| 74 |
+
if gold is None or gold.empty or changes.empty:
|
| 75 |
+
return None
|
| 76 |
+
events = gold.copy()
|
| 77 |
+
if split != "all":
|
| 78 |
+
events = events.loc[events["split"].eq(split)]
|
| 79 |
+
if events.empty or "change_type" not in events.columns:
|
| 80 |
+
return None
|
| 81 |
+
hits = 0
|
| 82 |
+
n = 0
|
| 83 |
+
for event in events.itertuples(index=False):
|
| 84 |
+
expected = str(getattr(event, "change_type", "") or "")
|
| 85 |
+
if not expected:
|
| 86 |
+
continue
|
| 87 |
+
n += 1
|
| 88 |
+
overlap = changes["gold_event_ids"].fillna("").astype(str).str.contains(event.event_id)
|
| 89 |
+
if split != "all":
|
| 90 |
+
overlap = overlap & changes["split"].eq(split)
|
| 91 |
+
view = changes.loc[overlap]
|
| 92 |
+
if not view.empty and str(view.iloc[0]["change_type"]) == expected:
|
| 93 |
+
hits += 1
|
| 94 |
+
if not n:
|
| 95 |
+
return None
|
| 96 |
+
return round(hits / n, 4)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def _maintenance_as_security(changes: pd.DataFrame, flagged: pd.Series, split: str) -> int:
|
| 100 |
+
view = changes.loc[changes["split"].eq(split)] if split != "all" else changes
|
| 101 |
+
flags = flagged.loc[view.index] if split != "all" else flagged
|
| 102 |
+
if view.empty:
|
| 103 |
+
return 0
|
| 104 |
+
return int((view["gold_family"].isin(CONTEXT_FAMILIES) & flags).sum())
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
def method_rows(changes: pd.DataFrame, gold: pd.DataFrame, threshold: float, parse_coverage: float) -> list[EvaluationRow]:
|
| 108 |
+
rows: list[EvaluationRow] = []
|
| 109 |
+
for split in (Split.DEVELOPMENT.value, Split.TEST.value, "all"):
|
| 110 |
+
for method in Method:
|
| 111 |
+
if method == Method.ARIACLOUDTRAIL:
|
| 112 |
+
flagged = changes["alert_class"].eq(AlertClass.SECURITY_REVIEW.value)
|
| 113 |
+
else:
|
| 114 |
+
flagged = method_flags(changes, method.value, threshold)
|
| 115 |
+
recall, n_events = _event_hits(changes, flagged, gold, split)
|
| 116 |
+
view = changes if split == "all" else changes.loc[changes["split"].eq(split)]
|
| 117 |
+
flags = flagged if split == "all" else flagged.loc[view.index]
|
| 118 |
+
if method == Method.ARIACLOUDTRAIL:
|
| 119 |
+
n_sec = int(view["alert_class"].eq(AlertClass.SECURITY_REVIEW.value).sum()) if not view.empty else 0
|
| 120 |
+
n_ctx = int(view["alert_class"].eq(AlertClass.CONTEXT.value).sum()) if not view.empty else 0
|
| 121 |
+
maint = int(
|
| 122 |
+
(
|
| 123 |
+
view["gold_family"].isin(CONTEXT_FAMILIES)
|
| 124 |
+
& view["alert_class"].eq(AlertClass.SECURITY_REVIEW.value)
|
| 125 |
+
).sum()
|
| 126 |
+
) if not view.empty else 0
|
| 127 |
+
else:
|
| 128 |
+
n_sec = int(flags.sum()) if not view.empty else 0
|
| 129 |
+
n_ctx = 0
|
| 130 |
+
maint = _maintenance_as_security(changes, flagged, split)
|
| 131 |
+
rows.append(
|
| 132 |
+
EvaluationRow(
|
| 133 |
+
method=method.value,
|
| 134 |
+
split=split,
|
| 135 |
+
event_recall=recall,
|
| 136 |
+
precision_at_k=_precision_at_k(changes, flagged, split),
|
| 137 |
+
false_alarms_per_account_day=_false_alarms(changes, flagged, split),
|
| 138 |
+
change_type_accuracy=_change_type_accuracy(changes, gold, split),
|
| 139 |
+
maintenance_as_security=maint,
|
| 140 |
+
ungrounded_claims=ungrounded_claim_count(view) if method == Method.ARIACLOUDTRAIL else 0,
|
| 141 |
+
n_security_alerts=n_sec,
|
| 142 |
+
n_context_alerts=n_ctx,
|
| 143 |
+
n_review_events=n_events,
|
| 144 |
+
parse_coverage=parse_coverage,
|
| 145 |
+
)
|
| 146 |
+
)
|
| 147 |
+
return rows
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def calibration_curve(changes: pd.DataFrame, gold: pd.DataFrame, apply_fn) -> list[ThresholdPoint]:
|
| 151 |
+
points = []
|
| 152 |
+
for threshold in (1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 5.0):
|
| 153 |
+
scored = apply_fn(changes, threshold)
|
| 154 |
+
flagged = scored["alert_class"].eq(AlertClass.SECURITY_REVIEW.value)
|
| 155 |
+
test = scored.loc[scored["split"].eq(Split.TEST.value)]
|
| 156 |
+
flags = flagged.loc[test.index] if not test.empty else flagged
|
| 157 |
+
recall, _ = _event_hits(scored, flagged, gold, Split.TEST.value)
|
| 158 |
+
points.append(
|
| 159 |
+
ThresholdPoint(
|
| 160 |
+
threshold=threshold,
|
| 161 |
+
n_security_alerts=int(flags.sum()) if not test.empty else int(flagged.sum()),
|
| 162 |
+
event_recall=recall,
|
| 163 |
+
precision_at_k=_precision_at_k(scored, flagged, Split.TEST.value),
|
| 164 |
+
false_alarms_per_account_day=_false_alarms(scored, flagged, Split.TEST.value),
|
| 165 |
+
)
|
| 166 |
+
)
|
| 167 |
+
return points
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def kpis(changes: pd.DataFrame, gold: pd.DataFrame, validation, seconds: float, threshold: float, model_names: str, comparison: list[EvaluationRow]) -> Kpis:
|
| 171 |
+
test = next((row for row in comparison if row.method == Method.ARIACLOUDTRAIL.value and row.split == Split.TEST.value), None)
|
| 172 |
+
return Kpis(
|
| 173 |
+
n_raw=validation.n_raw,
|
| 174 |
+
n_valid=validation.n_valid,
|
| 175 |
+
n_dropped=validation.n_dropped,
|
| 176 |
+
n_changes=int(changes["change_type"].ne("none").sum()) if not changes.empty else 0,
|
| 177 |
+
n_security_review=int(changes["alert_class"].eq(AlertClass.SECURITY_REVIEW.value).sum()) if not changes.empty else 0,
|
| 178 |
+
n_context=int(changes["alert_class"].eq(AlertClass.CONTEXT.value).sum()) if not changes.empty else 0,
|
| 179 |
+
n_incomplete=int(changes["alert_class"].eq(AlertClass.INSUFFICIENT.value).sum()) if not changes.empty else validation.n_dropped,
|
| 180 |
+
parse_coverage=round(validation.n_valid / validation.n_raw, 4) if validation.n_raw else 0.0,
|
| 181 |
+
event_recall=test.event_recall if test else None,
|
| 182 |
+
precision_at_k=test.precision_at_k if test else None,
|
| 183 |
+
false_alarms_per_account_day=test.false_alarms_per_account_day if test else None,
|
| 184 |
+
change_type_accuracy=test.change_type_accuracy if test else None,
|
| 185 |
+
maintenance_as_security=test.maintenance_as_security if test else 0,
|
| 186 |
+
ungrounded_claims=test.ungrounded_claims if test else 0,
|
| 187 |
+
seconds=round(seconds, 3),
|
| 188 |
+
threshold=threshold,
|
| 189 |
+
model_names=model_names,
|
| 190 |
+
daily_capacity=DAILY_REVIEW_CAPACITY,
|
| 191 |
+
)
|
demo/src/parsers.py
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import csv
|
| 4 |
+
import io
|
| 5 |
+
import json
|
| 6 |
+
from datetime import datetime, timezone
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
from typing import Any
|
| 9 |
+
|
| 10 |
+
from src.domain import MAX_BYTES
|
| 11 |
+
from src.schemas import ValidationReport
|
| 12 |
+
|
| 13 |
+
TIME_FORMATS = (
|
| 14 |
+
"%Y-%m-%dT%H:%M:%S%z",
|
| 15 |
+
"%Y-%m-%dT%H:%M:%SZ",
|
| 16 |
+
"%Y-%m-%dT%H:%M:%S",
|
| 17 |
+
"%Y-%m-%d %H:%M:%S",
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def _read_text(value: str | Path) -> str:
|
| 22 |
+
if isinstance(value, Path) or (isinstance(value, str) and Path(value).exists() and Path(value).is_file()):
|
| 23 |
+
return Path(value).read_text(encoding="utf-8")
|
| 24 |
+
return value
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def parse_timestamp(value: Any) -> datetime | None:
|
| 28 |
+
text = str(value or "").strip()
|
| 29 |
+
if not text:
|
| 30 |
+
return None
|
| 31 |
+
if text.endswith("Z"):
|
| 32 |
+
try:
|
| 33 |
+
return datetime.fromisoformat(text.replace("Z", "+00:00")).astimezone(timezone.utc)
|
| 34 |
+
except ValueError:
|
| 35 |
+
pass
|
| 36 |
+
for fmt in TIME_FORMATS:
|
| 37 |
+
try:
|
| 38 |
+
parsed = datetime.strptime(text, fmt)
|
| 39 |
+
if parsed.tzinfo is None:
|
| 40 |
+
parsed = parsed.replace(tzinfo=timezone.utc)
|
| 41 |
+
return parsed.astimezone(timezone.utc)
|
| 42 |
+
except ValueError:
|
| 43 |
+
continue
|
| 44 |
+
try:
|
| 45 |
+
parsed = datetime.fromisoformat(text)
|
| 46 |
+
if parsed.tzinfo is None:
|
| 47 |
+
parsed = parsed.replace(tzinfo=timezone.utc)
|
| 48 |
+
return parsed.astimezone(timezone.utc)
|
| 49 |
+
except ValueError:
|
| 50 |
+
return None
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _looks_jsonl(text: str) -> bool:
|
| 54 |
+
objects = 0
|
| 55 |
+
for line in text.splitlines():
|
| 56 |
+
stripped = line.strip()
|
| 57 |
+
if not stripped:
|
| 58 |
+
continue
|
| 59 |
+
if not stripped.startswith("{"):
|
| 60 |
+
return False
|
| 61 |
+
objects += 1
|
| 62 |
+
if objects >= 2:
|
| 63 |
+
return True
|
| 64 |
+
return False
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def _from_payload(payload: Any, report: ValidationReport) -> list[dict[str, Any]]:
|
| 68 |
+
if isinstance(payload, dict):
|
| 69 |
+
for key in ("Records", "records", "events", "rows", "data", "logins"):
|
| 70 |
+
if isinstance(payload.get(key), list):
|
| 71 |
+
payload = payload[key]
|
| 72 |
+
break
|
| 73 |
+
else:
|
| 74 |
+
if any(key in payload for key in ("eventName", "event_name", "eventTime", "timestamp")):
|
| 75 |
+
return [payload]
|
| 76 |
+
report.add("json", "CloudTrail JSON must be a Records array or a list of events.")
|
| 77 |
+
return []
|
| 78 |
+
if not isinstance(payload, list):
|
| 79 |
+
report.add("json", "CloudTrail JSON must be an array of objects.")
|
| 80 |
+
return []
|
| 81 |
+
return [item for item in payload if isinstance(item, dict)]
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def parse_table(text: str, kind: str = "events") -> tuple[list[dict[str, Any]], ValidationReport]:
|
| 85 |
+
report = ValidationReport(ok=True)
|
| 86 |
+
if len((text or "").encode("utf-8")) > MAX_BYTES:
|
| 87 |
+
report.add("size", f"Upload exceeds {MAX_BYTES} bytes.")
|
| 88 |
+
return [], report
|
| 89 |
+
raw = (text or "").strip()
|
| 90 |
+
if not raw:
|
| 91 |
+
return [], report
|
| 92 |
+
first = next((line for line in raw.splitlines() if line.strip()), "")
|
| 93 |
+
try:
|
| 94 |
+
if first.startswith("[") or first.startswith("{"):
|
| 95 |
+
if _looks_jsonl(raw):
|
| 96 |
+
data: list[dict[str, Any]] = []
|
| 97 |
+
for index, line in enumerate(raw.splitlines()):
|
| 98 |
+
line = line.strip()
|
| 99 |
+
if not line:
|
| 100 |
+
continue
|
| 101 |
+
item = json.loads(line)
|
| 102 |
+
if not isinstance(item, dict):
|
| 103 |
+
report.add("json", "Each JSONL row must be an object.", locator=f"line {index}")
|
| 104 |
+
continue
|
| 105 |
+
data.append(item)
|
| 106 |
+
return data, report
|
| 107 |
+
return _from_payload(json.loads(raw), report), report
|
| 108 |
+
dialect = csv.Sniffer().sniff(first) if any(token in first for token in ",;\t") else csv.excel
|
| 109 |
+
reader = csv.DictReader(io.StringIO(raw), dialect=dialect)
|
| 110 |
+
return [dict(row) for row in reader], report
|
| 111 |
+
except (json.JSONDecodeError, csv.Error) as exc:
|
| 112 |
+
report.add("parse", f"{kind} could not be parsed: {exc}")
|
| 113 |
+
return [], report
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def parse_file(path: str | Path | None, kind: str = "events") -> tuple[list[dict[str, Any]], ValidationReport]:
|
| 117 |
+
report = ValidationReport(ok=True)
|
| 118 |
+
if not path:
|
| 119 |
+
return [], report
|
| 120 |
+
target = Path(path)
|
| 121 |
+
if not target.exists():
|
| 122 |
+
report.add("missing", f"{kind} file was not found.")
|
| 123 |
+
return [], report
|
| 124 |
+
if target.stat().st_size > MAX_BYTES:
|
| 125 |
+
report.add("size", f"{kind} file exceeds {MAX_BYTES} bytes.")
|
| 126 |
+
return [], report
|
| 127 |
+
return parse_table(_read_text(target), kind)
|
demo/src/pipeline.py
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import time
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
from typing import Any
|
| 6 |
+
|
| 7 |
+
import pandas as pd
|
| 8 |
+
|
| 9 |
+
from src.detectors import apply_detectors
|
| 10 |
+
from src.domain import (
|
| 11 |
+
CODE_VERSION,
|
| 12 |
+
DEFAULT_SEED,
|
| 13 |
+
DEFAULT_THRESHOLD,
|
| 14 |
+
MIN_VALID_EVENTS,
|
| 15 |
+
AlertClass,
|
| 16 |
+
ApprovalStatus,
|
| 17 |
+
Confidence,
|
| 18 |
+
Severity,
|
| 19 |
+
StateKnown,
|
| 20 |
+
Tag,
|
| 21 |
+
Verdict,
|
| 22 |
+
Workflow,
|
| 23 |
+
)
|
| 24 |
+
from src.explain import annotate_finding, decide_verdict, reasons, status_label
|
| 25 |
+
from src.features import attach_gold, events_frame
|
| 26 |
+
from src.generator import build_lab, filter_lab
|
| 27 |
+
from src.metrics import calibration_curve, kpis, method_rows
|
| 28 |
+
from src.parsers import parse_file, parse_table
|
| 29 |
+
from src.reporting import input_hash, report_payload, write_downloads
|
| 30 |
+
from src.schemas import ChangeFinding, PipelineResult
|
| 31 |
+
from src.validation import _as_rows, validate_events
|
| 32 |
+
|
| 33 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def load_sample(scenario: str = "full", seed: int = DEFAULT_SEED) -> dict[str, Any]:
|
| 37 |
+
pack = build_lab(seed)
|
| 38 |
+
if scenario and scenario != "full":
|
| 39 |
+
pack = filter_lab(pack, scenario)
|
| 40 |
+
preview = pack["events"].head(400).copy()
|
| 41 |
+
return {
|
| 42 |
+
"events": preview,
|
| 43 |
+
"full_events": pack["events"],
|
| 44 |
+
"gold": pack["gold"],
|
| 45 |
+
"n_events": pack["n_events"],
|
| 46 |
+
"seed": seed,
|
| 47 |
+
"scenario": scenario,
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def load_uploaded(path: str | None) -> tuple[pd.DataFrame, list[str]]:
|
| 52 |
+
rows, report = parse_file(path, "events")
|
| 53 |
+
messages = [item.message for item in report.issues[:8]]
|
| 54 |
+
return pd.DataFrame(rows) if rows else pd.DataFrame(), messages
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def _split_list(value: Any) -> list[str]:
|
| 58 |
+
if isinstance(value, list):
|
| 59 |
+
return [str(item) for item in value if item]
|
| 60 |
+
return [part for part in str(value or "").split(",") if part]
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def _to_findings(changes: pd.DataFrame) -> list[ChangeFinding]:
|
| 64 |
+
findings: list[ChangeFinding] = []
|
| 65 |
+
if changes.empty:
|
| 66 |
+
return findings
|
| 67 |
+
for row in changes.to_dict(orient="records"):
|
| 68 |
+
evidence = [str(row.get("event_id") or "")]
|
| 69 |
+
if row.get("before_event_id"):
|
| 70 |
+
evidence.append(str(row.get("before_event_id")))
|
| 71 |
+
delay = row.get("detect_delay_min")
|
| 72 |
+
item = ChangeFinding(
|
| 73 |
+
finding_id=str(row.get("finding_id") or ""),
|
| 74 |
+
event_id=str(row.get("event_id") or ""),
|
| 75 |
+
timestamp=str(row.get("timestamp") or ""),
|
| 76 |
+
split=str(row.get("split") or ""),
|
| 77 |
+
account_alias=str(row.get("account_alias") or ""),
|
| 78 |
+
actor_alias=str(row.get("actor_alias") or ""),
|
| 79 |
+
actor_kind=str(row.get("actor_kind") or ""),
|
| 80 |
+
actor_role=str(row.get("actor_role") or ""),
|
| 81 |
+
event_source=str(row.get("event_source") or ""),
|
| 82 |
+
event_name=str(row.get("event_name") or ""),
|
| 83 |
+
change_type=str(row.get("change_type") or ""),
|
| 84 |
+
region=str(row.get("region") or ""),
|
| 85 |
+
resource_alias=str(row.get("resource_alias") or ""),
|
| 86 |
+
resource_kind=str(row.get("resource_kind") or ""),
|
| 87 |
+
score=float(row.get("score") or 0),
|
| 88 |
+
tag=Tag(row.get("tag") or Tag.NONE.value),
|
| 89 |
+
alert_class=AlertClass(row.get("alert_class") or AlertClass.NONE.value),
|
| 90 |
+
severity=Severity(row.get("severity") or Severity.LOW.value),
|
| 91 |
+
confidence=Confidence(row.get("confidence") or Confidence.LOW.value),
|
| 92 |
+
workflow=Workflow(row.get("workflow") or Workflow.CLEAR.value),
|
| 93 |
+
approval_status=ApprovalStatus(row.get("approval_status") or ApprovalStatus.NONE.value),
|
| 94 |
+
methods_fired=_split_list(row.get("methods_fired")),
|
| 95 |
+
gold_event_ids=_split_list(row.get("gold_event_ids")),
|
| 96 |
+
gold_family=str(row.get("gold_family") or ""),
|
| 97 |
+
evidence_event_ids=[item for item in evidence if item],
|
| 98 |
+
before_state=StateKnown(row.get("before_state") or StateKnown.UNKNOWN.value),
|
| 99 |
+
after_state=StateKnown(row.get("after_state") or StateKnown.UNKNOWN.value),
|
| 100 |
+
before_event_id=str(row.get("before_event_id") or ""),
|
| 101 |
+
after_event_id=str(row.get("after_event_id") or ""),
|
| 102 |
+
in_maintenance=bool(row.get("in_maintenance")),
|
| 103 |
+
change_ticket=str(row.get("change_ticket") or ""),
|
| 104 |
+
request_summary=str(row.get("request_summary") or ""),
|
| 105 |
+
cidr_open=bool(row.get("cidr_open")),
|
| 106 |
+
policy_public=bool(row.get("policy_public")),
|
| 107 |
+
logging_off=bool(row.get("logging_off")),
|
| 108 |
+
detector_off=bool(row.get("detector_off")),
|
| 109 |
+
wildcard_trust=bool(row.get("wildcard_trust")),
|
| 110 |
+
admin_policy=bool(row.get("admin_policy")),
|
| 111 |
+
unusual_hour=bool(float(row.get("unusual_hour") or 0) >= 1),
|
| 112 |
+
burst_count=int(row.get("burst_count") or 0),
|
| 113 |
+
detect_delay_min=None if delay in (None, "") or pd.isna(delay) else float(delay),
|
| 114 |
+
incomplete=bool(row.get("incomplete")),
|
| 115 |
+
)
|
| 116 |
+
findings.append(annotate_finding(item))
|
| 117 |
+
return findings
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
def run_pipeline(
|
| 121 |
+
events: pd.DataFrame | list[dict[str, Any]] | None,
|
| 122 |
+
gold: pd.DataFrame | list[dict[str, Any]] | None = None,
|
| 123 |
+
*,
|
| 124 |
+
threshold: float = DEFAULT_THRESHOLD,
|
| 125 |
+
lang: str = "en",
|
| 126 |
+
extra_text: str = "",
|
| 127 |
+
hide_context: bool = False,
|
| 128 |
+
actor_filter: str = "",
|
| 129 |
+
resource_filter: str = "",
|
| 130 |
+
change_filter: str = "",
|
| 131 |
+
seed: int = DEFAULT_SEED,
|
| 132 |
+
calibrate: bool = True,
|
| 133 |
+
) -> dict[str, Any]:
|
| 134 |
+
started = time.perf_counter()
|
| 135 |
+
rows = _as_rows(events)
|
| 136 |
+
extra_report = None
|
| 137 |
+
if extra_text.strip():
|
| 138 |
+
extra_rows, extra_report = parse_table(extra_text, "events")
|
| 139 |
+
rows.extend(extra_rows)
|
| 140 |
+
validation = validate_events(rows)
|
| 141 |
+
if extra_report:
|
| 142 |
+
validation.issues.extend(extra_report.issues)
|
| 143 |
+
if not extra_report.ok:
|
| 144 |
+
validation.ok = False
|
| 145 |
+
frame = events_frame(rows) if (validation.ok or validation.n_valid) else pd.DataFrame()
|
| 146 |
+
validation.n_valid = int(len(frame))
|
| 147 |
+
validation.n_dropped = max(validation.n_raw - validation.n_valid, validation.n_dropped)
|
| 148 |
+
validation.n_redacted = int(frame["redacted"].sum()) if not frame.empty and "redacted" in frame.columns else 0
|
| 149 |
+
gold_frame = gold if isinstance(gold, pd.DataFrame) else pd.DataFrame(gold or [])
|
| 150 |
+
verdict = decide_verdict(validation.n_valid, validation)
|
| 151 |
+
empty_kpis = kpis(pd.DataFrame(), gold_frame, validation, time.perf_counter() - started, threshold, "none", [])
|
| 152 |
+
if verdict == Verdict.INVALID:
|
| 153 |
+
return {
|
| 154 |
+
"run_id": f"ariact-{input_hash({'error': 'invalid'})}",
|
| 155 |
+
"verdict": verdict,
|
| 156 |
+
"status_label": status_label(lang, verdict, True),
|
| 157 |
+
"kpis": empty_kpis,
|
| 158 |
+
"findings": [],
|
| 159 |
+
"changes": pd.DataFrame(),
|
| 160 |
+
"comparison": [],
|
| 161 |
+
"calibration": [],
|
| 162 |
+
"reasons": [issue.message for issue in validation.issues[:8]],
|
| 163 |
+
"validation": validation,
|
| 164 |
+
"report": {"disclaimer": "Invalid input."},
|
| 165 |
+
"seconds": empty_kpis.seconds,
|
| 166 |
+
"error": validation.issues[0].message if validation.issues else "Invalid input",
|
| 167 |
+
"events": frame,
|
| 168 |
+
"code_version": CODE_VERSION,
|
| 169 |
+
}
|
| 170 |
+
if verdict == Verdict.INSUFFICIENT:
|
| 171 |
+
result = {
|
| 172 |
+
"run_id": f"ariact-{input_hash({'n': validation.n_valid, 'seed': seed})}",
|
| 173 |
+
"verdict": verdict,
|
| 174 |
+
"status_label": status_label(lang, verdict, True),
|
| 175 |
+
"kpis": empty_kpis,
|
| 176 |
+
"findings": [],
|
| 177 |
+
"changes": pd.DataFrame(),
|
| 178 |
+
"comparison": [],
|
| 179 |
+
"calibration": [],
|
| 180 |
+
"reasons": [f"Valid events={validation.n_valid}; need at least {MIN_VALID_EVENTS}."],
|
| 181 |
+
"validation": validation,
|
| 182 |
+
"report": {"disclaimer": "Insufficient evidence after parse and redaction."},
|
| 183 |
+
"seconds": empty_kpis.seconds,
|
| 184 |
+
"error": None,
|
| 185 |
+
"events": frame,
|
| 186 |
+
"code_version": CODE_VERSION,
|
| 187 |
+
}
|
| 188 |
+
result["report"] = report_payload(result)
|
| 189 |
+
return result
|
| 190 |
+
|
| 191 |
+
labeled = attach_gold(frame, gold_frame)
|
| 192 |
+
scored = apply_detectors(labeled, threshold)
|
| 193 |
+
filtered = scored
|
| 194 |
+
if hide_context:
|
| 195 |
+
filtered = filtered.loc[filtered["alert_class"].ne(AlertClass.CONTEXT.value)].copy()
|
| 196 |
+
if actor_filter:
|
| 197 |
+
filtered = filtered.loc[filtered["actor_alias"].astype(str).str.contains(actor_filter, regex=False)].copy()
|
| 198 |
+
if resource_filter:
|
| 199 |
+
filtered = filtered.loc[filtered["resource_alias"].astype(str).str.contains(resource_filter, regex=False)].copy()
|
| 200 |
+
if change_filter and change_filter not in {"", "all"}:
|
| 201 |
+
filtered = filtered.loc[filtered["change_type"].astype(str).eq(change_filter)].copy()
|
| 202 |
+
alert_view = filtered.loc[filtered["alert_class"].ne(AlertClass.NONE.value)]
|
| 203 |
+
if not alert_view.empty:
|
| 204 |
+
alert_view = alert_view.sort_values(["alert_class", "severity", "timestamp"], ascending=[True, False, True])
|
| 205 |
+
findings = _to_findings(alert_view)
|
| 206 |
+
comparison = method_rows(scored, gold_frame, threshold, round(validation.n_valid / max(validation.n_raw, 1), 4))
|
| 207 |
+
calibration = calibration_curve(labeled, gold_frame, apply_detectors) if calibrate else []
|
| 208 |
+
seconds = time.perf_counter() - started
|
| 209 |
+
digest = input_hash(
|
| 210 |
+
{
|
| 211 |
+
"n": validation.n_valid,
|
| 212 |
+
"threshold": threshold,
|
| 213 |
+
"dropped": validation.n_dropped,
|
| 214 |
+
"version": CODE_VERSION,
|
| 215 |
+
"seed": seed,
|
| 216 |
+
}
|
| 217 |
+
)
|
| 218 |
+
payload = {
|
| 219 |
+
"run_id": f"ariact-{digest}",
|
| 220 |
+
"verdict": Verdict.READY,
|
| 221 |
+
"status_label": status_label(lang, Verdict.READY, True),
|
| 222 |
+
"kpis": kpis(filtered, gold_frame, validation, seconds, threshold, "rules+baseline+correlation", comparison),
|
| 223 |
+
"findings": findings,
|
| 224 |
+
"changes": filtered,
|
| 225 |
+
"changes_base": labeled,
|
| 226 |
+
"comparison": comparison,
|
| 227 |
+
"calibration": calibration,
|
| 228 |
+
"validation": validation,
|
| 229 |
+
"seconds": seconds,
|
| 230 |
+
"error": None,
|
| 231 |
+
"events": frame,
|
| 232 |
+
"code_version": CODE_VERSION,
|
| 233 |
+
"gold": gold_frame,
|
| 234 |
+
"threshold": threshold,
|
| 235 |
+
"parse_coverage": round(validation.n_valid / max(validation.n_raw, 1), 4),
|
| 236 |
+
}
|
| 237 |
+
payload["report"] = report_payload(payload)
|
| 238 |
+
modeled = PipelineResult(
|
| 239 |
+
run_id=payload["run_id"],
|
| 240 |
+
verdict=Verdict.READY,
|
| 241 |
+
status_label=payload["status_label"],
|
| 242 |
+
kpis=payload["kpis"],
|
| 243 |
+
findings=findings,
|
| 244 |
+
comparison=comparison,
|
| 245 |
+
calibration=calibration,
|
| 246 |
+
reasons=[],
|
| 247 |
+
validation=validation,
|
| 248 |
+
report=payload["report"],
|
| 249 |
+
seconds=seconds,
|
| 250 |
+
code_version=CODE_VERSION,
|
| 251 |
+
)
|
| 252 |
+
payload["reasons"] = reasons(lang, modeled)
|
| 253 |
+
return payload
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
def findings_table(result: dict[str, Any]) -> pd.DataFrame:
|
| 257 |
+
rows = []
|
| 258 |
+
for item in result.get("findings") or []:
|
| 259 |
+
rows.append(
|
| 260 |
+
{
|
| 261 |
+
"finding_id": item.finding_id,
|
| 262 |
+
"timestamp": item.timestamp,
|
| 263 |
+
"account_alias": item.account_alias,
|
| 264 |
+
"actor_alias": item.actor_alias,
|
| 265 |
+
"event_name": item.event_name,
|
| 266 |
+
"change_type": item.change_type,
|
| 267 |
+
"resource_alias": item.resource_alias,
|
| 268 |
+
"tag": item.tag.value,
|
| 269 |
+
"alert_class": item.alert_class.value,
|
| 270 |
+
"severity": item.severity.value,
|
| 271 |
+
"approval_status": item.approval_status.value,
|
| 272 |
+
"workflow": item.workflow.value,
|
| 273 |
+
"before_state": item.before_state.value,
|
| 274 |
+
"after_state": item.after_state.value,
|
| 275 |
+
"gold_family": item.gold_family,
|
| 276 |
+
"score": item.score,
|
| 277 |
+
}
|
| 278 |
+
)
|
| 279 |
+
return pd.DataFrame(rows)
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def evidence_table(result: dict[str, Any], finding_id: str) -> pd.DataFrame:
|
| 283 |
+
events = result.get("events")
|
| 284 |
+
findings = {item.finding_id: item for item in result.get("findings") or []}
|
| 285 |
+
item = findings.get(finding_id)
|
| 286 |
+
if item is None or events is None or getattr(events, "empty", True):
|
| 287 |
+
return pd.DataFrame()
|
| 288 |
+
frame = events.copy()
|
| 289 |
+
ids = set(item.evidence_event_ids)
|
| 290 |
+
if "event_id" in frame.columns and ids:
|
| 291 |
+
view = frame.loc[frame["event_id"].isin(ids)]
|
| 292 |
+
if not view.empty:
|
| 293 |
+
cols = [
|
| 294 |
+
col
|
| 295 |
+
for col in (
|
| 296 |
+
"event_id",
|
| 297 |
+
"timestamp",
|
| 298 |
+
"account_alias",
|
| 299 |
+
"actor_alias",
|
| 300 |
+
"actor_kind",
|
| 301 |
+
"event_name",
|
| 302 |
+
"change_type",
|
| 303 |
+
"resource_alias",
|
| 304 |
+
"request_summary",
|
| 305 |
+
"before_state",
|
| 306 |
+
"after_state",
|
| 307 |
+
"approval_status",
|
| 308 |
+
)
|
| 309 |
+
if col in view.columns
|
| 310 |
+
]
|
| 311 |
+
return view[cols]
|
| 312 |
+
return pd.DataFrame()
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
def result_to_downloads(result: dict[str, Any], folder: Path) -> dict[str, str]:
|
| 316 |
+
return write_downloads(result, folder)
|
demo/src/plots.py
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
import pandas as pd
|
| 6 |
+
import plotly.graph_objects as go
|
| 7 |
+
from plotly.subplots import make_subplots
|
| 8 |
+
|
| 9 |
+
from src.domain import AlertClass
|
| 10 |
+
from src.i18n import t
|
| 11 |
+
from src.schemas import ChangeFinding, Kpis, ThresholdPoint
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def empty_plot(title: str = "—") -> go.Figure:
|
| 15 |
+
fig = go.Figure()
|
| 16 |
+
fig.update_layout(template="plotly_white", height=380, title=title)
|
| 17 |
+
return fig
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def kpi_html(kpis: dict[str, Any] | Kpis | None, baseline: dict[str, Any] | None, lang: str) -> str:
|
| 21 |
+
if kpis is None:
|
| 22 |
+
return "<div class='kpi-grid'></div>"
|
| 23 |
+
data = kpis.model_dump() if isinstance(kpis, Kpis) else kpis
|
| 24 |
+
base = baseline or {}
|
| 25 |
+
|
| 26 |
+
def card(label: str, value: str, sub: str) -> str:
|
| 27 |
+
return (
|
| 28 |
+
f"<article class='kpi-card'><p class='kpi-label'>{label}</p>"
|
| 29 |
+
f"<p class='kpi-value'>{value}</p><p class='kpi-sub'>{sub}</p></article>"
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
recall = data.get("event_recall")
|
| 33 |
+
precision = data.get("precision_at_k")
|
| 34 |
+
fa = data.get("false_alarms_per_account_day")
|
| 35 |
+
accuracy = data.get("change_type_accuracy")
|
| 36 |
+
return (
|
| 37 |
+
"<div class='kpi-grid'>"
|
| 38 |
+
+ card(t(lang, "kpi_review"), str(data.get("n_security_review") or 0), f"{data.get('n_context') or 0} {t(lang, 'kpi_context_sub')}")
|
| 39 |
+
+ card(t(lang, "kpi_coverage"), f"{100 * (data.get('parse_coverage') or 0):.0f}%", f"{data.get('n_valid') or 0}/{data.get('n_raw') or 0}")
|
| 40 |
+
+ card(t(lang, "kpi_incomplete"), str(data.get("n_incomplete") or 0), t(lang, "kpi_incomplete_sub"))
|
| 41 |
+
+ card(t(lang, "kpi_recall"), "—" if recall is None else f"{100 * recall:.0f}%", f"{t(lang, 'baseline')}: {base.get('event_recall', '—')}")
|
| 42 |
+
+ card(t(lang, "kpi_precision"), "—" if precision is None else f"{100 * precision:.0f}%", t(lang, "kpi_precision_sub"))
|
| 43 |
+
+ card(t(lang, "kpi_type"), "—" if accuracy is None else f"{100 * accuracy:.0f}%", t(lang, "kpi_type_sub"))
|
| 44 |
+
+ card(t(lang, "kpi_fa"), "—" if fa is None else f"{fa:.3f}", t(lang, "kpi_fa_sub"))
|
| 45 |
+
+ card(t(lang, "kpi_time"), f"{data.get('seconds') or 0:.1f}s", f"T={data.get('threshold') or 0}")
|
| 46 |
+
+ "</div>"
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def timeline_figure(events: pd.DataFrame | None, account: str, title: str) -> go.Figure:
|
| 51 |
+
if events is None or getattr(events, "empty", True):
|
| 52 |
+
return empty_plot(title)
|
| 53 |
+
frame = events.copy()
|
| 54 |
+
if account:
|
| 55 |
+
frame = frame.loc[frame["account_alias"].astype(str).eq(str(account))]
|
| 56 |
+
frame = frame.loc[frame["change_type"].astype(str).ne("none")]
|
| 57 |
+
if frame.empty:
|
| 58 |
+
return empty_plot(title)
|
| 59 |
+
frame["ts"] = pd.to_datetime(frame["timestamp"], utc=True)
|
| 60 |
+
colors = frame["alert_class"].map(
|
| 61 |
+
{"security_review": "#b45309", "context": "#4338ca", "insufficient_evidence": "#64748b", "none": "#94a3b8"}
|
| 62 |
+
).fillna("#334155")
|
| 63 |
+
fig = go.Figure(
|
| 64 |
+
go.Scatter(
|
| 65 |
+
x=frame["ts"],
|
| 66 |
+
y=frame["actor_alias"],
|
| 67 |
+
mode="markers",
|
| 68 |
+
marker=dict(color=colors, size=11),
|
| 69 |
+
text=[
|
| 70 |
+
f"{row.event_id} {row.event_name} {row.resource_alias} {row.alert_class}"
|
| 71 |
+
for row in frame.itertuples(index=False)
|
| 72 |
+
],
|
| 73 |
+
hoverinfo="text",
|
| 74 |
+
)
|
| 75 |
+
)
|
| 76 |
+
fig.update_layout(template="plotly_white", height=420, title=f"{title} · {account or 'all accounts'}")
|
| 77 |
+
return fig
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def compare_figure(rows: list[dict[str, Any]], title: str) -> go.Figure:
|
| 81 |
+
frame = pd.DataFrame(rows)
|
| 82 |
+
if frame.empty:
|
| 83 |
+
return empty_plot(title)
|
| 84 |
+
view = frame.loc[frame["split"] == "test"] if "test" in set(frame.get("split", [])) else frame
|
| 85 |
+
fig = go.Figure(go.Bar(x=view["method"], y=view["event_recall"].fillna(0), marker_color="#0369a1", name="event recall"))
|
| 86 |
+
fig.add_trace(go.Bar(x=view["method"], y=view["false_alarms_per_account_day"].fillna(0), name="FA / account-day", marker_color="#94a3b8"))
|
| 87 |
+
fig.update_layout(template="plotly_white", height=380, title=title, barmode="group")
|
| 88 |
+
return fig
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def calibration_figure(points: list[ThresholdPoint] | list[dict[str, Any]], title: str) -> go.Figure:
|
| 92 |
+
if not points:
|
| 93 |
+
return empty_plot(title)
|
| 94 |
+
frame = pd.DataFrame([item.model_dump() if hasattr(item, "model_dump") else item for item in points])
|
| 95 |
+
fig = make_subplots(specs=[[{"secondary_y": True}]])
|
| 96 |
+
fig.add_trace(go.Scatter(x=frame["threshold"], y=frame["n_security_alerts"], mode="lines+markers", name="alerts"), secondary_y=False)
|
| 97 |
+
fig.add_trace(go.Scatter(x=frame["threshold"], y=frame["event_recall"].fillna(0), mode="lines+markers", name="test recall"), secondary_y=True)
|
| 98 |
+
fig.update_layout(template="plotly_white", height=360, title=title)
|
| 99 |
+
fig.update_yaxes(title_text="security-review alerts", secondary_y=False)
|
| 100 |
+
fig.update_yaxes(title_text="event recall", secondary_y=True, range=[0, 1])
|
| 101 |
+
return fig
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def finding_scatter(rows: list[ChangeFinding], title: str) -> go.Figure:
|
| 105 |
+
if not rows:
|
| 106 |
+
return empty_plot(title)
|
| 107 |
+
colors = []
|
| 108 |
+
for item in rows:
|
| 109 |
+
if item.alert_class == AlertClass.CONTEXT:
|
| 110 |
+
colors.append("#0369a1")
|
| 111 |
+
elif item.alert_class == AlertClass.INSUFFICIENT:
|
| 112 |
+
colors.append("#64748b")
|
| 113 |
+
else:
|
| 114 |
+
colors.append("#b45309")
|
| 115 |
+
fig = go.Figure(
|
| 116 |
+
go.Scatter(
|
| 117 |
+
x=[item.score for item in rows],
|
| 118 |
+
y=[item.burst_count for item in rows],
|
| 119 |
+
mode="markers",
|
| 120 |
+
marker=dict(color=colors, size=11),
|
| 121 |
+
text=[f"{item.finding_id} {item.change_type} {item.actor_alias}" for item in rows],
|
| 122 |
+
hoverinfo="text",
|
| 123 |
+
)
|
| 124 |
+
)
|
| 125 |
+
fig.update_layout(template="plotly_white", height=380, title=title, xaxis_title="score", yaxis_title="actor burst")
|
| 126 |
+
return fig
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def graph_figure(rows: list[ChangeFinding], title: str) -> go.Figure:
|
| 130 |
+
if not rows:
|
| 131 |
+
return empty_plot(title)
|
| 132 |
+
try:
|
| 133 |
+
import networkx as nx
|
| 134 |
+
except Exception:
|
| 135 |
+
return empty_plot(title)
|
| 136 |
+
graph = nx.Graph()
|
| 137 |
+
for item in rows[:24]:
|
| 138 |
+
graph.add_node(item.actor_alias, kind="actor")
|
| 139 |
+
graph.add_node(item.resource_alias, kind="resource")
|
| 140 |
+
graph.add_edge(item.actor_alias, item.resource_alias)
|
| 141 |
+
if graph.number_of_nodes() == 0:
|
| 142 |
+
return empty_plot(title)
|
| 143 |
+
layout = nx.spring_layout(graph, seed=16)
|
| 144 |
+
edge_x, edge_y = [], []
|
| 145 |
+
for src, dst in graph.edges():
|
| 146 |
+
x0, y0 = layout[src]
|
| 147 |
+
x1, y1 = layout[dst]
|
| 148 |
+
edge_x += [x0, x1, None]
|
| 149 |
+
edge_y += [y0, y1, None]
|
| 150 |
+
node_x = [layout[node][0] for node in graph.nodes()]
|
| 151 |
+
node_y = [layout[node][1] for node in graph.nodes()]
|
| 152 |
+
fig = go.Figure()
|
| 153 |
+
fig.add_trace(go.Scatter(x=edge_x, y=edge_y, mode="lines", line=dict(color="#cbd5e1", width=1), hoverinfo="none"))
|
| 154 |
+
fig.add_trace(
|
| 155 |
+
go.Scatter(
|
| 156 |
+
x=node_x,
|
| 157 |
+
y=node_y,
|
| 158 |
+
mode="markers+text",
|
| 159 |
+
text=list(graph.nodes()),
|
| 160 |
+
textposition="top center",
|
| 161 |
+
marker=dict(size=12, color="#0369a1"),
|
| 162 |
+
hoverinfo="text",
|
| 163 |
+
)
|
| 164 |
+
)
|
| 165 |
+
fig.update_layout(template="plotly_white", height=380, title=title, xaxis=dict(visible=False), yaxis=dict(visible=False))
|
| 166 |
+
return fig
|
demo/src/redaction.py
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import hashlib
|
| 4 |
+
import json
|
| 5 |
+
import re
|
| 6 |
+
from typing import Any
|
| 7 |
+
|
| 8 |
+
from src.domain import ACCOUNT_ALIASES
|
| 9 |
+
|
| 10 |
+
EMAIL_RE = re.compile(r"(?i)\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b")
|
| 11 |
+
JWT_RE = re.compile(r"\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9._-]+\.[A-Za-z0-9._-]+\b")
|
| 12 |
+
IPV4_RE = re.compile(r"\b(?:\d{1,3}\.){3}\d{1,3}\b")
|
| 13 |
+
ACCOUNT_RE = re.compile(r"\b(?:111111111111|222222222222|333333333333|\d{12})\b")
|
| 14 |
+
ARN_RE = re.compile(r"arn:aws:[a-z0-9-]+:[a-z0-9-]*:\d{12}:[^\s\"']+")
|
| 15 |
+
ACCESS_KEY_RE = re.compile(r"\bAKIA[0-9A-Z]{16}\b")
|
| 16 |
+
SECRET_KEY_RE = re.compile(r"(?i)\b(?:aws)?secret(?:access)?key\b")
|
| 17 |
+
TOKENISH_RE = re.compile(r"(?i)(password|passwd|secret|token|authorization|cookie|session|aws_secret)")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def normalize_id(value: Any) -> str:
|
| 21 |
+
return str(value or "").strip()
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _hash8(value: str) -> str:
|
| 25 |
+
return hashlib.sha256(value.encode("utf-8")).hexdigest()[:8]
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def alias_account(value: Any) -> str:
|
| 29 |
+
text = normalize_id(value)
|
| 30 |
+
if not text:
|
| 31 |
+
return "acct_unknown"
|
| 32 |
+
if text in ACCOUNT_ALIASES:
|
| 33 |
+
return ACCOUNT_ALIASES[text]
|
| 34 |
+
if text.startswith("acct_"):
|
| 35 |
+
return text
|
| 36 |
+
if text.isdigit() and len(text) == 12:
|
| 37 |
+
return f"acct_{_hash8(text)}"
|
| 38 |
+
return ACCOUNT_ALIASES.get(text, f"acct_{_hash8(text)}")
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def alias_ip(value: Any) -> str:
|
| 42 |
+
text = normalize_id(value)
|
| 43 |
+
if not text:
|
| 44 |
+
return "net_unknown"
|
| 45 |
+
if text.startswith("net_"):
|
| 46 |
+
return text
|
| 47 |
+
return f"net_{_hash8(text)}"
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def alias_actor(kind: str, name: str, account_alias: str) -> str:
|
| 51 |
+
raw = normalize_id(name)
|
| 52 |
+
if not raw:
|
| 53 |
+
return f"{kind or 'actor'}_unknown"
|
| 54 |
+
if raw.startswith(("usr_", "role_", "root_", "svc_")):
|
| 55 |
+
return raw
|
| 56 |
+
if EMAIL_RE.search(raw) or IPV4_RE.search(raw):
|
| 57 |
+
return f"usr_uploaded_{_hash8(raw)}"
|
| 58 |
+
if kind == "root":
|
| 59 |
+
return "root_lab"
|
| 60 |
+
if kind in {"service", "aws_service"}:
|
| 61 |
+
return f"role_{raw}"
|
| 62 |
+
return f"usr_{raw}"
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def alias_resource(kind: str, name: str) -> str:
|
| 66 |
+
raw = normalize_id(name)
|
| 67 |
+
if not raw:
|
| 68 |
+
return f"{kind or 'res'}_unknown"
|
| 69 |
+
if raw.startswith(("bucket_", "role_", "user_", "sg_", "trail_", "key_", "eni_", "i-", "res_")):
|
| 70 |
+
return raw
|
| 71 |
+
prefix = {
|
| 72 |
+
"bucket": "bucket",
|
| 73 |
+
"role": "role",
|
| 74 |
+
"user": "user",
|
| 75 |
+
"security-group": "sg",
|
| 76 |
+
"trail": "trail",
|
| 77 |
+
"kms-key": "key",
|
| 78 |
+
"instance": "i",
|
| 79 |
+
"detector": "det",
|
| 80 |
+
"config": "cfg",
|
| 81 |
+
}.get(kind, "res")
|
| 82 |
+
return f"{prefix}_{raw}" if prefix != "i" else raw
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def redact_text(value: Any) -> str:
|
| 86 |
+
text = normalize_id(value)
|
| 87 |
+
text = JWT_RE.sub("[REDACTED_TOKEN]", text)
|
| 88 |
+
text = ACCESS_KEY_RE.sub("AKIA****************", text)
|
| 89 |
+
text = EMAIL_RE.sub("[REDACTED_EMAIL]", text)
|
| 90 |
+
text = ARN_RE.sub(lambda match: _alias_arn(match.group(0)), text)
|
| 91 |
+
text = ACCOUNT_RE.sub(lambda match: alias_account(match.group(0)), text)
|
| 92 |
+
text = IPV4_RE.sub(lambda match: alias_ip(match.group(0)), text)
|
| 93 |
+
return text
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def _alias_arn(arn: str) -> str:
|
| 97 |
+
parts = arn.split(":")
|
| 98 |
+
if len(parts) < 6:
|
| 99 |
+
return "arn:aws:redacted"
|
| 100 |
+
parts[4] = alias_account(parts[4])
|
| 101 |
+
return ":".join(parts)
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def compact_json(value: Any) -> str:
|
| 105 |
+
if value is None or value == "":
|
| 106 |
+
return ""
|
| 107 |
+
if isinstance(value, (dict, list)):
|
| 108 |
+
try:
|
| 109 |
+
return json.dumps(value, sort_keys=True, ensure_ascii=False, separators=(",", ":"))
|
| 110 |
+
except TypeError:
|
| 111 |
+
return str(value)
|
| 112 |
+
return normalize_id(value)
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def looks_sensitive(row: dict[str, Any]) -> bool:
|
| 116 |
+
blob = " ".join(str(item) for item in row.values() if item is not None)
|
| 117 |
+
return bool(
|
| 118 |
+
EMAIL_RE.search(blob)
|
| 119 |
+
or ACCESS_KEY_RE.search(blob)
|
| 120 |
+
or ACCOUNT_RE.search(blob)
|
| 121 |
+
or IPV4_RE.search(blob)
|
| 122 |
+
or TOKENISH_RE.search(blob)
|
| 123 |
+
or SECRET_KEY_RE.search(blob)
|
| 124 |
+
)
|
demo/src/reporting.py
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import hashlib
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from typing import Any
|
| 7 |
+
|
| 8 |
+
import pandas as pd
|
| 9 |
+
|
| 10 |
+
from src.domain import CODE_VERSION, PRODUCT, SCHEMA_ID, SNAPSHOT_ID
|
| 11 |
+
from src.schemas import ChangeFinding
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def input_hash(payload: dict[str, Any]) -> str:
|
| 15 |
+
raw = json.dumps(payload, sort_keys=True, ensure_ascii=False, default=str)
|
| 16 |
+
return hashlib.sha256(raw.encode("utf-8")).hexdigest()[:16]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def findings_frame(rows: list[ChangeFinding]) -> pd.DataFrame:
|
| 20 |
+
records = []
|
| 21 |
+
for item in rows:
|
| 22 |
+
data = item.model_dump()
|
| 23 |
+
data["observed"] = " | ".join(item.observed)
|
| 24 |
+
data["inferred"] = " | ".join(item.inferred)
|
| 25 |
+
data["gold_event_ids"] = ",".join(item.gold_event_ids)
|
| 26 |
+
data["evidence_event_ids"] = ",".join(item.evidence_event_ids)
|
| 27 |
+
data["methods_fired"] = ",".join(item.methods_fired)
|
| 28 |
+
data["tag"] = item.tag.value
|
| 29 |
+
data["alert_class"] = item.alert_class.value
|
| 30 |
+
data["severity"] = item.severity.value
|
| 31 |
+
data["confidence"] = item.confidence.value
|
| 32 |
+
data["workflow"] = item.workflow.value
|
| 33 |
+
data["approval_status"] = item.approval_status.value
|
| 34 |
+
data["before_state"] = item.before_state.value
|
| 35 |
+
data["after_state"] = item.after_state.value
|
| 36 |
+
records.append(data)
|
| 37 |
+
return pd.DataFrame(records)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def report_payload(result: dict[str, Any]) -> dict[str, Any]:
|
| 41 |
+
return {
|
| 42 |
+
"product": PRODUCT,
|
| 43 |
+
"code_version": CODE_VERSION,
|
| 44 |
+
"schema_id": SCHEMA_ID,
|
| 45 |
+
"snapshot_id": SNAPSHOT_ID,
|
| 46 |
+
"run_id": result["run_id"],
|
| 47 |
+
"verdict": result["verdict"].value if hasattr(result["verdict"], "value") else result["verdict"],
|
| 48 |
+
"kpis": result["kpis"].model_dump() if hasattr(result["kpis"], "model_dump") else result["kpis"],
|
| 49 |
+
"comparison": [row.model_dump() if hasattr(row, "model_dump") else row for row in result.get("comparison") or []],
|
| 50 |
+
"calibration": [row.model_dump() if hasattr(row, "model_dump") else row for row in result.get("calibration") or []],
|
| 51 |
+
"input_hash": result["run_id"].split("-")[-1],
|
| 52 |
+
"live": True,
|
| 53 |
+
"disclaimer": (
|
| 54 |
+
"A finding is a review ranking, not proof of current cloud exposure. "
|
| 55 |
+
"Before/after is shown only when both events exist in this export. "
|
| 56 |
+
"This demo never requests cloud credentials and never changes configuration. "
|
| 57 |
+
"Severity is not approval status. Maintenance windows stay context."
|
| 58 |
+
),
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def write_downloads(result: dict[str, Any], folder: Path) -> dict[str, str]:
|
| 63 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 64 |
+
run_id = result["run_id"]
|
| 65 |
+
files = {
|
| 66 |
+
"findings": folder / f"{run_id}_findings.csv",
|
| 67 |
+
"comparison": folder / f"{run_id}_comparison.csv",
|
| 68 |
+
"calibration": folder / f"{run_id}_calibration.csv",
|
| 69 |
+
"report": folder / f"{run_id}_report.json",
|
| 70 |
+
}
|
| 71 |
+
findings_frame(result["findings"]).to_csv(files["findings"], index=False)
|
| 72 |
+
pd.DataFrame([row.model_dump() if hasattr(row, "model_dump") else row for row in result.get("comparison") or []]).to_csv(
|
| 73 |
+
files["comparison"], index=False
|
| 74 |
+
)
|
| 75 |
+
pd.DataFrame([row.model_dump() if hasattr(row, "model_dump") else row for row in result.get("calibration") or []]).to_csv(
|
| 76 |
+
files["calibration"], index=False
|
| 77 |
+
)
|
| 78 |
+
files["report"].write_text(json.dumps(result["report"], indent=2, ensure_ascii=False, default=str), encoding="utf-8")
|
| 79 |
+
return {key: str(path) for key, path in files.items()}
|
demo/src/ruleset.py
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from src.domain import (
|
| 6 |
+
ADMIN_POLICY_MARKERS,
|
| 7 |
+
MAINTENANCE_ACCOUNT,
|
| 8 |
+
MAINTENANCE_ACTOR,
|
| 9 |
+
MAINTENANCE_ALLOWED_TYPES,
|
| 10 |
+
MAINTENANCE_TICKET,
|
| 11 |
+
PUBLIC_MARKERS,
|
| 12 |
+
ChangeType,
|
| 13 |
+
Severity,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
EVENT_MAP: dict[str, ChangeType] = {
|
| 17 |
+
"AttachUserPolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 18 |
+
"AttachRolePolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 19 |
+
"AttachGroupPolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 20 |
+
"PutUserPolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 21 |
+
"PutRolePolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 22 |
+
"PutGroupPolicy": ChangeType.IAM_PRIVILEGE_GRANT,
|
| 23 |
+
"CreateAccessKey": ChangeType.IAM_CREDENTIAL_CREATE,
|
| 24 |
+
"CreateLoginProfile": ChangeType.IAM_CREDENTIAL_CREATE,
|
| 25 |
+
"CreateUser": ChangeType.IAM_CREDENTIAL_CREATE,
|
| 26 |
+
"AuthorizeSecurityGroupIngress": ChangeType.SECURITY_GROUP_INGRESS,
|
| 27 |
+
"PutBucketAcl": ChangeType.S3_PUBLIC_EXPOSURE,
|
| 28 |
+
"PutBucketPolicy": ChangeType.S3_PUBLIC_EXPOSURE,
|
| 29 |
+
"DeletePublicAccessBlock": ChangeType.S3_PUBLIC_EXPOSURE,
|
| 30 |
+
"PutPublicAccessBlock": ChangeType.S3_PUBLIC_EXPOSURE,
|
| 31 |
+
"StopLogging": ChangeType.TRAIL_LOGGING_CHANGE,
|
| 32 |
+
"DeleteTrail": ChangeType.TRAIL_LOGGING_CHANGE,
|
| 33 |
+
"UpdateTrail": ChangeType.TRAIL_LOGGING_CHANGE,
|
| 34 |
+
"StartLogging": ChangeType.TRAIL_LOGGING_CHANGE,
|
| 35 |
+
"PutKeyPolicy": ChangeType.KMS_CONTROL_CHANGE,
|
| 36 |
+
"DisableKey": ChangeType.KMS_CONTROL_CHANGE,
|
| 37 |
+
"ScheduleKeyDeletion": ChangeType.KMS_CONTROL_CHANGE,
|
| 38 |
+
"AssociateAddress": ChangeType.INSTANCE_EXPOSURE,
|
| 39 |
+
"ModifyInstanceAttribute": ChangeType.INSTANCE_EXPOSURE,
|
| 40 |
+
"UpdateAssumeRolePolicy": ChangeType.ROLE_TRUST_CHANGE,
|
| 41 |
+
"UpdateDetector": ChangeType.DETECTOR_DISABLE,
|
| 42 |
+
"DeleteDetector": ChangeType.DETECTOR_DISABLE,
|
| 43 |
+
"StopConfigurationRecorder": ChangeType.DETECTOR_DISABLE,
|
| 44 |
+
"DeleteConfigRule": ChangeType.DETECTOR_DISABLE,
|
| 45 |
+
"ConsoleLogin": ChangeType.ROOT_ACTIVITY,
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
HARDENING_EVENTS = {"StartLogging"}
|
| 49 |
+
RESTRICT_PUBLIC_KEYS = ("restrictpublicbuckets", "blockpublicacls", "ignorepublicacls", "blockpublicpolicy")
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def _lower_blob(params: Any) -> str:
|
| 53 |
+
if params is None:
|
| 54 |
+
return ""
|
| 55 |
+
if isinstance(params, dict):
|
| 56 |
+
parts = []
|
| 57 |
+
for key, value in params.items():
|
| 58 |
+
parts.append(str(key).lower())
|
| 59 |
+
parts.append(_lower_blob(value))
|
| 60 |
+
return " ".join(parts)
|
| 61 |
+
if isinstance(params, list):
|
| 62 |
+
return " ".join(_lower_blob(item) for item in params)
|
| 63 |
+
return str(params).lower()
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def classify_event(event_name: str, actor_kind: str = "", request: Any = None) -> ChangeType:
|
| 67 |
+
name = str(event_name or "").strip()
|
| 68 |
+
mapped = EVENT_MAP.get(name, ChangeType.NONE)
|
| 69 |
+
if actor_kind == "root" and name in {"ConsoleLogin", "CreateAccessKey", "CreateLoginProfile", "CreateUser"}:
|
| 70 |
+
return ChangeType.ROOT_ACTIVITY
|
| 71 |
+
if name == "ConsoleLogin" and actor_kind != "root":
|
| 72 |
+
return ChangeType.NONE
|
| 73 |
+
if name == "PutPublicAccessBlock" and _is_restrict_public(request):
|
| 74 |
+
return ChangeType.NONE
|
| 75 |
+
if name == "StartLogging":
|
| 76 |
+
return ChangeType.TRAIL_LOGGING_CHANGE
|
| 77 |
+
return mapped
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def _is_restrict_public(request: Any) -> bool:
|
| 81 |
+
blob = _lower_blob(request)
|
| 82 |
+
if not blob:
|
| 83 |
+
return False
|
| 84 |
+
truths = sum(f"{key} true" in blob or f"{key}\":true" in blob or f"{key}=true" in blob for key in RESTRICT_PUBLIC_KEYS)
|
| 85 |
+
return truths >= 1
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def flags_from_request(change_type: str, event_name: str, request: Any, actor_kind: str) -> dict[str, bool]:
|
| 89 |
+
blob = _lower_blob(request)
|
| 90 |
+
cidr_open = "0.0.0.0/0" in blob or "::/0" in blob
|
| 91 |
+
policy_public = any(marker in blob for marker in PUBLIC_MARKERS) or "allusers" in blob
|
| 92 |
+
if change_type == ChangeType.S3_PUBLIC_EXPOSURE.value and event_name == "DeletePublicAccessBlock":
|
| 93 |
+
policy_public = True
|
| 94 |
+
admin_policy = any(marker in blob for marker in ADMIN_POLICY_MARKERS)
|
| 95 |
+
logging_off = event_name in {"StopLogging", "DeleteTrail"} or (
|
| 96 |
+
event_name == "UpdateTrail" and ("islogging false" in blob or "islogging\":false" in blob)
|
| 97 |
+
)
|
| 98 |
+
detector_off = event_name in {"DeleteDetector", "StopConfigurationRecorder", "DeleteConfigRule"} or (
|
| 99 |
+
event_name == "UpdateDetector" and ("enable false" in blob or "enable\":false" in blob)
|
| 100 |
+
)
|
| 101 |
+
wildcard_trust = change_type == ChangeType.ROLE_TRUST_CHANGE.value and (
|
| 102 |
+
'"principal":"*"' in blob.replace(" ", "") or "principal *" in blob or '"aws":"*"' in blob.replace(" ", "")
|
| 103 |
+
)
|
| 104 |
+
return {
|
| 105 |
+
"cidr_open": cidr_open,
|
| 106 |
+
"policy_public": policy_public,
|
| 107 |
+
"admin_policy": admin_policy,
|
| 108 |
+
"logging_off": logging_off,
|
| 109 |
+
"detector_off": detector_off,
|
| 110 |
+
"wildcard_trust": wildcard_trust,
|
| 111 |
+
"is_root": actor_kind == "root",
|
| 112 |
+
"hardening": event_name in HARDENING_EVENTS or _is_restrict_public(request),
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def severity_for(change_type: str, flags: dict[str, bool]) -> Severity:
|
| 117 |
+
if flags.get("is_root") or flags.get("logging_off") or flags.get("detector_off"):
|
| 118 |
+
return Severity.HIGH
|
| 119 |
+
if flags.get("policy_public") or flags.get("cidr_open") or flags.get("wildcard_trust") or flags.get("admin_policy"):
|
| 120 |
+
return Severity.HIGH
|
| 121 |
+
if change_type in {
|
| 122 |
+
ChangeType.IAM_PRIVILEGE_GRANT.value,
|
| 123 |
+
ChangeType.IAM_CREDENTIAL_CREATE.value,
|
| 124 |
+
ChangeType.KMS_CONTROL_CHANGE.value,
|
| 125 |
+
ChangeType.INSTANCE_EXPOSURE.value,
|
| 126 |
+
ChangeType.TRAIL_LOGGING_CHANGE.value,
|
| 127 |
+
ChangeType.S3_PUBLIC_EXPOSURE.value,
|
| 128 |
+
ChangeType.ROLE_TRUST_CHANGE.value,
|
| 129 |
+
ChangeType.DETECTOR_DISABLE.value,
|
| 130 |
+
ChangeType.ROOT_ACTIVITY.value,
|
| 131 |
+
}:
|
| 132 |
+
if flags.get("hardening"):
|
| 133 |
+
return Severity.LOW
|
| 134 |
+
return Severity.MEDIUM
|
| 135 |
+
if change_type == ChangeType.SECURITY_GROUP_INGRESS.value:
|
| 136 |
+
return Severity.LOW
|
| 137 |
+
return Severity.LOW
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
def maintenance_match(account_alias: str, actor_alias: str, change_type: str, flags: dict[str, bool], ticket: str, in_window: bool) -> bool:
|
| 141 |
+
if not in_window:
|
| 142 |
+
return False
|
| 143 |
+
if account_alias != MAINTENANCE_ACCOUNT:
|
| 144 |
+
return False
|
| 145 |
+
if actor_alias != MAINTENANCE_ACTOR:
|
| 146 |
+
return False
|
| 147 |
+
if ticket and ticket != MAINTENANCE_TICKET:
|
| 148 |
+
return False
|
| 149 |
+
if change_type not in MAINTENANCE_ALLOWED_TYPES:
|
| 150 |
+
return False
|
| 151 |
+
if flags.get("admin_policy") or flags.get("cidr_open") or flags.get("policy_public") or flags.get("is_root"):
|
| 152 |
+
return False
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from pydantic import BaseModel, Field
|
| 6 |
+
|
| 7 |
+
from src.domain import (
|
| 8 |
+
AlertClass,
|
| 9 |
+
ApprovalStatus,
|
| 10 |
+
ChangeType,
|
| 11 |
+
ClaimKind,
|
| 12 |
+
Confidence,
|
| 13 |
+
Severity,
|
| 14 |
+
StateKnown,
|
| 15 |
+
Tag,
|
| 16 |
+
Verdict,
|
| 17 |
+
Workflow,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class Issue(BaseModel):
|
| 22 |
+
code: str
|
| 23 |
+
message: str
|
| 24 |
+
locator: str | None = None
|
| 25 |
+
severity: str = "error"
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class ValidationReport(BaseModel):
|
| 29 |
+
ok: bool
|
| 30 |
+
issues: list[Issue] = Field(default_factory=list)
|
| 31 |
+
n_raw: int = 0
|
| 32 |
+
n_valid: int = 0
|
| 33 |
+
n_dropped: int = 0
|
| 34 |
+
n_redacted: int = 0
|
| 35 |
+
|
| 36 |
+
def add(self, code: str, message: str, locator: str | None = None, severity: str = "error") -> None:
|
| 37 |
+
self.issues.append(Issue(code=code, message=message, locator=locator, severity=severity))
|
| 38 |
+
if severity == "error":
|
| 39 |
+
self.ok = False
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class LabEvent(BaseModel):
|
| 43 |
+
event_id: str
|
| 44 |
+
account_alias: str = ""
|
| 45 |
+
actor_alias: str = ""
|
| 46 |
+
start: str
|
| 47 |
+
end: str
|
| 48 |
+
family: str
|
| 49 |
+
split: str
|
| 50 |
+
change_type: str = ChangeType.NONE.value
|
| 51 |
+
note: str = ""
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
class Claim(BaseModel):
|
| 55 |
+
kind: ClaimKind
|
| 56 |
+
text: str
|
| 57 |
+
locator: str
|
| 58 |
+
field: str = ""
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
class ChangeFinding(BaseModel):
|
| 62 |
+
finding_id: str
|
| 63 |
+
event_id: str
|
| 64 |
+
timestamp: str
|
| 65 |
+
split: str
|
| 66 |
+
account_alias: str
|
| 67 |
+
actor_alias: str
|
| 68 |
+
actor_kind: str
|
| 69 |
+
actor_role: str
|
| 70 |
+
event_source: str
|
| 71 |
+
event_name: str
|
| 72 |
+
change_type: str
|
| 73 |
+
region: str
|
| 74 |
+
resource_alias: str
|
| 75 |
+
resource_kind: str
|
| 76 |
+
score: float = 0.0
|
| 77 |
+
tag: Tag = Tag.NONE
|
| 78 |
+
alert_class: AlertClass = AlertClass.NONE
|
| 79 |
+
severity: Severity = Severity.LOW
|
| 80 |
+
confidence: Confidence = Confidence.LOW
|
| 81 |
+
workflow: Workflow = Workflow.CLEAR
|
| 82 |
+
approval_status: ApprovalStatus = ApprovalStatus.NONE
|
| 83 |
+
methods_fired: list[str] = Field(default_factory=list)
|
| 84 |
+
gold_event_ids: list[str] = Field(default_factory=list)
|
| 85 |
+
gold_family: str = ""
|
| 86 |
+
evidence_event_ids: list[str] = Field(default_factory=list)
|
| 87 |
+
before_state: StateKnown = StateKnown.UNKNOWN
|
| 88 |
+
after_state: StateKnown = StateKnown.UNKNOWN
|
| 89 |
+
before_event_id: str = ""
|
| 90 |
+
after_event_id: str = ""
|
| 91 |
+
in_maintenance: bool = False
|
| 92 |
+
change_ticket: str = ""
|
| 93 |
+
request_summary: str = ""
|
| 94 |
+
cidr_open: bool = False
|
| 95 |
+
policy_public: bool = False
|
| 96 |
+
logging_off: bool = False
|
| 97 |
+
detector_off: bool = False
|
| 98 |
+
wildcard_trust: bool = False
|
| 99 |
+
admin_policy: bool = False
|
| 100 |
+
unusual_hour: bool = False
|
| 101 |
+
burst_count: int = 0
|
| 102 |
+
observed: list[str] = Field(default_factory=list)
|
| 103 |
+
inferred: list[str] = Field(default_factory=list)
|
| 104 |
+
action: str = ""
|
| 105 |
+
claims: list[Claim] = Field(default_factory=list)
|
| 106 |
+
detect_delay_min: float | None = None
|
| 107 |
+
incomplete: bool = False
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
class EvaluationRow(BaseModel):
|
| 111 |
+
method: str
|
| 112 |
+
split: str
|
| 113 |
+
event_recall: float | None = None
|
| 114 |
+
precision_at_k: float | None = None
|
| 115 |
+
false_alarms_per_account_day: float | None = None
|
| 116 |
+
change_type_accuracy: float | None = None
|
| 117 |
+
maintenance_as_security: int = 0
|
| 118 |
+
ungrounded_claims: int = 0
|
| 119 |
+
n_security_alerts: int = 0
|
| 120 |
+
n_context_alerts: int = 0
|
| 121 |
+
n_review_events: int = 0
|
| 122 |
+
parse_coverage: float | None = None
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
class Kpis(BaseModel):
|
| 126 |
+
n_raw: int = 0
|
| 127 |
+
n_valid: int = 0
|
| 128 |
+
n_dropped: int = 0
|
| 129 |
+
n_changes: int = 0
|
| 130 |
+
n_security_review: int = 0
|
| 131 |
+
n_context: int = 0
|
| 132 |
+
n_incomplete: int = 0
|
| 133 |
+
parse_coverage: float = 0.0
|
| 134 |
+
event_recall: float | None = None
|
| 135 |
+
precision_at_k: float | None = None
|
| 136 |
+
false_alarms_per_account_day: float | None = None
|
| 137 |
+
change_type_accuracy: float | None = None
|
| 138 |
+
maintenance_as_security: int = 0
|
| 139 |
+
ungrounded_claims: int = 0
|
| 140 |
+
seconds: float = 0.0
|
| 141 |
+
threshold: float = 3.0
|
| 142 |
+
model_names: str = "rules+baseline+correlation"
|
| 143 |
+
daily_capacity: int = 8
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
class ThresholdPoint(BaseModel):
|
| 147 |
+
threshold: float
|
| 148 |
+
n_security_alerts: int
|
| 149 |
+
event_recall: float | None = None
|
| 150 |
+
precision_at_k: float | None = None
|
| 151 |
+
false_alarms_per_account_day: float | None = None
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
class PipelineResult(BaseModel):
|
| 155 |
+
run_id: str
|
| 156 |
+
verdict: Verdict
|
| 157 |
+
status_label: str
|
| 158 |
+
kpis: Kpis
|
| 159 |
+
findings: list[ChangeFinding] = Field(default_factory=list)
|
| 160 |
+
comparison: list[EvaluationRow] = Field(default_factory=list)
|
| 161 |
+
calibration: list[ThresholdPoint] = Field(default_factory=list)
|
| 162 |
+
reasons: list[str] = Field(default_factory=list)
|
| 163 |
+
validation: ValidationReport
|
| 164 |
+
report: dict[str, Any] = Field(default_factory=dict)
|
| 165 |
+
seconds: float = 0.0
|
| 166 |
+
error: str | None = None
|
| 167 |
+
code_version: str = ""
|
| 168 |
+
live: bool = True
|
demo/src/ui.py
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import tempfile
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from zipfile import ZipFile
|
| 7 |
+
|
| 8 |
+
import gradio as gr
|
| 9 |
+
import pandas as pd
|
| 10 |
+
import plotly.graph_objects as go
|
| 11 |
+
|
| 12 |
+
from src.domain import DEFAULT_THRESHOLD, SENSITIVE_TYPES
|
| 13 |
+
from src.explain import finding_markdown, state_markdown
|
| 14 |
+
from src.i18n import TEXTS, t
|
| 15 |
+
from src.pipeline import evidence_table, findings_table, load_sample, load_uploaded, result_to_downloads, run_pipeline
|
| 16 |
+
from src.plots import (
|
| 17 |
+
calibration_figure,
|
| 18 |
+
compare_figure,
|
| 19 |
+
empty_plot,
|
| 20 |
+
finding_scatter,
|
| 21 |
+
graph_figure,
|
| 22 |
+
kpi_html,
|
| 23 |
+
timeline_figure,
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 27 |
+
SAMPLE_PREVIEW = ROOT / "examples" / "sample_preview.json"
|
| 28 |
+
CHANGE_CHOICES = ["all", *sorted(SENSITIVE_TYPES)]
|
| 29 |
+
CSS = """
|
| 30 |
+
.gradio-container {max-width: 1320px !important; margin: 0 auto;}
|
| 31 |
+
.dark .gradio-container {color: var(--body-text-color);}
|
| 32 |
+
.aria-header h1 {margin-bottom: 0.2rem;}
|
| 33 |
+
.aria-header p {opacity: 0.85;}
|
| 34 |
+
.kpi-grid {display:grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;}
|
| 35 |
+
.kpi-card {background: linear-gradient(180deg, #e0f2fe, #ffffff); border: 1px solid #7dd3fc; border-radius: 16px; padding: 14px 16px;}
|
| 36 |
+
.kpi-label {font-size: 0.8rem; color: #075985; margin: 0;}
|
| 37 |
+
.kpi-value {font-size: 1.45rem; font-weight: 700; color: #0c4a6e; margin: 4px 0;}
|
| 38 |
+
.kpi-sub {margin: 0; font-size: 0.78rem; color: #334155;}
|
| 39 |
+
.rtl-mode {direction: rtl; text-align: right;}
|
| 40 |
+
.ltr-id {direction: ltr; text-align: left; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace;}
|
| 41 |
+
"""
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _preview_payload() -> dict:
|
| 45 |
+
if SAMPLE_PREVIEW.exists():
|
| 46 |
+
return json.loads(SAMPLE_PREVIEW.read_text(encoding="utf-8"))
|
| 47 |
+
return {}
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def _empty_plot() -> go.Figure:
|
| 51 |
+
return empty_plot("—")
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def _scenario_choices(lang: str) -> list[str]:
|
| 55 |
+
return [
|
| 56 |
+
t(lang, "scenario_full"),
|
| 57 |
+
t(lang, "scenario_maintenance"),
|
| 58 |
+
t(lang, "scenario_exposure"),
|
| 59 |
+
t(lang, "scenario_iam"),
|
| 60 |
+
t(lang, "scenario_logging"),
|
| 61 |
+
t(lang, "scenario_broken"),
|
| 62 |
+
]
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def _parse_scenario(value: str) -> str:
|
| 66 |
+
mapping = {}
|
| 67 |
+
for lang in ("en", "fa"):
|
| 68 |
+
mapping[t(lang, "scenario_full")] = "full"
|
| 69 |
+
mapping[t(lang, "scenario_maintenance")] = "maintenance"
|
| 70 |
+
mapping[t(lang, "scenario_exposure")] = "exposure"
|
| 71 |
+
mapping[t(lang, "scenario_iam")] = "iam"
|
| 72 |
+
mapping[t(lang, "scenario_logging")] = "logging"
|
| 73 |
+
mapping[t(lang, "scenario_broken")] = "broken"
|
| 74 |
+
return mapping.get(value, "full")
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def _feedback_choices(lang: str) -> list[str]:
|
| 78 |
+
return [t(lang, "correct"), t(lang, "false_positive"), t(lang, "insufficient"), t(lang, "needs_review")]
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def _file_path(value) -> str | None:
|
| 82 |
+
if value is None:
|
| 83 |
+
return None
|
| 84 |
+
if isinstance(value, str):
|
| 85 |
+
return value
|
| 86 |
+
if isinstance(value, dict) and value.get("path"):
|
| 87 |
+
return value["path"]
|
| 88 |
+
return getattr(value, "name", None) or getattr(value, "path", None)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def apply_language(lang: str):
|
| 92 |
+
rtl = lang == "fa"
|
| 93 |
+
header = (
|
| 94 |
+
f"<div class='aria-header {'rtl-mode' if rtl else ''}'>"
|
| 95 |
+
f"<h1>{t(lang, 'title')}</h1><p>{t(lang, 'subtitle')}</p><p>{t(lang, 'kind')}</p></div>"
|
| 96 |
+
)
|
| 97 |
+
preview = _preview_payload()
|
| 98 |
+
return (
|
| 99 |
+
gr.update(value=header),
|
| 100 |
+
gr.update(value=t(lang, "run_sample")),
|
| 101 |
+
gr.update(value=t(lang, "cancel")),
|
| 102 |
+
gr.update(value=t(lang, "reset")),
|
| 103 |
+
gr.update(value=t(lang, "load_sample")),
|
| 104 |
+
gr.update(label=t(lang, "scenario"), choices=_scenario_choices(lang), value=_scenario_choices(lang)[0]),
|
| 105 |
+
gr.update(label=t(lang, "threshold")),
|
| 106 |
+
gr.update(label=t(lang, "hide_context")),
|
| 107 |
+
gr.update(label=t(lang, "actor_filter")),
|
| 108 |
+
gr.update(label=t(lang, "resource_filter")),
|
| 109 |
+
gr.update(label=t(lang, "change_filter")),
|
| 110 |
+
gr.update(value=t(lang, "sample_note")),
|
| 111 |
+
gr.update(value=preview.get("kpi_html") or kpi_html(preview.get("kpis"), None, lang)),
|
| 112 |
+
gr.update(open=False, label=t(lang, "advanced")),
|
| 113 |
+
gr.update(value=t(lang, "method_body"), rtl=rtl),
|
| 114 |
+
gr.update(value=t(lang, "upload_hint")),
|
| 115 |
+
gr.update(label=t(lang, "custom_logs")),
|
| 116 |
+
gr.update(label=t(lang, "logs_file")),
|
| 117 |
+
gr.update(label=t(lang, "feedback"), choices=_feedback_choices(lang), value=_feedback_choices(lang)[3]),
|
| 118 |
+
gr.update(label=t(lang, "tab_data")),
|
| 119 |
+
gr.update(label=t(lang, "tab_findings")),
|
| 120 |
+
gr.update(label=t(lang, "tab_evidence")),
|
| 121 |
+
gr.update(label=t(lang, "tab_compare")),
|
| 122 |
+
gr.update(label=t(lang, "tab_method")),
|
| 123 |
+
)
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def load_sample_ui(scenario_label: str):
|
| 127 |
+
pack = load_sample(_parse_scenario(scenario_label))
|
| 128 |
+
return pack["events"], pack["gold"], pack["full_events"]
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
def reset_defaults():
|
| 132 |
+
pack = load_sample("full")
|
| 133 |
+
return pack["events"], pack["gold"], pack["full_events"], DEFAULT_THRESHOLD, False, "", "", "all", ""
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def run_live(
|
| 137 |
+
lang,
|
| 138 |
+
scenario_label,
|
| 139 |
+
threshold,
|
| 140 |
+
hide_context,
|
| 141 |
+
actor_filter,
|
| 142 |
+
resource_filter,
|
| 143 |
+
change_filter,
|
| 144 |
+
preview,
|
| 145 |
+
gold,
|
| 146 |
+
full_events,
|
| 147 |
+
extra,
|
| 148 |
+
log_file,
|
| 149 |
+
previous,
|
| 150 |
+
):
|
| 151 |
+
scenario = _parse_scenario(scenario_label)
|
| 152 |
+
uploaded, messages = load_uploaded(_file_path(log_file))
|
| 153 |
+
source = uploaded if not uploaded.empty else (full_events if isinstance(full_events, pd.DataFrame) and not full_events.empty else preview)
|
| 154 |
+
if (source is None or getattr(source, "empty", True)) and scenario:
|
| 155 |
+
pack = load_sample(scenario)
|
| 156 |
+
source = pack["full_events"]
|
| 157 |
+
gold = pack["gold"]
|
| 158 |
+
result = run_pipeline(
|
| 159 |
+
source,
|
| 160 |
+
gold=gold,
|
| 161 |
+
threshold=float(threshold or DEFAULT_THRESHOLD),
|
| 162 |
+
lang=lang,
|
| 163 |
+
extra_text=extra or "",
|
| 164 |
+
hide_context=bool(hide_context),
|
| 165 |
+
actor_filter=str(actor_filter or ""),
|
| 166 |
+
resource_filter=str(resource_filter or ""),
|
| 167 |
+
change_filter=str(change_filter or "all"),
|
| 168 |
+
)
|
| 169 |
+
if result.get("error") and result["verdict"].value == "invalid_input":
|
| 170 |
+
raise gr.Error(result["error"])
|
| 171 |
+
if messages:
|
| 172 |
+
result["reasons"] = messages + result["reasons"]
|
| 173 |
+
table = findings_table(result)
|
| 174 |
+
baseline = next((row.model_dump() for row in result["comparison"] if row.method == "rule_severity" and row.split == "test"), {})
|
| 175 |
+
tmp = Path(tempfile.mkdtemp(prefix="ariact-"))
|
| 176 |
+
files = result_to_downloads(result, tmp)
|
| 177 |
+
zip_path = tmp / f"{result['run_id']}_bundle.zip"
|
| 178 |
+
with ZipFile(zip_path, "w") as zipped:
|
| 179 |
+
for path in files.values():
|
| 180 |
+
zipped.write(path, arcname=Path(path).name)
|
| 181 |
+
history = pd.DataFrame()
|
| 182 |
+
if previous:
|
| 183 |
+
history = pd.DataFrame([{"run": "previous", **(previous.get("kpis") or {})}, {"run": "current", **result["kpis"].model_dump()}])
|
| 184 |
+
first = result["findings"][0] if result["findings"] else None
|
| 185 |
+
status = f"**{t(lang, 'status')}:** {result['status_label']}"
|
| 186 |
+
state = {
|
| 187 |
+
"kpis": result["kpis"].model_dump(),
|
| 188 |
+
"findings": [item.model_dump() for item in result["findings"]],
|
| 189 |
+
"run_id": result["run_id"],
|
| 190 |
+
}
|
| 191 |
+
evidence = evidence_table(result, first.finding_id) if first else pd.DataFrame()
|
| 192 |
+
account = first.account_alias if first else ""
|
| 193 |
+
return (
|
| 194 |
+
kpi_html(result["kpis"], baseline, lang),
|
| 195 |
+
status,
|
| 196 |
+
"\n".join(f"- {line}" for line in result["reasons"]),
|
| 197 |
+
finding_markdown(lang, first),
|
| 198 |
+
state_markdown(lang, first),
|
| 199 |
+
table,
|
| 200 |
+
pd.DataFrame([row.model_dump() for row in result["comparison"]]),
|
| 201 |
+
timeline_figure(result.get("events"), account, t(lang, "timeline_plot")),
|
| 202 |
+
compare_figure([row.model_dump() for row in result["comparison"]], t(lang, "cmp_plot")),
|
| 203 |
+
calibration_figure(result.get("calibration") or [], t(lang, "cal_plot")),
|
| 204 |
+
finding_scatter(result["findings"], t(lang, "scatter_plot")),
|
| 205 |
+
graph_figure(result["findings"], t(lang, "graph_plot")),
|
| 206 |
+
str(zip_path),
|
| 207 |
+
files["report"],
|
| 208 |
+
history,
|
| 209 |
+
evidence,
|
| 210 |
+
result,
|
| 211 |
+
state,
|
| 212 |
+
)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def show_finding(evt: gr.SelectData, table, lang, result):
|
| 216 |
+
if table is None or evt is None or not result:
|
| 217 |
+
return t(lang, "empty_card"), t(lang, "empty_state"), pd.DataFrame(), _empty_plot()
|
| 218 |
+
frame = pd.DataFrame(table)
|
| 219 |
+
try:
|
| 220 |
+
row = frame.iloc[evt.index[0] if isinstance(evt.index, tuple) else evt.index]
|
| 221 |
+
except Exception:
|
| 222 |
+
return t(lang, "empty_card"), t(lang, "empty_state"), pd.DataFrame(), _empty_plot()
|
| 223 |
+
finding_id = str(row.get("finding_id") or "")
|
| 224 |
+
match = next((item for item in result.get("findings") or [] if item.finding_id == finding_id), None)
|
| 225 |
+
account = match.account_alias if match else ""
|
| 226 |
+
return (
|
| 227 |
+
finding_markdown(lang, match),
|
| 228 |
+
state_markdown(lang, match),
|
| 229 |
+
evidence_table(result, finding_id),
|
| 230 |
+
timeline_figure(result.get("events"), account, t(lang, "timeline_plot")),
|
| 231 |
+
)
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
def build_demo() -> gr.Blocks:
|
| 235 |
+
pack = load_sample("full")
|
| 236 |
+
preview = _preview_payload()
|
| 237 |
+
preview_kpis = preview.get("kpis") or {
|
| 238 |
+
"n_raw": 0,
|
| 239 |
+
"n_valid": 0,
|
| 240 |
+
"n_dropped": 0,
|
| 241 |
+
"n_changes": 0,
|
| 242 |
+
"n_security_review": 0,
|
| 243 |
+
"n_context": 0,
|
| 244 |
+
"n_incomplete": 0,
|
| 245 |
+
"parse_coverage": 0.0,
|
| 246 |
+
"seconds": 0.0,
|
| 247 |
+
"threshold": DEFAULT_THRESHOLD,
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
with gr.Blocks(theme=gr.themes.Soft(primary_hue="sky", secondary_hue="slate"), css=CSS) as demo:
|
| 251 |
+
lang = gr.Radio(["en", "fa"], value="en", label=TEXTS["en"]["language"])
|
| 252 |
+
header = gr.HTML()
|
| 253 |
+
with gr.Row():
|
| 254 |
+
run_btn = gr.Button(t("en", "run_sample"), variant="primary")
|
| 255 |
+
cancel_btn = gr.Button(t("en", "cancel"), variant="stop")
|
| 256 |
+
reset_btn = gr.Button(t("en", "reset"))
|
| 257 |
+
load_btn = gr.Button(t("en", "load_sample"))
|
| 258 |
+
note = gr.Markdown(t("en", "sample_note"))
|
| 259 |
+
kpis = gr.HTML(preview.get("kpi_html") or kpi_html(preview_kpis, None, "en"))
|
| 260 |
+
status = gr.Markdown(t("en", "empty"))
|
| 261 |
+
with gr.Row():
|
| 262 |
+
scenario = gr.Radio(choices=_scenario_choices("en"), value=_scenario_choices("en")[0], label=t("en", "scenario"))
|
| 263 |
+
threshold = gr.Slider(1.5, 5.0, value=DEFAULT_THRESHOLD, step=0.5, label=t("en", "threshold"))
|
| 264 |
+
hide_context = gr.Checkbox(value=False, label=t("en", "hide_context"))
|
| 265 |
+
with gr.Row():
|
| 266 |
+
actor_filter = gr.Textbox(label=t("en", "actor_filter"), elem_classes=["ltr-id"])
|
| 267 |
+
resource_filter = gr.Textbox(label=t("en", "resource_filter"), elem_classes=["ltr-id"])
|
| 268 |
+
change_filter = gr.Dropdown(choices=CHANGE_CHOICES, value="all", label=t("en", "change_filter"))
|
| 269 |
+
reasons = gr.Markdown()
|
| 270 |
+
card = gr.Markdown(t("en", "empty_card"))
|
| 271 |
+
state_md = gr.Markdown(t("en", "empty_state"))
|
| 272 |
+
|
| 273 |
+
with gr.Tabs() as tabs:
|
| 274 |
+
with gr.Tab(t("en", "tab_data")) as tab_data:
|
| 275 |
+
hint = gr.Markdown(t("en", "upload_hint"))
|
| 276 |
+
log_file = gr.File(label=t("en", "logs_file"), file_types=[".csv", ".json", ".jsonl", ".log", ".txt"])
|
| 277 |
+
events = gr.Dataframe(value=pack["events"], label="CloudTrail preview (first 400 of the generated pack)", wrap=True)
|
| 278 |
+
gold = gr.Dataframe(value=pack["gold"], label="Lab change labels")
|
| 279 |
+
full_events = gr.State(pack["full_events"])
|
| 280 |
+
with gr.Accordion(t("en", "advanced"), open=False) as advanced:
|
| 281 |
+
extra = gr.Textbox(label=t("en", "custom_logs"), lines=5)
|
| 282 |
+
|
| 283 |
+
with gr.Tab(t("en", "tab_findings")) as tab_findings:
|
| 284 |
+
backlog = gr.Dataframe(label="Changes tagged for review, context, or insufficient evidence")
|
| 285 |
+
scatter = gr.Plot(value=_empty_plot())
|
| 286 |
+
graph = gr.Plot(value=_empty_plot())
|
| 287 |
+
|
| 288 |
+
with gr.Tab(t("en", "tab_evidence")) as tab_evidence:
|
| 289 |
+
feedback = gr.Radio(choices=_feedback_choices("en"), value=_feedback_choices("en")[3], label=t("en", "feedback"))
|
| 290 |
+
timeline = gr.Plot(value=_empty_plot())
|
| 291 |
+
evidence = gr.Dataframe(label="Redacted evidence events")
|
| 292 |
+
with gr.Row():
|
| 293 |
+
zip_out = gr.File(label="CSV / JSON bundle")
|
| 294 |
+
json_out = gr.File(label="JSON report")
|
| 295 |
+
|
| 296 |
+
with gr.Tab(t("en", "tab_compare")) as tab_compare:
|
| 297 |
+
comparison = gr.Dataframe(label="AriaCloudTrail vs rule-severity vs role/time vs correlation vs maintenance-aware")
|
| 298 |
+
cmp_plot = gr.Plot(value=_empty_plot())
|
| 299 |
+
cal_plot = gr.Plot(value=_empty_plot())
|
| 300 |
+
history = gr.Dataframe(label="Previous vs current KPIs")
|
| 301 |
+
|
| 302 |
+
with gr.Tab(t("en", "tab_method")) as tab_method:
|
| 303 |
+
method_md = gr.Markdown(t("en", "method_body"))
|
| 304 |
+
gr.Markdown(
|
| 305 |
+
"Organization: [AriaAICompany](https://huggingface.co/AriaAICompany) · "
|
| 306 |
+
"Dataset: [cloudtrail-lab](https://huggingface.co/datasets/AriaAICompany/cloudtrail-lab) · "
|
| 307 |
+
"Site: [aria-ai.ir](https://aria-ai.ir/)"
|
| 308 |
+
)
|
| 309 |
+
|
| 310 |
+
result_state = gr.State(None)
|
| 311 |
+
previous = gr.State(None)
|
| 312 |
+
_ = feedback
|
| 313 |
+
outputs_lang = [
|
| 314 |
+
header, run_btn, cancel_btn, reset_btn, load_btn, scenario, threshold, hide_context,
|
| 315 |
+
actor_filter, resource_filter, change_filter, note, kpis,
|
| 316 |
+
advanced, method_md, hint, extra, log_file, feedback,
|
| 317 |
+
tab_data, tab_findings, tab_evidence, tab_compare, tab_method,
|
| 318 |
+
]
|
| 319 |
+
lang.change(apply_language, inputs=[lang], outputs=outputs_lang)
|
| 320 |
+
demo.load(apply_language, inputs=[lang], outputs=outputs_lang)
|
| 321 |
+
load_btn.click(load_sample_ui, inputs=[scenario], outputs=[events, gold, full_events])
|
| 322 |
+
reset_btn.click(
|
| 323 |
+
reset_defaults,
|
| 324 |
+
outputs=[events, gold, full_events, threshold, hide_context, actor_filter, resource_filter, change_filter, extra],
|
| 325 |
+
)
|
| 326 |
+
|
| 327 |
+
outputs_run = [
|
| 328 |
+
kpis, status, reasons, card, state_md, backlog, comparison, timeline, cmp_plot, cal_plot, scatter, graph,
|
| 329 |
+
zip_out, json_out, history, evidence, result_state, previous,
|
| 330 |
+
]
|
| 331 |
+
click = run_btn.click(
|
| 332 |
+
run_live,
|
| 333 |
+
inputs=[
|
| 334 |
+
lang, scenario, threshold, hide_context, actor_filter, resource_filter, change_filter,
|
| 335 |
+
events, gold, full_events, extra, log_file, previous,
|
| 336 |
+
],
|
| 337 |
+
outputs=outputs_run,
|
| 338 |
+
)
|
| 339 |
+
cancel_btn.click(None, cancels=[click])
|
| 340 |
+
backlog.select(show_finding, inputs=[backlog, lang, result_state], outputs=[card, state_md, evidence, timeline])
|
| 341 |
+
_ = tabs
|
| 342 |
+
|
| 343 |
+
return demo
|
demo/src/validation.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
import pandas as pd
|
| 6 |
+
|
| 7 |
+
from src.domain import MAX_BYTES, MAX_EVENTS, REQUIRED_EVENT_FIELDS
|
| 8 |
+
from src.parsers import parse_timestamp
|
| 9 |
+
from src.schemas import ValidationReport
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def _as_rows(frame: pd.DataFrame | list[dict[str, Any]] | None) -> list[dict[str, Any]]:
|
| 13 |
+
if frame is None:
|
| 14 |
+
return []
|
| 15 |
+
if isinstance(frame, pd.DataFrame):
|
| 16 |
+
if frame.empty:
|
| 17 |
+
return []
|
| 18 |
+
rows: list[dict[str, Any]] = []
|
| 19 |
+
for raw in frame.to_dict(orient="records"):
|
| 20 |
+
rows.append(
|
| 21 |
+
{
|
| 22 |
+
key: value
|
| 23 |
+
for key, value in raw.items()
|
| 24 |
+
if value is not None and not (isinstance(value, float) and pd.isna(value))
|
| 25 |
+
}
|
| 26 |
+
)
|
| 27 |
+
return rows
|
| 28 |
+
return [dict(item) for item in frame if isinstance(item, dict)]
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def validate_payload_size(text: str) -> ValidationReport:
|
| 32 |
+
report = ValidationReport(ok=True)
|
| 33 |
+
if len((text or "").encode("utf-8")) > MAX_BYTES:
|
| 34 |
+
report.add("size", f"Upload exceeds {MAX_BYTES} bytes.")
|
| 35 |
+
return report
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def validate_events(rows: pd.DataFrame | list[dict[str, Any]] | None) -> ValidationReport:
|
| 39 |
+
report = ValidationReport(ok=True)
|
| 40 |
+
raw_rows = _as_rows(rows)
|
| 41 |
+
report.n_raw = len(raw_rows)
|
| 42 |
+
if not raw_rows:
|
| 43 |
+
report.add("empty", "No CloudTrail events provided.", severity="warning")
|
| 44 |
+
return report
|
| 45 |
+
if len(raw_rows) > MAX_EVENTS:
|
| 46 |
+
report.add("count", f"This run accepts at most {MAX_EVENTS} CloudTrail events.")
|
| 47 |
+
return report
|
| 48 |
+
seen: set[str] = set()
|
| 49 |
+
valid = 0
|
| 50 |
+
dropped = 0
|
| 51 |
+
for index, row in enumerate(raw_rows):
|
| 52 |
+
locator = f"event row {index}"
|
| 53 |
+
timestamp = parse_timestamp(
|
| 54 |
+
row.get("timestamp") or row.get("eventTime") or row.get("time") or row.get("created_at")
|
| 55 |
+
)
|
| 56 |
+
event_name = str(row.get("event_name") or row.get("eventName") or "").strip()
|
| 57 |
+
missing = []
|
| 58 |
+
if timestamp is None:
|
| 59 |
+
missing.append("timestamp")
|
| 60 |
+
if not event_name:
|
| 61 |
+
missing.append("event_name")
|
| 62 |
+
if missing:
|
| 63 |
+
dropped += 1
|
| 64 |
+
report.add(
|
| 65 |
+
"incomplete",
|
| 66 |
+
f"Dropped incomplete row ({', '.join(missing)}).",
|
| 67 |
+
locator=locator,
|
| 68 |
+
severity="warning",
|
| 69 |
+
)
|
| 70 |
+
continue
|
| 71 |
+
event_id = str(row.get("event_id") or row.get("eventID") or "").strip()
|
| 72 |
+
if event_id:
|
| 73 |
+
if event_id in seen:
|
| 74 |
+
report.add("duplicate", f"Duplicate event_id `{event_id}`.", locator=locator)
|
| 75 |
+
seen.add(event_id)
|
| 76 |
+
valid += 1
|
| 77 |
+
report.n_valid = valid
|
| 78 |
+
report.n_dropped = dropped
|
| 79 |
+
if valid == 0:
|
| 80 |
+
report.add("empty", "No valid CloudTrail events remained after schema checks.", severity="warning")
|
| 81 |
+
unused = REQUIRED_EVENT_FIELDS
|
| 82 |
+
_ = unused
|
| 83 |
+
return report
|
demo/tests/conftest.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|