Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

yara

> 编程语言
Open source

The pattern matching swiss knife

9.8K stars0 likes3 views
WebsiteGitHub

About

The pattern matching swiss knife

[!IMPORTANT] This project is in maintenance mode. More info: https://virustotal.github.io/yara-x/blog/yara-x-is-stable/

YARA in a nutshell

YARA is a tool aimed at (but not limited to) helping malware researchers to identify and classify malware samples. With YARA you can create descriptions of malware families (or whatever you want to describe) based on textual or binary patterns. Each description, a.k.a. rule, consists of a set of strings and a boolean expression which determine its logic. Let's see an example:

yara
rule silent_banker : banker
{
    meta:
        description = "This is just an example"
        threat_level = 3
        in_the_wild = true

    strings:
        $a = {6A 40 68 00 30 00 00 6A 14 8D 91}
        $b = {8D 4D B0 2B C1 83 C0 27 99 6A 4E 59 F7 F9}
        $c = "UVODFRYSIHLNWPEJXQZAKCBGMT"

    condition:
        $a or $b or $c
}

The above rule is telling YARA that any file containing one of the three strings must be reported as silent_banker. This is just a simple example, more complex and powerful rules can be created by using wild-cards, case-insensitive strings, regular expressions, special operators and many other features that you'll find explained in YARA's documentation.

YARA is multi-platform, running on Windows, Linux and Mac OS X, and can be used through its command-line interface or from your own Python scripts with the yara-python extension.

Additional resources

Do you use GitHub for storing your YARA rules? YARA-CI may be a useful addition to your toolbelt. This is GitHub application that provides continuous testing for your rules, helping you to identify common mistakes and false positives.

If you plan to use YARA to scan compressed files (.zip, .tar, etc) you should take a look at yextend, a very helpful extension to YARA developed and open-sourced by Bayshore Networks.

Additionally, the guys from InQuest have curated an awesome list of YARA-related stuff.

Who's using YARA

  • 0x101 Cyber Security
  • Adlice
  • AlienVault
  • Avast
  • BAE Systems
  • Bayshore Networks, Inc.
  • Binalyze
  • BinaryAlert
  • Blueliv
  • Cado Security
  • Cisco Talos Intelligence Group
  • Cloudina Security
  • Cofense
  • Conix
  • Corelight
  • CounterCraft
  • Cuckoo Sandbox
  • Cyber Triage
  • Cybereason
  • Digita Security
  • Dragos Platform
  • Dtex Systems
  • ESET
  • ESTsecurity
  • Elastic Security
  • FactorX.ai
  • Fidelis XPS
  • FireEye, Inc.
  • Forcepoint
  • Fox-IT
  • FSF
  • Guidance Software
  • Heroku
  • Hornetsecurity
  • ICS Defense
  • InQuest
  • IntelOwl
  • Joe Security
  • Kaspersky Lab
  • KnowBe4
  • Koodous
  • Laika BOSS
  • Lastline, Inc.
  • libguestfs
  • LimaCharlie
  • Malpedia
  • Malwation
  • McAfee Advanced Threat Defense
  • Metaflows
  • NBS System
  • ndaal
  • NetLock
  • Nextron Systems
  • Nozomi Networks
  • osquery
  • Payload Security
  • PhishMe
  • Picus Security
  • Radare2
  • RedSocks Security
  • ReversingLabs
  • Scanii
  • SecondWrite
  • SonicWall
  • SpamStopsHere
  • Spyre
  • stoQ
  • Sublime Security
  • SumoLogic
  • Tanium
  • Tenable Network Security
  • Tenzir
  • The DigiTrust Group
  • ThreatConnect
  • ThreatStream, Inc.
  • Thug
  • Threat.Zone
  • TouchWeb
  • Trend Micro
  • UnpacMe
  • UpSight Security Inc.
  • Uptycs Inc
  • Veeam
  • Verisys Antivirus API
  • VirusTotal Intelligence
  • VMRay
  • Volexity
  • We Watch Your Website
  • x64dbg
  • YALIH

Are you using it? Want to see your site listed here?

Issues· 167 open

View all issuesOpen on GitHub
  • #2246

    Olapartner.onelink.me

    Updated Sep 10, 2026
  • #2239

    Unvalidated external-variable pointers in the .yrc deserializer cause invalid free in yr_rules_destroy and wild-pointer strdup/strlen in yr_object_create (CWE-763)

    bugUpdated Aug 7, 2026
  • #1058

    Add documentation for Mach-O and dex modules

    Updated Mar 25, 2026
  • #1154

    PE Offset to RVA

    Updated Jun 1, 2025
  • #2156

    Static build

    feature-requestUpdated May 31, 2025
  • #2149

    ELF module - Add additional elf.machine values

    feature-requestUpdated May 8, 2025
  • #2136

    Missing yr_get_version API function

    feature-requestUpdated Feb 13, 2025
  • #1111

    Does Yara regex rule support the multi-line option?

    Updated Dec 8, 2024
  • #2117

    need new syntax "#cond cardinality 3 > 2", which means that the number of matches where the condition cond is satisfied more than 3 times is greater than 2

    feature-requestUpdated Nov 14, 2024
  • #1961

    ImportError on Ubuntu 18.04 and CentOS 7

    bugUpdated Aug 19, 2024

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言