SlideShare a Scribd company logo
Safely Drinking From The Fire Hose   @jschauma




Jan Schaumann
Señor Network Security Engineer

jschauma@etsy.com

B60D A9F7 0D89 544A 7995
7D25 5A5B 4375 275F 0BB5
I <3 logs!                              @jschauma




                                        web logs
                           mail logs
            system logs

vpn logs




                                 2
            08/28/12
Log Bongzilla, aka Splunk                           @jschauma




            Logs go in…




Is this how Octocat
    came to be?




                                ts
        come
                          ler                     out
                  ri ty a
              secu



                                      2
                 08/28/12
Splunk Alerts FTW!           @jschauma



  YO DAWG, I HERD YOU LIKE LOGS




  SO I PUT SOME LOGS IN YOUR LOGS
SO YOU CAN SPLUNK WHILE YOU SPLUNK
                      2
      08/28/12
sudo make me a sandwich        @jschauma




                          2
   08/28/12
Know your patterns.                                             @jschauma



                   VPN Connections




July 4th was a Wednesday
                                                         People making up for
                            People slacking off early
        last week?
                                on a Friday, eh?


                                  5
                             08/28/12
That was unexpected…   @jschauma
XSS detection                          @jschauma




             Announcement of
            Bug Bounty program:
            http://is.gd/UTZ5wD




            code push to address
           reported vulnerabilities

                                 6
    08/28/12
Geolocate all the things!        @jschauma




                            3
   08/28/12
XSS detection                                              @jschauma

IP          : 79.182.16.1 - bzq-79-182-16-1.red.bezeqint.net
Geolocation : Even Yehuda, 02, IL                              
Whois        : *SE4-DRP*, RIPE, BEZEQINT-BROADBAND
Requests : 146                                               
  Method : GET
  URL       : /suggest_username.php?first-name=test&last-name=
onerror%3Dalert(0)%3E&email=shai%40exploit.co.il
                               13 minutes after we announced
                              our security bug bounty program

                                   http://is.gd/UTZ5wD
  Method : POST                                           
  URL      : /your/profile                                     
  Data     : u'fb_avatar_url=&gender=female&city3=&new_city=
"><img src=x onerror=prompt(1);>&new_region=&new_countrycode=
&new_latlon=,&city3_dup="><img src=x’

[…]


                                 6
                              08/28/12
SQLi detection                                    @jschauma

IP          : 216.185.114.219 – unknown
Geolocation : Jurong East, 00, SG
Whois        : ThePlanet.com Internet Services, Inc., ARIN, NET216
Requests     : 20
 Method     : GET                                           
  URL       : /listing/102946830/womens-shirt-beige-tunic-womens-
blouse?ref=999999.9%27+union+all+select+0x313032353438303035
36%2C0x31303235343830303536%2C0x31303235343830303536
%2C0x31303235343830303536%2C0x31303235343830303536%2
C0x31303235343830303536%2C0x31303235343830303536%2C0
x31303235343830303536%2C0x31303235343830303536%2C0x31
830303536%2C0x31303235343830303536%2C0x31303235343830
303536%2C0x31303235343830303536%2C0x31303235343830303
536+and+%27x%27%3D%27x

   Method   : GET
      URL   : /category/furniture?page=499999%27%20union%20
 select%20unhex(hex(version()))%20
 
 […]
                              6
                   08/28/12
Know when people can’t log in…        @jschauma




                                 2
   08/28/12
High number of failed logins                               @jschauma

Admin             : <username> (<internal login>, <site login>)
IP                : 64.124.192.210 - 64.124.192.210.t01419-07.above.net
Geolocation        : Brooklyn, NY, US
Whois              : ETSY Inc, ARIN, NET64
# of failed logins : 13 
                        doesn’t know what he’s doing;
                                                           do not trust!

Admin             : jschauma (jschauma, jschauma)
IP                : 207.38.139.33 - 207-38-139-33.c3-0.avec-ubr2.nyr-
                    avec.ny.cable.rcn.com
Geolocation       : New York, United States
Whois             : RCN Corporation, ARIN, NET207
# of failed logins : 16




                                       6
                          08/28/12
Geolocate all the things!        @jschauma




                            4
   08/28/12
“Unexpected” login detection                         @jschauma

Admin      : <username> (<internal login>, <site login>)
IP          : 83.160.48.31 - a83-160-48-31.adsl.xs4all.nl
Geolocation : Rotterdam, 11, NL
Whois        : XS4ALL Internet BV, RIPE, DEMON-NL-DSL
Admin      : <username> (<internal login>, <site login>)
IP          : 217.192.56.102 – unknown
Geolocation : Zurich, 25, CH
Whois        : The Hub Zuerich Assoc., RIPE, THE-HUB-ZUERICH-NET 

Admin      : <username> (<internal login>, <site login>)
IP          : 24.231.49.240 - unknown
Geolocation : Nassau, 23, BS                                            
Whois        : Cable Bahamas, ARIN, CABLEBAHAMAS-NET

Admin      : <username> (<internal login>, <site login>)
IP          : 200.49.191.120 - map120.network49.191.tigo.net.gt
Geolocation : Guatemala City, 07, GT
Whois        : COMCEL GUATEMALA S.A., LACNIC

                                     6
                    08/28/12
I said: “Please insert girder!”   @jschauma
Identify scrapers.                                     @jschauma


Admin      : <username> (<internal login>, <site login>)
IP          : 50.17.73.70 - ec2-50-17-73-70.compute-1.amazonaws.com
Geolocation : Ashburn, VA, US                               
Whois        : Amazon.com, Inc., ARIN, NET50
Provider     : Amazon AWS                                     
Count       :7


Admin      : <username> (<internal login>, <site login>)
IP          : 207.228.237.110 – unknown
Geolocation : New York, NY, US
Whois        : HopOne Internet Corporation, ARIN, NET207
Provider     : HopOne                                     
Count         :1




                                  6
                          08/28/12
Re-re-re-re-re-CAPTCHA                                      @jschauma


source=”info.log" reCAPTCHA status="incorrect" | transaction ip | 
  where eventcount > 50 | table ip,eventcount | sort -eventcount




                                 6
                           08/28/12
Of Liars and Outliers (good book, btw)                   @jschauma




wtf happened
   here?   
                                                        Ooh, right… this:
                                                         http://is.gd/fognju
                                                        http://is.gd/0hRDLY
                                                        http://is.gd/WxcA0r




                                                  6
                     08/28/12
This talk was too long!                      @jschauma



   Log it now, log it all.

   Geolocate all the things.

   Build profiles. (Creepy, I know.)

   Reduce false positives. (Whitelists!)

   Have defined reactions to all alerts.

   Notice the outliers.
 Explain them.


               That’s all, folks! Thanks!

                            2
               08/28/12

More Related Content

PDF
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
PDF
Development is Production Too
PDF
WCIT 2012 - Assespro Oficial Bid Book
PDF
April 17, 2012 CIty Council Agenda Packet
PDF
Memcached Presentation @757rb
PDF
Gerenciamento de Backups PostgreSQL com pgbarman
PDF
Various hints & tips around Solution Selling (January 2014)
PDF
Marco Hogewoning -XS4all
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
Development is Production Too
WCIT 2012 - Assespro Oficial Bid Book
April 17, 2012 CIty Council Agenda Packet
Memcached Presentation @757rb
Gerenciamento de Backups PostgreSQL com pgbarman
Various hints & tips around Solution Selling (January 2014)
Marco Hogewoning -XS4all

Viewers also liked (15)

