AWS Lambda Security Workshop
by Anjali & Divyanshu (theshukladuo) at Peachycloud Security
https://lambdasecurity.peachycloudsecurity.com
Hands-on primer on AWS Lambda and API Gateway security for security engineers, developers, and cloud practitioners who want to understand how serverless applications get attacked. No prior serverless experience required. We deploy a deliberately vulnerable app, then exploit every OWASP Serverless Top 10 vulnerability live.
Syllabus
- Welcome
- Lab: Setup GitHub Codespace
- Serverless Basics
- Injection & XSS
- Theory: What is Injection?
- Lab: Cross-Site Scripting (XSS)
- Lab: Command Injection and Credential Theft
- Lab: Broken Authentication
- SSRF — Server-Side Request Forgery
- Lab: SSRF to Lambda Runtime
- Insecure Deserialization
- Lab: Pickle RCE
- Lab: Broken Access Control
- Lab: Security Misconfiguration
- Lab: Insecure Third-Party Components
- Lab: Insufficient Logging & Monitoring
- ReDoS — Denial of Service
- Lab: Regular Expression Denial of Service
- Thank you
Prerequisites
- GitHub account with Codespaces enabled.
- Browser that loads GitHub Codespaces normally.
- Familiarity with the Linux command line.
- AWS account with an IAM user that has programmatic access (access key and secret key).
⚠️ Important: steps that look like attacks are only for environments you are authorised to test. Do not use them on systems you do not own or lack written permission to assess.
About us
-
Anjali is a seasoned cloud security engineer, experienced in DevSecOps and Kubernetes security (EKS/GKE) as well as AWS, Azure, and GCP security. She is the founder of Container Security Village and Kubernetes Village, communities dedicated to enhancing cloud-native security. As the project lead for OWASP EKS Goat, she focuses on AWS EKS security research and hands-on exploitation paths. Anjali is a recognized AWS Community Builder and actively shares her research through her YouTube channel, @peachycloudsecurity. Her extensive speaking history includes Blackhat USA, Black Hat Spring USA, Black Hat Europe, Nullcon, Seasides Goa, BSides Bangalore, CSA Bangalore, and C0c0n. She has also contributed to the community by volunteering at Cloud Village at DEF CON and various BSides events globally. Reach out at peachycloudsecurity[dot]com
-
Divyanshu is a senior security engineer, experienced in Cloud Security, Kubernetes Security, DevSecops, Web Application Pentesting, and Threat Modelling. Reported multiple vulnerabilities to companies like Airbnb, Google, Microsoft, AWS, Apple, Amazon, Samsung, Zomato, Xiaomi, Alibaba, Opera, Protonmail, Mobikwik, etc, and received CVE-2019-8727 CVE-2019-16918, CVE-2019-12278, CVE-2019-14962 for reporting issues. Currently co-lead of OWASP EKS Goat, OWASP GKE Goat, Author of Burp-o-mation and a very-vulnerable-serverless application. Also part of AWS Community Builder for security and Defcon Cloud Village crew member 2020/2021/2022. Delivered talks at events like Blackhat USA, Europe, Seasides, C0c0n, Nullcon, Brucon, Bsides Bangalore and Bsides Ahmedabad. Also winner of “Cybersecurity samurai 2023” at Bsides Bangalore 2023 & “Cloud Security Champion’’ at CSA Bangalore 2023. Reach out at peachycloudsecurity[dot]com
Contact: Peachycloud Security
💝 Support the Project
Your support helps us maintain and improve this workshop, create more educational content, and continue building open-source security resources for the community.
Ways to Support:
- Subscribe on YouTube - youtube.com/@peachycloudsecurity
- Follow on Instagram - instagram.com/peachycloudsecurity
- Sponsor via GitHub - GitHub Sponsors
- Explore Learning Resources - Access additional tutorials, walkthroughs, and hands-on labs at peachycloudsecurity.com
- Connect & Learn - Connect with us via Topmate
Looking for personalized guidance? Get one-on-one mentorship, interview prep, or custom training sessions through our Topmate platform.
Disclaimer
-
The information, commands, and demonstrations presented in this lab including any course, are intended strictly for educational purposes. Under no circumstances should they be used to compromise or attack any system outside the boundaries of this educational session unless explicit permission has been granted.
- This course is provided by the instructors independently and is not endorsed by their employers or any other corporate entity. The content does not necessarily reflect the views or policies of any company or professional organization associated with the instructors.
-
Usage of Training Material: The training material is provided without warranties or guarantees. Participants are responsible for applying the techniques or methods discussed during the training. The trainers and their respective employers or affiliated companies are not liable for any misuse or misapplication of the information provided.
-
Liability: The trainers, their employers, and any affiliated companies are not responsible for any direct, indirect, incidental, or consequential damages arising from the use of the information provided in this course. No responsibility is assumed for any injury or damage to persons, property, or systems as a result of using or operating any methods, products, instructions, or ideas discussed during the training.
-
Intellectual Property: This course and all accompanying materials, including slides, worksheets, and documentation, are the intellectual property of the trainers. They are shared under the GPL-3.0 license, which requires that appropriate credit be given to the trainers whenever the materials are used, modified, or redistributed.
-
References: Some of the labs referenced in this workshop are based on open-source material. Additionally, modifications and fixes have been applied using AI tools such as Amazon Q, ChatGPT, and Gemini.
-
Educational Purpose: This lab is for educational purposes only. Do not attack or test any website or network without proper authorization. The trainers are not liable or responsible for any misuse.
-
Usage Rights: Individuals are permitted to use this course for instructional purposes, provided that no fees are charged to the students.