id stringlengths 12 12 | template_id stringclasses 16
values | resource_type stringclasses 11
values | resource_name stringlengths 11 28 | declared_state stringlengths 163 391 | observed_state stringlengths 162 464 | declared_hcl stringlengths 237 553 | drift_diff stringclasses 327
values | num_changes int64 1 4 | drift_cause stringclasses 8
values | risk stringclasses 8
values | reconciliation stringclasses 167
values | narrative stringlengths 108 202 | observed_source stringclasses 1
value | postmortem stringlengths 885 1.13k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
drift-000000 | lambda_url_auth_none | aws_lambda_function_url | fn-staging-7468 | {"function_name": "fn-staging-7468", "runtime": "python3.11", "function_url": {"authorization_type": "AWS_IAM"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-940"}} | {"function_name": "fn-staging-7468", "runtime": "python3.11", "function_url": {"authorization_type": "NONE"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-940"}} | resource "aws_lambda_function_url" "fn-staging-7468" {
function_name = "fn-staging-7468"
runtime = "python3.11"
function_url = {
authorization_type = "AWS_IAM"
}
environment = {
LOG_LEVEL = "info"
}
tags = {
Environment = "prod"
Owner = "platform"
ManagedBy = "terraform"
CostCenter... | [{"path": "function_url.authorization_type", "change": "modified", "declared": "AWS_IAM", "observed": "NONE"}] | 1 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "require_iam_auth", "target_path": "function_url.authorization_type", "reason": "Lambda function URL set to public (no auth)", "hcl_patch": "function_url = { authorization_type = \"AWS_IAM\" }"} | Lambda fn-staging-7468 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet. | simulated | # Post-mortem: drift on aws_lambda_function_url `fn-staging-7468`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Lambda fn-staging-7468 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet.
## Detection
Configuration drift det... |
drift-000001 | vpc_flow_logs_disabled | aws_flow_log | vpc-prod-9313 | {"vpc_name": "vpc-prod-9313", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-544"}} | {"vpc_name": "vpc-prod-9313", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": false}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-544"}} | resource "aws_flow_log" "vpc-prod-9313" {
vpc_name = "vpc-prod-9313"
cidr_block = "192.168.1.0/24"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "prod"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-544"
}
}
| [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-prod-9313 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-prod-9313`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-prod-9313 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected between decl... |
drift-000002 | s3_public_acl | aws_s3_bucket | bucket-assets-staging-2486 | {"bucket": "bucket-assets-staging-2486", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-946"}} | {"bucket": "bucket-assets-staging-2486", "acl": "public-read", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-946"}} | resource "aws_s3_bucket" "bucket-assets-staging-2486" {
bucket = "bucket-assets-staging-2486"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "sandbox"
Owner = "platform"
ManagedBy = "terraform"
Cos... | [{"path": "acl", "change": "modified", "declared": "private", "observed": "public-read"}] | 1 | manual_change_via_console | {"category": "security", "severity": "critical"} | {"action": "set_acl_private", "target_path": "acl", "reason": "Bucket ACL widened to public-read", "hcl_patch": "acl = \"private\""} | Bucket bucket-assets-staging-2486 was declared private but drifted to a public-read ACL, making its contents world-readable. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-assets-staging-2486`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Bucket bucket-assets-staging-2486 was declared private but drifted to a public-read ACL, making its contents world-readable.
## Detection
Configuration drift detected b... |
drift-000003 | iam_policy_wildcard | aws_iam_policy | iam-role-policy-prod-7499 | {"policy_name": "iam-role-policy-prod-7499", "statement": [{"effect": "Allow", "action": ["s3:GetObject", "s3:PutObject"], "resource": ["arn:aws:s3:::bucket-prod-4622/*"]}], "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-979"}} | {"policy_name": "iam-role-policy-prod-7499", "statement": [{"effect": "Allow", "action": ["s3:*"], "resource": ["*"]}], "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-979"}} | resource "aws_iam_policy" "iam-role-policy-prod-7499" {
policy_name = "iam-role-policy-prod-7499"
statement = [
{
effect = "Allow"
action = [
"s3:GetObject",
"s3:PutObject"
]
resource = [
"arn:aws:s3:::bucket-prod-4622/*"
]
}
]
tags = {
Environme... | [{"path": "statement[0].action[0]", "change": "modified", "declared": "s3:GetObject", "observed": "s3:*"}, {"path": "statement[0].action[1]", "change": "removed", "declared": "s3:PutObject"}, {"path": "statement[0].resource[0]", "change": "modified", "declared": "arn:aws:s3:::bucket-prod-4622/*", "observed": "*"}] | 3 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "restore_least_privilege", "target_path": "statement[0]", "reason": "IAM policy widened to s3:* on all resources (privilege escalation)", "hcl_patch": "action = [\"s3:GetObject\", \"s3:PutObject\"]; resource scoped to the bucket ARN"} | IAM policy iam-role-policy-prod-7499 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access. | simulated | # Post-mortem: drift on aws_iam_policy `iam-role-policy-prod-7499`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
IAM policy iam-role-policy-prod-7499 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access.
## Detection
Config... |
drift-000004 | rds_backup_disabled | aws_db_instance | rds-db-sandbox-3363 | {"identifier": "rds-db-sandbox-3363", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 30, "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-935"}} | {"identifier": "rds-db-sandbox-3363", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 0, "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-935"}} | resource "aws_db_instance" "rds-db-sandbox-3363" {
identifier = "rds-db-sandbox-3363"
engine = "postgres"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 30
tags = {
Environment = "dev"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-935"
}
}
| [{"path": "backup_retention_period", "change": "modified", "declared": 30, "observed": 0}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "high"} | {"action": "restore_backups", "target_path": "backup_retention_period", "reason": "Automated backups disabled; point-in-time recovery lost", "hcl_patch": "backup_retention_period = 30"} | RDS instance rds-db-sandbox-3363 had a 30-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-sandbox-3363`
**Severity:** high (availability) — page on-call, 1-hour response
## Summary
RDS instance rds-db-sandbox-3363 had a 30-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery.
## Detection
Configuration drift dete... |
drift-000005 | s3_versioning_disabled | aws_s3_bucket | bucket-logs-staging-7101 | {"bucket": "bucket-logs-staging-7101", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-829"}} | {"bucket": "bucket-logs-staging-7101", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": false}, "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-829"}} | resource "aws_s3_bucket" "bucket-logs-staging-7101" {
bucket = "bucket-logs-staging-7101"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "prod"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter... | [{"path": "versioning.enabled", "change": "modified", "declared": true, "observed": false}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "reenable_versioning", "target_path": "versioning.enabled", "reason": "Object versioning suspended; accidental deletes are now unrecoverable", "hcl_patch": "versioning = { enabled = true }"} | Bucket bucket-logs-staging-7101 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-logs-staging-7101`
**Severity:** medium (availability) — ticket, next business day
## Summary
Bucket bucket-logs-staging-7101 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes.
## Detectio... |
drift-000006 | s3_encryption_removed | aws_s3_bucket | bucket-data-staging-9133 | {"bucket": "bucket-data-staging-9133", "encryption": {"enabled": true, "sse_algorithm": "aws:kms", "kms_key_id": "alias/prod-master"}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-576"}} | {"bucket": "bucket-data-staging-9133", "encryption": {"enabled": false}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-576"}} | resource "aws_s3_bucket" "bucket-data-staging-9133" {
bucket = "bucket-data-staging-9133"
encryption = {
enabled = true
sse_algorithm = "aws:kms"
kms_key_id = "alias/prod-master"
}
versioning = {
enabled = true
}
acl = "private"
tags = {
Environment = "sandbox"
Owner = "data-eng"
... | [{"path": "encryption.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "encryption.kms_key_id", "change": "removed", "declared": "alias/prod-master"}, {"path": "encryption.sse_algorithm", "change": "removed", "declared": "aws:kms"}] | 3 | provider_default_reset | {"category": "security", "severity": "high"} | {"action": "reenable_encryption", "target_path": "encryption", "reason": "Server-side encryption disabled on a data bucket", "hcl_patch": "encryption = { enabled = true, sse_algorithm = \"aws:kms\", kms_key_id = \"alias/prod-master\" }"} | Bucket bucket-data-staging-9133 was declared with SSE-KMS encryption (alias/prod-master). In production the encryption configuration was removed, leaving objects unencrypted at rest. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-data-staging-9133`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Bucket bucket-data-staging-9133 was declared with SSE-KMS encryption (alias/prod-master). In production the encryption configuration was removed, leaving objects unencrypted at res... |
drift-000007 | vpc_flow_logs_disabled | aws_flow_log | vpc-dev-5070 | {"vpc_name": "vpc-dev-5070", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-688"}} | {"vpc_name": "vpc-dev-5070", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": false}, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-688"}} | resource "aws_flow_log" "vpc-dev-5070" {
vpc_name = "vpc-dev-5070"
cidr_block = "192.168.1.0/24"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "staging"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-688"
}
}
| [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-dev-5070 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-dev-5070`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-dev-5070 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected between declar... |
drift-000008 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-dev-8353 | {"repository_name": "ecr-repo-dev-8353", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-174"}} | {"repository_name": "ecr-repo-dev-8353", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-174"}} | resource "aws_ecr_repository" "ecr-repo-dev-8353" {
repository_name = "ecr-repo-dev-8353"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "dev"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-174"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-dev-8353 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-dev-8353`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-dev-8353 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configuration drif... |
drift-000009 | k8s_privileged_container | kubernetes_pod | pod-staging-6604 | {"metadata": {"name": "pod-staging-6604", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:32.0", "security_context": {"privileged": false, "run_as_non_root": true}}]}} | {"metadata": {"name": "pod-staging-6604", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:32.0", "security_context": {"privileged": true, "run_as_non_root": false}}]}} | resource "kubernetes_pod" "pod-staging-6604" {
metadata = {
name = "pod-staging-6604"
namespace = "prod"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:32.0"
security_context = {
privileged = false
run_as_non_root = true
... | [{"path": "spec.containers[0].security_context.privileged", "change": "modified", "declared": false, "observed": true}, {"path": "spec.containers[0].security_context.run_as_non_root", "change": "modified", "declared": true, "observed": false}] | 2 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "drop_privileges", "target_path": "spec.containers[0].security_context", "reason": "Container running privileged as root (container-escape risk)", "hcl_patch": "security_context = { privileged = false, run_as_non_root = true }"} | Pod pod-staging-6604 was declared to run unprivileged as non-root, but drifted to a privileged root container, enabling potential container escape to the host node. | simulated | # Post-mortem: drift on kubernetes_pod `pod-staging-6604`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Pod pod-staging-6604 was declared to run unprivileged as non-root, but drifted to a privileged root container, enabling potential container escape to the host node.
## Detection... |
drift-000010 | s3_encryption_removed | aws_s3_bucket | bucket-data-prod-6140 | {"bucket": "bucket-data-prod-6140", "encryption": {"enabled": true, "sse_algorithm": "aws:kms", "kms_key_id": "alias/app-data"}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-608"}} | {"bucket": "bucket-data-prod-6140", "encryption": {"enabled": false}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-608"}} | resource "aws_s3_bucket" "bucket-data-prod-6140" {
bucket = "bucket-data-prod-6140"
encryption = {
enabled = true
sse_algorithm = "aws:kms"
kms_key_id = "alias/app-data"
}
versioning = {
enabled = true
}
acl = "private"
tags = {
Environment = "dev"
Owner = "ml-infra"
ManagedBy ... | [{"path": "encryption.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "encryption.kms_key_id", "change": "removed", "declared": "alias/app-data"}, {"path": "encryption.sse_algorithm", "change": "removed", "declared": "aws:kms"}] | 3 | provider_default_reset | {"category": "security", "severity": "high"} | {"action": "reenable_encryption", "target_path": "encryption", "reason": "Server-side encryption disabled on a data bucket", "hcl_patch": "encryption = { enabled = true, sse_algorithm = \"aws:kms\", kms_key_id = \"alias/app-data\" }"} | Bucket bucket-data-prod-6140 was declared with SSE-KMS encryption (alias/app-data). In production the encryption configuration was removed, leaving objects unencrypted at rest. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-data-prod-6140`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Bucket bucket-data-prod-6140 was declared with SSE-KMS encryption (alias/app-data). In production the encryption configuration was removed, leaving objects unencrypted at rest.
## De... |
drift-000011 | s3_public_acl | aws_s3_bucket | bucket-assets-prod-5422 | {"bucket": "bucket-assets-prod-5422", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-162"}} | {"bucket": "bucket-assets-prod-5422", "acl": "public-read", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-162"}} | resource "aws_s3_bucket" "bucket-assets-prod-5422" {
bucket = "bucket-assets-prod-5422"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "sandbox"
Owner = "platform"
ManagedBy = "terraform"
CostCente... | [{"path": "acl", "change": "modified", "declared": "private", "observed": "public-read"}] | 1 | unreviewed_cli_command | {"category": "security", "severity": "critical"} | {"action": "set_acl_private", "target_path": "acl", "reason": "Bucket ACL widened to public-read", "hcl_patch": "acl = \"private\""} | Bucket bucket-assets-prod-5422 was declared private but drifted to a public-read ACL, making its contents world-readable. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-assets-prod-5422`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Bucket bucket-assets-prod-5422 was declared private but drifted to a public-read ACL, making its contents world-readable.
## Detection
Configuration drift detected between... |
drift-000012 | k8s_limits_removed | kubernetes_deployment | deploy-dev-7320 | {"metadata": {"name": "deploy-dev-7320", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:2.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-dev-7320", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:2.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-dev-7320" {
metadata = {
name = "deploy-dev-7320"
namespace = "staging"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:2.0"
resources = {
requests = {
cpu = "250m"
memory =... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | debugging_left_in_place | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-dev-7320 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-dev-7320`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-dev-7320 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift detected b... |
drift-000013 | vpc_flow_logs_disabled | aws_flow_log | vpc-staging-2918 | {"vpc_name": "vpc-staging-2918", "cidr_block": "10.20.0.0/16", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-886"}} | {"vpc_name": "vpc-staging-2918", "cidr_block": "10.20.0.0/16", "flow_logs": {"enabled": false}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-886"}} | resource "aws_flow_log" "vpc-staging-2918" {
vpc_name = "vpc-staging-2918"
cidr_block = "10.20.0.0/16"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "prod"
Owner = "payments"
ManagedBy = "terraform"
CostCenter = "cc-886"
}
}... | [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-staging-2918 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-staging-2918`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-staging-2918 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected betwee... |
drift-000014 | ec2_instance_type_change | aws_instance | ec2-worker-staging-7519 | {"instance_name": "ec2-worker-staging-7519", "ami": "ami-415d17e1e7", "instance_type": "t3.small", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-662"}} | {"instance_name": "ec2-worker-staging-7519", "ami": "ami-415d17e1e7", "instance_type": "m5.xlarge", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-662"}} | resource "aws_instance" "ec2-worker-staging-7519" {
instance_name = "ec2-worker-staging-7519"
ami = "ami-415d17e1e7"
instance_type = "t3.small"
monitoring = true
tags = {
Environment = "sandbox"
Owner = "sre"
ManagedBy = "terraform"
CostCenter = "cc-662"
}
}
| [{"path": "instance_type", "change": "modified", "declared": "t3.small", "observed": "m5.xlarge"}] | 1 | autoscaling_policy_override | {"category": "cost", "severity": "medium"} | {"action": "revert_instance_type", "target_path": "instance_type", "reason": "Instance resized t3.small -> m5.xlarge outside of IaC", "hcl_patch": "instance_type = \"t3.small\""} | Instance ec2-worker-staging-7519 was declared as t3.small but is running as m5.xlarge, silently increasing spend. | simulated | # Post-mortem: drift on aws_instance `ec2-worker-staging-7519`
**Severity:** medium (cost) — ticket, next business day
## Summary
Instance ec2-worker-staging-7519 was declared as t3.small but is running as m5.xlarge, silently increasing spend.
## Detection
Configuration drift detected between declared IaC and live s... |
drift-000015 | ec2_instance_type_change | aws_instance | ec2-worker-sandbox-5561 | {"instance_name": "ec2-worker-sandbox-5561", "ami": "ami-734500034a", "instance_type": "t3.medium", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-254"}} | {"instance_name": "ec2-worker-sandbox-5561", "ami": "ami-734500034a", "instance_type": "m5.xlarge", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-254"}} | resource "aws_instance" "ec2-worker-sandbox-5561" {
instance_name = "ec2-worker-sandbox-5561"
ami = "ami-734500034a"
instance_type = "t3.medium"
monitoring = true
tags = {
Environment = "sandbox"
Owner = "payments"
ManagedBy = "terraform"
CostCenter = "cc-254"
}
}
| [{"path": "instance_type", "change": "modified", "declared": "t3.medium", "observed": "m5.xlarge"}] | 1 | manual_resize_for_load | {"category": "cost", "severity": "medium"} | {"action": "revert_instance_type", "target_path": "instance_type", "reason": "Instance resized t3.medium -> m5.xlarge outside of IaC", "hcl_patch": "instance_type = \"t3.medium\""} | Instance ec2-worker-sandbox-5561 was declared as t3.medium but is running as m5.xlarge, silently increasing spend. | simulated | # Post-mortem: drift on aws_instance `ec2-worker-sandbox-5561`
**Severity:** medium (cost) — ticket, next business day
## Summary
Instance ec2-worker-sandbox-5561 was declared as t3.medium but is running as m5.xlarge, silently increasing spend.
## Detection
Configuration drift detected between declared IaC and live ... |
drift-000016 | ec2_tag_removed | aws_instance | ec2-app-staging-4800 | {"instance_name": "ec2-app-staging-4800", "ami": "ami-52f10b7489", "instance_type": "t3.micro", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-286"}} | {"instance_name": "ec2-app-staging-4800", "ami": "ami-52f10b7489", "instance_type": "t3.micro", "monitoring": true, "tags": {"Environment": "sandbox", "Owner": "ml-infra", "ManagedBy": "terraform"}} | resource "aws_instance" "ec2-app-staging-4800" {
instance_name = "ec2-app-staging-4800"
ami = "ami-52f10b7489"
instance_type = "t3.micro"
monitoring = true
tags = {
Environment = "sandbox"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-286"
}
}
| [{"path": "tags.CostCenter", "change": "removed", "declared": "cc-286"}] | 1 | provider_default_reset | {"category": "compliance", "severity": "low"} | {"action": "restore_tag", "target_path": "tags.CostCenter", "reason": "Required governance tag 'CostCenter' removed", "hcl_patch": "tags = { ..., CostCenter = \"cc-286\" }"} | Instance ec2-app-staging-4800 lost its required 'CostCenter' tag, breaking cost-allocation and governance reporting. | simulated | # Post-mortem: drift on aws_instance `ec2-app-staging-4800`
**Severity:** low (compliance) — backlog, best-effort
## Summary
Instance ec2-app-staging-4800 lost its required 'CostCenter' tag, breaking cost-allocation and governance reporting.
## Detection
Configuration drift detected between declared IaC and live sta... |
drift-000017 | rds_backup_disabled | aws_db_instance | rds-db-prod-3386 | {"identifier": "rds-db-prod-3386", "engine": "mysql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 14, "tags": {"Environment": "dev", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-807"}} | {"identifier": "rds-db-prod-3386", "engine": "mysql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 0, "tags": {"Environment": "dev", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-807"}} | resource "aws_db_instance" "rds-db-prod-3386" {
identifier = "rds-db-prod-3386"
engine = "mysql"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 14
tags = {
Environment = "dev"
Owner = "payments"
ManagedBy = "terraform"
CostCenter = "cc-807"
}
}
| [{"path": "backup_retention_period", "change": "modified", "declared": 14, "observed": 0}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "high"} | {"action": "restore_backups", "target_path": "backup_retention_period", "reason": "Automated backups disabled; point-in-time recovery lost", "hcl_patch": "backup_retention_period = 14"} | RDS instance rds-db-prod-3386 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-prod-3386`
**Severity:** high (availability) — page on-call, 1-hour response
## Summary
RDS instance rds-db-prod-3386 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery.
## Detection
Configuration drift detected b... |
drift-000018 | k8s_limits_removed | kubernetes_deployment | deploy-sandbox-7521 | {"metadata": {"name": "deploy-sandbox-7521", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:26.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-sandbox-7521", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:26.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-sandbox-7521" {
metadata = {
name = "deploy-sandbox-7521"
namespace = "staging"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:26.0"
resources = {
requests = {
cpu = "250m"
... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-sandbox-7521 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-sandbox-7521`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-sandbox-7521 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift de... |
drift-000019 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-sandbox-2019 | {"repository_name": "ecr-repo-sandbox-2019", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-313"}} | {"repository_name": "ecr-repo-sandbox-2019", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-313"}} | resource "aws_ecr_repository" "ecr-repo-sandbox-2019" {
repository_name = "ecr-repo-sandbox-2019"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "staging"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-313"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | unreviewed_cli_command | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-sandbox-2019 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-sandbox-2019`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-sandbox-2019 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configurat... |
drift-000020 | ec2_tag_removed | aws_instance | ec2-app-prod-6571 | {"instance_name": "ec2-app-prod-6571", "ami": "ami-24e2402b09", "instance_type": "t3.micro", "monitoring": true, "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-254"}} | {"instance_name": "ec2-app-prod-6571", "ami": "ami-24e2402b09", "instance_type": "t3.micro", "monitoring": true, "tags": {"Environment": "prod", "Owner": "ml-infra", "ManagedBy": "terraform"}} | resource "aws_instance" "ec2-app-prod-6571" {
instance_name = "ec2-app-prod-6571"
ami = "ami-24e2402b09"
instance_type = "t3.micro"
monitoring = true
tags = {
Environment = "prod"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-254"
}
}
| [{"path": "tags.CostCenter", "change": "removed", "declared": "cc-254"}] | 1 | manual_change_via_console | {"category": "compliance", "severity": "low"} | {"action": "restore_tag", "target_path": "tags.CostCenter", "reason": "Required governance tag 'CostCenter' removed", "hcl_patch": "tags = { ..., CostCenter = \"cc-254\" }"} | Instance ec2-app-prod-6571 lost its required 'CostCenter' tag, breaking cost-allocation and governance reporting. | simulated | # Post-mortem: drift on aws_instance `ec2-app-prod-6571`
**Severity:** low (compliance) — backlog, best-effort
## Summary
Instance ec2-app-prod-6571 lost its required 'CostCenter' tag, breaking cost-allocation and governance reporting.
## Detection
Configuration drift detected between declared IaC and live state. Dr... |
drift-000021 | vpc_flow_logs_disabled | aws_flow_log | vpc-prod-2152 | {"vpc_name": "vpc-prod-2152", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-749"}} | {"vpc_name": "vpc-prod-2152", "cidr_block": "192.168.1.0/24", "flow_logs": {"enabled": false}, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-749"}} | resource "aws_flow_log" "vpc-prod-2152" {
vpc_name = "vpc-prod-2152"
cidr_block = "192.168.1.0/24"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "sandbox"
Owner = "payments"
ManagedBy = "terraform"
CostCenter = "cc-749"
}
}
| [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-prod-2152 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-prod-2152`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-prod-2152 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected between decl... |
drift-000022 | vpc_flow_logs_disabled | aws_flow_log | vpc-dev-8768 | {"vpc_name": "vpc-dev-8768", "cidr_block": "10.0.0.0/16", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "prod", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-577"}} | {"vpc_name": "vpc-dev-8768", "cidr_block": "10.0.0.0/16", "flow_logs": {"enabled": false}, "tags": {"Environment": "prod", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-577"}} | resource "aws_flow_log" "vpc-dev-8768" {
vpc_name = "vpc-dev-8768"
cidr_block = "10.0.0.0/16"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "prod"
Owner = "sre"
ManagedBy = "terraform"
CostCenter = "cc-577"
}
}
| [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-dev-8768 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-dev-8768`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-dev-8768 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected between declar... |
drift-000023 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-dev-2407 | {"repository_name": "ecr-repo-dev-2407", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-867"}} | {"repository_name": "ecr-repo-dev-2407", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-867"}} | resource "aws_ecr_repository" "ecr-repo-dev-2407" {
repository_name = "ecr-repo-dev-2407"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "staging"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-867"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | unreviewed_cli_command | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-dev-2407 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-dev-2407`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-dev-2407 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configuration drif... |
drift-000024 | rds_public_access | aws_db_instance | rds-db-sandbox-3645 | {"identifier": "rds-db-sandbox-3645", "engine": "aurora-postgresql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 7, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-470"}} | {"identifier": "rds-db-sandbox-3645", "engine": "aurora-postgresql", "storage_encrypted": true, "publicly_accessible": true, "backup_retention_period": 7, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-470"}} | resource "aws_db_instance" "rds-db-sandbox-3645" {
identifier = "rds-db-sandbox-3645"
engine = "aurora-postgresql"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 7
tags = {
Environment = "staging"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-470... | [{"path": "publicly_accessible", "change": "modified", "declared": false, "observed": true}] | 1 | manual_change_via_console | {"category": "security", "severity": "critical"} | {"action": "disable_public_access", "target_path": "publicly_accessible", "reason": "Database exposed to the public internet", "hcl_patch": "publicly_accessible = false"} | RDS instance rds-db-sandbox-3645 was declared private but became publicly accessible, exposing the database endpoint to the internet. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-sandbox-3645`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
RDS instance rds-db-sandbox-3645 was declared private but became publicly accessible, exposing the database endpoint to the internet.
## Detection
Configuration drift detect... |
drift-000025 | sg_open_ssh | aws_security_group | sg-app-dev-2491 | {"name": "sg-app-dev-2491", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["172.16.0.0/12"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "staging", "Owner": "data-eng"... | {"name": "sg-app-dev-2491", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["172.16.0.0/12"]}, {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1",... | resource "aws_security_group" "sg-app-dev-2491" {
name = "sg-app-dev-2491"
description = "App tier security group"
ingress = [
{
from_port = 3389
to_port = 3389
protocol = "tcp"
cidr_blocks = [
"172.16.0.0/12"
]
}
]
egress = [
{
from_port = 0
to_po... | [{"path": "ingress[1]", "change": "added", "observed": {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}}] | 1 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "remove_ingress_rule", "target_path": "ingress[1]", "reason": "RDP port 3389 exposed to 0.0.0.0/0", "hcl_patch": "# delete the world-open ingress rule for port 3389"} | Security group sg-app-dev-2491 was declared to allow rdp (port 3389) only from 172.16.0.0/12. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to the entire internet. | simulated | # Post-mortem: drift on aws_security_group `sg-app-dev-2491`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Security group sg-app-dev-2491 was declared to allow rdp (port 3389) only from 172.16.0.0/12. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port t... |
drift-000026 | lambda_url_auth_none | aws_lambda_function_url | fn-staging-4197 | {"function_name": "fn-staging-4197", "runtime": "python3.12", "function_url": {"authorization_type": "AWS_IAM"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-304"}} | {"function_name": "fn-staging-4197", "runtime": "python3.12", "function_url": {"authorization_type": "NONE"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "sandbox", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-304"}} | resource "aws_lambda_function_url" "fn-staging-4197" {
function_name = "fn-staging-4197"
runtime = "python3.12"
function_url = {
authorization_type = "AWS_IAM"
}
environment = {
LOG_LEVEL = "info"
}
tags = {
Environment = "sandbox"
Owner = "payments"
ManagedBy = "terraform"
CostCen... | [{"path": "function_url.authorization_type", "change": "modified", "declared": "AWS_IAM", "observed": "NONE"}] | 1 | manual_change_via_console | {"category": "security", "severity": "critical"} | {"action": "require_iam_auth", "target_path": "function_url.authorization_type", "reason": "Lambda function URL set to public (no auth)", "hcl_patch": "function_url = { authorization_type = \"AWS_IAM\" }"} | Lambda fn-staging-4197 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet. | simulated | # Post-mortem: drift on aws_lambda_function_url `fn-staging-4197`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Lambda fn-staging-4197 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet.
## Detection
Configuration drift det... |
drift-000027 | vpc_flow_logs_disabled | aws_flow_log | vpc-prod-1457 | {"vpc_name": "vpc-prod-1457", "cidr_block": "172.16.0.0/12", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-298"}} | {"vpc_name": "vpc-prod-1457", "cidr_block": "172.16.0.0/12", "flow_logs": {"enabled": false}, "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-298"}} | resource "aws_flow_log" "vpc-prod-1457" {
vpc_name = "vpc-prod-1457"
cidr_block = "172.16.0.0/12"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "sandbox"
Owner = "data-eng"
ManagedBy = "terraform"
CostCenter = "cc-298"
}
}
| [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-prod-1457 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-prod-1457`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-prod-1457 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected between decl... |
drift-000028 | k8s_limits_removed | kubernetes_deployment | deploy-dev-6974 | {"metadata": {"name": "deploy-dev-6974", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:15.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-dev-6974", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:15.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-dev-6974" {
metadata = {
name = "deploy-dev-6974"
namespace = "prod"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:15.0"
resources = {
requests = {
cpu = "250m"
memory = "... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-dev-6974 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-dev-6974`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-dev-6974 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift detected b... |
drift-000029 | iam_policy_wildcard | aws_iam_policy | iam-role-policy-sandbox-4222 | {"policy_name": "iam-role-policy-sandbox-4222", "statement": [{"effect": "Allow", "action": ["s3:GetObject", "s3:PutObject"], "resource": ["arn:aws:s3:::bucket-dev-4348/*"]}], "tags": {"Environment": "sandbox", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-724"}} | {"policy_name": "iam-role-policy-sandbox-4222", "statement": [{"effect": "Allow", "action": ["s3:*"], "resource": ["*"]}], "tags": {"Environment": "sandbox", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-724"}} | resource "aws_iam_policy" "iam-role-policy-sandbox-4222" {
policy_name = "iam-role-policy-sandbox-4222"
statement = [
{
effect = "Allow"
action = [
"s3:GetObject",
"s3:PutObject"
]
resource = [
"arn:aws:s3:::bucket-dev-4348/*"
]
}
]
tags = {
Envi... | [{"path": "statement[0].action[0]", "change": "modified", "declared": "s3:GetObject", "observed": "s3:*"}, {"path": "statement[0].action[1]", "change": "removed", "declared": "s3:PutObject"}, {"path": "statement[0].resource[0]", "change": "modified", "declared": "arn:aws:s3:::bucket-dev-4348/*", "observed": "*"}] | 3 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "restore_least_privilege", "target_path": "statement[0]", "reason": "IAM policy widened to s3:* on all resources (privilege escalation)", "hcl_patch": "action = [\"s3:GetObject\", \"s3:PutObject\"]; resource scoped to the bucket ARN"} | IAM policy iam-role-policy-sandbox-4222 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access. | simulated | # Post-mortem: drift on aws_iam_policy `iam-role-policy-sandbox-4222`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
IAM policy iam-role-policy-sandbox-4222 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access.
## Detection
... |
drift-000030 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-dev-2389 | {"repository_name": "ecr-repo-dev-2389", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "prod", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-901"}} | {"repository_name": "ecr-repo-dev-2389", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "prod", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-901"}} | resource "aws_ecr_repository" "ecr-repo-dev-2389" {
repository_name = "ecr-repo-dev-2389"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "prod"
Owner = "sre"
ManagedBy = "terraform"
CostCenter = "cc-901"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-dev-2389 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-dev-2389`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-dev-2389 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configuration drif... |
drift-000031 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-staging-8109 | {"repository_name": "ecr-repo-staging-8109", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-920"}} | {"repository_name": "ecr-repo-staging-8109", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-920"}} | resource "aws_ecr_repository" "ecr-repo-staging-8109" {
repository_name = "ecr-repo-staging-8109"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "dev"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-920"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | unreviewed_cli_command | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-staging-8109 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-staging-8109`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-staging-8109 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configurat... |
drift-000032 | k8s_limits_removed | kubernetes_deployment | deploy-sandbox-2391 | {"metadata": {"name": "deploy-sandbox-2391", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:11.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-sandbox-2391", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:11.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-sandbox-2391" {
metadata = {
name = "deploy-sandbox-2391"
namespace = "prod"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:11.0"
resources = {
requests = {
cpu = "250m"
me... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-sandbox-2391 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-sandbox-2391`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-sandbox-2391 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift de... |
drift-000033 | sg_open_ssh | aws_security_group | sg-app-staging-8624 | {"name": "sg-app-staging-8624", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "dev", "Owner": "payments... | {"name": "sg-app-staging-8624", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}, {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": ... | resource "aws_security_group" "sg-app-staging-8624" {
name = "sg-app-staging-8624"
description = "App tier security group"
ingress = [
{
from_port = 3389
to_port = 3389
protocol = "tcp"
cidr_blocks = [
"192.168.1.0/24"
]
}
]
egress = [
{
from_port = 0
... | [{"path": "ingress[1]", "change": "added", "observed": {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}}] | 1 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "remove_ingress_rule", "target_path": "ingress[1]", "reason": "RDP port 3389 exposed to 0.0.0.0/0", "hcl_patch": "# delete the world-open ingress rule for port 3389"} | Security group sg-app-staging-8624 was declared to allow rdp (port 3389) only from 192.168.1.0/24. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to the entire internet. | simulated | # Post-mortem: drift on aws_security_group `sg-app-staging-8624`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Security group sg-app-staging-8624 was declared to allow rdp (port 3389) only from 192.168.1.0/24. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing t... |
drift-000034 | sg_open_ssh | aws_security_group | sg-app-prod-2683 | {"name": "sg-app-prod-2683", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "staging", "Owner": "payment... | {"name": "sg-app-prod-2683", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}, {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1... | resource "aws_security_group" "sg-app-prod-2683" {
name = "sg-app-prod-2683"
description = "App tier security group"
ingress = [
{
from_port = 3389
to_port = 3389
protocol = "tcp"
cidr_blocks = [
"192.168.1.0/24"
]
}
]
egress = [
{
from_port = 0
to... | [{"path": "ingress[1]", "change": "added", "observed": {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}}] | 1 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "remove_ingress_rule", "target_path": "ingress[1]", "reason": "RDP port 3389 exposed to 0.0.0.0/0", "hcl_patch": "# delete the world-open ingress rule for port 3389"} | Security group sg-app-prod-2683 was declared to allow rdp (port 3389) only from 192.168.1.0/24. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to the entire internet. | simulated | # Post-mortem: drift on aws_security_group `sg-app-prod-2683`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Security group sg-app-prod-2683 was declared to allow rdp (port 3389) only from 192.168.1.0/24. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the por... |
drift-000035 | sg_egress_widened | aws_security_group | sg-db-dev-9211 | {"name": "sg-db-dev-9211", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}], "egress": [{"from_port": 443, "to_port": 443, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}], "tags": {"Environment": "dev", "Owner":... | {"name": "sg-db-dev-9211", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["192.168.1.0/24"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "dev", "Owner": "data-eng... | resource "aws_security_group" "sg-db-dev-9211" {
name = "sg-db-dev-9211"
description = "Database tier security group"
ingress = [
{
from_port = 5432
to_port = 5432
protocol = "tcp"
cidr_blocks = [
"192.168.1.0/24"
]
}
]
egress = [
{
from_port = 443
... | [{"path": "egress[0].cidr_blocks[0]", "change": "modified", "declared": "192.168.1.0/24", "observed": "0.0.0.0/0"}, {"path": "egress[0].from_port", "change": "modified", "declared": 443, "observed": 0}, {"path": "egress[0].protocol", "change": "modified", "declared": "tcp", "observed": "-1"}, {"path": "egress[0].to_por... | 4 | emergency_hotfix | {"category": "security", "severity": "high"} | {"action": "restrict_egress", "target_path": "egress[0]", "reason": "Egress widened to all ports/all destinations (data-exfiltration risk)", "hcl_patch": "egress = [{ from_port = 443, to_port = 443, protocol = \"tcp\", cidr_blocks = [\"192.168.1.0/24\"] }]"} | Database security group sg-db-dev-9211 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path. | simulated | # Post-mortem: drift on aws_security_group `sg-db-dev-9211`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Database security group sg-db-dev-9211 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path.
## Detection
Configuration dr... |
drift-000036 | ec2_instance_type_change | aws_instance | ec2-worker-prod-6796 | {"instance_name": "ec2-worker-prod-6796", "ami": "ami-982946934c", "instance_type": "t3.small", "monitoring": true, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-255"}} | {"instance_name": "ec2-worker-prod-6796", "ami": "ami-982946934c", "instance_type": "m5.xlarge", "monitoring": true, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-255"}} | resource "aws_instance" "ec2-worker-prod-6796" {
instance_name = "ec2-worker-prod-6796"
ami = "ami-982946934c"
instance_type = "t3.small"
monitoring = true
tags = {
Environment = "staging"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-255"
}
}
| [{"path": "instance_type", "change": "modified", "declared": "t3.small", "observed": "m5.xlarge"}] | 1 | manual_resize_for_load | {"category": "cost", "severity": "medium"} | {"action": "revert_instance_type", "target_path": "instance_type", "reason": "Instance resized t3.small -> m5.xlarge outside of IaC", "hcl_patch": "instance_type = \"t3.small\""} | Instance ec2-worker-prod-6796 was declared as t3.small but is running as m5.xlarge, silently increasing spend. | simulated | # Post-mortem: drift on aws_instance `ec2-worker-prod-6796`
**Severity:** medium (cost) — ticket, next business day
## Summary
Instance ec2-worker-prod-6796 was declared as t3.small but is running as m5.xlarge, silently increasing spend.
## Detection
Configuration drift detected between declared IaC and live state. ... |
drift-000037 | k8s_limits_removed | kubernetes_deployment | deploy-staging-1064 | {"metadata": {"name": "deploy-staging-1064", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:12.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-staging-1064", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:12.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-staging-1064" {
metadata = {
name = "deploy-staging-1064"
namespace = "prod"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:12.0"
resources = {
requests = {
cpu = "250m"
me... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-staging-1064 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-staging-1064`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-staging-1064 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift de... |
drift-000038 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-prod-2011 | {"repository_name": "ecr-repo-prod-2011", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-643"}} | {"repository_name": "ecr-repo-prod-2011", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-643"}} | resource "aws_ecr_repository" "ecr-repo-prod-2011" {
repository_name = "ecr-repo-prod-2011"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "dev"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-643"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | unreviewed_cli_command | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-prod-2011 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-prod-2011`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-prod-2011 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configuration dr... |
drift-000039 | s3_versioning_disabled | aws_s3_bucket | bucket-logs-prod-5071 | {"bucket": "bucket-logs-prod-5071", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "staging", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-143"}} | {"bucket": "bucket-logs-prod-5071", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": false}, "tags": {"Environment": "staging", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-143"}} | resource "aws_s3_bucket" "bucket-logs-prod-5071" {
bucket = "bucket-logs-prod-5071"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "staging"
Owner = "data-eng"
ManagedBy = "terraform"
CostCenter = ... | [{"path": "versioning.enabled", "change": "modified", "declared": true, "observed": false}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "reenable_versioning", "target_path": "versioning.enabled", "reason": "Object versioning suspended; accidental deletes are now unrecoverable", "hcl_patch": "versioning = { enabled = true }"} | Bucket bucket-logs-prod-5071 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-logs-prod-5071`
**Severity:** medium (availability) — ticket, next business day
## Summary
Bucket bucket-logs-prod-5071 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes.
## Detection
Conf... |
drift-000040 | k8s_limits_removed | kubernetes_deployment | deploy-prod-2038 | {"metadata": {"name": "deploy-prod-2038", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:21.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-prod-2038", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:21.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-prod-2038" {
metadata = {
name = "deploy-prod-2038"
namespace = "staging"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:21.0"
resources = {
requests = {
cpu = "250m"
memor... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | manual_change_via_console | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-prod-2038 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-prod-2038`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-prod-2038 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift detected... |
drift-000041 | rds_public_access | aws_db_instance | rds-db-sandbox-9325 | {"identifier": "rds-db-sandbox-9325", "engine": "aurora-postgresql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 14, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-997"}} | {"identifier": "rds-db-sandbox-9325", "engine": "aurora-postgresql", "storage_encrypted": true, "publicly_accessible": true, "backup_retention_period": 14, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-997"}} | resource "aws_db_instance" "rds-db-sandbox-9325" {
identifier = "rds-db-sandbox-9325"
engine = "aurora-postgresql"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 14
tags = {
Environment = "staging"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-99... | [{"path": "publicly_accessible", "change": "modified", "declared": false, "observed": true}] | 1 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "disable_public_access", "target_path": "publicly_accessible", "reason": "Database exposed to the public internet", "hcl_patch": "publicly_accessible = false"} | RDS instance rds-db-sandbox-9325 was declared private but became publicly accessible, exposing the database endpoint to the internet. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-sandbox-9325`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
RDS instance rds-db-sandbox-9325 was declared private but became publicly accessible, exposing the database endpoint to the internet.
## Detection
Configuration drift detect... |
drift-000042 | sg_egress_widened | aws_security_group | sg-db-sandbox-3246 | {"name": "sg-db-sandbox-3246", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["10.20.0.0/16"]}], "egress": [{"from_port": 443, "to_port": 443, "protocol": "tcp", "cidr_blocks": ["10.20.0.0/16"]}], "tags": {"Environment": "prod", "Owner"... | {"name": "sg-db-sandbox-3246", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["10.20.0.0/16"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "prod", "Owner": "sre",... | resource "aws_security_group" "sg-db-sandbox-3246" {
name = "sg-db-sandbox-3246"
description = "Database tier security group"
ingress = [
{
from_port = 5432
to_port = 5432
protocol = "tcp"
cidr_blocks = [
"10.20.0.0/16"
]
}
]
egress = [
{
from_port = 443... | [{"path": "egress[0].cidr_blocks[0]", "change": "modified", "declared": "10.20.0.0/16", "observed": "0.0.0.0/0"}, {"path": "egress[0].from_port", "change": "modified", "declared": 443, "observed": 0}, {"path": "egress[0].protocol", "change": "modified", "declared": "tcp", "observed": "-1"}, {"path": "egress[0].to_port"... | 4 | emergency_hotfix | {"category": "security", "severity": "high"} | {"action": "restrict_egress", "target_path": "egress[0]", "reason": "Egress widened to all ports/all destinations (data-exfiltration risk)", "hcl_patch": "egress = [{ from_port = 443, to_port = 443, protocol = \"tcp\", cidr_blocks = [\"10.20.0.0/16\"] }]"} | Database security group sg-db-sandbox-3246 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path. | simulated | # Post-mortem: drift on aws_security_group `sg-db-sandbox-3246`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Database security group sg-db-sandbox-3246 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path.
## Detection
Configur... |
drift-000043 | s3_public_acl | aws_s3_bucket | bucket-assets-staging-8017 | {"bucket": "bucket-assets-staging-8017", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-785"}} | {"bucket": "bucket-assets-staging-8017", "acl": "public-read", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-785"}} | resource "aws_s3_bucket" "bucket-assets-staging-8017" {
bucket = "bucket-assets-staging-8017"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "prod"
Owner = "payments"
ManagedBy = "terraform"
CostCe... | [{"path": "acl", "change": "modified", "declared": "private", "observed": "public-read"}] | 1 | unreviewed_cli_command | {"category": "security", "severity": "critical"} | {"action": "set_acl_private", "target_path": "acl", "reason": "Bucket ACL widened to public-read", "hcl_patch": "acl = \"private\""} | Bucket bucket-assets-staging-8017 was declared private but drifted to a public-read ACL, making its contents world-readable. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-assets-staging-8017`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Bucket bucket-assets-staging-8017 was declared private but drifted to a public-read ACL, making its contents world-readable.
## Detection
Configuration drift detected b... |
drift-000044 | s3_versioning_disabled | aws_s3_bucket | bucket-logs-staging-6999 | {"bucket": "bucket-logs-staging-6999", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "staging", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-240"}} | {"bucket": "bucket-logs-staging-6999", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": false}, "tags": {"Environment": "staging", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-240"}} | resource "aws_s3_bucket" "bucket-logs-staging-6999" {
bucket = "bucket-logs-staging-6999"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "staging"
Owner = "data-eng"
ManagedBy = "terraform"
CostCen... | [{"path": "versioning.enabled", "change": "modified", "declared": true, "observed": false}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "medium"} | {"action": "reenable_versioning", "target_path": "versioning.enabled", "reason": "Object versioning suspended; accidental deletes are now unrecoverable", "hcl_patch": "versioning = { enabled = true }"} | Bucket bucket-logs-staging-6999 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-logs-staging-6999`
**Severity:** medium (availability) — ticket, next business day
## Summary
Bucket bucket-logs-staging-6999 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes.
## Detectio... |
drift-000045 | iam_policy_wildcard | aws_iam_policy | iam-role-policy-prod-7525 | {"policy_name": "iam-role-policy-prod-7525", "statement": [{"effect": "Allow", "action": ["s3:GetObject", "s3:PutObject"], "resource": ["arn:aws:s3:::bucket-sandbox-3667/*"]}], "tags": {"Environment": "staging", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-823"}} | {"policy_name": "iam-role-policy-prod-7525", "statement": [{"effect": "Allow", "action": ["s3:*"], "resource": ["*"]}], "tags": {"Environment": "staging", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-823"}} | resource "aws_iam_policy" "iam-role-policy-prod-7525" {
policy_name = "iam-role-policy-prod-7525"
statement = [
{
effect = "Allow"
action = [
"s3:GetObject",
"s3:PutObject"
]
resource = [
"arn:aws:s3:::bucket-sandbox-3667/*"
]
}
]
tags = {
Enviro... | [{"path": "statement[0].action[0]", "change": "modified", "declared": "s3:GetObject", "observed": "s3:*"}, {"path": "statement[0].action[1]", "change": "removed", "declared": "s3:PutObject"}, {"path": "statement[0].resource[0]", "change": "modified", "declared": "arn:aws:s3:::bucket-sandbox-3667/*", "observed": "*"}] | 3 | unreviewed_cli_command | {"category": "security", "severity": "critical"} | {"action": "restore_least_privilege", "target_path": "statement[0]", "reason": "IAM policy widened to s3:* on all resources (privilege escalation)", "hcl_patch": "action = [\"s3:GetObject\", \"s3:PutObject\"]; resource scoped to the bucket ARN"} | IAM policy iam-role-policy-prod-7525 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access. | simulated | # Post-mortem: drift on aws_iam_policy `iam-role-policy-prod-7525`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
IAM policy iam-role-policy-prod-7525 was scoped to specific S3 actions on one bucket, but drifted to s3:* on '*', granting broad, unintended access.
## Detection
Config... |
drift-000046 | cloudwatch_retention_reduced | aws_cloudwatch_log_group | log-group-dev-7902 | {"log_group_name": "log-group-dev-7902", "retention_in_days": 90, "tags": {"Environment": "dev", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-194"}} | {"log_group_name": "log-group-dev-7902", "retention_in_days": 1, "tags": {"Environment": "dev", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-194"}} | resource "aws_cloudwatch_log_group" "log-group-dev-7902" {
log_group_name = "log-group-dev-7902"
retention_in_days = 90
tags = {
Environment = "dev"
Owner = "data-eng"
ManagedBy = "terraform"
CostCenter = "cc-194"
}
}
| [{"path": "retention_in_days", "change": "modified", "declared": 90, "observed": 1}] | 1 | unreviewed_cli_command | {"category": "compliance", "severity": "medium"} | {"action": "restore_retention", "target_path": "retention_in_days", "reason": "Log retention cut from 90 to 1 day, breaking audit requirements", "hcl_patch": "retention_in_days = 90"} | Log group log-group-dev-7902 had 90-day retention; it was reduced to 1 day, violating audit-retention requirements. | simulated | # Post-mortem: drift on aws_cloudwatch_log_group `log-group-dev-7902`
**Severity:** medium (compliance) — ticket, next business day
## Summary
Log group log-group-dev-7902 had 90-day retention; it was reduced to 1 day, violating audit-retention requirements.
## Detection
Configuration drift detected between declared... |
drift-000047 | sg_open_ssh | aws_security_group | sg-app-dev-8514 | {"name": "sg-app-dev-8514", "description": "App tier security group", "ingress": [{"from_port": 22, "to_port": 22, "protocol": "tcp", "cidr_blocks": ["10.20.0.0/16"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "sandbox", "Owner": "data-eng", "Ma... | {"name": "sg-app-dev-8514", "description": "App tier security group", "ingress": [{"from_port": 22, "to_port": 22, "protocol": "tcp", "cidr_blocks": ["10.20.0.0/16"]}, {"from_port": 22, "to_port": 22, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_bl... | resource "aws_security_group" "sg-app-dev-8514" {
name = "sg-app-dev-8514"
description = "App tier security group"
ingress = [
{
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = [
"10.20.0.0/16"
]
}
]
egress = [
{
from_port = 0
to_port = ... | [{"path": "ingress[1]", "change": "added", "observed": {"from_port": 22, "to_port": 22, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}}] | 1 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "remove_ingress_rule", "target_path": "ingress[1]", "reason": "SSH port 22 exposed to 0.0.0.0/0", "hcl_patch": "# delete the world-open ingress rule for port 22"} | Security group sg-app-dev-8514 was declared to allow ssh (port 22) only from 10.20.0.0/16. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to the entire internet. | simulated | # Post-mortem: drift on aws_security_group `sg-app-dev-8514`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Security group sg-app-dev-8514 was declared to allow ssh (port 22) only from 10.20.0.0/16. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to t... |
drift-000048 | s3_public_acl | aws_s3_bucket | bucket-assets-prod-4744 | {"bucket": "bucket-assets-prod-4744", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-371"}} | {"bucket": "bucket-assets-prod-4744", "acl": "public-read", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-371"}} | resource "aws_s3_bucket" "bucket-assets-prod-4744" {
bucket = "bucket-assets-prod-4744"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "prod"
Owner = "platform"
ManagedBy = "terraform"
CostCenter =... | [{"path": "acl", "change": "modified", "declared": "private", "observed": "public-read"}] | 1 | unreviewed_cli_command | {"category": "security", "severity": "critical"} | {"action": "set_acl_private", "target_path": "acl", "reason": "Bucket ACL widened to public-read", "hcl_patch": "acl = \"private\""} | Bucket bucket-assets-prod-4744 was declared private but drifted to a public-read ACL, making its contents world-readable. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-assets-prod-4744`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Bucket bucket-assets-prod-4744 was declared private but drifted to a public-read ACL, making its contents world-readable.
## Detection
Configuration drift detected between... |
drift-000049 | s3_encryption_removed | aws_s3_bucket | bucket-data-staging-5430 | {"bucket": "bucket-data-staging-5430", "encryption": {"enabled": true, "sse_algorithm": "aws:kms", "kms_key_id": "alias/aws-s3"}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-515"}} | {"bucket": "bucket-data-staging-5430", "encryption": {"enabled": false}, "versioning": {"enabled": true}, "acl": "private", "tags": {"Environment": "sandbox", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-515"}} | resource "aws_s3_bucket" "bucket-data-staging-5430" {
bucket = "bucket-data-staging-5430"
encryption = {
enabled = true
sse_algorithm = "aws:kms"
kms_key_id = "alias/aws-s3"
}
versioning = {
enabled = true
}
acl = "private"
tags = {
Environment = "sandbox"
Owner = "data-eng"
Ma... | [{"path": "encryption.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "encryption.kms_key_id", "change": "removed", "declared": "alias/aws-s3"}, {"path": "encryption.sse_algorithm", "change": "removed", "declared": "aws:kms"}] | 3 | manual_change_via_console | {"category": "security", "severity": "high"} | {"action": "reenable_encryption", "target_path": "encryption", "reason": "Server-side encryption disabled on a data bucket", "hcl_patch": "encryption = { enabled = true, sse_algorithm = \"aws:kms\", kms_key_id = \"alias/aws-s3\" }"} | Bucket bucket-data-staging-5430 was declared with SSE-KMS encryption (alias/aws-s3). In production the encryption configuration was removed, leaving objects unencrypted at rest. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-data-staging-5430`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Bucket bucket-data-staging-5430 was declared with SSE-KMS encryption (alias/aws-s3). In production the encryption configuration was removed, leaving objects unencrypted at rest.
#... |
drift-000050 | ecr_scan_disabled | aws_ecr_repository | ecr-repo-dev-2465 | {"repository_name": "ecr-repo-dev-2465", "scan_on_push": true, "image_tag_mutability": "IMMUTABLE", "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-918"}} | {"repository_name": "ecr-repo-dev-2465", "scan_on_push": false, "image_tag_mutability": "MUTABLE", "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-918"}} | resource "aws_ecr_repository" "ecr-repo-dev-2465" {
repository_name = "ecr-repo-dev-2465"
scan_on_push = true
image_tag_mutability = "IMMUTABLE"
tags = {
Environment = "dev"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-918"
}
}
| [{"path": "image_tag_mutability", "change": "modified", "declared": "IMMUTABLE", "observed": "MUTABLE"}, {"path": "scan_on_push", "change": "modified", "declared": true, "observed": false}] | 2 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_scanning", "target_path": "scan_on_push", "reason": "Image vulnerability scanning disabled and tags made mutable", "hcl_patch": "scan_on_push = true; image_tag_mutability = \"IMMUTABLE\""} | ECR repository ecr-repo-dev-2465 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production. | simulated | # Post-mortem: drift on aws_ecr_repository `ecr-repo-dev-2465`
**Severity:** medium (security) — ticket, next business day
## Summary
ECR repository ecr-repo-dev-2465 had scan-on-push and immutable tags; both were disabled, so unscanned, overwritable images can now ship to production.
## Detection
Configuration drif... |
drift-000051 | k8s_privileged_container | kubernetes_pod | pod-prod-5406 | {"metadata": {"name": "pod-prod-5406", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:6.0", "security_context": {"privileged": false, "run_as_non_root": true}}]}} | {"metadata": {"name": "pod-prod-5406", "namespace": "prod"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:6.0", "security_context": {"privileged": true, "run_as_non_root": false}}]}} | resource "kubernetes_pod" "pod-prod-5406" {
metadata = {
name = "pod-prod-5406"
namespace = "prod"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:6.0"
security_context = {
privileged = false
run_as_non_root = true
}
... | [{"path": "spec.containers[0].security_context.privileged", "change": "modified", "declared": false, "observed": true}, {"path": "spec.containers[0].security_context.run_as_non_root", "change": "modified", "declared": true, "observed": false}] | 2 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "drop_privileges", "target_path": "spec.containers[0].security_context", "reason": "Container running privileged as root (container-escape risk)", "hcl_patch": "security_context = { privileged = false, run_as_non_root = true }"} | Pod pod-prod-5406 was declared to run unprivileged as non-root, but drifted to a privileged root container, enabling potential container escape to the host node. | simulated | # Post-mortem: drift on kubernetes_pod `pod-prod-5406`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Pod pod-prod-5406 was declared to run unprivileged as non-root, but drifted to a privileged root container, enabling potential container escape to the host node.
## Detection
Confi... |
drift-000052 | s3_public_acl | aws_s3_bucket | bucket-assets-staging-2091 | {"bucket": "bucket-assets-staging-2091", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-564"}} | {"bucket": "bucket-assets-staging-2091", "acl": "public-read", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "dev", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-564"}} | resource "aws_s3_bucket" "bucket-assets-staging-2091" {
bucket = "bucket-assets-staging-2091"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "dev"
Owner = "platform"
ManagedBy = "terraform"
CostCen... | [{"path": "acl", "change": "modified", "declared": "private", "observed": "public-read"}] | 1 | manual_change_via_console | {"category": "security", "severity": "critical"} | {"action": "set_acl_private", "target_path": "acl", "reason": "Bucket ACL widened to public-read", "hcl_patch": "acl = \"private\""} | Bucket bucket-assets-staging-2091 was declared private but drifted to a public-read ACL, making its contents world-readable. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-assets-staging-2091`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Bucket bucket-assets-staging-2091 was declared private but drifted to a public-read ACL, making its contents world-readable.
## Detection
Configuration drift detected b... |
drift-000053 | lambda_url_auth_none | aws_lambda_function_url | fn-sandbox-5388 | {"function_name": "fn-sandbox-5388", "runtime": "python3.11", "function_url": {"authorization_type": "AWS_IAM"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-639"}} | {"function_name": "fn-sandbox-5388", "runtime": "python3.11", "function_url": {"authorization_type": "NONE"}, "environment": {"LOG_LEVEL": "info"}, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-639"}} | resource "aws_lambda_function_url" "fn-sandbox-5388" {
function_name = "fn-sandbox-5388"
runtime = "python3.11"
function_url = {
authorization_type = "AWS_IAM"
}
environment = {
LOG_LEVEL = "info"
}
tags = {
Environment = "staging"
Owner = "platform"
ManagedBy = "terraform"
CostCen... | [{"path": "function_url.authorization_type", "change": "modified", "declared": "AWS_IAM", "observed": "NONE"}] | 1 | debugging_left_in_place | {"category": "security", "severity": "critical"} | {"action": "require_iam_auth", "target_path": "function_url.authorization_type", "reason": "Lambda function URL set to public (no auth)", "hcl_patch": "function_url = { authorization_type = \"AWS_IAM\" }"} | Lambda fn-sandbox-5388 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet. | simulated | # Post-mortem: drift on aws_lambda_function_url `fn-sandbox-5388`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Lambda fn-sandbox-5388 exposed a function URL with authorization_type NONE, making the function invocable by anyone on the internet.
## Detection
Configuration drift det... |
drift-000054 | s3_versioning_disabled | aws_s3_bucket | bucket-logs-staging-5290 | {"bucket": "bucket-logs-staging-5290", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": true}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-306"}} | {"bucket": "bucket-logs-staging-5290", "acl": "private", "encryption": {"enabled": true, "sse_algorithm": "AES256"}, "versioning": {"enabled": false}, "tags": {"Environment": "prod", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-306"}} | resource "aws_s3_bucket" "bucket-logs-staging-5290" {
bucket = "bucket-logs-staging-5290"
acl = "private"
encryption = {
enabled = true
sse_algorithm = "AES256"
}
versioning = {
enabled = true
}
tags = {
Environment = "prod"
Owner = "payments"
ManagedBy = "terraform"
CostCenter... | [{"path": "versioning.enabled", "change": "modified", "declared": true, "observed": false}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "medium"} | {"action": "reenable_versioning", "target_path": "versioning.enabled", "reason": "Object versioning suspended; accidental deletes are now unrecoverable", "hcl_patch": "versioning = { enabled = true }"} | Bucket bucket-logs-staging-5290 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes. | simulated | # Post-mortem: drift on aws_s3_bucket `bucket-logs-staging-5290`
**Severity:** medium (availability) — ticket, next business day
## Summary
Bucket bucket-logs-staging-5290 had versioning enabled by declaration; it was suspended in production, removing protection against accidental overwrites and deletes.
## Detectio... |
drift-000055 | rds_backup_disabled | aws_db_instance | rds-db-staging-5750 | {"identifier": "rds-db-staging-5750", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 14, "tags": {"Environment": "dev", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-922"}} | {"identifier": "rds-db-staging-5750", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 0, "tags": {"Environment": "dev", "Owner": "data-eng", "ManagedBy": "terraform", "CostCenter": "cc-922"}} | resource "aws_db_instance" "rds-db-staging-5750" {
identifier = "rds-db-staging-5750"
engine = "postgres"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 14
tags = {
Environment = "dev"
Owner = "data-eng"
ManagedBy = "terraform"
CostCenter = "cc-922"
}
}
| [{"path": "backup_retention_period", "change": "modified", "declared": 14, "observed": 0}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "high"} | {"action": "restore_backups", "target_path": "backup_retention_period", "reason": "Automated backups disabled; point-in-time recovery lost", "hcl_patch": "backup_retention_period = 14"} | RDS instance rds-db-staging-5750 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-staging-5750`
**Severity:** high (availability) — page on-call, 1-hour response
## Summary
RDS instance rds-db-staging-5750 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery.
## Detection
Configuration drift dete... |
drift-000056 | rds_public_access | aws_db_instance | rds-db-prod-1251 | {"identifier": "rds-db-prod-1251", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 30, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-586"}} | {"identifier": "rds-db-prod-1251", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": true, "backup_retention_period": 30, "tags": {"Environment": "staging", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-586"}} | resource "aws_db_instance" "rds-db-prod-1251" {
identifier = "rds-db-prod-1251"
engine = "postgres"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 30
tags = {
Environment = "staging"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-586"
}
}
| [{"path": "publicly_accessible", "change": "modified", "declared": false, "observed": true}] | 1 | manual_change_via_console | {"category": "security", "severity": "critical"} | {"action": "disable_public_access", "target_path": "publicly_accessible", "reason": "Database exposed to the public internet", "hcl_patch": "publicly_accessible = false"} | RDS instance rds-db-prod-1251 was declared private but became publicly accessible, exposing the database endpoint to the internet. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-prod-1251`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
RDS instance rds-db-prod-1251 was declared private but became publicly accessible, exposing the database endpoint to the internet.
## Detection
Configuration drift detected bet... |
drift-000057 | k8s_limits_removed | kubernetes_deployment | deploy-prod-8080 | {"metadata": {"name": "deploy-prod-8080", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:35.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}, "limits": {"cpu": "1", "memory": "1Gi"}}}]}} | {"metadata": {"name": "deploy-prod-8080", "namespace": "staging"}, "spec": {"containers": [{"name": "app", "image": "registry.internal/app:35.0", "resources": {"requests": {"cpu": "250m", "memory": "256Mi"}}}]}} | resource "kubernetes_deployment" "deploy-prod-8080" {
metadata = {
name = "deploy-prod-8080"
namespace = "staging"
}
spec = {
containers = [
{
name = "app"
image = "registry.internal/app:35.0"
resources = {
requests = {
cpu = "250m"
memor... | [{"path": "spec.containers[0].resources.limits", "change": "removed", "declared": {"cpu": "1", "memory": "1Gi"}}] | 1 | debugging_left_in_place | {"category": "availability", "severity": "medium"} | {"action": "restore_resource_limits", "target_path": "spec.containers[0].resources.limits", "reason": "CPU/memory limits removed; a noisy pod can starve the node", "hcl_patch": "limits = { cpu = \"1\", memory = \"1Gi\" }"} | Deployment deploy-prod-8080 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours. | simulated | # Post-mortem: drift on kubernetes_deployment `deploy-prod-8080`
**Severity:** medium (availability) — ticket, next business day
## Summary
Deployment deploy-prod-8080 lost its CPU/memory limits, allowing a single pod to consume all node resources and destabilise neighbours.
## Detection
Configuration drift detected... |
drift-000058 | rds_backup_disabled | aws_db_instance | rds-db-staging-4761 | {"identifier": "rds-db-staging-4761", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 14, "tags": {"Environment": "staging", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-455"}} | {"identifier": "rds-db-staging-4761", "engine": "postgres", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 0, "tags": {"Environment": "staging", "Owner": "sre", "ManagedBy": "terraform", "CostCenter": "cc-455"}} | resource "aws_db_instance" "rds-db-staging-4761" {
identifier = "rds-db-staging-4761"
engine = "postgres"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 14
tags = {
Environment = "staging"
Owner = "sre"
ManagedBy = "terraform"
CostCenter = "cc-455"
}
}
| [{"path": "backup_retention_period", "change": "modified", "declared": 14, "observed": 0}] | 1 | cost_optimization_gone_wrong | {"category": "availability", "severity": "high"} | {"action": "restore_backups", "target_path": "backup_retention_period", "reason": "Automated backups disabled; point-in-time recovery lost", "hcl_patch": "backup_retention_period = 14"} | RDS instance rds-db-staging-4761 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-staging-4761`
**Severity:** high (availability) — page on-call, 1-hour response
## Summary
RDS instance rds-db-staging-4761 had a 14-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery.
## Detection
Configuration drift dete... |
drift-000059 | ec2_instance_type_change | aws_instance | ec2-worker-prod-2158 | {"instance_name": "ec2-worker-prod-2158", "ami": "ami-40b6bbedf5", "instance_type": "t3.medium", "monitoring": true, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-781"}} | {"instance_name": "ec2-worker-prod-2158", "ami": "ami-40b6bbedf5", "instance_type": "m5.xlarge", "monitoring": true, "tags": {"Environment": "prod", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-781"}} | resource "aws_instance" "ec2-worker-prod-2158" {
instance_name = "ec2-worker-prod-2158"
ami = "ami-40b6bbedf5"
instance_type = "t3.medium"
monitoring = true
tags = {
Environment = "prod"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-781"
}
}
| [{"path": "instance_type", "change": "modified", "declared": "t3.medium", "observed": "m5.xlarge"}] | 1 | autoscaling_policy_override | {"category": "cost", "severity": "medium"} | {"action": "revert_instance_type", "target_path": "instance_type", "reason": "Instance resized t3.medium -> m5.xlarge outside of IaC", "hcl_patch": "instance_type = \"t3.medium\""} | Instance ec2-worker-prod-2158 was declared as t3.medium but is running as m5.xlarge, silently increasing spend. | simulated | # Post-mortem: drift on aws_instance `ec2-worker-prod-2158`
**Severity:** medium (cost) — ticket, next business day
## Summary
Instance ec2-worker-prod-2158 was declared as t3.medium but is running as m5.xlarge, silently increasing spend.
## Detection
Configuration drift detected between declared IaC and live state.... |
drift-000060 | rds_backup_disabled | aws_db_instance | rds-db-staging-5801 | {"identifier": "rds-db-staging-5801", "engine": "mysql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 7, "tags": {"Environment": "staging", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-375"}} | {"identifier": "rds-db-staging-5801", "engine": "mysql", "storage_encrypted": true, "publicly_accessible": false, "backup_retention_period": 0, "tags": {"Environment": "staging", "Owner": "payments", "ManagedBy": "terraform", "CostCenter": "cc-375"}} | resource "aws_db_instance" "rds-db-staging-5801" {
identifier = "rds-db-staging-5801"
engine = "mysql"
storage_encrypted = true
publicly_accessible = false
backup_retention_period = 7
tags = {
Environment = "staging"
Owner = "payments"
ManagedBy = "terraform"
CostCenter = "cc-375"
}
}
| [{"path": "backup_retention_period", "change": "modified", "declared": 7, "observed": 0}] | 1 | unreviewed_cli_command | {"category": "availability", "severity": "high"} | {"action": "restore_backups", "target_path": "backup_retention_period", "reason": "Automated backups disabled; point-in-time recovery lost", "hcl_patch": "backup_retention_period = 7"} | RDS instance rds-db-staging-5801 had a 7-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery. | simulated | # Post-mortem: drift on aws_db_instance `rds-db-staging-5801`
**Severity:** high (availability) — page on-call, 1-hour response
## Summary
RDS instance rds-db-staging-5801 had a 7-day backup window; retention dropped to 0, disabling automated backups and point-in-time recovery.
## Detection
Configuration drift detec... |
drift-000061 | sg_open_ssh | aws_security_group | sg-app-dev-6966 | {"name": "sg-app-dev-6966", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["172.16.0.0/12"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "staging", "Owner": "platform"... | {"name": "sg-app-dev-6966", "description": "App tier security group", "ingress": [{"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["172.16.0.0/12"]}, {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1",... | resource "aws_security_group" "sg-app-dev-6966" {
name = "sg-app-dev-6966"
description = "App tier security group"
ingress = [
{
from_port = 3389
to_port = 3389
protocol = "tcp"
cidr_blocks = [
"172.16.0.0/12"
]
}
]
egress = [
{
from_port = 0
to_po... | [{"path": "ingress[1]", "change": "added", "observed": {"from_port": 3389, "to_port": 3389, "protocol": "tcp", "cidr_blocks": ["0.0.0.0/0"]}}] | 1 | emergency_hotfix | {"category": "security", "severity": "critical"} | {"action": "remove_ingress_rule", "target_path": "ingress[1]", "reason": "RDP port 3389 exposed to 0.0.0.0/0", "hcl_patch": "# delete the world-open ingress rule for port 3389"} | Security group sg-app-dev-6966 was declared to allow rdp (port 3389) only from 172.16.0.0/12. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port to the entire internet. | simulated | # Post-mortem: drift on aws_security_group `sg-app-dev-6966`
**Severity:** critical (security) — immediate page, 15-minute response
## Summary
Security group sg-app-dev-6966 was declared to allow rdp (port 3389) only from 172.16.0.0/12. A world-open ingress rule (0.0.0.0/0) appeared in production, exposing the port t... |
drift-000062 | vpc_flow_logs_disabled | aws_flow_log | vpc-staging-1017 | {"vpc_name": "vpc-staging-1017", "cidr_block": "172.16.0.0/12", "flow_logs": {"enabled": true, "traffic_type": "ALL", "destination": "cloudwatch"}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-586"}} | {"vpc_name": "vpc-staging-1017", "cidr_block": "172.16.0.0/12", "flow_logs": {"enabled": false}, "tags": {"Environment": "sandbox", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-586"}} | resource "aws_flow_log" "vpc-staging-1017" {
vpc_name = "vpc-staging-1017"
cidr_block = "172.16.0.0/12"
flow_logs = {
enabled = true
traffic_type = "ALL"
destination = "cloudwatch"
}
tags = {
Environment = "sandbox"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-586"
... | [{"path": "flow_logs.destination", "change": "removed", "declared": "cloudwatch"}, {"path": "flow_logs.enabled", "change": "modified", "declared": true, "observed": false}, {"path": "flow_logs.traffic_type", "change": "removed", "declared": "ALL"}] | 3 | manual_change_via_console | {"category": "security", "severity": "medium"} | {"action": "reenable_flow_logs", "target_path": "flow_logs.enabled", "reason": "VPC flow logs disabled; network forensics/audit trail lost", "hcl_patch": "flow_logs = { enabled = true, traffic_type = \"ALL\" }"} | VPC vpc-staging-1017 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics. | simulated | # Post-mortem: drift on aws_flow_log `vpc-staging-1017`
**Severity:** medium (security) — ticket, next business day
## Summary
VPC vpc-staging-1017 had flow logs capturing ALL traffic; they were disabled, removing the network audit trail needed for incident forensics.
## Detection
Configuration drift detected betwee... |
drift-000063 | sg_egress_widened | aws_security_group | sg-db-staging-9269 | {"name": "sg-db-staging-9269", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["10.0.0.0/16"]}], "egress": [{"from_port": 443, "to_port": 443, "protocol": "tcp", "cidr_blocks": ["10.0.0.0/16"]}], "tags": {"Environment": "prod", "Owner": ... | {"name": "sg-db-staging-9269", "description": "Database tier security group", "ingress": [{"from_port": 5432, "to_port": 5432, "protocol": "tcp", "cidr_blocks": ["10.0.0.0/16"]}], "egress": [{"from_port": 0, "to_port": 0, "protocol": "-1", "cidr_blocks": ["0.0.0.0/0"]}], "tags": {"Environment": "prod", "Owner": "data-e... | resource "aws_security_group" "sg-db-staging-9269" {
name = "sg-db-staging-9269"
description = "Database tier security group"
ingress = [
{
from_port = 5432
to_port = 5432
protocol = "tcp"
cidr_blocks = [
"10.0.0.0/16"
]
}
]
egress = [
{
from_port = 443
... | [{"path": "egress[0].cidr_blocks[0]", "change": "modified", "declared": "10.0.0.0/16", "observed": "0.0.0.0/0"}, {"path": "egress[0].from_port", "change": "modified", "declared": 443, "observed": 0}, {"path": "egress[0].protocol", "change": "modified", "declared": "tcp", "observed": "-1"}, {"path": "egress[0].to_port",... | 4 | debugging_left_in_place | {"category": "security", "severity": "high"} | {"action": "restrict_egress", "target_path": "egress[0]", "reason": "Egress widened to all ports/all destinations (data-exfiltration risk)", "hcl_patch": "egress = [{ from_port = 443, to_port = 443, protocol = \"tcp\", cidr_blocks = [\"10.0.0.0/16\"] }]"} | Database security group sg-db-staging-9269 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path. | simulated | # Post-mortem: drift on aws_security_group `sg-db-staging-9269`
**Severity:** high (security) — page on-call, 1-hour response
## Summary
Database security group sg-db-staging-9269 had tightly scoped egress; it drifted to allow all outbound traffic to 0.0.0.0/0, a classic data-exfiltration path.
## Detection
Configur... |
drift-000064 | ec2_instance_type_change | aws_instance | ec2-worker-sandbox-1682 | {"instance_name": "ec2-worker-sandbox-1682", "ami": "ami-64952c82a7", "instance_type": "t3.small", "monitoring": true, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-699"}} | {"instance_name": "ec2-worker-sandbox-1682", "ami": "ami-64952c82a7", "instance_type": "t3.large", "monitoring": true, "tags": {"Environment": "staging", "Owner": "platform", "ManagedBy": "terraform", "CostCenter": "cc-699"}} | resource "aws_instance" "ec2-worker-sandbox-1682" {
instance_name = "ec2-worker-sandbox-1682"
ami = "ami-64952c82a7"
instance_type = "t3.small"
monitoring = true
tags = {
Environment = "staging"
Owner = "platform"
ManagedBy = "terraform"
CostCenter = "cc-699"
}
}
| [{"path": "instance_type", "change": "modified", "declared": "t3.small", "observed": "t3.large"}] | 1 | manual_resize_for_load | {"category": "cost", "severity": "medium"} | {"action": "revert_instance_type", "target_path": "instance_type", "reason": "Instance resized t3.small -> t3.large outside of IaC", "hcl_patch": "instance_type = \"t3.small\""} | Instance ec2-worker-sandbox-1682 was declared as t3.small but is running as t3.large, silently increasing spend. | simulated | # Post-mortem: drift on aws_instance `ec2-worker-sandbox-1682`
**Severity:** medium (cost) — ticket, next business day
## Summary
Instance ec2-worker-sandbox-1682 was declared as t3.small but is running as t3.large, silently increasing spend.
## Detection
Configuration drift detected between declared IaC and live st... |
drift-000065 | cloudwatch_retention_reduced | aws_cloudwatch_log_group | log-group-dev-9096 | {"log_group_name": "log-group-dev-9096", "retention_in_days": 90, "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-758"}} | {"log_group_name": "log-group-dev-9096", "retention_in_days": 1, "tags": {"Environment": "dev", "Owner": "ml-infra", "ManagedBy": "terraform", "CostCenter": "cc-758"}} | resource "aws_cloudwatch_log_group" "log-group-dev-9096" {
log_group_name = "log-group-dev-9096"
retention_in_days = 90
tags = {
Environment = "dev"
Owner = "ml-infra"
ManagedBy = "terraform"
CostCenter = "cc-758"
}
}
| [{"path": "retention_in_days", "change": "modified", "declared": 90, "observed": 1}] | 1 | cost_optimization_gone_wrong | {"category": "compliance", "severity": "medium"} | {"action": "restore_retention", "target_path": "retention_in_days", "reason": "Log retention cut from 90 to 1 day, breaking audit requirements", "hcl_patch": "retention_in_days = 90"} | Log group log-group-dev-9096 had 90-day retention; it was reduced to 1 day, violating audit-retention requirements. | simulated | # Post-mortem: drift on aws_cloudwatch_log_group `log-group-dev-9096`
**Severity:** medium (compliance) — ticket, next business day
## Summary
Log group log-group-dev-9096 had 90-day retention; it was reduced to 1 day, violating audit-retention requirements.
## Detection
Configuration drift detected between declared... |
IaC Drift Pairs
Declared Infrastructure-as-Code state → drifted live state → structured diff, cause, risk, and fix.
Configuration drift — the gap between what your Terraform/Pulumi/CloudFormation declares and what actually exists in the cloud — is one of the most expensive and security-critical problems in cloud operations. Yet there is no public, labeled dataset that pairs a declared state with its drifted counterpart and the root cause, risk, and reconciliation. This dataset fills that gap.
Every row is generated by chaos-style drift injection: a resource is declared, a specific drift is applied, and the drifted state is observed. Because the drift is injected deliberately, every label is ground truth — no manual annotation, no scraping, no licensing ambiguity.
Why this is useful
- Trainable task: given
declared_state(+declared_hcl) andobserved_state, predict thedrift_diff, therisk, and thereconciliation. Directly usable to train IaC copilots, drift detectors, and policy-as-code assistants. - Security-relevant: flagship scenarios cover world-open security groups, disabled S3 encryption, public ACLs, and IAM privilege escalation.
- Fully reproducible: deterministic generator (seeded). Re-run it and get the exact same rows.
Schema
| Field | Type | Description |
|---|---|---|
id |
string | Stable row id (drift-000123) |
template_id |
string | Drift scenario template |
resource_type |
string | e.g. aws_security_group, aws_s3_bucket, aws_db_instance, aws_lambda_function_url, kubernetes_pod, aws_iam_policy (16 scenarios) |
resource_name |
string | Generated resource name |
declared_state |
json | Intended configuration (IaC) |
observed_state |
json | Actual live configuration (drifted) |
declared_hcl |
string | declared_state rendered as Terraform HCL |
drift_diff |
json | Field-level diff (added / removed / modified) |
num_changes |
int | Number of drifted fields |
drift_cause |
string | e.g. manual_change_via_console, emergency_hotfix, autoscaling_policy_override |
risk |
json | {category, severity} — security / cost / availability / compliance |
reconciliation |
json | The action + HCL patch that closes the drift |
narrative |
string | Human-readable description of the incident |
postmortem |
string | Full structured post-mortem (only when generated with --enrich) |
observed_source |
string | simulated or live_localstack |
Example row (abridged)
{
"id": "drift-000042",
"resource_type": "aws_security_group",
"declared_state": {"ingress": [{"from_port": 22, "cidr_blocks": ["10.0.0.0/16"]}]},
"observed_state": {"ingress": [{"from_port": 22, "cidr_blocks": ["10.0.0.0/16"]},
{"from_port": 22, "cidr_blocks": ["0.0.0.0/0"]}]},
"drift_diff": [{"path": "ingress[1]", "change": "added",
"observed": {"from_port": 22, "cidr_blocks": ["0.0.0.0/0"]}}],
"risk": {"category": "security", "severity": "critical"},
"reconciliation": {"action": "remove_ingress_rule", "target_path": "ingress[1]"}
}
How it was built
Two backends produce the identical schema:
simulate(default): pure-Python, no dependencies. Instant, high-volume.live: applies each declared resource to LocalStack, injects the drift through the real AWS API, and reads the drifted state back — soobserved_statereflects provider-accurate behaviour.
pip install -r requirements.txt
# fast, no Docker
make generate NUM=2000
# real drift from LocalStack
make up
make generate-live NUM=200
Load it
import json
from datasets import load_dataset
ds = load_dataset("Snaseem2026/iac-drift-pairs")
row = ds["train"][0]
# nested fields are stored as JSON strings for a stable, viewer-friendly schema
declared = json.loads(row["declared_state"])
observed = json.loads(row["observed_state"])
diff = json.loads(row["drift_diff"])
risk = json.loads(row["risk"])
A runnable walkthrough (load → inspect a drift → plot the risk/cause
distributions) is in examples/quickstart.ipynb.
Suggested benchmark tasks
- Drift detection — classify whether
observed_statedrifted fromdeclared_state. - Root-cause / risk classification — predict
drift_causeandrisk. - Reconciliation generation — generate the HCL patch that fixes the drift.
A runnable baseline (TF-IDF + logistic regression) ships in benchmark/:
pip install scikit-learn
python benchmark/run_benchmark.py --data data
Reference numbers on 3,000 simulated rows (seed 7):
| Task | Accuracy | Macro-F1 |
|---|---|---|
| drift_detection | 1.00 | 1.00 |
| risk_severity | 1.00 | 1.00 |
| risk_category | 1.00 | 1.00 |
| drift_cause | 0.47 | 0.48 |
drift_cause is deliberately hard — the same drift can have several plausible
causes — leaving real headroom for fine-tuned models. Reconciliation generation
is a generative task not covered by this baseline.
Optional: full post-mortems
Each row can carry a structured incident post-mortem (Summary / Detection / Root cause / Impact / Remediation / Prevention):
python -m generator.build_dataset --num 3000 --enrich template # deterministic
python -m generator.build_dataset --num 3000 --enrich llm # needs OPENAI_API_KEY
Publish to the Hub
pip install huggingface_hub
huggingface-cli login
python scripts/push_to_hub.py --repo Snaseem2026/iac-drift-pairs
Limitations
- Resource coverage spans 16 high-value scenarios across AWS (SG, S3, EC2, RDS,
Lambda, VPC, CloudWatch, IAM, ECR) and Kubernetes. Extend
generator/scenarios.pyto add more. simulaterows use hand-modeled provider behaviour;liverows use LocalStack, which approximates but is not identical to real AWS.
License
Apache-2.0. All data is synthetically generated — no third-party content.
Citation
@misc{naseem2026iacdriftpairs,
title = {IaC Drift Pairs},
author = {Naseem, Sharyar},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/Snaseem2026/iac-drift-pairs}}
}
A machine-readable CITATION.cff is included in the repository.
- Downloads last month
- 62