PDF
Simple Log Analysis and Trending
PDF
12-Step Program for Scaling Web Applications on PostgreSQL
TXT
英文 Rc heli
PDF
Scaling postgres
PDF
Cybersecurity nl
PDF
Scaling Etsy: What Went Wrong, What Went Right
TXT
4000 auto approve wordpress blogs backlink list (pr8-pr1)
PDF
The Evolution Of The Music Industry The Effect Of Technology And Law On Stra...
PDF
Talk talk talk 2
PDF
From Obvious to Ingenius: Incrementally Scaling Web Apps on PostgreSQL
PDF
K TO 12 GRADE 7 LEARNING MATERIAL IN EDUKASYON SA PAGPAPAKATAO (Q1-Q2)
PDF
Etsy Case Study
PDF
88 Gibraltar i-remit collection procedure
PDF
Design for Continuous Experimentation
PDF
Netflix marketing plan
Simple Log Analysis and Trending
12-Step Program for Scaling Web Applications on PostgreSQL
英文 Rc heli
Scaling postgres
Cybersecurity nl
Scaling Etsy: What Went Wrong, What Went Right
4000 auto approve wordpress blogs backlink list (pr8-pr1)
The Evolution Of The Music Industry The Effect Of Technology And Law On Stra...
Talk talk talk 2
From Obvious to Ingenius: Incrementally Scaling Web Apps on PostgreSQL
K TO 12 GRADE 7 LEARNING MATERIAL IN EDUKASYON SA PAGPAPAKATAO (Q1-Q2)
Etsy Case Study
88 Gibraltar i-remit collection procedure
Design for Continuous Experimentation
Netflix marketing plan
Ad

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Approach and Philosophy of On baking technology
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
August Patch Tuesday
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Hybrid model detection and classification of lung cancer
PDF
project resource management chapter-09.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
OMC Textile Division Presentation 2021.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
1 - Historical Antecedents, Social Consideration.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Approach and Philosophy of On baking technology
TLE Review Electricity (Electricity).pptx
Hindi spoken digit analysis for native and non-native speakers
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Enhancing emotion recognition model for a student engagement use case through...
Assigned Numbers - 2025 - Bluetooth® Document
August Patch Tuesday
Unlocking AI with Model Context Protocol (MCP)
WOOl fibre morphology and structure.pdf for textiles
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Hybrid model detection and classification of lung cancer
project resource management chapter-09.pdf
cloud_computing_Infrastucture_as_cloud_p
Chapter 5: Probability Theory and Statistics
Heart disease approach using modified random forest and particle swarm optimi...
OMC Textile Division Presentation 2021.pptx
Ad

