Most vulnerabilities are introduced while writing ordinary features: a query built from a string, a permission check that was forgotten on one route, a secret pasted into a config file. AI coding assistants speed up that work but can repeat insecure patterns just as quickly. This course teaches the habits and patterns that prevent whole classes of bugs, so security becomes part of how you write and review code rather than a check at the end.
What you'll learn
- Thinking like an attacker: trust boundaries and simple threat modelling for a feature
- Validating input and encoding output for the context it is used in
- Preventing injection: SQL, NoSQL, command, template and path traversal
- Secure authentication, password storage, session handling and account recovery
- Access control that is enforced on the server, centrally and by default
- Managing secrets: environment variables, secret managers and scanning for leaked keys
- Using cryptography correctly with well-tested libraries, and the mistakes to avoid
- Dependency risk: lockfiles, vulnerability alerts, typosquatting and supply chain attacks
- Error handling and logging that help investigations without leaking data
- Secure code review checklists, and reviewing AI-generated code safely
Who it's for
- Developers in any language who want to stop shipping common vulnerabilities
- Tech leads setting coding standards and review practices for a team
- Developers working in regulated or security-sensitive products
Prerequisites
- At least a year of programming experience in a web or back-end language
- Familiarity with how web applications handle requests and data
- Awareness of common web risks helps (see Web Application Security (OWASP Top 10))
Outcomes
By the end of this course you will be able to:
- Recognise and fix the most common vulnerability patterns in your own code.
- Handle authentication, sessions and secrets using proven approaches.
- Manage third-party dependencies with an eye on supply chain risk.
- Run security-focused code reviews, including for AI-generated code.
Course outline
| Module | Topic |
|---|---|
| 1 | Why secure coding matters and threat modelling basics |
| 2 | Input validation and output encoding |
| 3 | Injection flaws and their prevention |
| 4 | Authentication and password storage |
| 5 | Sessions, tokens and account recovery |
| 6 | Access control by design |
| 7 | Secrets management |
| 8 | Cryptography for developers |
| 9 | Dependencies and the software supply chain |
| 10 | Errors, logging and privacy |
| 11 | Secure code review and AI-generated code |
| 12 | Project: find and fix vulnerabilities in a sample app |
FAQ
Which languages are covered?
Examples use JavaScript/TypeScript, Python and PHP, and each lesson explains the underlying principle so you can apply it in other languages.
Isn't security the security team's job?
Security teams help, but developers write the code. Preventing a bug while writing it is far cheaper than finding it in a test or after an incident.
Can AI assistants write secure code for me?
They can help, and they can also suggest outdated or unsafe patterns with confidence. The course shows how to prompt, review and test AI-generated code so it meets the same standard as your own.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.