Pragmatic AI Labs

Code Security

Ends in 4 days! Get Coursera Plus for $239/year this Black Friday and explore skills that last.

Pragmatic AI Labs

Code Security

Alfredo Deza
Noah Gift

Instructors: Alfredo Deza

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Explain how SQL injection, cross-site scripting and weak password storage are exploited

  • Find, fix and verify common weaknesses in a small web application

  • Scan code and dependencies with Semgrep, Syft and Grype, and act on the results

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

November 2026

Assessments

4 assignments

Taught in English

Build your subject-matter expertise

This course is part of the Security Foundations Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 3 modules in this course

You start with input: anything a program gets from outside its own code is untrusted until it is checked, and most attacks are input that a program ends up following as an instruction. SQL injection and cross-site scripting show how. Then you learn what a hash is, why sites keep password hashes instead of passwords, how a login session and a JSON Web Token remember who you are, and what multi-factor authentication adds. Last, authentication and authorization, roles and permissions, and signing in with another provider.

What's included

12 videos9 readings1 assignment

You meet a small notes site with search and login, made with common mistakes on purpose, and start it on your own computer. Its search can be tricked into returning other people's notes: you inject into it, then fix it with a parameterized query and verify. A note can carry a script into a page: you inject one, then escape the page's output and verify, and see what Content Security Policy adds. Its passwords are stored as typed: you learn why password hashes are slow and what a salt does, find the plain passwords, and switch to Argon2.

What's included

13 videos8 readings1 assignment

You decode the site's session cookie and see what it says, open the admin page as a regular user, then restrict it to the admin role and verify every case. You learn what encryption does, what a key is and how hashing differs, then encrypt and decrypt the site's backup. You scan the code with Semgrep, fix what it finds and write a rule of your own. Last, you list the site's packages with Syft, find a vulnerable one with Grype, and update and verify it.

What's included

18 videos8 readings2 assignments

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructors

Alfredo Deza
Pragmatic AI Labs
83 Courses11,414 learners

Offered by

Explore more from Security

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions