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

Target samples that have no version_info #2023

Open
Tigzy opened this issue Dec 12, 2023 · 3 comments
Open

Target samples that have no version_info #2023

Tigzy opened this issue Dec 12, 2023 · 3 comments

Comments

@Tigzy
Copy link
Contributor

Tigzy commented Dec 12, 2023

Hi,
I'd like to target a sample that has no version_info defined.
It looks like the way it's designed there's no way to do something like
pe.version_info_list.size == 0, is this something you could consider adding ?
Unless there's a workaround in current version ?

image

@djlukic
Copy link

djlukic commented Jan 4, 2024

@Tigzy I asked about it some time ago, is this what you wanted to do?
#1931

@Tigzy
Copy link
Contributor Author

Tigzy commented Jan 8, 2024

@djlukic thanks, yes it may work. Though I'm not sure not defined means also empty string ?
I'm trying to target PEs that have no version_info block defined at all. Like RT_VERSION does not exist.

@djlukic
Copy link

djlukic commented Feb 27, 2024

@Tigzy I stumbled upon an Autoit script and rule I tried didn't hit. I found that pe.number_of_signatures == 0 prevented detection because obviously it was not a PE file. So you must take into consideration what if version info is missing and in my example use PE related condition only on PE files.

Once I put not defined pe.number_of_signatures == 0 there was a detection on that script file.
I learned that whenever I want to check signatures I must use uint16(0) == 0x5A4D and pe.number_of_signatures == 0 together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants