623 lines
24 KiB
JSON
623 lines
24 KiB
JSON
{
|
|
"captured_at": "2026-11-26T16:05:17Z",
|
|
"checks": [
|
|
{
|
|
"actual": "leaked_vars=[]",
|
|
"category": "baseline",
|
|
"description": "Worker container env has zero static DB/Redis/S3/metrics/OpenBao secrets",
|
|
"expected": "0 secret env vars",
|
|
"id": "T1-00-WORKER-ENV-CLEAN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "att_pre=9678e967-d8a3-4b1e-afb0-ccd4de92ecef status=ready",
|
|
"category": "baseline",
|
|
"description": "Pre-compromise upload completes cleanly to status=ready",
|
|
"expected": "ready",
|
|
"id": "T1-01-BASELINE-UPLOAD-READY",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "login=200 own=200 cn=messenger-worker-g2 san=DNS:messenger-worker",
|
|
"category": "blast_openbao",
|
|
"description": "Compromised worker reads own secret/data/messenger/worker",
|
|
"expected": "200 with DB+S3 creds",
|
|
"id": "T1-BAO-01-ALLOW-OWN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=403",
|
|
"category": "blast_openbao",
|
|
"description": "Compromised worker DENIED secret/data/messenger/api",
|
|
"expected": "403",
|
|
"id": "T1-BAO-02-DENY-API",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=403",
|
|
"category": "blast_openbao",
|
|
"description": "Compromised worker DENIED secret/data/messenger/migrator",
|
|
"expected": "403",
|
|
"id": "T1-BAO-03-DENY-MIGRATOR",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=403",
|
|
"category": "blast_openbao",
|
|
"description": "Compromised worker DENIED secret/data/messenger/operator-admin",
|
|
"expected": "403",
|
|
"id": "T1-BAO-04-DENY-OPERATOR",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=403",
|
|
"category": "blast_openbao",
|
|
"description": "Compromised worker DENIED sys/policies/acl write",
|
|
"expected": "403",
|
|
"id": "T1-BAO-05-DENY-POLICY-WRITE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=400",
|
|
"category": "blast_openbao",
|
|
"description": "Worker cert DENIED auth/cert/login as messenger-api",
|
|
"expected": "400/403",
|
|
"id": "T1-BAO-06-DENY-API-ROLE-LOGIN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": {
|
|
"allow_select_attachments": true,
|
|
"allow_select_jobs": true,
|
|
"allow_select_variants": true,
|
|
"allow_update_att_status_noop": true
|
|
},
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker allowed SELECT/scoped UPDATE on job pipeline tables",
|
|
"expected": "all 4 pipeline ops allowed",
|
|
"id": "T1-PG-07-ALLOW-PIPELINE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT users (password_hash) (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-08-DENY-USERS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT messages (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-09-DENY-MESSAGES",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT chats (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-10-DENY-CHATS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT chat_members (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-11-DENY-CHAT-MEMBERS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT message_attachments (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-12-DENY-MSG-ATT",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT idempotency_keys (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-13-DENY-IDEMPOTENCY",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED SELECT schema_migrations (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-14-DENY-MIGRATIONS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED DELETE attachments (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-15-DENY-DELETE-ATT",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED DELETE attachment_jobs (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-16-DENY-DELETE-JOBS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED UPDATE attachments.sha256 (column-level integrity) (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-17-DENY-UPDATE-SHA256",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False code=42501",
|
|
"category": "blast_postgres",
|
|
"description": "messenger_worker DENIED DDL CREATE TABLE in public (42501)",
|
|
"expected": "SQLSTATE 42501",
|
|
"id": "T1-PG-18-DENY-DDL-CREATE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": {
|
|
"allow_del_staging": 204,
|
|
"allow_del_variant": 204,
|
|
"allow_get_original": 200,
|
|
"allow_get_staging": 200,
|
|
"allow_put_variant": 200
|
|
},
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 allowed staging/* Get/Delete, attachments/*/original Get, and attachments/*/v*/* Put/Delete",
|
|
"expected": "all 5 allowed (200/204)",
|
|
"id": "T1-S3-19-ALLOW-OWN-PREFIX",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED GetObject backups/canary.txt (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-20-DENY-GET-BACKUPS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED PutObject backups/pwned.txt (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-21-DENY-PUT-BACKUPS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED PutObject admin/pwned.txt (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-22-DENY-PUT-ADMIN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED PutObject staging/forged/original (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-23-DENY-PUT-STAGING",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED DeleteObject attachments/*/original (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-24-DENY-DEL-ORIGINAL",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED ListBucket root & backups/ (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-25-DENY-LIST-ROOT",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED CreateBucket (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-26-DENY-CREATE-BUCKET",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False status=403 code=AccessDenied",
|
|
"category": "blast_s3",
|
|
"description": "Worker S3 DENIED MinIO Admin API /minio/admin/v3/info (403)",
|
|
"expected": "HTTP 403 AccessDenied",
|
|
"id": "T1-S3-27-DENY-MINIO-ADMIN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{'allowed': True, 'detail': 'consumed_ok'}",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL allowed consume on attachments.process",
|
|
"expected": "allowed=True",
|
|
"id": "T1-RMQ-28-ALLOW-CONSUME",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=channel closed",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL DENIED publish to attachments.jobs",
|
|
"expected": "ACCESS_REFUSED",
|
|
"id": "T1-RMQ-29-DENY-PUBLISH-JOBS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=Operation failed: QueueDeclare; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - configure access to queue 'track1.pwned.queue' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL DENIED declare arbitrary queue",
|
|
"expected": "ACCESS_REFUSED",
|
|
"id": "T1-RMQ-30-DENY-DECLARE-QUEUE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=Operation failed: QueueDelete; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - configure access to queue 'attachments.process' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL DENIED delete attachments.process",
|
|
"expected": "ACCESS_REFUSED",
|
|
"id": "T1-RMQ-31-DENY-DELETE-QUEUE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=Operation failed: BasicConsume; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - read access to queue 'attachments.process.dlq' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL DENIED consume attachments.process.dlq",
|
|
"expected": "ACCESS_REFUSED",
|
|
"id": "T1-RMQ-32-DENY-CONSUME-DLQ",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=Expected ConnectionOpenOk; got <ConnectionClose channel:0>",
|
|
"category": "blast_rabbitmq",
|
|
"description": "Worker mTLS EXTERNAL DENIED connect to vhost /",
|
|
"expected": "ACCESS_REFUSED",
|
|
"id": "T1-RMQ-33-DENY-ROOT-VHOST",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "allowed=False error=NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO <proto> AUTH <user> <pass> option can be used to authenticate the client and select the RESP protocol version at the same time",
|
|
"category": "blast_lateral",
|
|
"description": "Compromised worker has zero Redis credentials and is rejected by Redis",
|
|
"expected": "rejected & no redis creds",
|
|
"id": "T1-LAT-34-DENY-REDIS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "status=403 error=None",
|
|
"category": "blast_lateral",
|
|
"description": "Compromised worker trusted-CA cert is rejected by API mTLS LB allowlist (403)",
|
|
"expected": "HTTP 403 or TLS reject",
|
|
"id": "T1-LAT-35-DENY-API-MTLS",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "ids=['03fac44e-dccf-47b5-ac0d-758b98168ea2', '5eae2cc8-2ef4-498d-a0a2-fe18358746f3', '398e91cc-43b3-496c-9e79-d82dda372464']",
|
|
"category": "containment",
|
|
"description": "While compromised worker is quarantined, API keeps accepting uploads (202 queued)",
|
|
"expected": "3 queued 202 uploads",
|
|
"id": "T1-CONTAIN-36-API-202-WHILE-WORKER-STOPPED",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "messenger-worker-g2(1018) -> messenger-worker-g3(1019)",
|
|
"category": "revocation",
|
|
"description": "scripts/revoke-worker.sh issued new worker generation cert/serial without image rebuild",
|
|
"expected": "new CN & new serial",
|
|
"id": "T1-REVOKE-37-IDENTITY-ROTATED",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"status\": 403}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 OpenBao token rejected (403)",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-38-OPENBAO_TOKEN",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"status\": 400}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 cert rejected at OpenBao auth/cert/login CRL (400)",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-39-OPENBAO_CERT",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"code\": \"28P01\", \"error\": \"password authentication failed for user \\\"messenger_worker\\\"\"}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 PostgreSQL password rejected on new TLS conn (28P01)",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-40-POSTGRES",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"status\": 403, \"code\": \"InvalidAccessKeyId\"}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 MinIO S3 key rejected on new HTTPS conn (403)",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-41-MINIO_S3",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"error\": \"Handshake terminated by server: 403 (ACCESS-REFUSED) with message \\\"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\\\"\"}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 cert rejected at RabbitMQ AMQPS EXTERNAL",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-42-RABBITMQ",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "{\"rejected\": true, \"status\": null, \"error\": \"ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED\"}",
|
|
"category": "revocation_nc6",
|
|
"description": "Stolen g1 cert rejected at OTel Gateway mTLS CRL/allowlist",
|
|
"expected": "rejected=True on NEW connection",
|
|
"id": "T1-REVOKED-43-OTEL_GATEWAY",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "api_same=True, worker_same=True",
|
|
"category": "recovery",
|
|
"description": "Recovered worker and API run identical Docker Image SHAs (zero rebuild)",
|
|
"expected": "api & worker Image SHAs unchanged",
|
|
"id": "T1-RECOVER-44-ZERO-IMAGE-REBUILD",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": {
|
|
"during_containment_1": {
|
|
"no_dups": true,
|
|
"sha_ok": true,
|
|
"status": "ready",
|
|
"thumb_ok": true
|
|
},
|
|
"during_containment_2": {
|
|
"no_dups": true,
|
|
"sha_ok": true,
|
|
"status": "ready",
|
|
"thumb_ok": true
|
|
},
|
|
"post_recovery": {
|
|
"no_dups": true,
|
|
"sha_ok": true,
|
|
"status": "ready",
|
|
"thumb_ok": true
|
|
},
|
|
"pre_compromise": {
|
|
"no_dups": true,
|
|
"sha_ok": true,
|
|
"status": "ready",
|
|
"thumb_ok": true
|
|
},
|
|
"pre_revocation": {
|
|
"no_dups": true,
|
|
"sha_ok": true,
|
|
"status": "ready",
|
|
"thumb_ok": true
|
|
}
|
|
},
|
|
"category": "durability",
|
|
"description": "All 5 pre/during/post-containment jobs reach ready with exact SHA-256, 256x160 JPEG thumbnail, and 0 duplicate variants",
|
|
"expected": "5/5 durable, 0 lost, 0 duplicates",
|
|
"id": "T1-RECOVER-45-ALL-JOBS-DURABLE",
|
|
"passed": true
|
|
},
|
|
{
|
|
"actual": "canary_intact=True, eve_blocked=True",
|
|
"category": "durability",
|
|
"description": "Confidential canary message survived containment intact and remains 404 to outsider",
|
|
"expected": "canary_intact=True, eve=404",
|
|
"id": "T1-RECOVER-46-CANARY-INTACT",
|
|
"passed": true
|
|
}
|
|
],
|
|
"failed_count": 0,
|
|
"failed_ids": [],
|
|
"passed": true,
|
|
"passed_count": 48,
|
|
"started_at": "2026-11-26T16:04:43Z",
|
|
"suite": "lab7-track1-worker-compromise",
|
|
"summary": {
|
|
"before_vs_after": [
|
|
{
|
|
"after_lab7": "Dedicated messenger_worker role over TLS verify-full with strictly 5 pipeline tables + column-level UPDATE; users, chats, chat_members, messages, message_attachments, idempotency_keys, schema_migrations, DELETE attachments/jobs, UPDATE sha256, and DDL all fail with 42501.",
|
|
"before_lab6": "Shared messenger superuser/table-owner via .env DATABASE_URL over plaintext TCP; compromised worker could read users.password_hash, all messages/chats, or DROP tables.",
|
|
"delta": "100% elimination of user credential, message, chat, and schema exposure from worker.",
|
|
"domain": "PostgreSQL"
|
|
},
|
|
{
|
|
"after_lab7": "HTTPS + CA verify; rotatable IAM user in OpenBao; staging/* Get/Delete only (no Put); attachments/*/original Get/Put only (no Delete); attachments/*/v*/* Put/Delete; backups/*, admin/*, bucket root list, CreateBucket, and MinIO Admin API all fail with 403 AccessDenied.",
|
|
"before_lab6": "Plaintext HTTP; static keys in ./secrets/; broad s3:PutObject across attachments/*.",
|
|
"delta": "Eliminates staging poisoning, committed original deletion, and cross-prefix/admin pivoting.",
|
|
"domain": "MinIO S3"
|
|
},
|
|
{
|
|
"after_lab7": "AMQPS 5671 + mTLS SASL EXTERNAL (generation-suffixed CN); configure=^$, write=^$, read=^attachments\\.process$; OutboxRelay removed from worker. Publish to attachments.jobs, declare/delete queue, DLQ consume, and vhost / all fail with 403 ACCESS_REFUSED.",
|
|
"before_lab6": "Plaintext AMQP 5672; static password file; configure/write/read across topology (worker could forge jobs and tamper with queues).",
|
|
"delta": "Eliminates job forgery, topology tampering, DLQ reading, and vhost pivoting.",
|
|
"domain": "RabbitMQ"
|
|
},
|
|
{
|
|
"after_lab7": "TLS + mTLS + user default off + ACLs; RedisModule removed from WorkerModule (zero Redis credentials in worker); API stores only session:sha256:<hex>.",
|
|
"before_lab6": "Plaintext TCP, unauthenticated REDIS_URL in worker .env; raw Bearer tokens stored in session:<token>.",
|
|
"delta": "100% elimination of user session hijacking and rate-limit tampering from worker.",
|
|
"domain": "Redis"
|
|
},
|
|
{
|
|
"after_lab7": "Non-dev Raft OpenBao over TLS; mTLS auth/cert + worker-policy (token_no_default_policy=true) + CRL; zero API/migrator/operator/root secrets reachable; sub-second accessor + CRL revocation.",
|
|
"before_lab6": "No KMS; all secrets in .env / ./secrets/ including POSTGRES_PASSWORD and METRICS_TOKEN.",
|
|
"delta": "Eliminates static secret sprawl and enables live zero-rebuild revocation/rotation.",
|
|
"domain": "Secrets / OpenBao"
|
|
},
|
|
{
|
|
"after_lab7": "Mandatory mTLS + LB SAN allowlist (haproxy-lb) + CRL on api:8443; valid CA-signed worker cert rejected with 403.",
|
|
"before_lab6": "Plaintext http://api:8080 reachable directly from worker container.",
|
|
"delta": "Eliminates direct LB bypass and API impersonation from worker.",
|
|
"domain": "API Internal Surface"
|
|
}
|
|
],
|
|
"durability": {
|
|
"during_containment_1": {
|
|
"attachment_id": "5eae2cc8-2ef4-498d-a0a2-fe18358746f3",
|
|
"db_distinct_variants": 3,
|
|
"db_variant_rows": 3,
|
|
"original_sha256_match": true,
|
|
"passed": true,
|
|
"status": "ready",
|
|
"thumbnail_256x160_ok": true,
|
|
"thumbnail_dims": [
|
|
256,
|
|
160
|
|
],
|
|
"variant_names": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
],
|
|
"zero_duplicates": true
|
|
},
|
|
"during_containment_2": {
|
|
"attachment_id": "398e91cc-43b3-496c-9e79-d82dda372464",
|
|
"db_distinct_variants": 3,
|
|
"db_variant_rows": 3,
|
|
"original_sha256_match": true,
|
|
"passed": true,
|
|
"status": "ready",
|
|
"thumbnail_256x160_ok": true,
|
|
"thumbnail_dims": [
|
|
256,
|
|
160
|
|
],
|
|
"variant_names": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
],
|
|
"zero_duplicates": true
|
|
},
|
|
"post_recovery": {
|
|
"attachment_id": "eb231d77-d5ed-4160-b5a4-7c92010289ff",
|
|
"db_distinct_variants": 3,
|
|
"db_variant_rows": 3,
|
|
"original_sha256_match": true,
|
|
"passed": true,
|
|
"status": "ready",
|
|
"thumbnail_256x160_ok": true,
|
|
"thumbnail_dims": [
|
|
256,
|
|
160
|
|
],
|
|
"variant_names": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
],
|
|
"zero_duplicates": true
|
|
},
|
|
"pre_compromise": {
|
|
"attachment_id": "9678e967-d8a3-4b1e-afb0-ccd4de92ecef",
|
|
"db_distinct_variants": 3,
|
|
"db_variant_rows": 3,
|
|
"original_sha256_match": true,
|
|
"passed": true,
|
|
"status": "ready",
|
|
"thumbnail_256x160_ok": true,
|
|
"thumbnail_dims": [
|
|
256,
|
|
160
|
|
],
|
|
"variant_names": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
],
|
|
"zero_duplicates": true
|
|
},
|
|
"pre_revocation": {
|
|
"attachment_id": "03fac44e-dccf-47b5-ac0d-758b98168ea2",
|
|
"db_distinct_variants": 3,
|
|
"db_variant_rows": 3,
|
|
"original_sha256_match": true,
|
|
"passed": true,
|
|
"status": "ready",
|
|
"thumbnail_256x160_ok": true,
|
|
"thumbnail_dims": [
|
|
256,
|
|
160
|
|
],
|
|
"variant_names": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
],
|
|
"zero_duplicates": true
|
|
}
|
|
},
|
|
"hypothesis": "Under Lab 7 least-privilege boundaries (OpenBao auth/cert + worker-policy, PostgreSQL messenger_worker table/column grants, tightened MinIO prefix policy, RabbitMQ EXTERNAL consumer-only ACL, zero Redis access in worker, and API mTLS LB-SAN allowlist), full compromise of the worker container yields zero access to user credentials, sessions, private messages, chats, or API/admin secrets, and cannot forge jobs, delete committed originals, or alter attachment integrity metadata; revoking the compromised worker identity and rotating all related credentials without rebuilding images immediately blocks all stolen access on new connections while preserving 100% of queued and in-flight jobs with zero duplicates.",
|
|
"images": {
|
|
"api_after": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
|
"api_before": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
|
"worker_after": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
|
"worker_before": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3"
|
|
},
|
|
"residual_risks": [
|
|
"In-scope functional abuse before detection: until revoked, a compromised worker legitimately needs read access to staging/* and write access to attachments/*/v*/* and attachments/*/original for claimed jobs, so it could delay or corrupt rendered variants of active jobs (mitigated by immutable attachments.sha256, job timeouts, and queue lag alerts).",
|
|
"Single-host lab boundary: host OS root or Docker daemon compromise is outside container isolation; production deployments isolate nodes, run multi-node OpenBao Raft HA with KMS auto-unseal, and issue short-lived workload certs via SPIRE/OpenBao PKI.",
|
|
"Active connection drain window: credential revocation immediately blocks all new connections (TLS session resumption disabled); active sockets are terminated explicitly during scripts/revoke-worker.sh via pg_terminate_backend, rabbitmqctl delete_user, MinIO user deletion, and OpenBao accessor revocation."
|
|
],
|
|
"revocation_new_connections": {
|
|
"minio_s3": {
|
|
"code": "InvalidAccessKeyId",
|
|
"rejected": true,
|
|
"status": 403
|
|
},
|
|
"openbao_cert": {
|
|
"rejected": true,
|
|
"status": 400
|
|
},
|
|
"openbao_token": {
|
|
"rejected": true,
|
|
"status": 403
|
|
},
|
|
"otel_gateway": {
|
|
"error": "ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED",
|
|
"rejected": true,
|
|
"status": null
|
|
},
|
|
"postgres": {
|
|
"code": "28P01",
|
|
"error": "password authentication failed for user \"messenger_worker\"",
|
|
"rejected": true
|
|
},
|
|
"rabbitmq": {
|
|
"error": "Handshake terminated by server: 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\"",
|
|
"rejected": true
|
|
}
|
|
},
|
|
"worker_identity": {
|
|
"recovered_cn": "messenger-worker-g3",
|
|
"recovered_serial": "1019",
|
|
"stolen_cn": "messenger-worker-g2",
|
|
"stolen_serial": "1018"
|
|
}
|
|
},
|
|
"total": 48
|
|
}
|