Learn to write code that holds up against the most common attacks, starting from the ideas. You'll see why most vulnerabilities start with input, how SQL injection and cross-site scripting turn data into instructions, and how passwords, sessions, tokens and permissions really work. Then you'll run a small notes site on your own computer and fix it one weakness at a time: try the attack, make a small change, and run the same attack again to watch it fail. You'll finish by encrypting a backup, scanning the code with Semgrep, and finding and updating a vulnerable package with Syft and Grype. For anyone who writes or reviews code, with no security background required.

Code Security

Code Security
This course is part of Security Foundations Specialization


Instructors: Alfredo Deza
Included with Learn 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
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
Skills you'll gain
Details to know

Shareable certificate
Add to your LinkedIn profile
Recently updated!
November 2026
Assessments
4 assignments
Taught in English
See how employees at top companies are mastering in-demand skills

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
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

Offered by
Explore more from Security

Pragmatic AI Labs

Pragmatic AI Labs

Pragmatic AI Labs
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?
Advance your career with an online degree
Earn a degree from world-class universities - 100% online


