Sigma Rules: SSH Brute Force & SUID Binary Detection with Multi-Platform Query Conversion
Advanced · 60 minutes · 100 points
In this advanced lab, you will write production-quality Sigma rules to detect two critical attack patterns: SSH brute force authentication attempts and the creation of suspicious SUID binaries. You will install and configure sigma-cli, convert your rules into both Elasticsearch (Lucene) and Splunk SPL queries, and validate the detection logic against realistic sample auditd and auth.log entries. This lab covers the full detection engineering lifecycle from rule authorship to query deployment.
What you’ll learn
- Write valid Sigma rules in YAML format targeting SSH brute force and SUID binary creation events
- Use sigma-cli to convert Sigma rules into Elasticsearch Lucene and Splunk SPL backend queries
- Generate and test sample auditd and auth.log entries that trigger the detection conditions
- Validate detection logic by grepping converted query field patterns against sample log data
- Understand Sigma rule structure including logsource, detection, and condition fields
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Basic familiarity with YAML syntax
- Understanding of Linux authentication logs and auditd
Topics: sigma, detection-engineering, elasticsearch, splunk, auditd, ssh-brute-force, suid, mitre-attck, threat-detection, log-analysis
Create a free account to start this lab.