Node Security

For an in-depth understanding of how you can secure your Node.js applications, this is the ideal book. By learning to write code defensively and adopting security techniques you will be able to withstand common web attacks.
Preview in Mapt

Node Security

Dominic Barnes

For an in-depth understanding of how you can secure your Node.js applications, this is the ideal book. By learning to write code defensively and adopting security techniques you will be able to withstand common web attacks.

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Node Security Book Cover
Node Security
$ 17.99
$ 12.60
Deploying Node.js Book Cover
Deploying Node.js
$ 35.99
$ 25.20
Buy 2 for $30.10
Save $23.88
Add to Cart

Book Details

ISBN 139781783281497
Paperback94 pages

Book Description

Node.js is a fast-growing platform for building server applications using JavaScript. Now that it is being more widely used in production settings, Node applications will start to be specifically targeted for security vulnerabilities. Protecting your users will require an understanding of attack vectors unique to Node, as well as shared with other web applications.

To secure Node.js applications, we’ll start by helping you delve into the building blocks that make up typical Node applications. By understanding all the layers that you are building on top of, you can write code defensively and securely. In doing so, you will be able to protect your user's data and your infrastructure, while still using the rock-star technology behind Node.js.

Teaching you how to secure your Node applications by learning about each of the layers you will be building on top of; starting with JavaScript itself, then the Node platform, and finally the npm module ecosystem. By starting with JavaScript, you will learn what to avoid and what to embrace. Next, we will explain the Node platform, including its unique architecture and core modules, so you know how things work under the hood. Finally, we will introduce the rich ecosystem of npm modules, including modules to help you solve the common security problems you might face. Through our handy tutorials, you will be able to write secure Node.js applications, ones that will remain online under pressure and be able to weather the most common attacks that face web applications today.

Table of Contents

Chapter 1: Introduction to Node.js
History of Node.js
How Node.js differs?
Securing Node.js applications
Summary
Chapter 2: General Considerations
JavaScript security
ES5 features
Static program analysis
Considerations for Node.js
npm modules (third-party code)
Summary
Chapter 3: Application Considerations
Introduction to Express
Authentication
Authorization
Security logging
Error handling
Summary
Chapter 4: Request Layer Considerations
Limiting the request size
Monitoring the event loop's responsiveness
Cross-site Request Forgery
Input validation
Summary
Chapter 5: Response Layer Vulnerabilities
Cross-site Scripting (XSS)
Denial of Service
Security-related HTTP headers
Summary

What You Will Learn

  • Master the origins of the Node.js and npm projects
  • Understand the architecture, including the event-loop and asynchronous I/O
  • Delve into the key aspects of avoiding some common pitfalls of JavaScript development
  • Incorporate ES5's security improvements, including strict-mode
  • Add static code analysis and the code-quality it promotes
  • Explore the basics of proper error-handling within Node applications
  • Understand the architecture of Express and Connect
  • Adapt common authentication and authorization schemes

Authors

Table of Contents

Chapter 1: Introduction to Node.js
History of Node.js
How Node.js differs?
Securing Node.js applications
Summary
Chapter 2: General Considerations
JavaScript security
ES5 features
Static program analysis
Considerations for Node.js
npm modules (third-party code)
Summary
Chapter 3: Application Considerations
Introduction to Express
Authentication
Authorization
Security logging
Error handling
Summary
Chapter 4: Request Layer Considerations
Limiting the request size
Monitoring the event loop's responsiveness
Cross-site Request Forgery
Input validation
Summary
Chapter 5: Response Layer Vulnerabilities
Cross-site Scripting (XSS)
Denial of Service
Security-related HTTP headers
Summary

Book Details

ISBN 139781783281497
Paperback94 pages
Read More

Read More Reviews

Recommended for You

Deploying Node.js Book Cover
Deploying Node.js
$ 35.99
$ 25.20
RESTful Web API Design with Node.js - Second Edition Book Cover
RESTful Web API Design with Node.js - Second Edition
$ 23.99
$ 16.80
Node.js Design Patterns - Second Edition Book Cover
Node.js Design Patterns - Second Edition
$ 39.99
$ 28.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
JavaScript Security Book Cover
JavaScript Security
$ 14.99
$ 10.50
ReactJS Blueprints Book Cover
ReactJS Blueprints
$ 35.99
$ 25.20