Skip to content

Add article: detect public resource exposure via session policy error messages#500

Merged
Frichetten merged 1 commit intoHacking-the-Cloud:mainfrom
raajheshkannaa:feat/session-policy-exposure-detection
Mar 17, 2026
Merged

Add article: detect public resource exposure via session policy error messages#500
Frichetten merged 1 commit intoHacking-the-Cloud:mainfrom
raajheshkannaa:feat/session-policy-exposure-detection

Conversation

@raajheshkannaa
Copy link
Copy Markdown
Contributor

Closes #499

Adds a new article under aws/enumeration/ documenting the session policy error message technique for detecting publicly accessible AWS resources.

Summary:

  • Covers the deny-all session policy setup and how verbose IAM error messages reveal public resource-based policies
  • Includes classification table for interpreting error responses
  • Documents confirmed services (SNS, SQS, Lambda, KMS, ECR, EventBridge)
  • Notes limitations: SCP/RCP interference, ambiguous negatives, S3 same-org caveat, cross-account scope
  • OPSEC section on CloudTrail visibility (empirically verified for SNS/SQS)
  • Credits original research by Daniel Grzelak and Sam Cox at Plerion

Based on Don't Expose Yourself in Public, Let AWS Error Messages Do It.

cc @Frichetten

@Frichetten
Copy link
Copy Markdown
Contributor

Hey Raajhesh, thank you for your submission! I took a look and everything looks good! As long as CI/CD passes, I will merge it.

Did you have a preferred social media site or sites you use? When I merge from external contributors I like to give them a shoutout.

@raajheshkannaa
Copy link
Copy Markdown
Contributor Author

raajheshkannaa commented Mar 16, 2026

Thanks for the review! You can find me on LinkedIn: https://www.linkedin.com/in/raajhesh-kannaa-chidambaram

@Frichetten
Copy link
Copy Markdown
Contributor

Wonderful, I'll merge! Thank you again for the submission!

@Frichetten Frichetten merged commit 458db5c into Hacking-the-Cloud:main Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

https://www.plerion.com/blog/dont-expose-yourself-in-public-let-aws-error-messages-do-it

2 participants