← All Learning Paths

Security Basics

A defensive path through web attack classes, token authentication, session cookies, secure headers, secret handling, and incident response.

rolebeginner8 nodes12.75h total

Path overview

This path is generated from the curated resource graph.

  1. Compare "Refresh Token Rotation and Reuse Detection" with "Client-Side Storage and the XSS Question" in "A Complete Guide to JWT Authentication in Web Applications" and state which trade-off you would accept in security engineer code.

    Completion criteria: Record a short walkthrough of "A Complete Guide to JWT Authentication in Web Applications" with timestamps at "Refresh Token Rotation and Reuse Detection" and "Client-Side Storage and the XSS Question", plus the commit that applies it.

    Next step: Security Boundaries in Modern Web Applications

    ⏱ 1h

  2. Reconstruct the reasoning behind "Security Boundaries in Modern Web Applications" by tracing "A practical tour of the browser security model: same-origin policy, CSP, CORS, XSS, and CSRF" to the failure it prevents in security engineer systems.

    Prerequisites: A Complete Guide to JWT Authentication in Web Applications

    Completion criteria: Write a five-line decision note citing "A practical tour of the browser security model: same-origin policy, CSP, CORS, XSS, and CSRF" from "Security Boundaries in Modern Web Applications", name the option you rejected, and attach the before/after diff of one file you changed.

    Next step: Rotate a Leaked Secret Safely

    ⏱ 1h

  3. Run "Revoke the exposed credential at the provider first. Do not wait for history cleanup;" from "Rotate a Leaked Secret Safely" and confirm the documented result "Services authenticate successfully with the new credential and the old credential is".

    Prerequisites: Security Boundaries in Modern Web Applications

    Completion criteria: Deliver a transcript of "Rotate a Leaked Secret Safely" with each step's command and observed state, ending at "Revoke the exposed credential at the provider first. Do not wait for history cleanup;".

    Next step: Add a Content Security Policy with Nonces

    ⏱ 0.5h

  4. Apply "Add a Content Security Policy with Nonces" to a security engineer task, checking that "Set a policy that defaults to self, allows scripts only with the nonce, blocks objects and" appears after the "Responses include a restrictive CSP header with the nonce." step.

    Prerequisites: Rotate a Leaked Secret Safely

    Completion criteria: Run the steps through "Set a policy that defaults to self, allows scripts only with the nonce, blocks objects and", paste the command output, and mark the line that matches "Legitimate scripts load; injected inline scripts without the nonce do not."; then rerun with one parameter changed.

    Next step: Security Incident Response Runbook

    ⏱ 0.5h

  5. Use "Security Incident Response Runbook" to decide "One owner, one channel, and a timestamped record exist.", then prove the outcome with "Limit damage from a security incident, preserve evidence, restore trusted access, and".

    Prerequisites: Add a Content Security Policy with Nonces

    Completion criteria: Deliver a transcript of "Security Incident Response Runbook" with each step's command and observed state, ending at "Limit damage from a security incident, preserve evidence, restore trusted access, and".

    Next step: JWT Token Decoder

    ⏱ 2h

  6. Feed a representative input into "JWT Token Decoder" and verify "Decode JSON Web Token (JWT) headers and payloads safely in the browser." by hand.

    Prerequisites: Security Incident Response Runbook

    Completion criteria: Attach a manual calculation for one input and the tool's output for the same input, with a pass/fail mark. in "Security Basics" step 12.

    Next step: Validate Token Claims Against a Policy

    ⏱ 0.25h

  7. In the "Security Basics" path, implement "Validate Token Claims Against a Policy" so JSON object: { claims, now, policy: { maxAgeSeconds, audience?, yields [expired], including the second sample's edge case.

    Prerequisites: JWT Token Decoder

    Completion criteria: Attach the solution file for "Security Basics", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Security Basics

    ⏱ 0.5h

  8. Build "Build an Input Sanitizer Service" through its phases, keeping "HTML stripper" independently testable.

    Prerequisites: JWT Token Decoder, Validate Token Claims Against a Policy

    Completion criteria: Run the project's test command for "Build an Input Sanitizer Service", paste the passing output, and attach the acceptance note for "HTML stripper" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h