r/visualbasic • u/MysticalTeamMember • Sep 09 '22
Anti-Dump?
How would someone approach making their file hard to dump? I have sensitive information that’s easily dumped out of the file. I have attempted the PE header removal technique but that does not seem to work anymore.
Thank you!
4
Upvotes
View all comments
Show parent comment
2
u/MysticalTeamMember Sep 09 '22
Wonderful response, thank you for the time taken! So far this has been implemented:
Obfuscation - Aside from the simple renaming, the file also is protected with virtualized code blocks, control-flow, and arithmetic based protection of variables.
Encryption & compression are implemented, and the files within the program are encrypted and decrypted/decompressed when needed.
CallByName is implemented as much as possible, indirectly calling different functions.
Anti-VM checks are implemented to avoid reverse engineers who are using a VM.
Anti-Modification checks, verifying the integrity of the file. If anything is modified by a reverse engineer, the executable will not run.
Imbedded file runs in memory, and is not dropped anywhere on the machine to keep it out of unwanted hands.
Memory-Zeroing techniques are used to clear the memory after the required files are ran.
Decryption key is not hardcoded, so reverse engineers can not find and use the key, it is brute forced and determined at runtime instead.
I need to add anti-debugging features though still, I was thinking potentially hooking a self debugger at runtime on itself.. in theory I think this may work?
This all works very well, but in the end it always decrypts and decompresses into memory, which is easily dumped and the reverse engineer has access to the fully decrypted and compiled file that needs to be protected.
Do you know of any way to either protect memory, or a function that can be run at runtime to stop or prevent or even crash a dumping program?