Replies: 6 comments
-
|
The specification states the opposite. All string values are always case-INsenstive. Only Regex ( |
Beta Was this translation helpful? Give feedback.
-
|
I don't know how I read exactly the opposite of what was written (and I've even read it several times 🤦♂️), sorry for that, I've updated the title. Anyway the problem still remains for anyone needs a way to express both search matching (sensitive and insensitive) with no or partial (i.e. Elasticsearch) regular expression support . The logic is the opposite of what proposed in my first message: the new modifier could be something like I'm writing a custom backend (which I wish to publish in the next weeks, after internal testing) to convert Sigma rules to Elasticsearch (pure DSL) queries. In Elastic the field type |
Beta Was this translation helpful? Give feedback.
-
|
We already had a discussion about this a few months ago. The idea is not to modify the sigma specifications to fit a particular product. It is a elasticsearch backend trouble. |
Beta Was this translation helpful? Give feedback.
-
I understand what you are saying and I agree that the use case is not that widespread. But a high level query language that relies on regular expressions to support such a basic search it's quite strange for at least two reasons:
I disagree here, because:
The issue is about the fact that we miss a modifier to let the backend decide which search to apply. Moreover, the backend you quoted does not support case INsensitive searches and pySigma does not notify in any way this fact. Anyway this is just a proposal because we are investing on writing a new backend for Elasticsearch that fix the limitations of the project you have linked, but we have very large (with many nested and flattened fields) indices and we need to support both searches to fully integrate Sigma in our processes. |
Beta Was this translation helpful? Give feedback.
-
We have 2000+ rules in the repo and AFAIK not a single rule making use of regular expressions to make sure the search is case-sensitive. I'd say, we are fine. We've always followed a minimalistic approach and introduced new features or extended the specification whenever we noticed a general demand for it.
How many rules that required case-sensitive matching do you maintain? I ask because I wouldn't want to maintain a modifier that is only theoretically relevant. |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to drop a quick message to say thanks for adding the functionality I suggested here. It's awesome to see it implemented now! I appreciate that you and the team took the time to consider my idea, even though it was initially marked as unnecessary. While I'm a bit bummed that it wasn't given a chance earlier, I'm still happy to see it included in the project. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
As stated in the specification, string values are case sensitive by default. I think it could be helpful to have a new modifier (
insensitiveor justi) to search string values for case insensitive matching, that is something like this:It could also be chained with
remodifier to simulate the presence of flagre.IGNORECASE, and obiusly withcontains,startswith,endswith,utf16leandutf16be. In many of my use cases, the presence of such modifier is critical.If you think this could be useful I can add it and make a PR.
Beta Was this translation helpful? Give feedback.
All reactions