Cybersecurity for Back End Developers – Full Course
✏️ Study this way interactively on Scrimba: https://scrimba.com/fcc-cybersecurity Learn Cybersecurity for Backend development: danger modeling, authentication, XSS and SQL injection defense, and charge limiting alongside Node.js. Code is accessible on the Scrimba way leaf for all lesson. Security is among the most in-demand skills for rear end developers, and penning code that resists attacks is what sets expert developers apart. In this course, Jonathan Hill, application engineer and Scrimba instructor, and Rachel Johnson, developer and Scrimba way creator, display you how to think akin an attacker so you can build akin a defender. You'll activity through hands-on challenges in Node.js, modeling threats alongside STRIDE and OWASP and implementing sessions, tokens and OAuth, during defending against cross-site scripting (XSS) and SQL injection and construction charge limiting that prevents abuse. This way suits younger developers and occupation changers who desire to rotate into job-ready and build applications users can trust. We'll cover: - Modeling threats alongside STRIDE and triaging bugs alongside the OWASP Top 10 - Preventing cross-site scripting (XSS) and SQL injection attacks - Validating and sanitizing person input alongside Zod schemas and validation middleware - Implementing stateful authentication alongside sessions and cookies - Building homeless authentication alongside opaque transporter tokens and JSON Web Tokens (JWT) - Understanding how OAuth and delegated authentication work - Choosing the correct character example for your application - Designing charge limiters alongside fixed window, sliding window, token bucket and leaky bucket algorithms - Throttling requests and combining throttling alongside charge limiting - Identifying clients by IP address, person ID and API key Scrimba on YouTube: https://www.youtube.com/c/Scrimba Timestamps: - 0:00:00 Your First Hack! - 0:03:21 Your First Fix! - 0:06:16 Introduction - 0:09:05 The STRIDE Threat Model - 0:12:19 Potential Threat Modelling - 0:16:08 Feature-based Threat Modelling - 0:19:27 Teacher Feature Threat Modelling - 0:22:44 Meet OWASP - 0:27:19 Bug Triage Demo - 0:30:10 Bug Triage Challenge - 0:34:07 All Together Now - 0:36:23 Outro - 0:37:09 Intro - 0:38:21 Introduction - 0:40:52 Form project setup - 0:46:51 Cross-Site Scripting, pt. 1 - 0:50:16 Cross-Site Scripting, pt. 2 - 0:52:36 Denial of service - 0:58:47 SQL Injection, pt. 1 - 1:01:11 SQL Injection, pt. 2 - 1:07:35 Zod: Intro - 1:09:04 Zod: Basic schema - 1:13:27 Zod: Schema objects - 1:19:53 Zod: Star Wars challenge - 1:23:10 Zod: Infer category & safeParse - 1:29:22 Zod: Coerce & challenge - 1:33:56 Zod: Errors - 1:39:17 Zod: Error param and challenge - 1:43:42 Implement Zod in form - 1:46:34 Validation middleware, pt. 1 - 1:50:25 Validation middleware, pt. 2 - 1:55:59 New endpoint - 1:59:43 Inline schema - 2:03:06 Finish endpoint - 2:06:47 Extract schema & infer type - 2:10:13 Build Out schema, pt. 1 - 2:16:20 Build out schema, pt. 2 - 2:19:48 Outro - 2:21:15 Introduction - 2:23:52 Who you are and what you can do - 2:27:01 Stateful, Stateless, and Delegated - 2:29:29 Stateful identity: Sessions and Cookies - 2:32:50 Stateful Pitfalls (Cookies) - 2:36:37 Stateful Pitfalls (Sessions) - 2:41:24 Stateful Challenge - 2:46:17 Stateless Identity: Opaque Bearer Tokens - 2:50:22 Stateless Pitfalls: Opaque Bearer Tokens - 2:54:25 Stateless Identity: JSON Web Tokens - 2:58:35 Stateless Pitfalls: JSON Web Tokens - 3:02:27 Stateless Challenge - 3:08:43 Delegated - How OAuth works - 3:12:36 Delegated pitfalls - 3:15:55 Delegated Challenge - 3:20:16 Putting the three together - 3:22:51 How to choose - 3:25:09 The "right" character example challenge - 3:28:12 Outro - 3:29:48 Introduction - 3:32:49 Fixed Window Counter - Theory - 3:37:05 Fixed Window Counter - API setup - 3:41:48 Fixed Window Counter - Create the limiter - 3:47:39 Fixed Window Counter - Headers, pt. 1 - 3:50:21 Fixed Window Counter - Headers, pt. 2 - 3:55:20 Fixed Window Counter - Modify bounds challenge - 3:58:47 Fixed Window Counter - Client ID: IP Address - 4:01:48 Fixed Window Counter - Client ID: User ID - 4:08:47 Fixed Window Counter - Client ID: API key / Session ID - 4:12:21 Sliding Window Log - Theory - 4:16:10 Sliding Window Counter - Theory, pt. 1 - 4:19:20 Sliding Window Counter - Theory, pt. 2 - 4:22:52 Token Bucket - Theory - 4:24:50 Token bucket - Game mechanics - 4:29:41 Token bucket - TokenBucket class - 4:33:31 Token bucket - How many requests to obtain & reject? - 4:35:32 Token bucket - Modify equivalent parameters - 4:39:45 Leaky Bucket - Theory - 4:42:47 Throttling - Middleware setup - 4:46:30 Throttling - Configuration - 4:49:35 Throttling - Delay time - 4:55:45 Throttling - Combined alongside charge limiter, pt. 1 - 4:58:34 Throttling - Combined alongside charge limiter, pt. 2 - 5:00:52 Throttling - Final challenge, pt. 1 - 5:04:57 Throttling - Final challenge, pt. 2 - 5:07:58 Outro