Test a rule before you trust it
A teammate wants to deploy a YARA rule fleet-wide. Run it against known-good software and known samples, measure false positives and misses, and see why one sample slips past.
- Terminal mission
- Advanced
- 4 questions
- 0 of 4 solved
Your goal
Your goalTest a rule against known-good software before it goes fleet-wide, and find what it misses.
The candidate rule in ~/rules/candidate.yar looks for cmd.exe /c or powershell inside any executable. A tuned version adds the loader’s command-line flags and its mutex name.
/srv/goodware holds clean installers and admin tools from your software catalog. /srv/samples holds four confirmed loader samples from the incident. A rule worth deploying hits every sample and no goodware.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words to know
- YARA
- a rule language for finding patterns in files
detect-lab · YARA triage
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in YARA triage
The whole walkthrough
Every step in order: 292 words, about 2 min. It gives away every answer, so try the steps first.