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

Yara python fix #1330

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Yara python fix #1330

merged 2 commits into from
Jan 22, 2025

Conversation

jstucke
Copy link
Collaborator

@jstucke jstucke commented Jan 20, 2025

  • install yara-python from source
    • Why ist this necessary? Plugins like software_components need support for YARA modules (especially magic) and the pre-built version of yara-python from PyPI does not include this
  • moved get_yara_error method to backend (intercom)
    • having the method in the frontend does not make a lot of sense, because the yara version of the backend could be different and compiling the rules could still fail

@jstucke jstucke self-assigned this Jan 20, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 87.93103% with 7 lines in your changes missing coverage. Please review.

Project coverage is 91.84%. Comparing base (291da75) to head (5d831b8).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/helperFunctions/install.py 16.66% 5 Missing ⚠️
src/intercom/back_end_binding.py 88.23% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1330      +/-   ##
==========================================
- Coverage   92.50%   91.84%   -0.67%     
==========================================
  Files         381      376       -5     
  Lines       24219    21056    -3163     
==========================================
- Hits        22404    19338    -3066     
+ Misses       1815     1718      -97     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Why ist this necessary? Plugins like software_components need support for YARA modules and the pre-built version of yara-python from PyPI does not include this.
having the method in the frontend does not make a lot of sense, because the yara version of the backend could be different and compiling the rules could still fail
@dorpvom dorpvom merged commit 57e7c49 into master Jan 22, 2025
9 of 10 checks passed
@dorpvom dorpvom deleted the yara-python-fix branch January 22, 2025 11:57

Choose a reason for hiding this comment

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

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.

4 participants