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

Misc changes in dotnet module #133

Merged
merged 6 commits into from
Apr 12, 2024
Merged

Misc changes in dotnet module #133

merged 6 commits into from
Apr 12, 2024

Conversation

vthib
Copy link
Owner

@vthib vthib commented Apr 11, 2024

  • Fixes a few bug found after testing the module on more varied dotnet files.
  • Add handling of several undocumented but valid tables & flags
  • Add a few tests as well
  • Add a recursion limit for type building

Some tables and flags are not documented by ECMA 335, but can be used
in dotnet files. They are of course used in malwares to prevent
analysis, so add some handling for undocumented stuff.
Some table types are documented as having only a single table declared
for a valid dotnet module. Of course, malwares will put multiple tables
for this type. We used to pick the latest one, while yara picks the
first one. Modify the behavior to align with YARA.
The method signature was evaluated on every preceding class instead of
only on the class that owns the method.
On some files, notably malwares, those values can be invalid or unset.
Align on the YARA behavior which is a bit erratic on its undefined/empty
string handling.
@vthib vthib merged commit 290c500 into master Apr 12, 2024
15 of 16 checks passed
@vthib vthib deleted the misc-changes-dotnet branch April 12, 2024 00:11
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.

1 participant