Modern web applications generate a ton of logs. Suites like ELK (Elasticsearch, Logstash, and Kibana) exist to help manage these logs, and more people are turning to them for their log analysis needs. These logs contain a treasure trove of information regarding bad actors on your site, but surfacing that information in a timely manner can be difficult. When Etsy moved over from Splunk to ELK in mid-2014, it realized that ELK lacked necessary functionality to allow real-time alerting. Etsy was in need of a solution that provided a robust means of querying ELK and adding additional context to the data. It ended up creating its own framework to provide this functionality.
Kenneth Lee and Kai Zhong introduce 411, Etsy’s new open source tool designed as a solution for detecting and alerting on interesting anomalies and security events. The Security team at Etsy was interested in using this functionality to detect everything from XSS to monitoring for potential account compromises. Kenneth and Kai start with a discussion of what you should be logging into Elasticsearch. This is important to help you create useful, actionable alerts in 411. They note a number of configuration tips and tricks to help you get the most out of your ELK cluster before diving into 411’s features and explaining how it allows the Etsy Security team to work effectively. Kenneth and Kai conclude with two demos of 411 in action. Along the way, they demonstrate several examples of useful searches you can build in 411 and show how this data can be manipulated to generate clear actionable alerts; they also explore the built-in workflow for responding to alerts and explain how 411 allows you to pull up additional context as you work on an alert.
While much of the discussion will be centered around ELK, 411 can be used with a variety of data sources in parallel. 411 is open source, and includes several of these search plugins. You’ll learn how you can make use of these plugins to immediately start building alerts and how to build additional extensions to connect 411 to new data sources.
Kenneth Lee is a senior product security engineer at Etsy working on everything from managing the bug bounty program to shattering the site with new vulnerabilities. Previously, Kenneth worked at FactSet Research Systems preventing hackers from stealing financial data. He holds an MS in computer science with a focus on computer security from Columbia. Between sweet hacks, Kenneth enjoys drinking tea and force-feeding Etsy’s operations team Japanese chocolates.
Kai Zhong is a security engineer at Etsy. At work, he maintains security features on the site, works on 411, does the occasional code review, and breaks the login page. Kai spends his free time playing video games, participating in CTFs, and trying to learn abstract algebra. He prefers cats, but dogs are fine too.
©2016, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org