SigmaHQ / pySigma

Python library to parse and convert Sigma rules into queries (and whatever else you could imagine)
GNU Lesser General Public License v2.1
395 stars 101 forks source link

Add em dash, en dash and horizontal bar to windash modifier #233

Closed martinspielmann closed 4 months ago

martinspielmann commented 4 months ago

The existing windash modifier takes into account that many Windows programs accept their arguments provided via / and -.

However, multiple programs including Powershell additionally support – (en dash), — (em dash), and ― (horizontal bar). E.g. see the Powershell Tokenizer that handles all dashes the same way:

image

Downside:

Advantage:

References

thomaspatzke commented 4 months ago

Great, thanks for the PR!