Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, scoop, winget 安装 yara-x

查看 yara-x 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install yara-x

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#yara-x

nixpkgs package indexes · pkgs/by-name/ya/yara-x/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/yara-x

Scoop official bucket manifest trees · bucket/yara-x.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id VirusTotal.YARA-X -e

Windows Package Manager source index · VirusTotal.YARA-X · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Tool to do pattern matching for malware research

历史

项目历史与用法

YARA-X is VirusTotal's Rust rewrite and intended successor to YARA, the rule-based pattern-matching tool used heavily in malware research. It keeps YARA's rule-language lineage while aiming for better safety, performance, user-friendliness, and modern library APIs.

项目历史

The yara-x repository was created on 2022-10-14. Upstream describes YARA-X as a re-incarnation of YARA whose ultimate goal is to replace YARA as the default pattern-matching tool for malware researchers. The rewrite also moves the implementation from C into Rust while exposing C/C++, Python, Go, and Rust APIs.

Victor M. Alvarez's 2024 post 'YARA is dead, long live YARA-X' explained the transition without actually abandoning YARA: YARA would continue to receive bug fixes and minor features, while major new modules and enhancements would focus on YARA-X. VirusTotal had already been running the new engine alongside YARA and comparing results at large scale.

YARA-X reached its public stability milestone with v1.0.0 on 2025-06-04. The accompanying YARA-X blog post says the release ended the beta phase and that the original YARA project entered maintenance mode, with future innovation happening in YARA-X.

采用历史

The most important adoption signal came from VirusTotal itself. In December 2024, VirusTotal announced that YARA-X had replaced YARA as the engine powering Livehunt and Retrohunt, two production services where rule compatibility and scale matter more than novelty.

Adoption is intentionally migration-shaped rather than greenfield. The docs emphasize high rule compatibility, explain the differences with YARA, and encourage existing YARA users to explore YARA-X without requiring a rushed cutover.

使用方式

The packaged CLI is `yr`. Users write familiar YARA-style rules with patterns and conditions, then scan files or integrate the engine through language bindings. YARA-X also adds modern tooling around the rule lifecycle, including formatting, checking, warnings, a configuration file for some commands, and a language server.

Practical usage today is split between command-line malware hunting, CI-style rule validation, and embedding YARA-compatible matching in security products or research pipelines that benefit from Rust's safety and newer APIs.

为什么软件包爱好者会关心

YARA-X is package-nerd significant because it is a rare live succession story for a security standard tool: not a fork competing with the old package, but the same steward moving a widely packaged C utility toward a Rust implementation while preserving rule compatibility.

It also changes the shape of the package from a classic CLI/library pair into a broader toolchain: formatter, checker, language server, multi-language APIs, and a migration target for years of existing YARA rules.

时间线

  • 2022-10-14: VirusTotal/yara-x repository is created.
  • 2024-02-21: VirusTotal publishes 'YARA is dead, long live YARA-X', describing YARA-X as the future development focus.
  • 2024-12-04: VirusTotal announces YARA-X powers Livehunt and Retrohunt.
  • 2025-06-04: YARA-X 1.0.0 is released as the first stable release.
  • 2026-06-24: YARA-X v1.19.0 is published in GitHub releases.

Related projects

  • YARA is the original C implementation and rule-language predecessor now in maintenance mode.
  • yara-python is the long-standing Python binding for classic YARA; YARA-X provides its own Python API.
  • VirusTotal Livehunt and Retrohunt are production services that moved to YARA-X.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
yrcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.19.0
管理器更新时间2026-06-24
本地数据OK
上游当前
检测到的最新版本v1.19.0

https://github.com/VirusTotal/yara-x

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:yara-x
版本1.19.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/yara-x
主页https://virustotal.github.io/yara-x/
仓库https://github.com/VirusTotal/yara-x
上游文档https://virustotal.github.io/yara-x/docs
许可证BSD-3-Clause
源码归档https://github.com/VirusTotal/yara-x/archive/refs/tags/v1.19.0.tar.gz
最后更新2026-06-24T17:31:08Z
Pulseupdated
构建依赖cargo-c, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameyara-x
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

yara-x

nix profile install nixpkgs#yara-x
  • normalized package name match
  • 匹配方式:Yara X
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ya/yara-x/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop95%

main/yara-x

scoop install main/yara-x
  • normalized package name match
  • 匹配方式:Yara X
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/yara-x.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

VirusTotal.YARA-X

winget install --id VirusTotal.YARA-X -e
  • normalized package name match
  • 匹配方式:Yara X
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: VirusTotal.YARA-X from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment