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

Add partial regex string support #169

Merged
merged 8 commits into from
May 14, 2020

Conversation

nazywam
Copy link
Member

@nazywam nazywam commented May 14, 2020

Your checklist for this pull request

  • I've read the contributing guideline.
  • I've tested my changes by building and running mquery, and testing changed functionality (if applicable)
  • I've added automated tests for my change (if applicable, optional)
  • I've updated documentation to reflect my change (if applicable)

What is the current behaviour?
Regex strings are ignored when converting yara rules to ursa queries

What is the new behaviour?
Some regex strings should be correctly converted to ursa expressions

Test plan
run lib/yaraparse.py on yara files that do and don't contain regex strings

Closing issues

fixes #97

@nazywam nazywam requested a review from msm-code May 14, 2020 12:00
@nazywam nazywam changed the title Feature/regex strings Add partial regex string support May 14, 2020
src/lib/yaraparse.py Show resolved Hide resolved
src/lib/yaraparse.py Show resolved Hide resolved
Copy link
Contributor

@msm-code msm-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Some comments from me

src/lib/yaraparse.py Show resolved Hide resolved
src/lib/yaraparse.py Show resolved Hide resolved
@msm-code msm-code merged commit 5627be9 into CERT-Polska:master May 14, 2020
KWMORALE pushed a commit to KWMORALE/mquery that referenced this pull request Jul 29, 2020
* Add partial regex strings support

* Get or expressions

* run black

* Make mypy happy

* Update tests

* Fix unit tests

* Add missing argument

* Add more test yaras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate regex support
2 participants