The Real Fullstack

The Excessive Permissions

The invoice service only needs two buckets and one queue. What could someone do with its credentials today?

مهندس أول8 دقيقةمختبر تصحيح الأخطاءتحدي الشيفرة
aws-iamkubernetesterraforms3

لم يُترجم هذا التحدي إلى العربية بعد. أنت تقرأ النسخة الإنجليزية.

المهمة:Grant exactly what the invoice service needs: its three legitimate operations succeed, the four malicious ones fail.السياق · أهداف التعلّم ▾

Tallow Cloud's invoice service runs with an IAM role that has AdministratorAccess “because it was quicker”. After an unrelated incident, the security team asks what an attacker could have done with that role, and requests a least-privilege policy.

المهمة: Grant exactly what the invoice service needs: its three legitimate operations succeed, the four malicious ones fail.

أهداف التعلّم

  • Apply least privilege to machine identities.
  • Scope both actions and resources.
  • Spot wildcards that grant more than intended.
المحاكاةمحاكاة
invoice service
1read invoice PDF → ALLOW
2store generated invoice → ALLOW
3notify billing → ALLOW
stolen credentials
4read customer PII export → ALLOW (should be denied)
5delete invoices → ALLOW (should be denied)
6create IAM user → ALLOW (should be denied)
7purge any queue → ALLOW (should be denied)
تشغيل المحاكاة
{  "Version": "2012-10-17",  "Statement": [    { "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject"], "Resource": "arn:aws:s3:::invoices/*" },    { "Effect": "Allow", "Action": "sqs:SendMessage", "Resource": "arn:aws:sqs:eu-west-1:111122223333:billing" }  ]}

تبسيط

Allow statements only (no explicit denies, conditions or boundaries); matching uses simple wildcards. نموذج تعليمي — الأرقام توضّح سلوكًا وليست قياسات أداء.

المفاهيم

تحديات ذات صلة

المراجع