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

Expand Condition Functionality #524

Open
gfs opened this issue Jan 31, 2023 · 0 comments
Open

Expand Condition Functionality #524

gfs opened this issue Jan 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gfs
Copy link
Contributor

gfs commented Jan 31, 2023

Currently you can add conditions on a rule, and rules can contain multiple patterns. However, individual patterns may have different conditions. To match them properly now this means necessitating creating multiple rules, each with fewer patterns so that the appropriate conditions can apply.

It would be convenient to be able to also add conditions on individual patterns, to allow for larger more comprehensive rules for a single detection.

One limitation currently is that conditions are all ANDed, all conditions must pass. However, there are some rules like AI040600 where the broad search can apply widely, but conditions to narrow down more specifically are more closely tied to a specific language. It would be nice to have a way to specify what languages a condition does - or does not - apply to.

@gfs gfs added the enhancement New feature or request label Jan 31, 2023
@gfs gfs changed the title Support Conditions on Patterns Expand Condition Functionality Feb 16, 2023
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
None yet
Development

No branches or pull requests

1 participant