SlideShare une entreprise Scribd logo
1  sur  53
Télécharger pour lire hors ligne
Surviving Web Security
Gergely Nemeth, RisingStack
ATTACK
TREES
“formal, methodical way of describing
the security of systems, based on
varying attacks”
Bruce Schneier
ATTACK TREES
ATTACK TREES
Open Safe
Pick Lock Learn Combo Bad Setup
Find it Written
Learn From
Target
Blackmail Eavesdrop Bribe
KNOW YOUR
ATTACKER
ATTACK TREES
ATTACK TREES
Open Safe (P)
Pick Lock (I)
Learn Combo
(P)
Bad Setup (I)
Find it Written
(I)
Learn From
Target (P)
Blackmail (I) Eavesdrop (I) Bribe (P)
P = Possible
I = Impossible
DENIAL OF
SERVICE
ATTACK TREES - DENIAL OF SERVICE
Denial of
Service
Find Evil Regex
Vulnerability
Distributed
Mass Traffic
ATTACK TREES - DENIAL OF SERVICE
1
^(a+)+$
2
3
4 5
a a a
a
a
a a a
Nondeterministic finite automaton
ATTACK TREES - DENIAL OF SERVICE
^(a+)+$
for the input “aaaaX”
16 possible paths
ATTACK TREES - DENIAL OF SERVICE
^(a+)+$
for the input “aaaaaaaaaaaaaaaaX”
65536 possible paths
ATTACK TREES - DENIAL OF SERVICE
Regular Expression implementations may
reach extreme situations that cause them to
work very slowly
ATTACK TREES - DENIAL OF SERVICE
Evil Regexes
- Grouping with repetition
- Inside the repeated group:
- Repetition
- Alternation with overlapping
WE HAVE A
SINGLE THREAD
ATTACK TREES - DENIAL OF SERVICE
ATTACK TREE
FOR USER
ACCOUNTS
ATTACK TREES - USER ACCOUNT
Get Access
Modify
Credentials
Learn Password
Bypass Access
Control
Get Access to
Database
Social
Engineering
Get Access to
DMZ
Listen on
Transport Layer
Guessing
Insecure
Dependencies
ATTACK TREES - USER ACCOUNT
Get Access
Modify
Credentials
Learn Password
Bypass Access
Control
Get Access to
Database
Social
Engineering
Get Access to
DMZ
Listen on
Transport Layer
Guessing
Insecure
Dependencies
GUESSING - BRUTE FORCE
systematically enumerating all possible
candidates for the solution
GUESSING - BRUTE FORCE
use a rate-limiter for your endpoints
GUESSING - BRUTE FORCE
GUESSING - TIMING ATTACKS
compromise a cryptosystem by analyzing
the time taken to execute cryptographic
algorithms
GUESSING - TIMING ATTACKS
GUESSING - TIMING ATTACKS
WRONG!
GUESSING - TIMING ATTACKS
T R A C E T R A C E
1st iteration
GUESSING - TIMING ATTACKS
T R A C E T R A C E
2nd iteration
GUESSING - TIMING ATTACKS
T R A C E T R A C E
5th iteration
GUESSING - TIMING ATTACKS
T R A C E T R I C K
1th iteration
GUESSING - TIMING ATTACKS
T R A C E T R I C K
2nd iteration
GUESSING - TIMING ATTACKS
T R A C E T R I C K
3rd iteration
GUESSING - TIMING ATTACKS
T R A C E T R I C K
3rd iteration
missmatch - no more iterations
GUESSING - TIMING ATTACKS
the more letters match from the password,
the more time it takes
GUESSING - TIMING ATTACKS
ALWAYS USE FIXED-TIME
COMPARISON
GUESSING - TIMING ATTACKS
INSECURE
DEPENDENCIES
ATTACK TREES - USER ACCOUNT
Get Access
Modify
Credentials
Learn Password
Bypass Access
Control
Get Access to
Database
Social
Engineering
Get Access to
DMZ
Listen on
Transport Layer
Guessing
Insecure
Dependencies
YOU ARE WHAT
YOU REQUIRE
INSECURE DEPENDENCIES
INSECURE DEPENDENCIES
INSECURE DEPENDENCIES
node-uuid is downloaded 255.000 times
daily, while 4.000+ modules depend on it
INSECURE DEPENDENCIES
THE
HUMAN
FACTOR
ATTACK TREES - USER ACCOUNT
Get Access
Modify
Credentials
Learn Password
Bypass Access
Control
Get Access to
Database
Social
Engineering
Get Access to
DMZ
Listen on
Transport Layer
Guessing
Insecure
Dependencies
95% OF ALL SECURITY
INCIDENTS INVOLVE
HUMAN ERROR
WE ARE THE
WEAKEST LINK
security must be part
of the agile workflow
THE HUMAN FACTOR
stories should include
acceptance criteria for
security
THE HUMAN FACTOR
Given an unauthenticated user,
when tries to view her profile,
then redirected to the login.
SECURITY IS
PART OF YOUR
JOB!
- Node.js Security Checklist -
https://blog.risingstack.com/node-js-security-checklist/
- Advisories of NSP - on nodesecurity.io
- OWASP TOP 10 - on owasp.org
WHAT’S NEXT?
Thanks!

Contenu connexe

Similaire à Surviving Web Security - Node Interactive (8)

IS Security Presentation
IS Security PresentationIS Security Presentation
IS Security Presentation
 
Penetration Testing
Penetration TestingPenetration Testing
Penetration Testing
 
network security
network securitynetwork security
network security
 
Unit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptxUnit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptx
 
Man in the middle attacks
Man in the middle attacksMan in the middle attacks
Man in the middle attacks
 
NS-Lec-01&02.ppt
NS-Lec-01&02.pptNS-Lec-01&02.ppt
NS-Lec-01&02.ppt
 
Network security in computer network for BS
Network security in computer network for BSNetwork security in computer network for BS
Network security in computer network for BS
 
Op Sy 03 Ch 61a
Op Sy 03 Ch 61aOp Sy 03 Ch 61a
Op Sy 03 Ch 61a
 

Dernier

6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
ellan12
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Sheetaleventcompany
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 

Dernier (20)

VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 

Surviving Web Security - Node Interactive