際際滷

際際滷Share a Scribd company logo
Finding Security Vulnerabilities
Before They Find You!
Stranger Danger
@liran_tal
Fun
Fun + T-Shirt
Fun + T-Shirt + Stickers
Node.js Security WG
Liran Tal
OWASP NodeGoat
author of Essential Node.js Security
& OReillys Serverless Security
Developer Advocate
@liran_tal
@liran_tal
open source is
awesome
@liran_tal
open source
packages
1.4M+
@liran_tal
source: https://dev.to/leoat12/the-nodemodules-problem-29dc
@liran_tal
How much do you really know about
your dependencies ?
@liran_tal
Dependency on China and other adversary countries
for some of our most critical supply chains threatens to
undermine the trustworthiness of critical technologies
and components that constitute and connect to
cyberspace.
source: https://www.solarium.gov/public-communications/supply-chain-white-paper
 Protecting supply chains
from compromise
 Establishing a Center for
Open-Source Software
Security
@liran_tal
source: https://snyk.io/blog/how-much-do-we-really-know-about-how-packages-behave-on-the-npm-registry
@liran_tal
@liran_tal
source: https://snyk.io/blog/how-much-do-we-really-know-about-how-packages-behave-on-the-npm-registry
*abandoned packages
61%
@liran_tal
source: http://bit.ly/es-incident
@liran_tal
some popular
packages reach more
than 100,000
@liran_tal
event-stream
reached 5,466
@liran_tal
Your App
@liran_tal
Your App
Your Code
@liran_tal
@liran_tal
source: https://snyk.io/open-source-security
@liran_tal
Jan 2015
rimrafall
Jan 2017
crossenv
May 2018
getcookies
Jul 2018
eslint-scope
Nov 2018
event-stream
@liran_tal
May 2018
getcookies
Parse HTTP headers for cookie data
@liran_tal
May 2018
getcookies
Parse HTTP headers for cookie data
or does it...?
@liran_tal
@liran_tal
@liran_tal
getcookies
express-cookies
http-fetch-cookies
@liran_tal
getcookies
express-cookies
http-fetch-cookies
mailparser 440,000 downloads/month
@liran_tal
sequelize SQL injection vulnerability
428,791 weekly downloads
Fixed in 5.15.1 (August 2019)
source: https://snyk.io/vuln/npm:sequelize
@liran_tal
yarn MiTM security vulnerability
992,512 weekly downloads
Fixed in 1.17.3 (July 2019)
source: https://snyk.io/vuln/npm:yarn
@liran_tal
markdown-to-jsx Cross-site Scripting vulnerability
897,115 weekly downloads
Fixed in 6.10.1 (May 2019)
source: https://snyk.io/vuln/npm:markdown-to-jsx
@liran_tal
from dependency vulnerabilities
to application vulnerabilities
@liran_tal
Application Security is Challenging!
@liran_tal
Application Security is Challenging!
delivery
@liran_tal
Top 10 US
Computer Science
Programs
Carnegie Mellon
MIT
Stanford
University of California, Berkeley
University of Illinois, Urbana-Champaign
Cornell
University of Washington
Georgia Tech
Princeton
University of Texas, Austin
source: http://tiny.cc/o98gdz
@liran_tal
Top 10 US
Computer Science
Programs
@liran_tal
Understanding the impact of
security 鍖xes
@liran_tal
@liran_tal
@liran_tal
Attackers are targeting open source
one vulnerability == many victims
@liran_tal
What if security was developer-friendly
easier
actionable
source: https://snyk.io/vuln/npm:yarn
@liran_tal
source: https://snyk.io
@liran_tal
source: https://snyk.io
@liran_tal
source: https://snyk.io
@liran_tal
Best Practices
for Open Source Security
@liran_tal
Have a responsible disclosure policy
Enable 2FA, protect your users
Scan often and 鍖x your dependencies
Release security 鍖xes as non-major
https://snyk.io/blog/ten-npm-security-best-practices
@liran_tal
https://snyk.io/blog/ten-npm-security-best-practices
Please Enjoy Responsibly
Open Source is Awesome
@liran_tal

More Related Content

Stranger Danger - Finding vulnerabilities before they find you - Liran Tal 2021