~/talk

How To Write Good YARA Rules

Talkat BSidesAugusta 2022 · on Saturday, 2022-10-01· [security]
links:none on file
slides:none on file

Shows how to write YARA rules that actually work: explains YARA syntax, compiler atomization and condition ordering, and why naive xor searches explode (shows 526 matches in an 89,878‑byte file causing huge slowdowns). Demonstrates using PE and dotnet modules, dnSpy, wide/ASCII string extraction and simple string anchoring to build a detection for a .NET dropper, then tests the rule against eight samples — the produced rule reliably matches the dropper and avoids the costly regex/xor pitfalls.

AI-written summary · about

  1. 0:00Introduction and resources
  2. 1:51What is Yara?
  3. 2:43Yara rule syntax basics
  4. 5:49String types and modifiers
  5. 7:27Byte strings and regex
  6. 8:24Conditions and output
  7. 10:48Advanced string conditions
  8. 12:43Using Yara modules
  9. 17:02Use cases: Identification
  10. 23:01Hunting and triage
  11. 24:07Performance concepts
  12. 25:42Regex performance tips
  13. 28:54Compiler optimization
  14. 32:07Optimizing Yara rules
  15. 34:18XOR obfuscation tricks
  16. 38:32Live rule creation demo
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.