
YARA rules are signatures written for YARA, an open-source tool used across the malware analysis community to identify and classify malicious files. A rule describes what to look for in a file or memory image and when to report a match.
Unlike a file hash, which breaks when a single byte changes, a well-written YARA rule matches code that a whole malware family shares. Government agencies and researchers often publish YARA rules alongside malware analysis reports so that defenders can scan their own hosts.
YARA turns threat intelligence into something a team can run. When a new infostealer or ransomware build appears, a published rule lets analysts check endpoints, email attachments and file shares for the same family. It complements Sigma rules, which describe suspicious events in logs rather than patterns in files, and it is a common tool in threat hunting and incident response.
Sources: CISA (NCCIC/ICS-CERT): Using YARA for Malware Detection, NCSC: Cyber Incident Response, Enhanced Level Working Practices