Awesome AWS Security

AWS

A common curated list of links, references, books videos, tutorials (Free or Paid), Exploit, CTFs, Hacking Practices etc. which are obviously related to AWS Security.

AWS Whitepapers


AWS has awesome lists of whitepapers related to AWS Security. We are adding few important one here. You can anytime check more for updated or new security whitepapers here

And don’t forget to bookmark AWS Security bulletin for new vulnerabilities news from here

  1. AWS Overview – One of the important whitepaper to understand an overview of AWS
  2. Introduction to AWS Security Whitepaper
  3. AWS Well-Architected Security Pillar
  4. Introduction to Security By Design
  5. AWS Well Architected Framework
  6. AWS Risk And Compliance Whitepaper
  7. AWS Security Checklist
  8. AWS HIPAA Compliance Whitepaper
  9. AWS Cloud Adoption Framework
  10. AWS Auditing Security Checklist
  11. AWS CIS Foundation benchmark
  12. AWS Security Incident Response
  13. Overview of AWS Lambda Security
  14. AWS KMS Best Practices
  15. Encrypting File Data with Amazon Elastic File System
  16. Security of AWS CloudHSM backups
  17. Security overview of AWS Lambda
  18. NIST Cybersecurity Framework in the AWS cloud
  19. NIST 800-144 Security and Privacy in Public Cloud Computing
  20. Security at the Edge: Core Principles
  21. AWS KMS Best Practices

Books


  1. Hands-On AWS Penetration Testing with Kali Linux by PackT
  2. Mastering AWS Security by PackT
  3. Security Best Practices on AWS by PackT
  4. Cloud Security Automation
  5. AWS Automation Cookbook
  6. AWS Lambda Security Best Practices – pdf – It’s published by Puresec and it has a good overview on AWS Lambda Security Best Practices which we should follow
  7. AWS Security by Manning – Very nice book in Progress, yet to release.
  8. Securing DevOps – A book which has real-world examples for Cloud Security. Must read book for any Cloud Security Professionals.
  9. Serverless Security – An Apress book that discusses serverless security on AWS, Azure and Google Cloud.
  10. AWS Security Cookbook
  11. Practical Guide to Security in the AWS Cloud by SANS and sponsored by AWS Marketplace – pdf
  12. CSA Guide to Cloud Computing by Sungress
  13. Practical Cloud Security by O’reilly

Videos


  1. The fundamentals of AWS Security – Youtube
  2. AWS Security by Design – Youtube
  3. Account Security with IAM – Youtube
  4. AWS re:Inforce 2019 Security Best Practices – Youtube
  5. AWS Cloud Security Playlist – Youtube
  6. A cloud security architecture workshop by RSA – Youtube
  7. AWS Cloud Security – Oreilly
  8. Introduction to AWS Security Hub – Youtube
  9. Solution for flaws.cloud AWS Security Challenge – Youtube Playlist
  10. AWS Security Best Practice: Well-Architected way – Youtube
  11. Hands-On With AWS Security Best Practices
  12. AWS re:Invent 2020: Security at scale: How Goldman Sachs manages network and access control

Online Tutorials/Blogs/Presentations


  1. AWS Security official blog
  2. AWS in Plain English
  3. Why the CIA trusts AWS
  4. Fundamentals of AWS Security – Presentation from AWS
  5. AWS Security primer – Nice overview and quick run through AWS Security resources.
  6. AWS Security Blog
  7. How a whitehat hacker earned $1500 in 15 minutes due to AWS S3 misconfiguration – It was fun going through the blog. You can learn from this article too.
  8. A deep dive into AWS S3 access control – It will give a very good grip on how S3 buckets can be exploited. Lengthy but worth to go through.
  9. How Federico hacked a whole EC2 network during a penetration test
  10. A short blog on hacking AWS – Examples are based on cloudgoat.
  11. S3 security is flawed by design – This article will show you why you need to be extra careful when using AWS S3.
  12. 51 Tips for Security AWS(pdf) – McAfee
  13. The role of API gateways in API security
  14. Finding SSRF via HTML Injection inside a PDF file on AWS EC2
  15. Getting shell and data access in AWS by chaining vulnerabilities
  16. Hacking Serverless Runtimes – Blackhat2017
  17. Detailed blog on ConsoleMe: A Central Control Plane for AWS Permissions and Access by Netflix
  18. Strengthen the security of sensitive data stored in Amazon S3 by using additional AWS services
  19. Use IMDSv2 instead: Defense in depth
  20. Managing permissions with grants in AWS Key Management Service
  21. AWS IAM Exploitation
  22. S3 Pentest by Rhino Security Labs
  23. How an Attacker Could Use Instance Metadata to Breach Your App in AWS

