
Secure Coding Practices
Write web application code that resists injection, cross-site scripting, broken authentication and other common flaws, and verify it with reviews and security testing tools.
- Level
- Beginner
- Format
- Written, self-paced
- Length
- About 7 hours
- Lessons
- 16
- Modules
- 4
- Certificate
- Yes, verifiable
- Last updated
- October 2026
- Read the first lesson free
- 14-day refund policy
- Certificate you can verify
- Lifetime access to courses you buy
- Secure checkout
About this course
Stop vulnerabilities at the source. Learn input validation, authentication, and defenses against common flaws like injection and XSS.
Self-paced written course: text lessons, practical exercises, module quizzes and a final project, delivered online. No video and no live tutor.
What you will learn
- Build a simple threat model for a feature and turn the threats into concrete security requirements
- Prevent SQL and command injection using parameterised queries and safe APIs
- Defend web applications against XSS and CSRF with output encoding, cookie settings and tokens
- Implement secure authentication, session handling, secrets management and safe error logging
- Design APIs with proper authentication, object-level authorisation, validation and rate limiting
- Find and fix vulnerabilities using security code review, SAST, DAST and dependency scanning
Curriculum
Module 1Security in the SDLC4 lessons
- 1Why Developers Own Security3 min read Free preview
- 2Threat Modelling for Developers3 min read
- 3Security Requirements4 min read
- 4Secure Design Principles3 min read
- QuizModule quiz, 4 questions
Module 2Common Vulnerabilities4 lessons
- 5Injection Attacks and Prevention3 min read
- 6Broken Authentication and Sessions3 min read
- 7XSS and CSRF Explained3 min read
- 8Insecure Deserialization and Dependencies3 min read
- QuizModule quiz, 4 questions
Module 3Writing Secure Code4 lessons
- 9Input Validation and Output Encoding4 min read
- 10Secrets Management in Code3 min read
- 11Error Handling and Logging Safely3 min read
- 12Secure API Design4 min read
- QuizModule quiz, 4 questions
Module 4Verification4 lessons
- 13Code Review for Security3 min read
- 14SAST and DAST Tools3 min read
- 15Dependency Scanning3 min read
- 16Course Project: Fix a Vulnerable App3 min read
- QuizModule quiz, 4 questions
Final project
Fix a Vulnerable App: Duka Notes Security Remediation. A practical brief with ordered steps, what to produce and how to check your own work. You confirm it in your learner area.
Who it is for
- Junior and mid-level developers who build web applications or APIs
- Computer science students and bootcamp graduates preparing for professional development work
- Testers, technical leads and IT staff who review or manage software projects
Not for you if you already work confidently with everything in the curriculum below. Look at the other cybersecurity courses instead.
Requirements
- A computer with a code editor and Python 3 installed (examples are mainly in Python, with some JavaScript)
- Basic programming knowledge, including functions, HTTP requests and simple SQL queries
- Optional: Docker, to run intentionally vulnerable practice applications safely on your own machine
What is included
- 16 written lessons
- 16 practical exercises
- 4 module quizzes
- A final project
- Certificate of completion with a verification code
- Lifetime access to what you buy
Questions about this course
What do I need before I start?
No previous experience is needed: this is a beginner course and it explains each idea from the start. The software and equipment you need are listed under Requirements on this page.
What device do I need?
A phone, tablet or computer with a modern web browser and an internet connection. Lessons are written, so they work on slow connections.
How long do I have access?
Lifetime access to the full course or to any module you buy. All Access and Teams give 12 months of access to every course.
Can I get a refund?
Yes: a full refund within 14 days of purchase if you have completed less than 30% of the course (or of the module, for a single module). Read the refund policy.
Should I buy a module or the full course?
A module (USD 10) unlocks that module's lessons and quiz. The full course (USD 185) unlocks everything and leads to the certificate. If you buy modules first, each one you own is credited at USD 10 when you buy the full course.
Which currency will I pay in?
All prices are in US dollars (USD) with taxes included where applicable; if your card or account is in another currency, your bank converts it. After you place your order we email you payment instructions within one working day; your access starts as soon as payment is confirmed.
Learning path: Cybersecurity
All 8 open courses in this subject for USD 779. Bought separately they cost USD 1,302, so you save USD 523.