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

macros are not being hidden or replaced #21

Closed
forensic65x opened this issue Jan 15, 2020 · 8 comments
Closed

macros are not being hidden or replaced #21

forensic65x opened this issue Jan 15, 2020 · 8 comments

Comments

@forensic65x
Copy link

I've created a new document, added macro vba from msfvenom, and attempted both of the commands below.

No errors from the commands, but in both cases, the msfvenom macro is still visible in both docs.

Any suggestions?

EvilClippy.exe -g doc32.doc
Hiding module: NewMacros

EvilClippy.exe -s fake.vbs -g -r doc32f.doc
Hiding module: NewMacros
Now stomping VBA code in module: ThisDocument
Now stomping VBA code in module: NewMacros
Setting random ASCII names for VBA modules in dir stream (while leaving unicode names intact).

@stanhegt
Copy link
Contributor

With "visible" do you mean visible in the VBA editor GUI or visible with tools such as olevba? In which module did you copy the macro, ThisDocument or NewMacros?

@forensic65x
Copy link
Author

Visible in the VBA editor.

The macro is in the 'NewMacros' module. The 'ThisDocument' module has this code:

Private Sub Document_New()

End Sub

@stanhegt
Copy link
Contributor

Can you provide a sample (after treatment with EvilClippy)?

@forensic65x
Copy link
Author

I can. Where should I send or upload it?

@stanhegt
Copy link
Contributor

Feel free to mail it (stan at outflank nl) or upload it anywhere. Preferably in encrypted zip with password "infected".

@forensic65x
Copy link
Author

I sent it your way in an encrypted rar file.

@stanhegt
Copy link
Contributor

Unfortunately the email did not come through. Can you upload it via WeTransfer or any other means? Thanks!

@stanhegt
Copy link
Contributor

stanhegt commented Feb 2, 2020

I received your sample. The sample did not have module "NewMacros" removed from the dir stream (which hides the module from the GUI).

I executed the following steps to successfully remove this module from the dir stream and thereby hide it from the GUI:

  1. Download and compile latest version of EvilClippy
  2. EvilClippy.exe -g ~/Downloads/Doc32f.doc
  3. This results in a NEW file Doc32f_EvilClippy.doc which has the modified dir stream

Feel free to reopen this issue if your problem persists after these steps.

@stanhegt stanhegt closed this as completed Feb 2, 2020
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

2 participants