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

Db0109 system binary proxy execution rundll32 (improved) #92

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

db0109
Copy link

@db0109 db0109 commented Dec 18, 2024

No description provided.

@fr0gger
Copy link
Collaborator

fr0gger commented Jan 9, 2025

Hi, thank you for your contribution. Rundll32.exe is designed to call a function explicitly exported from a DLL. However, in your current implementation, there is no exported function, only DllMain. Additionally, the code does not demonstrate any features typically exploited by malware.

While your code might technically work, it does not showcase practical value as it stands.

Here are some suggestions for improvement:

  • Modify your DLL to include an exported function.
  • Use an ordinal reference to call the function instead of its name.
  • Study real-world malware examples, such as NotPetya, which has been thoroughly documented. (you can even get the code or reproduce the code from this malware.)

I hope this feedback is helpful, and we look forward to see your next iteration. 😊

@DarkCoderSc
Copy link
Member

Hi, thank you for your contribution. Rundll32.exe is designed to call a function explicitly exported from a DLL. However, in your current implementation, there is no exported function, only DllMain. Additionally, the code does not demonstrate any features typically exploited by malware.

While your code might technically work, it does not showcase practical value as it stands.

Here are some suggestions for improvement:

  • Modify your DLL to include an exported function.
  • Use an ordinal reference to call the function instead of its name.
  • Study real-world malware examples, such as NotPetya, which has been thoroughly documented. (you can even get the code or reproduce the code from this malware.)

I hope this feedback is helpful, and we look forward to see your next iteration. 😊

I just added a snippet demonstrating the definition and usage of an exported function via rundll32 : https://unprotect.it/snippet/system-binary-proxy-execution-rundll32/240/

OP, feel free to port to your favorite language(s)

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.

3 participants