Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying/removing all linked condition terms using current form ? #68

Open
wesinator opened this issue Dec 26, 2019 · 2 comments
Open
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@wesinator
Copy link
Contributor

Hi,

I wanted to write a converter that will take rules that use a superset addition of YARA (such as VT hunting syntax) and convert to a local-only rule that works in regular YARA.

To do this, I need to remove the conditions that don't work in regular YARA.
The way plyara currently parses and structures condition terms makes it difficult to do this, because each individual element is separated individually, and there is no link of related/dependent condition terms (e.g. booleans and new_file, signatures contains "blah").

Not sure how to represent this without using a graph/tree structure, but I think it would make more sense to parse dependent conditions together, such as the case of X contains "y"

Thoughts?

Thanks,

@utkonos
Copy link
Member

utkonos commented Jan 4, 2020

This would be powerful. Do you have an idea of how to implement?

@utkonos utkonos self-assigned this Jun 13, 2020
@utkonos utkonos added the enhancement New feature or request label Jun 13, 2020
@utkonos
Copy link
Member

utkonos commented Jul 17, 2020

This will be part of 3.0.0. The new vt module that replaces the legacy VT-only conditions will be supported as well as granular parsing of the old legacy conditions.

@utkonos utkonos added this to the 3.0 milestone Jul 17, 2020
@utkonos utkonos added this to To do in 3.0.0 via automation Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
3.0.0
  
To do
Development

No branches or pull requests

2 participants