
In this lecture, we explore the development of AI in coding, tracing its progress from the 1950s to the present. Starting with the foundational work of pioneers like Alan Turing, we examine how AI technologies such as neural networks, expert systems, and deep learning have influenced programming practices.
The lecture also covers the evolution of secure coding practices, highlighting how they have adapted alongside advances in AI. Through this historical overview, participants will gain a clear understanding of the role AI plays in modern software development and how it impacts secure coding.
What You Will Learn
The historical development of AI in coding from the 1950s to today
The evolution of secure coding practices as AI tools progressed
Key milestones in AI, including programming languages and neural networks
This lecture provides an overview of key AI tools currently used in software development, such as GitHub Copilot and Claude, and examines the risks associated with these tools. We will discuss how AI-driven tools can streamline coding while also introducing potential security vulnerabilities, outdated suggestions, or flawed code.
The lecture also explores how secure coding practices can be integrated into the AI development lifecycle to mitigate these risks. Participants will gain a better understanding of how to use AI tools effectively while maintaining security and code quality.
What You Will Learn
Key AI tools in software development and their reported risks
The integration of secure coding practices in AI-driven development
Strategies to address common security challenges with AI-generated code
In this lecture, we explore the key advantages of AI-driven code generation. You’ll learn how AI tools can enhance software development by increasing productivity, reducing errors, and streamlining workflows. We will also cover how these tools support learning, offer intelligent code suggestions, and help maintain consistency across projects.
Through practical examples, this session will show how AI improves coding efficiency while highlighting how to incorporate these tools effectively into your workflow.
What You Will Learn
The benefits of AI code generation, including increased development speed and reduced errors
How AI helps maintain code consistency and supports learning new languages or frameworks
Practical strategies to integrate AI tools into your development process
This lecture examines the key risks associated with AI-generated code. While AI can greatly enhance development efficiency, it also introduces potential issues such as algorithmic bias, legal concerns related to licensing, security vulnerabilities, and over-reliance on AI-generated suggestions. Through real-world examples, you’ll learn how to identify and mitigate these risks to ensure your code remains secure and compliant.
What You Will Learn
The top 10 risks in AI code generation, including algorithmic bias, licensing violations, and security oversights
Practical strategies to mitigate these risks while leveraging AI tools effectively
How to manage AI-generated code to prevent future maintenance challenges
In this lecture, we demonstrate how to leverage AI tools to generate secure code, focusing on the importance of secure coding principles in AI-driven development. Through practical examples, you’ll learn how to convert human language requirements into effective prompts for AI models like GPT, ensuring that the generated code meets security standards.
The session covers essential secure coding practices, particularly in frameworks like React, and provides step-by-step guidance on crafting secure prompts to avoid common vulnerabilities like XSS and improper input handling.
What You Will Learn
How to embed secure coding principles in AI-generated code
The process of converting human language requirements into secure code via prompt engineering
Practical examples of crafting secure AI prompts to mitigate common security risks in development
This lecture provides a detailed examination of GitHub Copilot, with a focus on integrating secure coding practices into AI-powered code generation. You will learn how to craft precise prompts that guide AI models to generate secure, reliable code, with a particular emphasis on frameworks like React.
The session will cover key secure coding principles, including input validation and protection against vulnerabilities such as cross-site scripting (XSS). By the end of this lecture, you will have the tools to ensure AI-generated code meets security standards and reduces potential risks.
What You Will Learn
How to incorporate secure coding practices in AI-generated code
The process of converting human language into secure, effective prompts for AI tools
Best practices for using GitHub Copilot to write secure and maintainable code
This lecture introduces key evaluation metrics for assessing AI-generated code in terms of security, reliability, and quality. You'll learn how to apply secure design, code reliability, and code quality metrics to ensure AI-generated code meets industry standards and maintains high levels of security and performance.
Through case studies and real-world examples, you will explore how these metrics foster trust, identify security gaps, and mitigate risks associated with AI-powered development.
What You Will Learn
Key evaluation metrics for assessing the security, reliability, and quality of AI-generated code
How to apply secure design and code reliability metrics to improve the robustness of AI-driven solutions
Best practices for maintaining and scaling AI-generated code using these evaluation frameworks
This lecture focuses on evaluating AI-generated code using key metrics such as Cyclomatic Complexity and Cognitive Complexity. You will learn how these metrics help assess the quality, security, and maintainability of code generated by AI tools like ChatGPT.
Through practical examples, you’ll understand how to reduce complexity and increase code cohesion, leading to more secure and maintainable solutions. By the end of this lecture, you will be able to apply these metrics to improve the overall structure and functionality of AI-generated code.
What you'll learn:
How to evaluate AI-generated code using Cyclomatic and Cognitive Complexity
Techniques to improve code cohesion and maintainability
Best practices for assessing the security of AI-generated code
Sample Secure React AI Coding Prompt
This course bridges the gap between artificial intelligence and secure software development, equipping learners with the skills to harness AI-driven code generation tools while prioritizing security and best practices. By the end of the course, developers, AI enthusiasts, risk managers, and security professionals will be well-prepared to lead the charge in the evolving landscape of AI-assisted software development.
Participants will delve into the architecture of AI language models, understanding their inner workings and how they can be effectively utilized in software development. The course starts with an introduction to AI in code generation, covering the history and evolution of AI in coding, and presenting current AI tools and technologies like GitHub Copilot and GPT-4. Learners will get hands-on experience through practical exercises and case studies, contrasting secure and insecure code generated by AI.
The curriculum then addresses the benefits and risks of AI code generation, highlighting how AI can increase development speed and efficiency while also presenting potential risks such as biases and deprecated practices in training data. Participants will learn how to mitigate these risks through thorough evaluation and ethical considerations.
A dedicated lecture on the top 10 risks for 2025 when it comes to AI code generation guides learners on what controls they need to implement to avoid these risks. This lecture explores the potential pitfalls associated with AI-generated code, such as biases, legal violations, deprecated practices, and security oversights. AI can accelerate development, but it also introduces challenges like algorithmic bias and unintentional inclusion of GPL-licensed code, potentially forcing projects into open-source. Examples, such as recruiting tools discriminating against women and commercial products using GPL-licensed code without proper compliance, highlight the importance of vigilance. The lecture also covers security issues, privacy leaks, logic errors in algorithms, and risks from deprecated APIs, mentioning common breaches. These real-world examples reinforce the need for proper controls and oversight when integrating AI into development workflows.
The next two lectures demonstrate the process of transforming human language into secure AI-generated code. Participants learn key secure coding principles and how to craft effective prompts to guide AI models in producing secure code. The demonstration emphasizes prompt engineering, showing the difference between a simple prompt ("Generate a React login form") and a secure one ("Generate a React login form with input validation, CSRF protection, and secure handling against XSS"). Additionally, the lecture discusses secure coding practices in React, such as protecting against XSS attacks and ensuring client-side authentication workflows are robust
In lecture 6, participants will learn how to assess the reliability, security, and quality of AI-generated code using specific evaluation metrics. Key code reliability indicators such as Mean Time to Failure (MTTF), Mean Time to Repair (MTTR), and cyclomatic complexity are discussed. The importance of identifying security gaps, maintaining consistent performance, and fostering trust in AI tools are emphasized.
Finally, the last lecture focuses on integrating the evaluation metrics from previous lectures into real-world scenarios. Demos are presented to showcase how these metrics can be applied to ensure that AI-generated code is not only functional but secure and maintainable. The lecture reinforces the idea that developers must "trust but verify" when it comes to AI-generated code, using both automated and manual techniques to confirm that the code meets security and performance expectations
Through in-depth real-world case studies and expert insights, learners will gain practical knowledge to confidently leverage AI in their coding projects, ensuring the highest standards of security and reliability. This comprehensive course empowers learners to stay ahead of the curve, adapt to new AI advancements, and implement robust security measures in their projects, making it a valuable resource for anyone looking to excel in the field. Enrol today to transform your approach to secure and innovative software development.