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

mraptor evasion via Workbook_BeforeClose #518

Closed
gnugnug opened this issue Dec 4, 2019 · 2 comments
Closed

mraptor evasion via Workbook_BeforeClose #518

gnugnug opened this issue Dec 4, 2019 · 2 comments

Comments

@gnugnug
Copy link

gnugnug commented Dec 4, 2019

We received the attached Excel file (password 123), which contains a malicios macro that triggers on "Private Sub Workbook_BeforeClose". Unfortunately mraptor does not detect this file as suspicious, because it only looks for "Document_BeforeClose" or "Workbook_Close", but not "Workbook_BeforeClose" (https://docs.microsoft.com/en-us/office/vba/api/excel.workbook.beforeclose)

The same is true for olevba, which does not recognize an autoexec function via its AUTOEXEC_KEYWORDS.

The fix is trivial, probably not worth a PR

Balance payment.zip

@gnugnug
Copy link
Author

gnugnug commented Dec 4, 2019

After adding Workbook_BeforeClose to https://github.com/decalage2/oletools/blob/master/oletools/olevba.py#L632 and _BeforeClose to https://github.com/decalage2/oletools/blob/master/oletools/mraptor.py#L118 the AutoExec function is correctly recognized.

@gnugnug
Copy link
Author

gnugnug commented Apr 14, 2021

The milestone says 0.56, 0.55, but this bug is still open

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