Defensive security foundations
Build safer applications by understanding trust boundaries, identity, and common failure patterns.
Get an in-app notice when new lessons or practice are added.
20 chapters across 6 modules
Course chapters
Explore all 20 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.
No matching chapters. Try another term.
01 · Security thinking4 chapters
Assets and threat modeling
- Identify what needs protection and who can act across boundaries
Practice: Draw a small data-flow diagram and list meaningful threats.
Read the primary referenceLesson guide · ReadyLeast privilege
- Limit access according to required operations and scope
Practice: Design a database role for one application database.
Read the primary referenceLesson guide · ReadySecrets and configuration
- Distinguish public identifiers from private credentials
Practice: Describe secure secret storage and a credential-rotation response.
Read the primary referenceLesson guide · Ready
02 · Application defenses4 chapters
Input validation and output encoding
- Separate data validation from contextual output encoding
Practice: Review a comment form for validation and rendering boundaries.
Read the primary referenceLesson guide · ReadyInjection prevention
- Use parameterized operations instead of constructing executable syntax
Practice: Rewrite an unsafe database query conceptually.
Read the primary referenceLesson guide · ReadyPasswords and recovery
- Use purpose-built password hashing and expiring one-use recovery tokens
Practice: Map a recovery flow without revealing account existence unnecessarily.
Read the primary referenceLesson guide · Ready
03 · Data and infrastructure4 chapters
Transport security
- Explain TLS validation and the limits of encryption in transit
Practice: Trace a browser-to-API connection and its trust decisions.
Read the primary referenceLesson guide · ReadyDependency security
- Track dependencies and respond to a relevant advisory
Practice: Review an update for compatibility and exposure.
Read the primary referenceLesson guide · ReadyLogging and privacy
- Log useful security events without secrets or unnecessary personal data
Practice: Design an authentication-failure event schema.
Read the primary referenceLesson guide · ReadyBackups and incident response
- Plan containment, recovery, and lessons learned
Practice: Write a response outline for an exposed application credential.
Read the primary referenceLesson guide · Ready
04 · Defensive verification4 chapters
Secure code review
- Check authorization and input boundaries with concrete cases
Practice: Review a fictional file-download endpoint.
Read the primary referenceLesson guide · ReadySecurity checklists and tradeoffs
- Turn a checklist item into a verified behavior
Practice: Prioritize fixes by exposure and consequence.
Read the primary referenceLesson guide · ReadyMini project: security review
- Combine threat modeling, controls, and validation evidence
Practice: Produce a defensive review of a small learning application.
Read the primary referenceLesson guide · Ready
05 · Security operations practice3 chapters
Content security and browser isolation
- Explain browser-enforced policies as defense layers
Practice: Review a policy for a static learning site with an external API.
Read the primary referenceLesson guide · ReadyResponsible vulnerability reporting
- Prepare reproducible evidence within an authorized scope
Practice: Write a private report that avoids exposing secrets or unnecessary personal data.
Read the primary referenceLesson guide · Ready
06 · Further foundations and worked reasoning1 chapter
Trust boundaries in a web request
Protect a progress API by separating identity, permission, and untrusted input.
- Identify which inputs cross a boundary and where authorization must occur
Practice: Map a progress-update request and test that one synthetic user cannot change another user’s record.
Read the primary referenceExpanded reading · Ready
Learn it. Check it. Try again.
14 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.
Open Defensive security foundations practiceBooks & references
Free reading at the publisher or author’s site. External materials keep their own licenses.
- AWS Identity and Access Management User GuideAmazon Web Services · documentation
Source & reuse terms
Freely readable at the provider. This catalog supplies a reference link; no permission to mirror the content is asserted. Reading is free; running cloud resources or hosted services may incur charges and needs a separate cost check.
- RFC 8446: TLS 1.3IETF / RFC Editor · documentation
Source & reuse terms
Freely readable at the provider. This catalog supplies a reference link; no permission to mirror the content is asserted.
- OWASP Cheat Sheet SeriesOWASP Foundation contributors · documentation
Source & reuse terms
Freely readable at the provider. This catalog supplies a reference link; no permission to mirror the content is asserted.
- OWASP Top 10OWASP Foundation contributors · documentation
Source & reuse terms
Freely readable at the provider. This catalog supplies a reference link; no permission to mirror the content is asserted.
- Web Security AcademyPortSwigger · course
Source & reuse terms
Provider offers free reading and practice labs; an account may be required to save lab progress. Link only; training is for authorized practice environments.
- Cybersecurity FrameworkUS National Institute of Standards and Technology · documentation
Source & reuse terms
Freely readable at the provider. This catalog supplies a reference link; no permission to mirror the content is asserted.