Cybersecurity for Back End Developers – Full Course

✏️ Study this course interactively on Scrimba: https://scrimba.com/fcc-cybersecurity

Learn Cybersecurity for Backend development: threat modeling, authentication, XSS and SQL injection defense, and rate limiting with Node.js.

Code is available on the Scrimba course page for each lesson.

Security is one of the most in-demand skills for back end developers, and writing code that resists attacks is what sets professional developers apart.

In this course, Jonathan Hill, software engineer and Scrimba instructor, and Rachel Johnson, developer and Scrimba course creator, show you how to think like an attacker so you can build like a defender.

You'll work through hands-on challenges in Node.js, modeling threats with STRIDE and OWASP and implementing sessions, tokens and OAuth, while defending against cross-site scripting (XSS) and SQL injection and building rate limiting that prevents abuse. This course suits junior developers and career changers who wish to become job-ready and build applications users can trust.

We'll cover:
- Modeling threats with STRIDE and triaging bugs with the OWASP Top 10
- Preventing cross-site scripting (XSS) and SQL injection attacks
- Validating and sanitizing user input with Zod schemas and validation middleware
- Implementing stateful authentication with sessions and cookies
- Building stateless authentication with opaque bearer tokens and JSON Web Tokens (JWT)
- Understanding how OAuth and delegated authentication work
- Choosing the right identity model for your application
- Designing rate limiters with fixed window, sliding window, token bucket and leaky bucket algorithms
- Throttling requests and combining throttling with rate limiting
- Identifying clients by IP address, user 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 type & 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" identity model 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 limit 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 accept & reject?
- 4:35:32 Token bucket - Modify game 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 with rate limiter, pt. 1
- 4:58:34 Throttling - Combined with rate limiter, pt. 2
- 5:00:52 Throttling - Final challenge, pt. 1
- 5:04:57 Throttling - Final challenge, pt. 2
- 5:07:58 Outro Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to Cybersecurity for Back End Developers – Full Course

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.