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

ActivceDocument variable content value implemented? #28

Open
Nicceboy opened this issue Sep 11, 2020 · 3 comments
Open

ActivceDocument variable content value implemented? #28

Nicceboy opened this issue Sep 11, 2020 · 3 comments

Comments

@Nicceboy
Copy link

Is your feature request related to a problem? Please describe.

Is function ActiveDocument.Variables("<name>").Value() from VBA
implemented for emulation?

Many maldocs contain data in those variables, and at least for me, it seems that this is not implemented, or maybe I'm missing something. It might be hard to implement though.

When executing this particular line:

INFO     calling Function: Value()
WARNING  Function 'Value' not found

In this particular case, encryption key is stored into Variables and deobfuscation is hard, since content is not acquired.

Describe the solution you'd like
Consider implementing function

@kirk-sayre-work
Copy link
Owner

Can you provide a couple of hashes of maldocs on VT that use this? I'll use those for dev and testing.

@decalage2
Copy link

Please note that the extraction of document variables has been implemented in olefile in this PR: decalage2/olefile#114
It's available in the development version of olefile on Github, not yet in the released version on PyPI.
I plan to move it to oletools in the future, because it doesn't fit well in olefile, but for the moment it's available there.

@Nicceboy
Copy link
Author

I cannot access example maldocs right now (and for some time), but at least VBad https://github.com/Pepitoh/VBad
obfuscation tool generates obfuscated documents using the document variables.

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

3 participants