← Back to CoursesWeb Design & Development: PhD Level

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Security, Privacy, and Trust in Web Systems

Manual: General · Subject: Web Design & Development

This lesson addresses web threats, defense-in-depth, privacy-preserving design, and the engineering of trustworthy interfaces.

Trust Boundaries on the Web

Threat Modeling

Web systems operate across trust boundaries: browser, server, third-party service, user input, and external content. Security analysis begins with asset identification, attacker capabilities, and failure modes. Common threats include cross-site scripting, cross-site request forgery, injection vulnerabilities, authentication weaknesses, supply chain compromise, and insecure dependency management.

Security Building Blocks

Content Security Policy
A browser-enforced control that restricts resource loading and script execution.
Same-origin policy
A browser security model that limits interaction across origins.
CSRF token
A secret value used to verify that a request originated from a trusted context.
Sanitization
The process of removing or encoding dangerous input before rendering or storage.
⚠️

Security Is Systemic

A secure component can still be embedded into an insecure system. Security depends on how data flows, how secrets are handled, how dependencies are updated, and how failure states are exposed.

Privacy by Design

Privacy-preserving design minimizes collection, limits retention, and makes data practices legible to users. In web applications, privacy includes tracking controls, consent architecture, data minimization, differential access, and transparent logging. Researchers are increasingly investigating privacy-preserving analytics, federated computation, and methods for reducing cross-site tracking.

What does a Content Security Policy help mitigate?

What is the purpose of a CSRF token?

Which practice best supports privacy by design?

Common Web Threats

Cross-Site Scripting

  • Malicious script executes in a trusted origin
  • Often caused by unsafe rendering or sanitization gaps
  • Mitigated by encoding, sanitization, and CSP

Cross-Site Request Forgery

  • Tricks a user’s browser into sending an unintended request
  • Exploits ambient credentials
  • Mitigated by CSRF tokens and same-site protections

Threat Modeling Workflow

  1. 1

    Step 1: Enumerate assets, actors, and trust boundaries.

  2. 2

    Step 2: Identify attack surfaces and data flows.

  3. 3

    Step 3: Rank threats by impact and likelihood.

  4. 4

    Step 4: Apply layered mitigations.

  5. 5

    Step 5: Reassess after each architecture change.