Skip to content

Yara-Python with Imphash not working on Macos #272

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

Open
nullcharb opened this issue Mar 18, 2025 · 0 comments
Open

Yara-Python with Imphash not working on Macos #272

nullcharb opened this issue Mar 18, 2025 · 0 comments

Comments

@nullcharb
Copy link

Hi Team,

Yara-Python using Yara rule with imphash does not work on macos. I keep getting the below error:

Error: line 6: invalid field name "imphash"

Test Code used:

import yara

rule = """
import "pe"

rule Test2 {
condition:
pe.imphash
}
"""

try:
compiled_rule = yara.compile(source=rule)
print("PE module is working correctly.")
except yara.SyntaxError as e:
print(f"Error: {e}")

I have checked the ticket: #179, there is nothing definitive on how it will work on Macos. I have Yara installed on the system as well.

OpenSSL 3.4.1 11 Feb 2025 (Library: OpenSSL 3.4.1 11 Feb 2025)

Yara Version: 4.5.2

Is there a solution to this issue ? I am sure people in VT must be using Macos and Yara/Yara-Python on them how do they use it ?

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

No branches or pull requests

1 participant