{"course":{"productid":24091,"modality":6,"active":true,"language":"en","title":"Cloud Application Security in Python for AWS","productcode":"CASEC-PAWS","vendorcode":"CY","vendorname":"Cydrill","fullproductcode":"CY-CASEC-PAWS","courseware":{"has_ekit":false,"has_printkit":true,"language":""},"url":"https:\/\/portal.flane.ch\/course\/cydrill-casec-paws","objective":"<ul>\n<li>Getting familiar with essential cyber security concepts<\/li><li>Understand cloud security specialties<\/li><li>Understanding Web application security issues<\/li><li>Detailed analysis of the OWASP Top Ten elements<\/li><li>Putting Web application security in the context of Python<\/li><li>Going beyond the low hanging fruits<\/li><li>Managing vulnerabilities in third party components<\/li><li>Learn to deal with cloud infrastructure security<\/li><li>Identify vulnerabilities and their consequences<\/li><li>Learn the security best practices in Python<\/li><li>Input validation approaches and principles<\/li><li>Understanding how cryptography can support application security<\/li><li>Learning how to use cryptographic APIs correctly in Python<\/li><\/ul>","essentials":"<p>General Python and Web development<\/p>","audience":"<p>Python developers working on Web applications and AWS<\/p>","contents":"<ul>\n<li>Cyber security basics<\/li><li>The OWASP Top Ten<\/li><li>Cloud infrastructure security<\/li><li>API security<\/li><li>XML security<\/li><li>JSON security<\/li><li>Denial of service<\/li><li>Cryptography for developers<\/li><li>Wrap up<\/li><\/ul>","outline":"<p><strong>Day 1<\/strong><\/p>\n<p><strong>Cyber security basics<\/strong>\n<\/p>\n<ul>\n<li>What is security?<\/li><li>Threat and risk<\/li><li>Cyber security threat types<\/li><li>Consequences of insecure software<\/li><li>Cloud security basics\n<ul>\n<li>Cloud infrastructure basics<\/li><li>Cloud architectures and security<\/li><li>The Cloud Cube Model<\/li><li>Attack surface in the cloud<\/li><\/ul><\/li><li>Cloud data security\n<ul>\n<li>Data confidentiality and integrity in the cloud<\/li><li>Data privacy in the cloud<\/li><li>Compliance considerations<\/li><\/ul><\/li><li>Cloud deployment security\n<ul>\n<li>Hardening cloud deployments<\/li><li>Security of jump boxes<\/li><li>Serverless computing and security<\/li><\/ul><\/li><li>Cloud security standards and best practices\n<ul>\n<li>SOC compliance<\/li><li>CSA controls<\/li><li>Other standards<\/li><\/ul><\/li><\/ul><p><strong>The OWASP Top Ten<\/strong><\/p>\n<ul>\n<li>OWASP Top 10 &ndash; 2017<\/li><li>A1 - Injection\n<ul>\n<li>Injection principles<\/li><li>Injection attacks<\/li><li>SQL injection\n<ul>\n<li>SQL injection basics<\/li><li>Lab &ndash; SQL injection<\/li><li>Attack techniques<\/li><li>Content-based blind SQL injection<\/li><li>Time-based blind SQL injection<\/li><\/ul><\/li><li>NoSQL injection\n<ul>\n<li>NoSQL injection specialties<\/li><li>NoSQL injection in MongoDB<\/li><li>NoSQL injection in DynamoDB<\/li><\/ul><\/li><li>SQL injection best practices\n<ul>\n<li>Input validation<\/li><li>Parameterized queries<\/li><li>Lab &ndash; SQL injection best practices<\/li><li>Additional considerations<\/li><li>Case study &ndash; Hacking Fortnite accounts<\/li><li>SQL injection protection and ORM<\/li><\/ul><\/li><li>Parameter manipulation\n<ul>\n<li>CRLF injection\n<ul>\n<li>Log forging<\/li><li>Lab &ndash; Log forging<\/li><li>Log forging &ndash; best practices<\/li><li>HTTP response splitting<\/li><\/ul><\/li><\/ul><\/li><li>Code injection\n<ul>\n<li>Code injection via input()<\/li><li>OS command injection\n<ul>\n<li>Lab &ndash; Command injection<\/li><li>OS command injection best practices<\/li><li>Avoiding command injection with the right APIs<\/li><li>Lab &ndash; Command injection best practices<\/li><li>Case study &ndash; Shellshock<\/li><li>Lab - Shellshock<\/li><li>Case study &ndash; Command injection via ping<\/li><\/ul><\/li><\/ul><\/li><li>Script injection\n<ul>\n<li>Server-side template injection (SSTI)<\/li><li>Lab &ndash; Template injection<\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>Day 2\nThe OWASP Top Ten<\/strong>\n<\/p>\n<ul>\n<li>A2 - Broken Authentication\n<ul>\n<li>Authentication\n<ul>\n<li>Authentication basics<\/li><li>Multi-factor authentication<\/li><li>Multi-factor authentication best practices<\/li><li>Authentication weaknesses - spoofing<\/li><li>Spoofing on the Web<\/li><li>Case study &ndash; PayPal 2FA bypass<\/li><li>User interface best practices<\/li><li>Lab &ndash; On-line password brute forcing<\/li><\/ul><\/li><li>Single sign-on (SSO)\n<ul>\n<li>Single sign-on concept<\/li><li>OAuth2\n<ul>\n<li>OAuth2 basics<\/li><li>OAuth2 in practice<\/li><li>Best practices<\/li><li>Configuration best practices<\/li><li>Case study &ndash; Stealing SSO tokens from Epic Games accounts<\/li><\/ul><\/li><li>SAML\n<ul>\n<li>SAML basics<\/li><li>SAML profiles<\/li><li>SAML security<\/li><\/ul><\/li><\/ul><\/li><li>Password management\n<ul>\n<li>Inbound password management\n<ul>\n<li>Storing account passwords<\/li><li>Password in transit<\/li><li>Lab &ndash; Is just hashing passwords enough?<\/li><li>Dictionary attacks and brute forcing<\/li><li>Salting<\/li><li>Adaptive hash functions for password storage<\/li><li>Password policy<\/li><li>NIST authenticator requirements for memorized secrets<\/li><li>Password hardening<\/li><li>Using passphrases<\/li><li>Case study &ndash; The Ashley Madison data breach<\/li><li>The dictionary attack<\/li><li>The ultimate crack<\/li><li>Exploitation and the lessons learned<\/li><li>Password database migration<\/li><li>(Mis)handling None passwords<\/li><\/ul><\/li><li>Outbound password management\n<ul>\n<li>Hard coded passwords<\/li><li>Best practices<\/li><li>Lab &ndash; Hardcoded password<\/li><li>Protecting sensitive information in memory<\/li><li>Challenges in protecting memory<\/li><\/ul><\/li><\/ul><\/li><li>Session management\n<ul>\n<li>Session management essentials<\/li><li>Why do we protect session IDs &ndash; Session hijacking<\/li><li>Session fixation<\/li><li>Session invalidation<\/li><li>Session ID best practices<\/li><li>Session handling in Flask<\/li><li>Cross-site Request Forgery (CSRF)\n<ul>\n<li>Lab &ndash; Cross-site Request Forgery<\/li><li>CSRF best practices<\/li><li>CSRF defense in depth<\/li><li>Lab &ndash; CSRF protection with tokens<\/li><\/ul><\/li><li>Cookie security\n<ul>\n<li>Cookie security best practices<\/li><li>Cookie attributes<\/li><\/ul><\/li><\/ul><\/li><li>A3 - Sensitive Data Exposure\n<ul>\n<li>Information exposure<\/li><li>Exposure through extracted data and aggregation<\/li><li>Case study &ndash; Strava data exposure<\/li><li>System information leakage\n<ul>\n<li>Leaking system information<\/li><\/ul><\/li><li>Information exposure best practices<\/li><\/ul><\/li><li>A4 - XML External Entities (XXE)\n<ul>\n<li>DTD and the entities<\/li><li>Entity expansion<\/li><li>Lab &ndash; Billion laughs attack<\/li><li>External Entity Attack (XXE)\n<ul>\n<li>File inclusion with external entities<\/li><li>Server-Side Request Forgery with external entities<\/li><li>Lab &ndash; External entity attack<\/li><li>Case study &ndash; XXE vulnerability in SAP Store<\/li><li>Preventing XXE<\/li><li>Lab &ndash; Using non-vulnerable parsers<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>Day 3<\/strong><\/p>\n<p><strong>The OWASP Top Ten<\/strong>\n<\/p>\n<ul>\n<li>A5 - Broken Access Control\n<ul>\n<li>Access control basics<\/li><li>Failure to restrict URL access<\/li><li>Confused deputy\n<ul>\n<li>Insecure direct object reference (IDOR)<\/li><li>Lab &ndash; Insecure Direct Object Reference<\/li><li>Case study &ndash; Authorization bypass on Facebook<\/li><li>Authorization bypass through user-controlled keys<\/li><li>Lab &ndash; Horizontal authorization<\/li><\/ul><\/li><li>File upload\n<ul>\n<li>Unrestricted file upload<\/li><li>Good practices<\/li><li>Lab &ndash; Unrestricted file upload<\/li><\/ul><\/li><\/ul><\/li><li>A7 - Cross-site Scripting (XSS)\n<ul>\n<li>Cross-site scripting basics<\/li><li>Cross-site scripting types\n<ul>\n<li>Persistent cross-site scripting<\/li><li>Reflected cross-site scripting<\/li><li>Client-side (DOM-based) cross-site scripting<\/li><li>Lab &ndash; Stored XSS<\/li><li>Lab &ndash; Reflected XSS<\/li><li>Case study &ndash; XSS in Fortnite accounts<\/li><\/ul><\/li><li>XSS protection best practices\n<ul>\n<li>Protection principles - escaping<\/li><li>XSS protection APIs in Python<\/li><li>XSS protection in Jinja2<\/li><li>Lab &ndash; XSS fix \/ stored<\/li><li>Lab &ndash; XSS fix \/ reflected<\/li><li>Additional protection layers<\/li><li>Client-side protection principles<\/li><\/ul><\/li><\/ul><\/li><li>A8 - Insecure Deserialization\n<ul>\n<li>Serialization and deserialization challenges<\/li><li>Integrity &ndash; deserializing untrusted streams<\/li><li>Deserialization with pickle<\/li><li>Lab &ndash; Deserializing with Pickle<\/li><li>PyYAML deserialization challenges<\/li><li>Integrity &ndash; deserialization best practices<\/li><\/ul><\/li><li>A9 - Using Components with Known Vulnerabilities\n<ul>\n<li>Using vulnerable components<\/li><li>Assessing the environment<\/li><li>Hardening<\/li><li>Untrusted functionality import<\/li><li>Malicious packages in Python<\/li><li>Importing JavaScript<\/li><li>Lab &ndash; Importing JavaScript<\/li><li>Case study &ndash; The British Airways data breach<\/li><li>Vulnerability management\n<ul>\n<li>Patch management<\/li><li>Vulnerability management<\/li><li>Bug bounty programs<\/li><li>Vulnerability databases<\/li><li>Vulnerability rating &ndash; CVSS<\/li><li>DevOps, the build process and CI \/ CD<\/li><li>Dependency checking in Python<\/li><li>Lab &ndash; Detecting vulnerable components<\/li><\/ul><\/li><\/ul><\/li><li>A10 - Insufficient Logging &amp; Monitoring\n<ul>\n<li>Logging and monitoring principles<\/li><li>Insufficient logging<\/li><li>Case study &ndash; Plaintext passwords at Facebook<\/li><li>Logging best practices<\/li><li>Monitoring best practices<\/li><\/ul><\/li><li>Web application security beyond the Top Ten\n<ul>\n<li>Client-side security<\/li><li>Same Origin Policy\n<ul>\n<li>Lab &ndash; Same-origin policy demo<\/li><\/ul><\/li><li>Tabnabbing<\/li><li>Frame sandboxing\n<ul>\n<li>Cross-Frame Scripting (XFS) attack<\/li><li>Lab - Clickjacking<\/li><li>Clickjacking beyond hijacking a click<\/li><li>Clickjacking protection best practices<\/li><li>Lab &ndash; Using CSP to prevent clickjacking<\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>Day 4<\/strong><\/p>\n<p><strong>Cloud infrastructure security<\/strong>\n<\/p>\n<ul>\n<li>Container security\n<ul>\n<li>Container security concerns<\/li><li>Containerization, virtualization, and security<\/li><li>Attack surface of container technologies<\/li><li>Container security tools<\/li><\/ul><\/li><li>Docker security\n<ul>\n<li>Docker and security<\/li><li>Docker security features<\/li><li>Common Docker security mistakes<\/li><li>Docker security best practices<\/li><li>Hardening Docker<\/li><li>Lab &ndash; Static analysis of Docker image<\/li><\/ul><\/li><li>Kubernetes security\n<ul>\n<li>The Kubernetes architecture and security<\/li><li>Common Kubernetes security mistakes<\/li><li>Securing Kubernetes hosts<\/li><li>Best practices for Kubernetes access control<\/li><li>Building secure Kubernetes images<\/li><li>Secure deployment of Kubernetes containers<\/li><li>Protecting Kubernetes deployments at runtime<\/li><li>Lab &ndash; Scanning a Kubernetes image for vulnerabilities<\/li><\/ul><\/li><li>AWS security\n<ul>\n<li>Security considerations\n<ul>\n<li>AWS and security<\/li><li>AWS security features<\/li><li>The AWS shared responsibility model<\/li><li>AWS cloud compliance<\/li><li>AWS hardening<\/li><li>Security tools for AWS<\/li><\/ul><\/li><li>Identity and access management (IAM)\n<ul>\n<li>Identity and access management in AWS<\/li><li>Access tokens<\/li><li>Groups, roles and credentials<\/li><\/ul><\/li><li>Data security\n<ul>\n<li>Data security in AWS<\/li><li>Policies<\/li><li>Storing cryptographic keys<\/li><li>Protecting data at rest<\/li><li>Protecting data in transit<\/li><\/ul><\/li><li>Detection and monitoring\n<ul>\n<li>Utilizing AWS monitoring for security<\/li><li>Protecting logs<\/li><li>The AWS Security Hub<\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>API security<\/strong>\n<\/p>\n<ul>\n<li>Input validation\n<ul>\n<li>Input validation principles\n<ul>\n<li>Blacklists and whitelists<\/li><li>Data validation techniques<\/li><li>Lab &ndash; Input validation<\/li><li>What to validate &ndash; the attack surface<\/li><li>Where to validate &ndash; defense in depth<\/li><li>When to validate &ndash; validation vs transformations<\/li><li>Output sanitization<\/li><li>Encoding challenges<\/li><li>Unicode challenges<\/li><li>Lab &ndash; Encoding challenges<\/li><li>Validation with regex<\/li><\/ul><\/li><li>Integer handling problems\n<ul>\n<li>Representing signed numbers<\/li><li>Integer visualization<\/li><li>Integers in Python<\/li><li>Integer overflow<\/li><li>Integer overflows in ctypes and numpy<\/li><\/ul><\/li><li>Value manipulation\n<ul>\n<li>Setting manipulation<\/li><li>Manipulating critical state data<\/li><li>Resource manipulation<\/li><\/ul><\/li><li>Open redirects and forwards\n<ul>\n<li>Case study &ndash; Unvalidated redirect at Epic Games<\/li><li>Open redirects and forwards &ndash; best practices<\/li><\/ul><\/li><li>Files and streams\n<ul>\n<li>Path traversal<\/li><li>Path traversal-related examples<\/li><li>Additional challenges in Windows<\/li><li>Virtual resources<\/li><li>Path traversal best practices<\/li><\/ul><\/li><li>Format string issues<\/li><\/ul><\/li><\/ul><p><strong>XML security<\/strong>\n<\/p>\n<ul>\n<li>XML validation<\/li><li>XML injection\n<ul>\n<li>XPath injection<\/li><li>Blind XPath injection<\/li><\/ul><\/li><\/ul><p><strong>JSON security<\/strong>\n<\/p>\n<ul>\n<li>JSON validation<\/li><li>JSON injection<\/li><li>Dangers of JSONP<\/li><li>JSON\/JavaScript hijacking<\/li><li>Best practices<\/li><li>Case study &ndash; ReactJS vulnerability in HackerOne<\/li><\/ul><p><strong>Day 5<\/strong><\/p>\n<p><strong>Denial of service<\/strong>\n<\/p>\n<ul>\n<li>Denial of Service<\/li><li>Flooding<\/li><li>Resource exhaustion<\/li><li>Sustained client engagement<\/li><li>Infinite loop<\/li><li>Economic Denial of Sustainability (EDoS)<\/li><li>Algorithm complexity issues\n<ul>\n<li>Regular expression denial of service (ReDoS)\n<ul>\n<li>Lab &ndash; ReDoS in Python<\/li><li>Dealing with ReDoS<\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>Cryptography for developers<\/strong>\n<\/p>\n<ul>\n<li>Cryptography basics<\/li><li>Cryptography in Python<\/li><li>Elementary algorithms\n<ul>\n<li>Random number generation\n<ul>\n<li>Pseudo random number generators (PRNGs)<\/li><li>Cryptographically strong PRNGs<\/li><li>Using virtual random streams<\/li><li>Weak and strong PRNGs<\/li><li>Using random numbers in Python<\/li><li>Lab &ndash; Using random numbers in Python<\/li><li>Case study &ndash; Equifax credit account freeze<\/li><\/ul><\/li><li>Hashing\n<ul>\n<li>Hashing basics<\/li><li>Common hashing mistakes<\/li><li>Hashing in Python<\/li><li>Lab &ndash; Hashing in Python<\/li><\/ul><\/li><\/ul><\/li><li>Confidentiality protection\n<ul>\n<li>Symmetric encryption\n<ul>\n<li>Block ciphers<\/li><li>Modes of operation<\/li><li>Modes of operation and IV &ndash; best practices<\/li><li>Symmetric encryption in Python<\/li><li>Lab &ndash; Symmetric encryption in in Python<\/li><\/ul><\/li><li>Asymmetric encryption<\/li><li>Combining symmetric and asymmetric algorithms<\/li><\/ul><\/li><li>Integrity protection\n<ul>\n<li>Message Authentication Code (MAC)\n<ul>\n<li>MAC in Python<\/li><li>Lab &ndash; Calculating MAC in Python<\/li><\/ul><\/li><li>Digital signature\n<ul>\n<li>Digital signature in Python<\/li><li>Lab &ndash; Digital signature with ECDSA in Python<\/li><\/ul><\/li><\/ul><\/li><li>Public Key Infrastructure (PKI)\n<ul>\n<li>Some further key management challenges<\/li><li>Certificates\n<ul>\n<li>Chain of trust<\/li><li>Certificate management &ndash; best practices<\/li><\/ul><\/li><\/ul><\/li><li>Transport security\n<ul>\n<li>Transport security weaknesses<\/li><li>The TLS protocol\n<ul>\n<li>TLS basics<\/li><li>TLS features (changes in v1.3)<\/li><li>The handshake in a nutshell (v1.3)<\/li><li>TLS best practices<\/li><li>TLS authentication best practices<\/li><li>Lab &ndash; Using a secure socket in Python<\/li><li>HTTP Strict Transport Security (HSTS)<\/li><li>Lab &ndash; Setting HSTS in Python<\/li><\/ul><\/li><\/ul><\/li><\/ul><p><strong>Wrap up<\/strong>\n<\/p>\n<ul>\n<li>Secure coding principles\n<ul>\n<li>Principles of robust programming by Matt Bishop<\/li><li>Secure design principles of Saltzer and Schr&ouml;der<\/li><\/ul><\/li><li>And now what?\n<ul>\n<li>Software security sources and further reading<\/li><li>Python resources<\/li><\/ul><\/li><\/ul>","summary":"<p>Your cloud application written in Python works as intended, so you are done, right? But did you consider feeding in incorrect values? 16Gbs of data? A null? An apostrophe? Negative numbers, or specifically -1 or -231? Because that&#039;s what the bad guys will do &ndash; and the list is far from complete.<\/p>\n<p>The cloud has become a critical aspect of online services. No matter which model you&#039;re using (SaaS, PaaS, IaaS), part of your service is now operated by someone else. This may look like a net positive, but it also greatly expands the attack surface and brings in several new risks that may not be obvious. Have you configured all security settings correctly? Are you prepared for supply chain attacks? How can you protect the confidentiality of user data in the cloud? And most importantly: can the bad guys use your exposure to their advantage?<\/p>\n<p>Handling security needs a healthy level of paranoia, and this is what this course provides: a strong emotional engagement by lots of hands-on labs and stories from real life, all to substantially improve code hygiene. Mistakes, consequences, and best practices are our blood, sweat and tears.<\/p>\n<p>The curriculum goes through the common Web application security issues following the OWASP Top Ten but goes far beyond it both in coverage and the details.<\/p>\n<p>All this is put in the context of Python, and extended by core programming issues, discussing security pitfalls of the programming language and the AWS cloud platform.<\/p>\n<p>So that you are prepared for the forces of the dark side.<\/p>\n<p>So that nothing unexpected happens.<\/p>\n<p>Nothing.<\/p>","objective_plain":"- Getting familiar with essential cyber security concepts\n- Understand cloud security specialties\n- Understanding Web application security issues\n- Detailed analysis of the OWASP Top Ten elements\n- Putting Web application security in the context of Python\n- Going beyond the low hanging fruits\n- Managing vulnerabilities in third party components\n- Learn to deal with cloud infrastructure security\n- Identify vulnerabilities and their consequences\n- Learn the security best practices in Python\n- Input validation approaches and principles\n- Understanding how cryptography can support application security\n- Learning how to use cryptographic APIs correctly in Python","essentials_plain":"General Python and Web development","audience_plain":"Python developers working on Web applications and AWS","contents_plain":"- Cyber security basics\n- The OWASP Top Ten\n- Cloud infrastructure security\n- API security\n- XML security\n- JSON security\n- Denial of service\n- Cryptography for developers\n- Wrap up","outline_plain":"Day 1\n\nCyber security basics\n\n\n\n- What is security?\n- Threat and risk\n- Cyber security threat types\n- Consequences of insecure software\n- Cloud security basics\n\n- Cloud infrastructure basics\n- Cloud architectures and security\n- The Cloud Cube Model\n- Attack surface in the cloud\n- Cloud data security\n\n- Data confidentiality and integrity in the cloud\n- Data privacy in the cloud\n- Compliance considerations\n- Cloud deployment security\n\n- Hardening cloud deployments\n- Security of jump boxes\n- Serverless computing and security\n- Cloud security standards and best practices\n\n- SOC compliance\n- CSA controls\n- Other standards\nThe OWASP Top Ten\n\n\n- OWASP Top 10 \u2013 2017\n- A1 - Injection\n\n- Injection principles\n- Injection attacks\n- SQL injection\n\n- SQL injection basics\n- Lab \u2013 SQL injection\n- Attack techniques\n- Content-based blind SQL injection\n- Time-based blind SQL injection\n- NoSQL injection\n\n- NoSQL injection specialties\n- NoSQL injection in MongoDB\n- NoSQL injection in DynamoDB\n- SQL injection best practices\n\n- Input validation\n- Parameterized queries\n- Lab \u2013 SQL injection best practices\n- Additional considerations\n- Case study \u2013 Hacking Fortnite accounts\n- SQL injection protection and ORM\n- Parameter manipulation\n\n- CRLF injection\n\n- Log forging\n- Lab \u2013 Log forging\n- Log forging \u2013 best practices\n- HTTP response splitting\n- Code injection\n\n- Code injection via input()\n- OS command injection\n\n- Lab \u2013 Command injection\n- OS command injection best practices\n- Avoiding command injection with the right APIs\n- Lab \u2013 Command injection best practices\n- Case study \u2013 Shellshock\n- Lab - Shellshock\n- Case study \u2013 Command injection via ping\n- Script injection\n\n- Server-side template injection (SSTI)\n- Lab \u2013 Template injection\nDay 2\nThe OWASP Top Ten\n\n\n\n- A2 - Broken Authentication\n\n- Authentication\n\n- Authentication basics\n- Multi-factor authentication\n- Multi-factor authentication best practices\n- Authentication weaknesses - spoofing\n- Spoofing on the Web\n- Case study \u2013 PayPal 2FA bypass\n- User interface best practices\n- Lab \u2013 On-line password brute forcing\n- Single sign-on (SSO)\n\n- Single sign-on concept\n- OAuth2\n\n- OAuth2 basics\n- OAuth2 in practice\n- Best practices\n- Configuration best practices\n- Case study \u2013 Stealing SSO tokens from Epic Games accounts\n- SAML\n\n- SAML basics\n- SAML profiles\n- SAML security\n- Password management\n\n- Inbound password management\n\n- Storing account passwords\n- Password in transit\n- Lab \u2013 Is just hashing passwords enough?\n- Dictionary attacks and brute forcing\n- Salting\n- Adaptive hash functions for password storage\n- Password policy\n- NIST authenticator requirements for memorized secrets\n- Password hardening\n- Using passphrases\n- Case study \u2013 The Ashley Madison data breach\n- The dictionary attack\n- The ultimate crack\n- Exploitation and the lessons learned\n- Password database migration\n- (Mis)handling None passwords\n- Outbound password management\n\n- Hard coded passwords\n- Best practices\n- Lab \u2013 Hardcoded password\n- Protecting sensitive information in memory\n- Challenges in protecting memory\n- Session management\n\n- Session management essentials\n- Why do we protect session IDs \u2013 Session hijacking\n- Session fixation\n- Session invalidation\n- Session ID best practices\n- Session handling in Flask\n- Cross-site Request Forgery (CSRF)\n\n- Lab \u2013 Cross-site Request Forgery\n- CSRF best practices\n- CSRF defense in depth\n- Lab \u2013 CSRF protection with tokens\n- Cookie security\n\n- Cookie security best practices\n- Cookie attributes\n- A3 - Sensitive Data Exposure\n\n- Information exposure\n- Exposure through extracted data and aggregation\n- Case study \u2013 Strava data exposure\n- System information leakage\n\n- Leaking system information\n- Information exposure best practices\n- A4 - XML External Entities (XXE)\n\n- DTD and the entities\n- Entity expansion\n- Lab \u2013 Billion laughs attack\n- External Entity Attack (XXE)\n\n- File inclusion with external entities\n- Server-Side Request Forgery with external entities\n- Lab \u2013 External entity attack\n- Case study \u2013 XXE vulnerability in SAP Store\n- Preventing XXE\n- Lab \u2013 Using non-vulnerable parsers\nDay 3\n\nThe OWASP Top Ten\n\n\n\n- A5 - Broken Access Control\n\n- Access control basics\n- Failure to restrict URL access\n- Confused deputy\n\n- Insecure direct object reference (IDOR)\n- Lab \u2013 Insecure Direct Object Reference\n- Case study \u2013 Authorization bypass on Facebook\n- Authorization bypass through user-controlled keys\n- Lab \u2013 Horizontal authorization\n- File upload\n\n- Unrestricted file upload\n- Good practices\n- Lab \u2013 Unrestricted file upload\n- A7 - Cross-site Scripting (XSS)\n\n- Cross-site scripting basics\n- Cross-site scripting types\n\n- Persistent cross-site scripting\n- Reflected cross-site scripting\n- Client-side (DOM-based) cross-site scripting\n- Lab \u2013 Stored XSS\n- Lab \u2013 Reflected XSS\n- Case study \u2013 XSS in Fortnite accounts\n- XSS protection best practices\n\n- Protection principles - escaping\n- XSS protection APIs in Python\n- XSS protection in Jinja2\n- Lab \u2013 XSS fix \/ stored\n- Lab \u2013 XSS fix \/ reflected\n- Additional protection layers\n- Client-side protection principles\n- A8 - Insecure Deserialization\n\n- Serialization and deserialization challenges\n- Integrity \u2013 deserializing untrusted streams\n- Deserialization with pickle\n- Lab \u2013 Deserializing with Pickle\n- PyYAML deserialization challenges\n- Integrity \u2013 deserialization best practices\n- A9 - Using Components with Known Vulnerabilities\n\n- Using vulnerable components\n- Assessing the environment\n- Hardening\n- Untrusted functionality import\n- Malicious packages in Python\n- Importing JavaScript\n- Lab \u2013 Importing JavaScript\n- Case study \u2013 The British Airways data breach\n- Vulnerability management\n\n- Patch management\n- Vulnerability management\n- Bug bounty programs\n- Vulnerability databases\n- Vulnerability rating \u2013 CVSS\n- DevOps, the build process and CI \/ CD\n- Dependency checking in Python\n- Lab \u2013 Detecting vulnerable components\n- A10 - Insufficient Logging & Monitoring\n\n- Logging and monitoring principles\n- Insufficient logging\n- Case study \u2013 Plaintext passwords at Facebook\n- Logging best practices\n- Monitoring best practices\n- Web application security beyond the Top Ten\n\n- Client-side security\n- Same Origin Policy\n\n- Lab \u2013 Same-origin policy demo\n- Tabnabbing\n- Frame sandboxing\n\n- Cross-Frame Scripting (XFS) attack\n- Lab - Clickjacking\n- Clickjacking beyond hijacking a click\n- Clickjacking protection best practices\n- Lab \u2013 Using CSP to prevent clickjacking\nDay 4\n\nCloud infrastructure security\n\n\n\n- Container security\n\n- Container security concerns\n- Containerization, virtualization, and security\n- Attack surface of container technologies\n- Container security tools\n- Docker security\n\n- Docker and security\n- Docker security features\n- Common Docker security mistakes\n- Docker security best practices\n- Hardening Docker\n- Lab \u2013 Static analysis of Docker image\n- Kubernetes security\n\n- The Kubernetes architecture and security\n- Common Kubernetes security mistakes\n- Securing Kubernetes hosts\n- Best practices for Kubernetes access control\n- Building secure Kubernetes images\n- Secure deployment of Kubernetes containers\n- Protecting Kubernetes deployments at runtime\n- Lab \u2013 Scanning a Kubernetes image for vulnerabilities\n- AWS security\n\n- Security considerations\n\n- AWS and security\n- AWS security features\n- The AWS shared responsibility model\n- AWS cloud compliance\n- AWS hardening\n- Security tools for AWS\n- Identity and access management (IAM)\n\n- Identity and access management in AWS\n- Access tokens\n- Groups, roles and credentials\n- Data security\n\n- Data security in AWS\n- Policies\n- Storing cryptographic keys\n- Protecting data at rest\n- Protecting data in transit\n- Detection and monitoring\n\n- Utilizing AWS monitoring for security\n- Protecting logs\n- The AWS Security Hub\nAPI security\n\n\n\n- Input validation\n\n- Input validation principles\n\n- Blacklists and whitelists\n- Data validation techniques\n- Lab \u2013 Input validation\n- What to validate \u2013 the attack surface\n- Where to validate \u2013 defense in depth\n- When to validate \u2013 validation vs transformations\n- Output sanitization\n- Encoding challenges\n- Unicode challenges\n- Lab \u2013 Encoding challenges\n- Validation with regex\n- Integer handling problems\n\n- Representing signed numbers\n- Integer visualization\n- Integers in Python\n- Integer overflow\n- Integer overflows in ctypes and numpy\n- Value manipulation\n\n- Setting manipulation\n- Manipulating critical state data\n- Resource manipulation\n- Open redirects and forwards\n\n- Case study \u2013 Unvalidated redirect at Epic Games\n- Open redirects and forwards \u2013 best practices\n- Files and streams\n\n- Path traversal\n- Path traversal-related examples\n- Additional challenges in Windows\n- Virtual resources\n- Path traversal best practices\n- Format string issues\nXML security\n\n\n\n- XML validation\n- XML injection\n\n- XPath injection\n- Blind XPath injection\nJSON security\n\n\n\n- JSON validation\n- JSON injection\n- Dangers of JSONP\n- JSON\/JavaScript hijacking\n- Best practices\n- Case study \u2013 ReactJS vulnerability in HackerOne\nDay 5\n\nDenial of service\n\n\n\n- Denial of Service\n- Flooding\n- Resource exhaustion\n- Sustained client engagement\n- Infinite loop\n- Economic Denial of Sustainability (EDoS)\n- Algorithm complexity issues\n\n- Regular expression denial of service (ReDoS)\n\n- Lab \u2013 ReDoS in Python\n- Dealing with ReDoS\nCryptography for developers\n\n\n\n- Cryptography basics\n- Cryptography in Python\n- Elementary algorithms\n\n- Random number generation\n\n- Pseudo random number generators (PRNGs)\n- Cryptographically strong PRNGs\n- Using virtual random streams\n- Weak and strong PRNGs\n- Using random numbers in Python\n- Lab \u2013 Using random numbers in Python\n- Case study \u2013 Equifax credit account freeze\n- Hashing\n\n- Hashing basics\n- Common hashing mistakes\n- Hashing in Python\n- Lab \u2013 Hashing in Python\n- Confidentiality protection\n\n- Symmetric encryption\n\n- Block ciphers\n- Modes of operation\n- Modes of operation and IV \u2013 best practices\n- Symmetric encryption in Python\n- Lab \u2013 Symmetric encryption in in Python\n- Asymmetric encryption\n- Combining symmetric and asymmetric algorithms\n- Integrity protection\n\n- Message Authentication Code (MAC)\n\n- MAC in Python\n- Lab \u2013 Calculating MAC in Python\n- Digital signature\n\n- Digital signature in Python\n- Lab \u2013 Digital signature with ECDSA in Python\n- Public Key Infrastructure (PKI)\n\n- Some further key management challenges\n- Certificates\n\n- Chain of trust\n- Certificate management \u2013 best practices\n- Transport security\n\n- Transport security weaknesses\n- The TLS protocol\n\n- TLS basics\n- TLS features (changes in v1.3)\n- The handshake in a nutshell (v1.3)\n- TLS best practices\n- TLS authentication best practices\n- Lab \u2013 Using a secure socket in Python\n- HTTP Strict Transport Security (HSTS)\n- Lab \u2013 Setting HSTS in Python\nWrap up\n\n\n\n- Secure coding principles\n\n- Principles of robust programming by Matt Bishop\n- Secure design principles of Saltzer and Schr\u00f6der\n- And now what?\n\n- Software security sources and further reading\n- Python resources","summary_plain":"Your cloud application written in Python works as intended, so you are done, right? But did you consider feeding in incorrect values? 16Gbs of data? A null? An apostrophe? Negative numbers, or specifically -1 or -231? Because that's what the bad guys will do \u2013 and the list is far from complete.\n\nThe cloud has become a critical aspect of online services. No matter which model you're using (SaaS, PaaS, IaaS), part of your service is now operated by someone else. This may look like a net positive, but it also greatly expands the attack surface and brings in several new risks that may not be obvious. Have you configured all security settings correctly? Are you prepared for supply chain attacks? How can you protect the confidentiality of user data in the cloud? And most importantly: can the bad guys use your exposure to their advantage?\n\nHandling security needs a healthy level of paranoia, and this is what this course provides: a strong emotional engagement by lots of hands-on labs and stories from real life, all to substantially improve code hygiene. Mistakes, consequences, and best practices are our blood, sweat and tears.\n\nThe curriculum goes through the common Web application security issues following the OWASP Top Ten but goes far beyond it both in coverage and the details.\n\nAll this is put in the context of Python, and extended by core programming issues, discussing security pitfalls of the programming language and the AWS cloud platform.\n\nSo that you are prepared for the forces of the dark side.\n\nSo that nothing unexpected happens.\n\nNothing.","skill_level":"Intermediate","version":"1.0","duration":{"unit":"d","value":5,"formatted":"5 days"},"pricelist":{"List Price":{"GB":{"country":"GB","currency":"EUR","taxrate":20,"price":3750},"SI":{"country":"SI","currency":"EUR","taxrate":20,"price":3750},"DE":{"country":"DE","currency":"EUR","taxrate":19,"price":3750},"IT":{"country":"IT","currency":"EUR","taxrate":20,"price":3750},"NL":{"country":"NL","currency":"EUR","taxrate":21,"price":3750},"BE":{"country":"BE","currency":"EUR","taxrate":21,"price":3750},"FR":{"country":"FR","currency":"EUR","taxrate":19.6,"price":3750},"AT":{"country":"AT","currency":"EUR","taxrate":20,"price":3750},"MK":{"country":"MK","currency":"EUR","taxrate":null,"price":3750},"GR":{"country":"GR","currency":"EUR","taxrate":null,"price":3750},"HU":{"country":"HU","currency":"EUR","taxrate":20,"price":3750}}},"lastchanged":"2026-01-12T11:33:39+01:00","parenturl":"https:\/\/portal.flane.ch\/swisscom\/en\/json-courses","nexturl_course_schedule":"https:\/\/portal.flane.ch\/swisscom\/en\/json-course-schedule\/24091","source_lang":"en","source":"https:\/\/portal.flane.ch\/swisscom\/en\/json-course\/cydrill-casec-paws"}}