YARA triageHackBlue

A ransom note rule that stops flagging the FAQ

A loose ransom-note rule fires on finance documents that mention bitcoin. Read a tighter rule that uses a regex, a count, and filesize, measure the difference, and explain each condition.

  • Terminal mission
  • Advanced
  • 4 questions
  • 0 of 4 solved

Your goal

Your goalMeasure how much a tighter YARA rule cuts false alarms, and explain why each condition matters.

During a ransomware drill the file share sweep flagged dozens of documents, burying the two real notes. The loose rule matches any file mentioning bitcoin, .onion, or decrypt.

In a condition, #name counts the matches of one string, "N of them" needs N different strings, and filesize limits matches to small files. Each one removes a different kind of false positive.

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

analyst@detect-lab

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.