MCPcopy Index your code
hub / github.com/avast/yari

github.com/avast/yari @v0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.1 ↗ · + Follow
658 symbols 1,438 edges 23 files 27 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

YARI - YARA Interactive

Interactive debugger for the YARA language written in Rust. Debugger directly calls libyara avoiding emulation to get the most accurate results.

:rocket: Features: - Call functions from modules - Get the value of module constants - Evaluate complex expressions - Check the matches of strings - Support for external variables - Integration with YARA Language Server

Showcase

For more information, check out: - Blog post - Wiki

Installation

To setup your environment please follow instructions from the YLS wiki.

Interactive shell

Binary accepts the same arguments as original yara binary.

λ yari /bin/sh
>> elf.number_of_sections
Integer(26)
>>

License

Copyright (c) 2022 Avast Software, licensed under the MIT license. See the LICENSE file for more details.

YARI and its related projects uses third-party libraries or other resources listed, along with their licenses, in the yari-sys/LICENSE-THIRD-PARTY file.

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)

Core symbols most depended-on inside this repo

as_ptr
called by 111
yari-sys/bindings/bindings-macos.rs
as_ptr
called by 103
yari-sys/bindings/bindings-linux.rs
as_mut_ptr
called by 94
yari-sys/bindings/bindings-macos.rs
as_mut_ptr
called by 92
yari-sys/bindings/bindings-linux.rs
eval
called by 41
yari-sys/src/lib.rs
expression
called by 25
yari-sys/src/parser.rs
as_ref
called by 17
yari-sys/src/module.rs
to_str
called by 12
yari-sys/src/parser.rs

Shape

Function 364
Class 220
Method 68
Enum 6

Languages

Rust98%
Python2%

Modules by API surface

yari-sys/bindings/bindings-linux.rs219 symbols
yari-sys/bindings/bindings-macos.rs209 symbols
yari-sys/src/parser.rs85 symbols
yari-sys/src/lib.rs50 symbols
yari-sys/tests/tests_eval.rs38 symbols
yari-sys/tests/common.rs7 symbols
yari-py/tests/test_eval.py7 symbols
yari-sys/src/yr_value.rs6 symbols
yari-sys/build.rs6 symbols
yari-py/src/lib.rs6 symbols
yari-sys/src/utils.rs5 symbols
yari-sys/tests/tests_dump_module.rs4 symbols

For agents

$ claude mcp add yari \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact