Add support for cross-rule references.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 104
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
It's possible to reference rules from other ones:
https://yara.readthedocs.io/en/stable/writingrules.html#referencing-other-rules
Example:

This results in a failure on save due to failed rule validation:

Which of course is due to the fact that the referenced rule is not available. Thinking the best way to handle this is to test rules along with all other released-state rules.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the save-time rule validation path and inspect how released-state rules are loaded for validation. Use the YARA cross-rule reference example and reported failure as the reproduction target; done means a rule referencing another rule can be saved without validation failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100