Application Security

Secure Coding in Python

Write Python that resists attack. This course teaches the secure way to do the things real Python apps do: handle untrusted input, build database queries and shell commands, render templates, hash passwords and manage secrets, work with files and serialized data, call other services, and build web endpoints in Flask and Django. Every lesson contrasts the dangerous pattern with the safe one and has a 'fix this code' exercise, so you learn the habits that prevent injection, insecure deserialization, SSRF, path traversal, weak crypto and secret leakage before they ship. Covers the security-relevant parts of the standard library and the go-to libraries (secrets, hashlib, the cryptography and passlib packages, PyYAML, requests), plus the tools that catch mistakes (bandit, pip-audit, Semgrep). For Python developers of any level who want to build securely; pairs with Secure Code Review and Web Application Security Fundamentals.

8domains / modules
23lessons
157practice questions
44flashcards

0.00 USD

Start this course →

What you'll study

Module 1 — Secure Python Foundations

Module 2 — Injection-Safe Python

Module 3 — Passwords, Crypto & Secrets

Module 4 — Secure Web Endpoints (Flask & Django)

Module 5 — Files, Serialization & Outbound Requests

Module 6 — Dependencies & Security Tooling

Module 7 — Testing, Logging & Hardening

Study & Review

Practice and exam readiness

Related courses

Create a free account to preview lessons. Browse all courses.