{"course":{"productid":36419,"modality":1,"active":true,"language":"en","title":"Code responsibly with generative AI in Python","productcode":"CRWGAIP","vendorcode":"CY","vendorname":"Cydrill","fullproductcode":"CY-CRWGAIP","courseware":{"has_ekit":false,"has_printkit":true,"language":""},"url":"https:\/\/portal.flane.ch\/course\/cydrill-crwgaip","objective":"<ul>\n<li>Understanding the essentials of responsible AI<\/li><li>Getting familiar with essential cyber security concepts<\/li><li>Understanding how cryptography supports security<\/li><li>Learning how to use cryptographic APIs correctly in Python<\/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>All this put into the context of GitHub Copilot<\/li><\/ul>","essentials":"<p>General Python and Web development<\/p>","audience":"<p>Python developers using Copilot or other GenAI tools<\/p>","contents":"<h4>Day 1<\/h4><h4>Coding responsibly with GenAI<\/h4><ul>\n<li>What is responsible AI?<\/li><li>What is security?<\/li><li>Threat and risk<\/li><li>Cyber security threat types &ndash; the CIA triad<\/li><li>Consequences of insecure software<\/li><li>Security and responsible AI in software development<\/li><li>GenAI tools in coding: Copilot, Codeium and others<\/li><li>The OWASP Top Ten from Copilot&rsquo;s perspective\n<ul>\n<li>The OWASP Top Ten 2021\n<ul>\n<li>A01 &ndash; Broken Access Control\n<ul>\n<li>Access control basics<\/li><li>Failure to restrict URL access<\/li><li>Confused deputy<\/li><li>Insecure direct object reference (IDOR)<\/li><li>Path traversal<\/li><li>Lab &ndash; Insecure Direct Object Reference<\/li><li>Path traversal best practices<\/li><li>Lab &ndash; Experimenting with path traversal in Copilot<\/li><li>Authorization bypass through user-controlled keys<\/li><li>Case study &ndash; Remote takeover of Nexx garage doors and alarms<\/li><li>Lab &ndash; Horizontal authorization (exploring with Copilot)<\/li><li>File upload\n<ul>\n<li>Unrestricted file upload<\/li><li>Good practices<\/li><li>Lab &ndash; Unrestricted file upload (exploring with Copilot)<\/li><\/ul><\/li><\/ul><\/li><li>A02 &ndash; Cryptographic Failures\n<ul>\n<li>Cryptography for developers<\/li><li>Cryptography basics<\/li><li>Cryptography in Python<\/li><li>Elementary algorithms<\/li><li>Hashing\n<ul>\n<li>Hashing basics<\/li><li>Hashing in Python<\/li><li>Lab &ndash; Hashing in Python (exploring with Copilot)<\/li><\/ul><\/li><li>Random number generation\n<ul>\n<li>Pseudo random number generators (PRNGs)<\/li><li>Cryptographically secure PRNGs<\/li><li>Weak PRNGs<\/li><li>Using random numbers<\/li><li>Lab &ndash; Using random numbers in Python (exploring with Copilot)<\/li><li>Lab &ndash; Secure PRNG use in Copilot<\/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 Python (exploring with Copilot)<\/li><\/ul><\/li><li>Asymmetric encryption<\/li><li>Combining symmetric and asymmetric algorithms<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><h4>Day 2<\/h4><h4>The OWASP Top Ten from Copilot&rsquo;s perspective<\/h4><ul>\n<li>A03 &ndash; Injection\n<ul>\n<li>Injection principles<\/li><li>Injection attacks\n<ul>\n<li>SQL injection\n<ul>\n<li>SQL injection basics<\/li><li>Lab &ndash; SQL injection<\/li><li>Attack techniques\n<ul>\n<li>Content-based blind SQL injection<\/li><li>Time-based blind SQL injection<\/li><\/ul><\/li><li>SQL injection best practices<\/li><li>Input validation<\/li><li>Parameterized queries<\/li><li>Lab &ndash; Using prepared statements<\/li><li>Lab &ndash; Experimenting with SQL injection in Copilot<\/li><li>Database defense in depth<\/li><li>Case study &ndash; SQL injection against US airport security<\/li><\/ul><\/li><li>Code injection\n<ul>\n<li>Code injection via input()<\/li><li>OS command injection<\/li><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>Lab &ndash; Experimenting with command injection in Copilot<\/li><li>Case study &ndash; Shellshock<\/li><li>Lab &ndash; Shellshock<\/li><li>Case study &ndash; Command injection in Ivanti security appliances<\/li><\/ul><\/li><li>HTML injection &ndash; 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><\/ul><\/li><li>Lab &ndash; Stored XSS<\/li><li>Lab &ndash; Reflected XSS<\/li><li>Case study &ndash; XSS to RCE in Teltonika routers<\/li><li>XSS protection best practices<\/li><li>Protection principles &ndash; escaping<\/li><li>XSS protection APIs in Python<\/li><li>XSS protection in Jinja2<\/li><li>Lab &ndash; XSS fix \/ stored (exploring with Copilot)<\/li><li>Lab &ndash; XSS fix \/ reflected (exploring with Copilot)<\/li><li>Case study &ndash; XSS vulnerabilities in DrayTek Vigor routers<\/li><\/ul><\/li><\/ul><\/li><li>A04 &ndash; Insecure Design\n<ul>\n<li>The STRIDE model of threats<\/li><li>Secure design principles of Saltzer and Schroeder\n<ul>\n<li>Economy of mechanism<\/li><li>Fail-safe defaults<\/li><li>Complete mediation<\/li><li>Open design<\/li><li>Separation of privilege<\/li><li>Least privilege<\/li><li>Least common mechanism<\/li><li>Psychological acceptability<\/li><\/ul><\/li><li>Client-side security\n<ul>\n<li>Same Origin Policy<\/li><li>Simple request<\/li><li>Preflight request<\/li><li>Cross-Origin Resource Sharing (CORS)<\/li><li>Lab &ndash; Same-origin policy demo<\/li><li>Frame sandboxing<\/li><li>Cross-Frame Scripting (XFS) attacks<\/li><li>Lab &ndash; Clickjacking<\/li><li>Clickjacking beyond hijacking a click<\/li><li>Clickjacking protection best practices<\/li><li>Lab &ndash; Using CSP to prevent clickjacking (exploring with Copilot)<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n<h4>Day 3<\/h4>\n\n<h4>The OWASP Top Ten from Copilot&rsquo;s perspective<\/h4>\n\n<ul>\n<li>A05 &ndash; Security Misconfiguration\n<ul>\n<li>Configuration principles<\/li><li>Server misconfiguration<\/li><li>Python configuration best practices<\/li><li>Configuring Flask<\/li><li>Cookie security\n<ul>\n<li>Cookie attributes<\/li><\/ul><\/li><li>XML entities\n<ul>\n<li>DTD and the entities<\/li><li>Entity expansion<\/li><li>External Entity Attack (XXE)<\/li><li>File inclusion with external entities<\/li><li>Server-Side Request Forgery with external entities<\/li><li>Lab &ndash; External entity attack<\/li><li>Preventing XXE<\/li><li>Lab &ndash; Prohibiting DTD<\/li><li>Case study &ndash; XXE vulnerability in Ivanti products<\/li><li>Lab &ndash; Experimenting with XXE in Copilot<\/li><\/ul><\/li><\/ul><\/li><li>A06 &ndash; Vulnerable and Outdated Components\n<ul>\n<li>Using vulnerable components<\/li><li>Untrusted functionality import<\/li><li>Malicious packages in Python<\/li><li>Case study &ndash; The Polyfill.io supply chain attack<\/li><li>Vulnerability management<\/li><li>Lab &ndash; Finding vulnerabilities in third-party components<\/li><li>Security of AI generated code<\/li><li>Practical attacks against code generation tools<\/li><li>Dependency hallucination via generative AI<\/li><li>Case study &ndash; A history of GitHub Copilot weaknesses (up to mid 2024)<\/li><\/ul><\/li><li>A07 &ndash; Identification and Authentication Failures\n<ul>\n<li>Authentication\n<ul>\n<li>Authentication basics<\/li><li>Multi-factor authentication (MFA)<\/li><li>Case study &ndash; The InfinityGauntlet attack<\/li><li>Time-based One Time Passwords (TOTP)<\/li><\/ul><\/li><li>Password management\n<ul>\n<li>Inbound password management<\/li><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>Lab &ndash; Using adaptive hash functions in Python<\/li><li>Lab &ndash; Using adaptive hash functions in Copilot<\/li><li>Password policy<\/li><li>NIST authenticator requirements for memorized secrets<\/li><li>Password database migration<\/li><\/ul><\/li><\/ul><\/li><li>A08 &ndash; Software and Data Integrity Failures\n<ul>\n<li>Integrity protection\n<ul>\n<li>Message Authentication Code (MAC)<\/li><li>Calculating HMAC 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><\/ul><\/li><li>Subresource integrity\n<ul>\n<li>Importing JavaScript<\/li><li>Lab &ndash; Importing JavaScript (exploring with Copilot)<\/li><li>Case study &ndash; The British Airways data breach<\/li><\/ul><\/li><\/ul><\/li><li>A10 &ndash; Server-side Request Forgery (SSRF)\n<ul>\n<li>Server-side Request Forgery (SSRF)<\/li><li>Case study &ndash; SSRF in Ivanti Connect Secure<\/li><\/ul><\/li><li>Wrap up\n<ul>\n<li>Secure coding principles<\/li><li>Principles of robust programming by Matt Bishop<\/li><li>And now what?<\/li><li>Software security sources and further reading<\/li><li>Python resources<\/li><li>Responsible AI principles in software development<\/li><li>Generative AI &ndash; Resources and additional guidance<\/li><\/ul><\/li><\/ul><\/li><\/ul>","outline":"<ul>\n<li>Coding responsibly with GenAI<\/li><li>The OWASP Top Ten from Copilot&#039;s perspective<\/li><li>Wrap up<\/li><\/ul>","summary":"<p>Generative AI is transforming the software industry, with tools like GitHub Copilot and Codeium enabling developers to achieve unprecedented levels of efficiency. While this is exciting progress, it also raises important concerns, encouraging stakeholders to approach these technologies with care. Current AI tools often lack the nuanced understanding necessary to address subtle, yet critical aspects of software development, particularly in the domain of security.<\/p>\n<p>This course provides a comprehensive insight into the responsible use of generative AI in coding. Participants delve into topics in software development that are most likely to be impacted by careless use of generative AI, including authentication, authorization, and cryptography. The curriculum also includes an analysis of how AI tools like Copilot handle secure coding practices related to key vulnerabilities outlined in the OWASP Top Ten, such as path traversal, SQL injection, or cross-site scripting.<\/p>\n<p>Through hands-on learning and experimenting, participants will get a solid understanding of both the strengths and limitations of AI-assisted development. In addition, case studies of real-world incidents showcase the consequences of insecure code and demonstrate the dual nature of generative AI as both a resource and a potential risk.<\/p>\n<p>By the end of the course, developers will be equipped with the knowledge and skills to integrate AI tools into the software development lifecycle responsibly, enhancing efficiency without compromising security or product quality.<\/p>","objective_plain":"- Understanding the essentials of responsible AI\n- Getting familiar with essential cyber security concepts\n- Understanding how cryptography supports security\n- Learning how to use cryptographic APIs correctly in Python\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- All this put into the context of GitHub Copilot","essentials_plain":"General Python and Web development","audience_plain":"Python developers using Copilot or other GenAI tools","contents_plain":"Day 1\n\nCoding responsibly with GenAI\n\n\n- What is responsible AI?\n- What is security?\n- Threat and risk\n- Cyber security threat types \u2013 the CIA triad\n- Consequences of insecure software\n- Security and responsible AI in software development\n- GenAI tools in coding: Copilot, Codeium and others\n- The OWASP Top Ten from Copilot\u2019s perspective\n\n- The OWASP Top Ten 2021\n\n- A01 \u2013 Broken Access Control\n\n- Access control basics\n- Failure to restrict URL access\n- Confused deputy\n- Insecure direct object reference (IDOR)\n- Path traversal\n- Lab \u2013 Insecure Direct Object Reference\n- Path traversal best practices\n- Lab \u2013 Experimenting with path traversal in Copilot\n- Authorization bypass through user-controlled keys\n- Case study \u2013 Remote takeover of Nexx garage doors and alarms\n- Lab \u2013 Horizontal authorization (exploring with Copilot)\n- File upload\n\n- Unrestricted file upload\n- Good practices\n- Lab \u2013 Unrestricted file upload (exploring with Copilot)\n- A02 \u2013 Cryptographic Failures\n\n- Cryptography for developers\n- Cryptography basics\n- Cryptography in Python\n- Elementary algorithms\n- Hashing\n\n- Hashing basics\n- Hashing in Python\n- Lab \u2013 Hashing in Python (exploring with Copilot)\n- Random number generation\n\n- Pseudo random number generators (PRNGs)\n- Cryptographically secure PRNGs\n- Weak PRNGs\n- Using random numbers\n- Lab \u2013 Using random numbers in Python (exploring with Copilot)\n- Lab \u2013 Secure PRNG use in Copilot\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 Python (exploring with Copilot)\n- Asymmetric encryption\n- Combining symmetric and asymmetric algorithms\nDay 2\n\nThe OWASP Top Ten from Copilot\u2019s perspective\n\n\n- A03 \u2013 Injection\n\n- Injection principles\n- Injection attacks\n\n- SQL injection\n\n- SQL injection basics\n- Lab \u2013 SQL injection\n- Attack techniques\n\n- Content-based blind SQL injection\n- Time-based blind SQL injection\n- SQL injection best practices\n- Input validation\n- Parameterized queries\n- Lab \u2013 Using prepared statements\n- Lab \u2013 Experimenting with SQL injection in Copilot\n- Database defense in depth\n- Case study \u2013 SQL injection against US airport security\n- Code injection\n\n- Code injection via input()\n- OS command injection\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- Lab \u2013 Experimenting with command injection in Copilot\n- Case study \u2013 Shellshock\n- Lab \u2013 Shellshock\n- Case study \u2013 Command injection in Ivanti security appliances\n- HTML injection \u2013 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 to RCE in Teltonika routers\n- XSS protection best practices\n- Protection principles \u2013 escaping\n- XSS protection APIs in Python\n- XSS protection in Jinja2\n- Lab \u2013 XSS fix \/ stored (exploring with Copilot)\n- Lab \u2013 XSS fix \/ reflected (exploring with Copilot)\n- Case study \u2013 XSS vulnerabilities in DrayTek Vigor routers\n- A04 \u2013 Insecure Design\n\n- The STRIDE model of threats\n- Secure design principles of Saltzer and Schroeder\n\n- Economy of mechanism\n- Fail-safe defaults\n- Complete mediation\n- Open design\n- Separation of privilege\n- Least privilege\n- Least common mechanism\n- Psychological acceptability\n- Client-side security\n\n- Same Origin Policy\n- Simple request\n- Preflight request\n- Cross-Origin Resource Sharing (CORS)\n- Lab \u2013 Same-origin policy demo\n- Frame sandboxing\n- Cross-Frame Scripting (XFS) attacks\n- Lab \u2013 Clickjacking\n- Clickjacking beyond hijacking a click\n- Clickjacking protection best practices\n- Lab \u2013 Using CSP to prevent clickjacking (exploring with Copilot)\n\n\nDay 3\n\n\n\nThe OWASP Top Ten from Copilot\u2019s perspective\n\n\n\n\n- A05 \u2013 Security Misconfiguration\n\n- Configuration principles\n- Server misconfiguration\n- Python configuration best practices\n- Configuring Flask\n- Cookie security\n\n- Cookie attributes\n- XML entities\n\n- DTD and the entities\n- Entity expansion\n- External Entity Attack (XXE)\n- File inclusion with external entities\n- Server-Side Request Forgery with external entities\n- Lab \u2013 External entity attack\n- Preventing XXE\n- Lab \u2013 Prohibiting DTD\n- Case study \u2013 XXE vulnerability in Ivanti products\n- Lab \u2013 Experimenting with XXE in Copilot\n- A06 \u2013 Vulnerable and Outdated Components\n\n- Using vulnerable components\n- Untrusted functionality import\n- Malicious packages in Python\n- Case study \u2013 The Polyfill.io supply chain attack\n- Vulnerability management\n- Lab \u2013 Finding vulnerabilities in third-party components\n- Security of AI generated code\n- Practical attacks against code generation tools\n- Dependency hallucination via generative AI\n- Case study \u2013 A history of GitHub Copilot weaknesses (up to mid 2024)\n- A07 \u2013 Identification and Authentication Failures\n\n- Authentication\n\n- Authentication basics\n- Multi-factor authentication (MFA)\n- Case study \u2013 The InfinityGauntlet attack\n- Time-based One Time Passwords (TOTP)\n- Password management\n\n- Inbound password management\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- Lab \u2013 Using adaptive hash functions in Python\n- Lab \u2013 Using adaptive hash functions in Copilot\n- Password policy\n- NIST authenticator requirements for memorized secrets\n- Password database migration\n- A08 \u2013 Software and Data Integrity Failures\n\n- Integrity protection\n\n- Message Authentication Code (MAC)\n- Calculating HMAC in Python\n- Lab \u2013 Calculating MAC in Python\n- Digital signature\n\n- Digital signature in Python\n- Subresource integrity\n\n- Importing JavaScript\n- Lab \u2013 Importing JavaScript (exploring with Copilot)\n- Case study \u2013 The British Airways data breach\n- A10 \u2013 Server-side Request Forgery (SSRF)\n\n- Server-side Request Forgery (SSRF)\n- Case study \u2013 SSRF in Ivanti Connect Secure\n- Wrap up\n\n- Secure coding principles\n- Principles of robust programming by Matt Bishop\n- And now what?\n- Software security sources and further reading\n- Python resources\n- Responsible AI principles in software development\n- Generative AI \u2013 Resources and additional guidance","outline_plain":"- Coding responsibly with GenAI\n- The OWASP Top Ten from Copilot's perspective\n- Wrap up","summary_plain":"Generative AI is transforming the software industry, with tools like GitHub Copilot and Codeium enabling developers to achieve unprecedented levels of efficiency. While this is exciting progress, it also raises important concerns, encouraging stakeholders to approach these technologies with care. Current AI tools often lack the nuanced understanding necessary to address subtle, yet critical aspects of software development, particularly in the domain of security.\n\nThis course provides a comprehensive insight into the responsible use of generative AI in coding. Participants delve into topics in software development that are most likely to be impacted by careless use of generative AI, including authentication, authorization, and cryptography. The curriculum also includes an analysis of how AI tools like Copilot handle secure coding practices related to key vulnerabilities outlined in the OWASP Top Ten, such as path traversal, SQL injection, or cross-site scripting.\n\nThrough hands-on learning and experimenting, participants will get a solid understanding of both the strengths and limitations of AI-assisted development. In addition, case studies of real-world incidents showcase the consequences of insecure code and demonstrate the dual nature of generative AI as both a resource and a potential risk.\n\nBy the end of the course, developers will be equipped with the knowledge and skills to integrate AI tools into the software development lifecycle responsibly, enhancing efficiency without compromising security or product quality.","version":"1.0","duration":{"unit":"d","value":3,"formatted":"3 days"},"pricelist":{"List Price":{"DE":{"country":"DE","currency":"EUR","taxrate":19,"price":2250},"SI":{"country":"SI","currency":"EUR","taxrate":20,"price":2250},"AT":{"country":"AT","currency":"EUR","taxrate":20,"price":2250},"SE":{"country":"SE","currency":"EUR","taxrate":25,"price":2250},"CH":{"country":"CH","currency":"CHF","taxrate":8.1,"price":2250}}},"lastchanged":"2025-10-29T08:40:00+01:00","parenturl":"https:\/\/portal.flane.ch\/swisscom\/en\/json-courses","nexturl_course_schedule":"https:\/\/portal.flane.ch\/swisscom\/en\/json-course-schedule\/36419","source_lang":"en","source":"https:\/\/portal.flane.ch\/swisscom\/en\/json-course\/cydrill-crwgaip"}}