SlideShare a Scribd company logo
1 of 14
Download to read offline
Robot Attack!
Repelling Bots, DDOS, and other Fiends
BADCamp 2015
https://pantheon.io
Jessi Fischer
Enterprise Onboarding Manager - Pantheon
Suzanne Aldrich
Solutions Engineer - CloudFlare
MEET YOUR GUIDES
https://pantheon.io
Surveying Robots
Detecting Attacks
Evading Spam
Withstanding High Traffic
Questions
AGENDA
https://pantheon.io
Spam - Unsolicited advertising posted on a blog or sent via email
Phishing - Attempted theft of data or takeover of accounts
Malware - Software designed to be malicious
Robot - Automated software designed to perform functions repeatedly
DDoS - Attempt to make a server or network resource unavailable to Internet users
WAF - Web Application Firewall
DNS - Domain name system answers queries with IPs
OSI - Open System Interconnection Model
Layer 3 & 4 - Network and Transport layers (IPv4 & IPv6, TCP, UDP)
Layer 7 - Application layer (Chrome, Firefox)
GLOSSARY
https://pantheon.io
Internet bot:
● Robot, WWW bot, bot, botnet, zombies
● Automated scanning of website
resources at high rate
● Good bots: Web spiders
○ Googlebot
○ MSNBot/Bingbot
○ Baidu
○ Yandex
○ Pingdom
Drupal’s robots.txt
https://api.drupal.org/api/drupal/robots.
txt/7
User-agent: *
Crawl-delay: 10
Disallow: /includes/
Disallow: /CHANGELOG.txt
Disallow: /cron.php
Disallow: /install.php
Disallow: /update.php
Disallow: /xmlrpc.php
HISTORY OF THE ROBOT
https://pantheon.io
Bad bots:
● Spambots - advertising links
● Email harvesters
● Downloaders & scrapers
● Referral & click fraud
● Rogue spiders
○ MegaIndex:
Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +https://www.
megaindex.ru/?tab=linkAnalyze)
● Infectious agents
● Botnets & zombies
BAD BOTS
https://pantheon.io
Id Date Severit Type
Message
3161818 16/Jun 16:45 notice spambot
Blocked registration: email=supplyweqz@gmail.
com,ip=120.43.21.95
3161817 16/Jun 16:45 notice user
Login attempt failed for JulianHut.
3161794 16/Jun 16:44 notice user
Login attempt failed for Julianml.
DETECTING ATTACKS
https://pantheon.io
Common SPAM Defense Methods:
● CAPTCHA - Completely Automated Public
Turing test to tell Computers and
Humans Apart
● Timegate (Time Difference)
● Honeypot
● Content analysis
● Visitor reputation
Popular Drupal Modules:
CAPTCHA/reCAPTCHA - https://www.drupal.
org/project/captcha
https://www.drupal.org/project/recaptcha
Mollom - https://www.drupal.org/project/mollom
Honeypot - https://www.drupal.org/project/honeypot
Antispam - https://www.drupal.org/project/antispam
Spambot - https://www.drupal.org/project/spambot
CloudFlare - https://www.drupal.org/project/cloudflare
Spam prevention - https://groups.drupal.org/node/77093
EVADING SPAM
https://pantheon.io
Problems with CAPTCHA:
● Cookies prevent anonymous caching
○ High traffic sites require edge cache
● Usability
○ Inconvenient
○ Barrier
● Accessibility
○ Visual impairment
ANTI-SPAM STRATEGIC PITFALLS
Problems with External APIs:
● 3rd party dependency
● Availability & rate limiting
● CAPTCHA fallback
● Cost of service
● User Privacy
https://pantheon.io
● Poor performance + bots = downtime
● Server and log monitoring
● Fix site errors in module code and theme
templates
● Anonymous page caching
● Views query and rendered results caching
● Dedicated cacheserver - Redis
● Disable comments/cookies/statistics
● Setup CDN for serving assets
● Block IPs at firewall
● Withstand many Layer 7 attacks
WITHSTANDING HIGH TRAFFIC
$ curl -Ik http://www.example.
com/comment/reply/12345
...
X-Varnish: 3649165893
Age: 0
Via: 1.1 varnish
Connection: keep-alive
Vary: Cookie, Cookie
https://pantheon.io
Types of DDoS Attack:
• DNS Amplification - Layer 3
and 4
• DNS Flood - Layer 3 and 4
• SYN Flood - Layer 3 and 4
• HTTP Application Denial of
Service - Layer 7
DDOS PROTECTION
https://pantheon.io
D0000 - Block Large Requests to xmlrpc.php for Drupal CMS
D0002 - Block requests with odd array arguments
D0001 - Block Requests to xmlrpc.php for Drupal CMS
URIs:
/xmlrpc.php -- most common
/?q=node&destination=node
/blog/xmlrpc.php
/user/login/
HTTP Method:
POST -- most common
GET
10.223.224.238 - - [05/Feb/2015:23:34:47 +0000] "POST /xmlrpc.
php HTTP/1.1" 404 5377 "-" "Mozilla/4.0 (compatible: MSIE 7.0;
Windows NT 6.0)" 0.251 "5.189.129.224, 108.162.254.28,
10.183.251.3"
10.223.224.238 - - [05/Feb/2015:23:34:47 +0000] "GET /feed/
HTTP/1.1" 200 6354 "http://example.com/feed/" "SimplePie/1.3.1
(Feed Parser; http://simplepie.org; Allow like Gecko)
Build/20140407093003" 0.201 "54.216.178.194, 141.101.98.27,
10.183.251.3"
10.223.193.24 - - [05/Feb/2015:23:34:47 +0000] "POST /xmlrpc.
php HTTP/1.1" 404 5377 "-" "Mozilla/4.0 (compatible: MSIE 7.0;
Windows NT 6.0)" 0.233 "5.189.129.224, 108.162.254.28,
10.183.251.3"
CLOUDFLARE DRUPAL WAF RULES
https://pantheon.io
Frequency of WAF Triggers Over 30 Days Percentage of Triggers by WAF Rule
CLOUDFLARE DRUPAL WAF TRIGGERS
https://pantheon.io
Q&A

More Related Content

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Robot Attack! Repelling Bots, DDOS, and other Fiends - BADCamp 2015

  • 1. Robot Attack! Repelling Bots, DDOS, and other Fiends BADCamp 2015
  • 2. https://pantheon.io Jessi Fischer Enterprise Onboarding Manager - Pantheon Suzanne Aldrich Solutions Engineer - CloudFlare MEET YOUR GUIDES
  • 3. https://pantheon.io Surveying Robots Detecting Attacks Evading Spam Withstanding High Traffic Questions AGENDA
  • 4. https://pantheon.io Spam - Unsolicited advertising posted on a blog or sent via email Phishing - Attempted theft of data or takeover of accounts Malware - Software designed to be malicious Robot - Automated software designed to perform functions repeatedly DDoS - Attempt to make a server or network resource unavailable to Internet users WAF - Web Application Firewall DNS - Domain name system answers queries with IPs OSI - Open System Interconnection Model Layer 3 & 4 - Network and Transport layers (IPv4 & IPv6, TCP, UDP) Layer 7 - Application layer (Chrome, Firefox) GLOSSARY
  • 5. https://pantheon.io Internet bot: ● Robot, WWW bot, bot, botnet, zombies ● Automated scanning of website resources at high rate ● Good bots: Web spiders ○ Googlebot ○ MSNBot/Bingbot ○ Baidu ○ Yandex ○ Pingdom Drupal’s robots.txt https://api.drupal.org/api/drupal/robots. txt/7 User-agent: * Crawl-delay: 10 Disallow: /includes/ Disallow: /CHANGELOG.txt Disallow: /cron.php Disallow: /install.php Disallow: /update.php Disallow: /xmlrpc.php HISTORY OF THE ROBOT
  • 6. https://pantheon.io Bad bots: ● Spambots - advertising links ● Email harvesters ● Downloaders & scrapers ● Referral & click fraud ● Rogue spiders ○ MegaIndex: Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +https://www. megaindex.ru/?tab=linkAnalyze) ● Infectious agents ● Botnets & zombies BAD BOTS
  • 7. https://pantheon.io Id Date Severit Type Message 3161818 16/Jun 16:45 notice spambot Blocked registration: email=supplyweqz@gmail. com,ip=120.43.21.95 3161817 16/Jun 16:45 notice user Login attempt failed for JulianHut. 3161794 16/Jun 16:44 notice user Login attempt failed for Julianml. DETECTING ATTACKS
  • 8. https://pantheon.io Common SPAM Defense Methods: ● CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart ● Timegate (Time Difference) ● Honeypot ● Content analysis ● Visitor reputation Popular Drupal Modules: CAPTCHA/reCAPTCHA - https://www.drupal. org/project/captcha https://www.drupal.org/project/recaptcha Mollom - https://www.drupal.org/project/mollom Honeypot - https://www.drupal.org/project/honeypot Antispam - https://www.drupal.org/project/antispam Spambot - https://www.drupal.org/project/spambot CloudFlare - https://www.drupal.org/project/cloudflare Spam prevention - https://groups.drupal.org/node/77093 EVADING SPAM
  • 9. https://pantheon.io Problems with CAPTCHA: ● Cookies prevent anonymous caching ○ High traffic sites require edge cache ● Usability ○ Inconvenient ○ Barrier ● Accessibility ○ Visual impairment ANTI-SPAM STRATEGIC PITFALLS Problems with External APIs: ● 3rd party dependency ● Availability & rate limiting ● CAPTCHA fallback ● Cost of service ● User Privacy
  • 10. https://pantheon.io ● Poor performance + bots = downtime ● Server and log monitoring ● Fix site errors in module code and theme templates ● Anonymous page caching ● Views query and rendered results caching ● Dedicated cacheserver - Redis ● Disable comments/cookies/statistics ● Setup CDN for serving assets ● Block IPs at firewall ● Withstand many Layer 7 attacks WITHSTANDING HIGH TRAFFIC $ curl -Ik http://www.example. com/comment/reply/12345 ... X-Varnish: 3649165893 Age: 0 Via: 1.1 varnish Connection: keep-alive Vary: Cookie, Cookie
  • 11. https://pantheon.io Types of DDoS Attack: • DNS Amplification - Layer 3 and 4 • DNS Flood - Layer 3 and 4 • SYN Flood - Layer 3 and 4 • HTTP Application Denial of Service - Layer 7 DDOS PROTECTION
  • 12. https://pantheon.io D0000 - Block Large Requests to xmlrpc.php for Drupal CMS D0002 - Block requests with odd array arguments D0001 - Block Requests to xmlrpc.php for Drupal CMS URIs: /xmlrpc.php -- most common /?q=node&destination=node /blog/xmlrpc.php /user/login/ HTTP Method: POST -- most common GET 10.223.224.238 - - [05/Feb/2015:23:34:47 +0000] "POST /xmlrpc. php HTTP/1.1" 404 5377 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" 0.251 "5.189.129.224, 108.162.254.28, 10.183.251.3" 10.223.224.238 - - [05/Feb/2015:23:34:47 +0000] "GET /feed/ HTTP/1.1" 200 6354 "http://example.com/feed/" "SimplePie/1.3.1 (Feed Parser; http://simplepie.org; Allow like Gecko) Build/20140407093003" 0.201 "54.216.178.194, 141.101.98.27, 10.183.251.3" 10.223.193.24 - - [05/Feb/2015:23:34:47 +0000] "POST /xmlrpc. php HTTP/1.1" 404 5377 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" 0.233 "5.189.129.224, 108.162.254.28, 10.183.251.3" CLOUDFLARE DRUPAL WAF RULES
  • 13. https://pantheon.io Frequency of WAF Triggers Over 30 Days Percentage of Triggers by WAF Rule CLOUDFLARE DRUPAL WAF TRIGGERS