SlideShare une entreprise Scribd logo
1  sur  25
Bots and your Cart
OWASP AppSecIL – October 2017
Amir Shaked, VP Research
© 2017 PerimeterX™
- Automated scripts and devices accessing services
- Make up ~50% of website visitors
- Responsible for legitimate automated transactions
What are
bots?
2
© 2017 PerimeterX™
3
Automated Threats to Web
Apps
•OAT-020 Account Aggregation
•OAT-019 Account Creation
•OAT-003 Ad Fraud
•OAT-009 CAPTCHA Defeat
•OAT-010 Card Cracking
•OAT-001 Carding
•OAT-012 Cashing Out
•OAT-007 Credential Cracking
•OAT-008 Credential Stuffing
•OAT-021 Denial of Inventory
•OAT-015 Denial of Service
•OAT-006 Expediting
•OAT-004 Fingerprinting
•OAT-018 Footprinting
•OAT-005 Scalping
•OAT-011 Scraping
•OAT-016 Skewing
•OAT-013 Sniping
•OAT-017 Spamming
•OAT-002 Token Cracking
•OAT-014 Vulnerability Scanning
https://www.owasp.org/index.php/OWASP_Automated_Threats_to_Web_Applications
© 2017 PerimeterX™
4
Bot evolution: bots are evolving rapidly
Gen 4 Bots - Infected Users
Hijacked Browsers, Fake Extensions
Gen 3 Bots - Headless Browsers
Javascript, Cookies, Engine Automation
Gen 2 Bots - Scripts + State
No Javascript, Cookies
Gen 1 Bots - Scripts
No Javascript, No Cookies
© 2017 PerimeterX™
- Who added the item to the cart?
- Are they going to buy?
- Who really gets the product?
- Who gets a commission?
5
The bot-cart relationship
© 2017 PerimeterX™
Scraping
- Growing business in low margin industries
- Highly distributed
- Anonymized scraping networks
- Can cause Application DDOS
6
© 2017 PerimeterX™
Scraping – Done Right
- Visit a product
7
© 2017 PerimeterX™
Scraping – Done Right
- Visit a product
- Add to cart
- Add a shipping address
- And won’t buy
Price scraping can be up to 20% of cart
traffic
8
© 2017 PerimeterX™
9
Limited Edition!
© 2017 PerimeterX™
Scalping
- In demand tickets
- Limited availability items
- High demand items on release
10
© 2017 PerimeterX™
Bots are coming
Checking if the
sale started
Sale begins, some
human manage to buy
Sale continues,
no humans left
11
© 2017 PerimeterX™
The legal battle
12
© 2017 PerimeterX™
- Isn’t it fair game to buy and sell high?
- Here come the hoarders
- Controlling item availability
- Denial of purchase
Hoarding
13
© 2017 PerimeterX™
Where did my inventory
go?
Visiting the page
Add to cart attempts
Item available
14
© 2017 PerimeterX™
15
Affiliate Fraud
Man in the browser attack
1
Malware in browser extension
2
Watches sites, gets referral id, associates with user
(overwrites other referral if present)3
© 2017 PerimeterX™
16
Lifecycle of a malicious
extension
Wait for user
to access
targeted site
Executes
background
click and
referral links
Get fraud
campaign
instructions
from C&C
Dormant
waiting period
Delay user from
accessing the page
Retrieves payload
of target websites
“Release” user to
load site, claiming
attribution
Published in
browser store
Downloaded by real
user
© 2017 PerimeterX™
Malicious extension – part
1
https://CUSTOMER_WEBSITE/?SSAID=AFFILATE_ID
51K target
domains
117
6
© 2017 PerimeterX™
Malicious extension– part 2
60K target domains
17K in Alexa top
1M
18
“jquery.js”
© 2017 PerimeterX™
19
Finalizing the story
- Scrapers
- Up to date price matching
- Traffic burden
- Hoarding
- Denial of product availability
- Scalping
- Brand reputation
- Affiliate fraud
- Faulty revenue sharing
© 2017 PerimeterX™
How To Fight Back
20
© 2017 PerimeterX™
Captcha ?
- Hurts conversion (~30%)
- Cheap to bypass (~3$ for 1000 solves, 60% success rate)
21
© 2017 PerimeterX™
Monitor
▪ Log everything you can in a single place
▪ Track cart paths usage for anomalies and spikes
▪ Add some fake out of canvas products
▪ Hide them using client side code
▪ If they are accessed you are under attack
22
© 2017 PerimeterX™
HTTP Detection
23
▪ Anomalies and missing values in HTTP headers
▪ Track legitimate flow
▪ Missing XHRs
▪ Lookup suspicious user-agents in github/twitter/reddit (and not just google)
http://mstajbakhsh.github.io/Microbot/
▪ Don’t rely too much on IP reputation
© 2017 PerimeterX™
Javascript Detection
24
▪ Validate user is running javascript
▪ Device fingerprint (https://github.com/Valve/fingerprintjs2)
© 2017 PerimeterX™
Amir Shaked
amirshk@perimeterx.com
25
Interesting? We are
hiring!

Contenu connexe

Similaire à Bots and Carts - AppSec IL 2017

Similaire à Bots and Carts - AppSec IL 2017 (20)

From AMP to PWA
From AMP to PWAFrom AMP to PWA
From AMP to PWA
 
DataDome's winning deck for 2019 FIC (Cybersecurity International Forum) "Pri...
DataDome's winning deck for 2019 FIC (Cybersecurity International Forum) "Pri...DataDome's winning deck for 2019 FIC (Cybersecurity International Forum) "Pri...
DataDome's winning deck for 2019 FIC (Cybersecurity International Forum) "Pri...
 
Are Bad Bots Destroying Your Conversion Rate and Costing You Money?
Are Bad Bots Destroying Your Conversion Rate and Costing You Money?Are Bad Bots Destroying Your Conversion Rate and Costing You Money?
Are Bad Bots Destroying Your Conversion Rate and Costing You Money?
 
CIS 2015 Extreme OAuth - Paul Meyer
CIS 2015 Extreme OAuth - Paul MeyerCIS 2015 Extreme OAuth - Paul Meyer
CIS 2015 Extreme OAuth - Paul Meyer
 
The Case For Next Generation IAM
The Case For Next Generation IAM The Case For Next Generation IAM
The Case For Next Generation IAM
 
Is Your API Being Abused – And Would You Even Notice If It Was?
Is Your API Being Abused – And Would You Even Notice If It Was?Is Your API Being Abused – And Would You Even Notice If It Was?
Is Your API Being Abused – And Would You Even Notice If It Was?
 
API, Integration, and SOA Convergence
API, Integration, and SOA ConvergenceAPI, Integration, and SOA Convergence
API, Integration, and SOA Convergence
 
Digital Trust: How Identity Tackles the Privacy, Security and IoT Challenge
Digital Trust: How Identity Tackles the Privacy, Security and IoT ChallengeDigital Trust: How Identity Tackles the Privacy, Security and IoT Challenge
Digital Trust: How Identity Tackles the Privacy, Security and IoT Challenge
 
How Tracking Companies Circumvent Ad Blockers Using WebSockets
How Tracking Companies Circumvent Ad Blockers Using WebSocketsHow Tracking Companies Circumvent Ad Blockers Using WebSockets
How Tracking Companies Circumvent Ad Blockers Using WebSockets
 
Identity Live Sydney: Intelligent Authentication
Identity Live Sydney: Intelligent Authentication Identity Live Sydney: Intelligent Authentication
Identity Live Sydney: Intelligent Authentication
 
Payment gateway
Payment gatewayPayment gateway
Payment gateway
 
Software development
Software developmentSoftware development
Software development
 
Umbraco CMS Development | ManekTech
Umbraco CMS Development | ManekTechUmbraco CMS Development | ManekTech
Umbraco CMS Development | ManekTech
 
Asp.net Web Application Development Services | ManekTech
Asp.net Web Application Development Services | ManekTechAsp.net Web Application Development Services | ManekTech
Asp.net Web Application Development Services | ManekTech
 
Digital Identity
Digital IdentityDigital Identity
Digital Identity
 
Implementing Open Banking with ForgeRock
Implementing Open Banking with ForgeRockImplementing Open Banking with ForgeRock
Implementing Open Banking with ForgeRock
 
Better Metrics, Less Hacks: Online Travel and The Future of Web Security
Better Metrics, Less Hacks: Online Travel and The Future of Web SecurityBetter Metrics, Less Hacks: Online Travel and The Future of Web Security
Better Metrics, Less Hacks: Online Travel and The Future of Web Security
 
How E-Commerce Providers Can Remove ATO from Their Carts
How E-Commerce Providers Can Remove ATO from Their CartsHow E-Commerce Providers Can Remove ATO from Their Carts
How E-Commerce Providers Can Remove ATO from Their Carts
 
Intelligent Authentication (Identity Live Berlin 2018)
Intelligent Authentication  (Identity Live Berlin 2018)Intelligent Authentication  (Identity Live Berlin 2018)
Intelligent Authentication (Identity Live Berlin 2018)
 
APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...
APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...
APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...
 

Dernier

哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Monica Sydney
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 

Dernier (20)

哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
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
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 

Bots and Carts - AppSec IL 2017

  • 1. Bots and your Cart OWASP AppSecIL – October 2017 Amir Shaked, VP Research
  • 2. © 2017 PerimeterX™ - Automated scripts and devices accessing services - Make up ~50% of website visitors - Responsible for legitimate automated transactions What are bots? 2
  • 3. © 2017 PerimeterX™ 3 Automated Threats to Web Apps •OAT-020 Account Aggregation •OAT-019 Account Creation •OAT-003 Ad Fraud •OAT-009 CAPTCHA Defeat •OAT-010 Card Cracking •OAT-001 Carding •OAT-012 Cashing Out •OAT-007 Credential Cracking •OAT-008 Credential Stuffing •OAT-021 Denial of Inventory •OAT-015 Denial of Service •OAT-006 Expediting •OAT-004 Fingerprinting •OAT-018 Footprinting •OAT-005 Scalping •OAT-011 Scraping •OAT-016 Skewing •OAT-013 Sniping •OAT-017 Spamming •OAT-002 Token Cracking •OAT-014 Vulnerability Scanning https://www.owasp.org/index.php/OWASP_Automated_Threats_to_Web_Applications
  • 4. © 2017 PerimeterX™ 4 Bot evolution: bots are evolving rapidly Gen 4 Bots - Infected Users Hijacked Browsers, Fake Extensions Gen 3 Bots - Headless Browsers Javascript, Cookies, Engine Automation Gen 2 Bots - Scripts + State No Javascript, Cookies Gen 1 Bots - Scripts No Javascript, No Cookies
  • 5. © 2017 PerimeterX™ - Who added the item to the cart? - Are they going to buy? - Who really gets the product? - Who gets a commission? 5 The bot-cart relationship
  • 6. © 2017 PerimeterX™ Scraping - Growing business in low margin industries - Highly distributed - Anonymized scraping networks - Can cause Application DDOS 6
  • 7. © 2017 PerimeterX™ Scraping – Done Right - Visit a product 7
  • 8. © 2017 PerimeterX™ Scraping – Done Right - Visit a product - Add to cart - Add a shipping address - And won’t buy Price scraping can be up to 20% of cart traffic 8
  • 10. © 2017 PerimeterX™ Scalping - In demand tickets - Limited availability items - High demand items on release 10
  • 11. © 2017 PerimeterX™ Bots are coming Checking if the sale started Sale begins, some human manage to buy Sale continues, no humans left 11
  • 12. © 2017 PerimeterX™ The legal battle 12
  • 13. © 2017 PerimeterX™ - Isn’t it fair game to buy and sell high? - Here come the hoarders - Controlling item availability - Denial of purchase Hoarding 13
  • 14. © 2017 PerimeterX™ Where did my inventory go? Visiting the page Add to cart attempts Item available 14
  • 15. © 2017 PerimeterX™ 15 Affiliate Fraud Man in the browser attack 1 Malware in browser extension 2 Watches sites, gets referral id, associates with user (overwrites other referral if present)3
  • 16. © 2017 PerimeterX™ 16 Lifecycle of a malicious extension Wait for user to access targeted site Executes background click and referral links Get fraud campaign instructions from C&C Dormant waiting period Delay user from accessing the page Retrieves payload of target websites “Release” user to load site, claiming attribution Published in browser store Downloaded by real user
  • 17. © 2017 PerimeterX™ Malicious extension – part 1 https://CUSTOMER_WEBSITE/?SSAID=AFFILATE_ID 51K target domains 117 6
  • 18. © 2017 PerimeterX™ Malicious extension– part 2 60K target domains 17K in Alexa top 1M 18 “jquery.js”
  • 19. © 2017 PerimeterX™ 19 Finalizing the story - Scrapers - Up to date price matching - Traffic burden - Hoarding - Denial of product availability - Scalping - Brand reputation - Affiliate fraud - Faulty revenue sharing
  • 20. © 2017 PerimeterX™ How To Fight Back 20
  • 21. © 2017 PerimeterX™ Captcha ? - Hurts conversion (~30%) - Cheap to bypass (~3$ for 1000 solves, 60% success rate) 21
  • 22. © 2017 PerimeterX™ Monitor ▪ Log everything you can in a single place ▪ Track cart paths usage for anomalies and spikes ▪ Add some fake out of canvas products ▪ Hide them using client side code ▪ If they are accessed you are under attack 22
  • 23. © 2017 PerimeterX™ HTTP Detection 23 ▪ Anomalies and missing values in HTTP headers ▪ Track legitimate flow ▪ Missing XHRs ▪ Lookup suspicious user-agents in github/twitter/reddit (and not just google) http://mstajbakhsh.github.io/Microbot/ ▪ Don’t rely too much on IP reputation
  • 24. © 2017 PerimeterX™ Javascript Detection 24 ▪ Validate user is running javascript ▪ Device fingerprint (https://github.com/Valve/fingerprintjs2)
  • 25. © 2017 PerimeterX™ Amir Shaked amirshk@perimeterx.com 25 Interesting? We are hiring!