Safely Drinking from the Data Waterhose

  • 1. Safely Drinking From The Fire Hose @jschauma Jan Schaumann Señor Network Security Engineer jschauma@etsy.com B60D A9F7 0D89 544A 7995 7D25 5A5B 4375 275F 0BB5
  • 2. I <3 logs! @jschauma web logs mail logs system logs vpn logs 2 08/28/12
  • 3. Log Bongzilla, aka Splunk @jschauma Logs go in… Is this how Octocat came to be? ts come ler out ri ty a secu 2 08/28/12
  • 4. Splunk Alerts FTW! @jschauma YO DAWG, I HERD YOU LIKE LOGS SO I PUT SOME LOGS IN YOUR LOGS SO YOU CAN SPLUNK WHILE YOU SPLUNK 2 08/28/12
  • 5. sudo make me a sandwich @jschauma 2 08/28/12
  • 6. Know your patterns. @jschauma VPN Connections July 4th was a Wednesday People making up for People slacking off early last week? on a Friday, eh? 5 08/28/12
  • 8. XSS detection @jschauma Announcement of Bug Bounty program: http://is.gd/UTZ5wD code push to address reported vulnerabilities 6 08/28/12
  • 9. Geolocate all the things! @jschauma 3 08/28/12
  • 10. XSS detection @jschauma IP : 79.182.16.1 - bzq-79-182-16-1.red.bezeqint.net Geolocation : Even Yehuda, 02, IL Whois : *SE4-DRP*, RIPE, BEZEQINT-BROADBAND Requests : 146 Method : GET URL : /suggest_username.php?first-name=test&last-name= onerror%3Dalert(0)%3E&email=shai%40exploit.co.il 13 minutes after we announced our security bug bounty program http://is.gd/UTZ5wD Method : POST URL : /your/profile Data : u'fb_avatar_url=&gender=female&city3=&new_city= "><img src=x onerror=prompt(1);>&new_region=&new_countrycode= &new_latlon=,&city3_dup="><img src=x’ […] 6 08/28/12
  • 11. SQLi detection @jschauma IP : 216.185.114.219 – unknown Geolocation : Jurong East, 00, SG Whois : ThePlanet.com Internet Services, Inc., ARIN, NET216 Requests : 20 Method : GET URL : /listing/102946830/womens-shirt-beige-tunic-womens- blouse?ref=999999.9%27+union+all+select+0x313032353438303035 36%2C0x31303235343830303536%2C0x31303235343830303536 %2C0x31303235343830303536%2C0x31303235343830303536%2 C0x31303235343830303536%2C0x31303235343830303536%2C0 x31303235343830303536%2C0x31303235343830303536%2C0x31 830303536%2C0x31303235343830303536%2C0x31303235343830 303536%2C0x31303235343830303536%2C0x31303235343830303 536+and+%27x%27%3D%27x Method : GET URL : /category/furniture?page=499999%27%20union%20 select%20unhex(hex(version()))%20 […] 6 08/28/12
  • 12. Know when people can’t log in… @jschauma 2 08/28/12
  • 13. High number of failed logins @jschauma Admin : <username> (<internal login>, <site login>) IP : 64.124.192.210 - 64.124.192.210.t01419-07.above.net Geolocation : Brooklyn, NY, US Whois : ETSY Inc, ARIN, NET64 # of failed logins : 13 doesn’t know what he’s doing; do not trust! Admin : jschauma (jschauma, jschauma) IP : 207.38.139.33 - 207-38-139-33.c3-0.avec-ubr2.nyr- avec.ny.cable.rcn.com Geolocation : New York, United States Whois : RCN Corporation, ARIN, NET207 # of failed logins : 16 6 08/28/12
  • 14. Geolocate all the things! @jschauma 4 08/28/12
  • 15. “Unexpected” login detection @jschauma Admin : <username> (<internal login>, <site login>) IP : 83.160.48.31 - a83-160-48-31.adsl.xs4all.nl Geolocation : Rotterdam, 11, NL Whois : XS4ALL Internet BV, RIPE, DEMON-NL-DSL Admin : <username> (<internal login>, <site login>) IP : 217.192.56.102 – unknown Geolocation : Zurich, 25, CH Whois : The Hub Zuerich Assoc., RIPE, THE-HUB-ZUERICH-NET Admin : <username> (<internal login>, <site login>) IP : 24.231.49.240 - unknown Geolocation : Nassau, 23, BS Whois : Cable Bahamas, ARIN, CABLEBAHAMAS-NET Admin : <username> (<internal login>, <site login>) IP : 200.49.191.120 - map120.network49.191.tigo.net.gt Geolocation : Guatemala City, 07, GT Whois : COMCEL GUATEMALA S.A., LACNIC 6 08/28/12
  • 16. I said: “Please insert girder!” @jschauma
  • 17. Identify scrapers. @jschauma Admin : <username> (<internal login>, <site login>) IP : 50.17.73.70 - ec2-50-17-73-70.compute-1.amazonaws.com Geolocation : Ashburn, VA, US Whois : Amazon.com, Inc., ARIN, NET50 Provider : Amazon AWS Count :7 Admin : <username> (<internal login>, <site login>) IP : 207.228.237.110 – unknown Geolocation : New York, NY, US Whois : HopOne Internet Corporation, ARIN, NET207 Provider : HopOne Count :1 6 08/28/12
  • 18. Re-re-re-re-re-CAPTCHA @jschauma source=”info.log" reCAPTCHA status="incorrect" | transaction ip | where eventcount > 50 | table ip,eventcount | sort -eventcount 6 08/28/12
  • 19. Of Liars and Outliers (good book, btw) @jschauma wtf happened here? Ooh, right… this: http://is.gd/fognju http://is.gd/0hRDLY http://is.gd/WxcA0r 6 08/28/12
  • 20. This talk was too long! @jschauma Log it now, log it all. Geolocate all the things. Build profiles. (Creepy, I know.) Reduce false positives. (Whitelists!) Have defined reactions to all alerts. Notice the outliers. Explain them. That’s all, folks! Thanks! 2 08/28/12