Files
reverse-engineering-anything/docs
morluto 72c0f5caf2 fix(yara): refuse rule files with include directives before yara starts (#14937)
* fix(yara): refuse rule files with include directives before yara starts

yara opens an included file while it lexes, outside the hashed snapshot, so
the rules it adds were not bound to the scan's Evidence. A selected rule file
with an `include` directive is now refused with a typed input error naming
each directive's line, byte column and path, and the recovery to pass the
included file as another rule_paths entry or inline its rules.

Detection follows libyara 4.x's flex lexer (lexer.l at v4.5.0): the
`include[ \t]+"` rule fires at any token start in the initial state,
including inside a rule body, and never inside comments, text strings or
regular expressions. One streaming scanner sees the staged bytes unchanged.

The relative-include rewriter, the `include` compile-error kind and its
repair advice, and the stub's include support are removed, since no include
reaches yara.

* test(yara): check the include scanner against libyara's own answers

Twenty-four rule sources cover the scanner's lexer assumptions: directives
in rule bodies and after punctuation or number tokens, and include inside
comments, strings, regexes, hex strings and longer tokens. Each case records
the include paths libyara 4.5.4 asked to open through yara-python's
include_callback, so the expected values come from yara, not the scanner. A
real-yara test compares the same cases with the installed yara's missing
include error where one is installed.
2026-11-27 22:15:58 +00:00
..

Documentation directory

Find an installation step, investigation guide, or contributor reference by task. The REA website has worked examples and product pages.

Getting started

Desktop applications

Agent environments

Native binaries

JavaScript and Electron

Browser and captured websites

Android applications

Apple applications

.NET assemblies

Firmware

HarmonyOS packages

Packages and metadata

WebAssembly

EVM contracts

Databases and recorded packets

Process capture and instrumentation

Provider setup and formats

Contracts and evidence

Development and verification

Release migrations

Signal recordings

Generated files and release records

Path Owner and update command
public/product-catalog.json Ignored contract projection; npm run docs:generate
verification/managed-conformance-*.json Ignored managed conformance projections; npm run evidence:generate
error-contract.schema.json Tracked schema from contracts; npm run docs:error-schema
user-visible-errors.csv Generated error code and category per domain and provider-owned error case; npm run docs:error-schema
releases/<version>.contributions.json Durable release contribution record; follow the release guide

Regenerate catalogs and Evidence projections from their canonical source. Release records preserve the exact commit messages and references for each release. Guides share authored images in assets/.