Online Courses (Paid/Free)


  1. AWS Fundamentals: Address Security Risks – Coursera
  2. Cloud Computing Security – Coursera
  3. AWS: Getting started with Cloud Security – EdX
  4. AWS Certified Security Specialty – Udemy by Zeal Vora
  5. AWS Certified Security Specialty – From Acloud.guru
  6. AWS Advanced Security – Udemy
  7. AWS for Architects: Advanced Security – Linkedin Learn by Lynn Langit
  8. Practical Event Driven Security with AWS – Acloud.guru
  9. Learning Path for AWS Security – Nicely designed the learning path who wants to be an AWS Security Experts from Acloud.guru
  10. Cloud Hacking course – From NotSoSercure
  11. Breaking and Pwning Apps and Servers in AWS and Azure – Previously an instructor led training now released as free and open source courseware for Cloud Pentesters

Tools of Trade


  1. AWS Security Products – Official – Few Important tools that you should consider are:
    • 1.1 AWS IAM: AWS Identity and Access Management (IAM) enables you to manage access to AWS services and resources securely
    • 1.2 CloudWatch: CloudWatch is the AWS monitoring tool
    • 1.3 CloudTrail: AWS CloudTrail is a service that enables governance, compliance, operational auditing, and risk auditing of your AWS account
    • 1.4 AWS Inspector: AWS inspector is a security assessment service that does vulnerability and best-practice scanning for AWS applications
    • 1.5 Amazon GuardDuty: GuardDuty is a managed threat detection service that is simple to deploy, and scales with your infrastructure
    • 1.6 AWS KMS: AWS KMS is a secure and resilient service that uses hardware security modules that have been validated under FIPS 140-2
    • 1.7 AWS Shield: AWS Shield is a managed DDoS protection service. AWS Shield can protect EC2, Load balancers, CloudFront, Global Accelerator, and Route 53 resources
    • 1.8 AWS Trusted Advisor: AWS Trusted Advisor is an online tool that provides you real time guidance to help you provision your resources following AWS best practices
    • 1.9 AWS Config: AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources
    • 1.10 Security Hub: AWS Security Hub gives you a comprehensive view of your high-priority security alerts and security posture across your AWS accounts
    • 1.11 AWS WAF: AWS WAF is a web application firewall that helps protect your web applications or APIs against common web exploits that may affect availability, compromise security, or consume excessive resources
    • 1.12 AWS Macie: Macie is all about protecting data. It is a machine learning service that watches data access trends and finds anomalies to spot data leaks and unauthorized data access.
    • 1.13 AWS Detective: Amazon Detective automatically collects log data from your AWS resources and uses machine learning, statistical analysis, and graph theory to build a linked set of data that enables you to easily conduct faster and more efficient security investigations.
    • 1.14 AWS Conformance Packs: A conformance pack is a collection of AWS Config rules and remediation actions that can be easily deployed as a single entity in an account and a Region or across an organization in AWS Organizations. conformance packs on github
  2. Arsenal of AWS Security Tools – Collection of all security category tools and products
  3. AWS Security Automation – Collection of scripts and resources for DevSecOps and Automated Incident Response Security
  4. truffleHog – Searches through git repositories for high entropy strings and secrets, digging deep into commit history
  5. gitleaks – Audit git repos for secrets
  6. AWS Security Benchmark – Open source demos, concept and guidance related to the AWS CIS Foundation framework.
  7. S3 Inspector – Tool to check AWS S3 bucket permissions
  8. ScoutSuite – Multi-Cloud Security Auditing Tool
  9. Prowler – AWS Security Best Practices Assessment, Auditing, Hardening and Forensics Readiness Tool.
  10. AWS Vault – A vault for securely storing and accessing AWS credentials in development environments
  11. AWS PWN – A collection of AWS penetration testing junk
  12. Pacu – AWS Penetration Testing Toolkits
  13. Zeus – AWS Auditing and Hardening tool
  14. Cloud Mapper – Analyze your AWS environments (Python)
  15. ConsoleMe – A Central Control Plane for AWS Permissions and Access

Security Practices and CTFs


  1. AWS Well Architected Security Labs
  2. Flaws to learn common mistakes in AWS through challenge
  3. Flaws2 focuses on AWS security concepts through various challenge levels
  4. CloudGoat By Rhino Security Labs – Vulnerable by Design AWS infrastructure setup tool
  5. OWASP ServerlessGoat – OWASP ServerlessGoat is a deliberately insecure realistic AWS Lambda serverless application maintained by OWASP for educational purposes.
  6. AWS S3 CTF Challenges with solutions
  7. AWS CTF with practical scenario
  8. Breaking and Pwning Apps and Servers on AWS and Azure by AppSecCo – The training covers a multitude of scenarios taken from our vulnerability assessment, penetration testing and OSINT engagements which take the student through the journey of discovery, identification and exploitation of security weaknesses, misconfigurations and poor programming practices that can lead to complete compromise of the cloud infrastructure.
  9. AWS Workshop official – This is not exactly security part, but would be helpful to understand AWS with this workshop examples.
  10. AWS Security Workshops by AWS

AWS Security Bulletin Important Issues


  1. Container Networking Security Issue ([CVE-2020-8558]) (This issue may allow containers running on the same host, or adjacent hosts (hosts running in the same LAN or layer 2 domain), to reach TCP and UDP services bound to localhost (127.0.0.1))
  2. Minimum Version of TLS 1.2 Required for FIPS Endpoints by March 31, 2021
  3. Unencrypted md5 plaintext hash in metadata in AWS S3 Crypto SDK for golang
  4. CBC padding oracle issue in AWS S3 Crypto SDK for golang : CVE-2020-8911
  5. In-band key negotiation issue in AWS S3 Crypto SDK for golang : CVE-2020-8912
  6. CVE-2018-15869: An Amazon Web Services (AWS) developer who does not specify the –owners flag when describing images via AWS CLI, and therefore not properly validating source software per AWS recommended security best practices, may unintentionally load an undesired and potentially malicious Amazon Machine Image (AMI) from the uncurated public community AMI catalog.

AWS Security Breaches


  1. AWS Security breaches – 2017
  2. 200 million voters data leak – A lesson in AWS Security
  3. Imperva blames data breach on Stolen AWS API keys
  4. Tesla’s Amazon cloud account was hacked and used to mine cryptocurrency
  5. 10 worst Amazon S3 breaches
  6. Lion Air the Latest to Get Tripped Up by Misconfigured AWS S3
  7. Online Fashion App 21 buttons Exposes Financial Records of Top European Influencers due to S3 misconfiguration
  8. Capital One Cloud data breach due to S3 misconfiguration
  9. Online Fashion App 21 buttons Exposes Financial Records of Top European Influencers
  10. Utah COVID-19 testing service exposes 50,000 patients’ photo IDs, personal info on the web
  11. US municipalities suffer data breach due to misconfigured Amazon S3 buckets

Contributors

Please refer the guidelines at contribute.md for details.

Thanks to the following folks who made contributions to this project.

Get your name listed here

List of Contributors