Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 yara

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install yara

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install yara

MacPorts ports tree · security/yara/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add yara

Alpine Linux edge package indexes · yara · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install yara

Debian stable package indexes · yara · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install yara

Fedora Rawhide package metadata · yara · 来源: dl.fedoraproject.org

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S yara

Arch Linux sync databases · yara · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install yara

openSUSE Tumbleweed package metadata · yara · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install yara

Chocolatey community package catalog · yara · 来源: community.chocolatey.org

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

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

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

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

概览

软件包摘要

Malware identification and classification tool

命令和别名

  • yara
  • yarac

历史

项目历史与用法

YARA is VirusTotal's rule-based pattern-matching tool for malware researchers and incident responders. It lets analysts describe malware families, file traits, or other detectable artifacts with strings, byte patterns, regular expressions, metadata, and boolean conditions, then scan files, directories, or process memory.

项目历史

YARA's manual page dates the `yara` command to 2008-09-22 and names Victor M. Alvarez as author. The current VirusTotal GitHub repository was created on 2012-12-06, and the first GitHub release returned by the API is YARA v2.0.0 in August 2014.

The project became the pattern-matching 'Swiss knife' for malware researchers by keeping a compact rule language while adding modules, compiled rules, Python bindings, and multi-platform support. The README and official docs describe use from the command line and from Python scripts through yara-python.

In the mid-2020s, YARA's history shifted from active feature growth to maintenance. The README now points to the YARA-X stability announcement and marks the classic YARA project as maintenance mode, with new feature work moving to the Rust rewrite.

采用历史

YARA's adoption is unusually broad for a command-line security tool. The upstream README maintains a long 'Who's using YARA' list that includes antivirus vendors, incident-response products, sandboxes, intelligence platforms, reverse-engineering tools, and VirusTotal itself.

Its practical appeal is portability of detection logic. A YARA rule can move from a researcher's laptop to a malware sandbox, a retrohunt service, an endpoint product, or a CI check for detection rules. That made it a common exchange format for malware-family knowledge, not just a local scanner.

使用方式

Users write one or more rule files, compile them with `yarac` when useful, and run `yara` against files, directories, or PIDs. Options support namespaces, external variables, module data, metadata printing, string-match output, fast scans, warnings control, and scanning process memory in chunks.

In security operations, YARA is used for malware triage, hunting known families and variants, validating rule collections, retroactive corpus searches, sandbox classification, and embedding detection logic into larger analysis systems through libyara or yara-python.

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

YARA is one of the canonical examples of a domain-specific language packaged as a Unix tool. The package matters because it ships not just an executable, but a rule language, compiler, C library, Python ecosystem, and compatibility target for thousands of shared security rules.

The YARA-to-YARA-X transition is also important packaging history: a widely deployed security utility entered maintenance mode while its official successor was distributed beside it, letting package managers carry both the stable incumbent and the future implementation.

时间线

  • 2008-09-22: YARA manual page date identifies the command and Victor M. Alvarez as author.
  • 2012-12-06: VirusTotal/yara repository is created on GitHub.
  • 2014-08-26: YARA v2.0.0 appears as the earliest GitHub release returned by the releases API.
  • 2024-02-21: VirusTotal announces future feature work will focus on YARA-X while YARA continues maintenance.
  • 2025-06-04: YARA-X 1.0.0 announcement states original YARA enters maintenance mode.
  • 2025-10-30: YARA v4.5.5 is published as a maintenance release.

Related projects

  • YARA-X is the official Rust rewrite and future development focus.
  • yara-python exposes YARA scanning and compilation features to Python programs.
  • YARA-CI, awesome-yara, and rule repositories such as Elastic protections-artifacts are part of the wider YARA rule ecosystem.

安全态势

风险级别:绿色

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 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/VirusTotal/yara

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

安装元数据

软件包元数据

软件包键brew:yara
版本4.5.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/yara
主页https://virustotal.github.io/yara/
仓库https://github.com/VirusTotal/yara
上游文档https://yara.readthedocs.io/en/stable
许可证BSD-3-Clause
源码归档https://github.com/VirusTotal/yara/archive/refs/tags/v4.5.5.tar.gz
最后更新2026-06-15T10:21:24-04:00
Pulseupdated
依赖jansson, libmagic, openssl@3, protobuf-c
构建依赖autoconf, automake, libtool, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

libyara-dev 4.5.2-1

YARA development libraries and headers

https://virustotal.github.io/yara/

sudo apt install libyara-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: yara
  • 4 依赖
  • normalized package name match
  • 匹配方式:Yara
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libyara-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libyara10 4.5.2-1

YARA shared library

https://virustotal.github.io/yara/

sudo apt install libyara10
  • Section: libs
  • Architecture: amd64
  • Source Package: yara
  • 4 依赖
  • normalized package name match
  • 匹配方式:Yara
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libyara10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

yara 4.5.2-1

Pattern matching swiss knife for malware researchers

https://virustotal.github.io/yara/

sudo apt install yara
  • Section: utils
  • Architecture: amd64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Yara
Debian stable package indexes · deb.debian.org · Debian stable package indexes: yara from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

yara-doc 4.5.2-1

HTML documentation for YARA

https://virustotal.github.io/yara/

sudo apt install yara-doc
  • Section: doc
  • Architecture: all
  • Source Package: yara
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yara
Debian stable package indexes · deb.debian.org · Debian stable package indexes: yara-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

yara

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

libyara-dev 4.5.0-1build2

YARA development libraries and headers

https://virustotal.github.io/yara/

sudo apt install libyara-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: yara
  • 4 依赖
  • normalized package name match
  • 匹配方式:Yara
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libyara-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libyara10 4.5.0-1build2

YARA shared library

https://virustotal.github.io/yara/

sudo apt install libyara10
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: yara
  • 4 依赖
  • normalized package name match
  • 匹配方式:Yara
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libyara10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

yara 4.5.0-1build2

Pattern matching swiss knife for malware researchers

https://virustotal.github.io/yara/

sudo apt install yara
  • Section: universe/utils
  • Architecture: amd64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Yara
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: yara from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

yara-doc 4.5.0-1build2

HTML documentation for YARA

https://virustotal.github.io/yara/

sudo apt install yara-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: yara
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yara
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: yara-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

yara 4.5.7-r0

Pattern matching swiss knife for malware researchers

https://virustotal.github.io/yara/

sudo apk add yara
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: yara
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yara
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yara from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

yara-dev 4.5.7-r0

Pattern matching swiss knife for malware researchers (development files)

https://virustotal.github.io/yara/

sudo apk add yara-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: yara
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yara
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yara-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

yara-doc 4.5.7-r0

Pattern matching swiss knife for malware researchers (documentation)

https://virustotal.github.io/yara/

sudo apk add yara-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: yara
  • normalized package name match
  • 匹配方式:Yara
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yara-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

yara 4.5.7-1.fc45

Pattern matching Swiss knife for malware researchers

https://VirusTotal.github.io/yara/

sudo dnf install yara
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: yara
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Yara
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: yara from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

yara-devel 4.5.7-1.fc45

Development files for yara

https://VirusTotal.github.io/yara/

sudo dnf install yara-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: yara
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Yara
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: yara-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

yara-doc 4.5.7-1.fc45

Documentation for yara

https://VirusTotal.github.io/yara/

sudo dnf install yara-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: yara
  • 1 提供
  • normalized package name match
  • 匹配方式:Yara
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: yara-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

yara 4.5.6-1

Tool aimed at helping malware researchers to identify and classify malware samples

https://github.com/VirusTotal/yara

sudo pacman -S yara
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yara
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: yara from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 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