Habr•July 23, 2026•🇷🇺Translated from Russian

YARA Style Guide: Comprehensive Best Practices for Naming, Structuring and Maintaining Detection Rules

Florian Roth’s YARA Style Guide has been translated and adapted by security specialist Maxim Motikov of the Russian company Garda to help teams maintain large, consistent collections of detection rules. The guide addresses the common problem that YARA lacks a strict naming or formatting standard, causing rulebases to become disorganized over time.

Rule Naming Conventions

Rule names should combine threat category, context, target platform and creation date so that analysts can understand the purpose of a rule without opening the file. Recommended category prefixes include MAL for malware, HKTL for hacktools, WEBSHELL, EXPL for exploits, VULN for vulnerabilities, SUSP for suspicious patterns and PUA for potentially unwanted applications.

Context tags such as APT, CRIME, RANSOM and ANOMALY can be added, followed by malware type indicators like RAT, Implant, Stealer, Loader or Crypter. Platform and technology suffixes cover operating systems (WIN, LNX, MacOS), architectures (X64, X86, ARM) and file formats or languages (PE, ELF, PS1, VBS, JS, NET, Go, Rust, PHP and others).

Packers such as UPX, Themida and NSIS should be noted when relevant, and specific threat actor or family names (Lazarus, CozyBear, CobaltStrike, PlugX, QakBot) are written in full. Unique suffixes such as May23 or _1 help prevent naming collisions.

Rule Structure and Metadata

Every rule follows a consistent layout with meta, strings and condition sections. Mandatory metadata fields are description (starting with “Detects …”), author, reference and date in YYYY-MM-DD format. Optional but recommended fields include score (0–100), hash (preferably SHA256), modified date and license.

The score helps prioritize alerts: values above 85 indicate high-confidence detections, while lower scores flag generic or low-severity indicators. Additional tags can be stored in a dedicated meta field when they are not central enough for the rule name.

String Organization and Readability

Strings are categorized into three groups: high-specificity strings prefixed with $x*, group strings prefixed with $s* and preliminary filter strings prefixed with $a*. False-positive indicators receive the $fp* prefix so that matches on legitimate patterns can suppress alerts.

Hexadecimal byte sequences should be accompanied by ASCII comments when possible, and long values may be split into 16-byte segments. Simple text strings must never be written as hex unless they contain control characters.

Condition Formatting

Conditions should follow a logical order: header checks, file-size limitations, other constraints, string combinations and finally false-positive filters. Each “and” clause is placed on a new line, and “or” groups are indented for clarity.

By adopting these conventions, teams can create self-documenting rules that remain understandable months or years after creation and reduce the time required to triage large numbers of alerts.

Related articles

AntiMalware•Malware & Botnets

GTA VI-Themed Malware Campaigns Deploy WARDEN Stealer and spkvol.dll

Experts from Solar 4RAYS at GC Solar have identified at least two separate campaigns distributing infostealers under the guise of free GTA VI downloads for Windows. Victims are lured with promises of pre-release builds or unofficial launchers, leading them to archives containing malicious executables instead of the game. In the first campaign, a Google Colab notebook redirects users to Windows Software Hub, where a ZIP file marked Verified Safe contains Gta_6_Exe_File_Download.exe, identified as WARDEN Stealer that harvests credentials, contact data, and cryptocurrency wallet access. The second campaign uses CyberLauncher.zip with a !SETUP.bat file that deploys a stealer resembling spkvol.dll, which attempts to escalate privileges, disable Microsoft Defender protections including Smart App Control, and exfiltrate system information via Discord. Analyst Nikita Pryamukhin notes that the attacks specifically instruct victims to weaken their own defenses by running files as administrator and adding exclusions. Researchers strongly advise downloading games only from official sources and ignoring any instructions to bypass security tools.

BoletimSec•Malware & Botnets

Brute-Force Campaign Targets Exposed Microsoft SQL Server Instances with Monero Miner and Gh0st RAT

An active campaign since early October 2026 is brute-forcing passwords on internet-exposed Microsoft SQL Server instances and deploying a Monero cryptocurrency miner along with a variant of the Gh0st RAT remote access trojan. Fortinet detailed the infection chain in a report published on November 12, 2026, starting with the Go-based dllhost.exe binary that uses the Naabu port scanner to locate open TCP port 1433. The malware then downloads dwm.exe, a .NET brute-forcer that tests over 2,700 passwords against common accounts such as sa and admin using up to 500 concurrent threads. Successful logins enable xp_cmdshell to execute commands, after which the attackers drop a scheduled task mimicking Microsoft updates and install both the miner and the persistent RAT. The campaign relies solely on weak or reused passwords and does not exploit any software vulnerability. Fortinet rates the threat as high and recommends keeping SQL Server behind firewalls or VPNs while disabling xp_cmdshell when unused.

Habr•Malware & Botnets

Fake GTA VI Installer Distributed via Google Colab Steals Steam Credentials and Crypto Wallet Data

Researchers at cybersecurity firm Cynet have uncovered a fake Grand Theft Auto VI installer for PC that targets Steam accounts and cryptocurrency wallets. The malware is promoted through a Google Colab notebook that leads users to a fraudulent WooCommerce store page called Windows Software Hub. The download archive contains only a small 796 KB executable and a README file instructing victims to run the file as administrator and disable security features. Once executed, the malware bypasses sandboxes and virtual machines, injects code into browser processes, and harvests passwords, cookies, browsing data, and crypto wallet information while also swapping clipboard addresses. The campaign coincides with growing scam activity around the unreleased title, which Rockstar Games has not yet scheduled for PC release. Earlier reports from Netcraft documented multiple GTA VI-related fraud schemes between July and October 2026.

BoletimSec•Malware & Botnets

Cloudflare Blocks 18.2 Million DDoS Attacks in Q3 2026 Amid Shifting Attack Patterns

Cloudflare reported blocking 18.2 million network-layer DDoS attacks between July and September 2026, marking a 208% increase from the same period in 2025. The company recorded an average of roughly 8,200 attacks per hour, with 96% lasting under ten minutes and 98% staying below 1 Gbps. Large-scale attacks exceeding 1 Tbps dropped sharply from 805 in Q2 to 251 in Q3, a decline Cloudflare links to early 2026 law enforcement actions against four IoT botnets. Attack vectors shifted notably, with CLDAP reflection falling 99.5% while DNS amplification rose 215% and UDP floods grew 122%. The United States led targeted countries, followed by China and Indonesia, while media and publishing remained the most affected industry. Mirai variants accounted for 46.5% of network-layer bytes, with new families such as Dysphoria and Evooo1Bot emerging to replace dismantled botnets.