InQuest / InQuest/ThreatKB

Add support for cross-rule references.

Open
#439 0 comments 0 reactions 0 assignees View on GitHub

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:

image

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

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.