Execution Master

Discussion in 'other software & services' started by WildByDesign, Feb 11, 2018.

  1. WildByDesign

    WildByDesign Registered Member

    Joined:
    Sep 24, 2013
    Posts:
    2,587
    Location:
    Toronto, Canada
    Execution Master

    Windows utility for intercepting the creation of processes and assigning standard actions to the execution of any program

    Link: https://github.com/diversenok/ExecutionMaster#execution-master
    Downloads: https://github.com/diversenok/ExecutionMaster/releases


    executionmaster.png


    The latest version also contains shell extension:

    executionmaster2.png
     
  2. guest

    guest Guest

    Interesting, seems to be a basic anti-exe.
     
  3. ichito

    ichito Registered Member

    Joined:
    Jan 14, 2011
    Posts:
    1,997
    Location:
    Poland - Cracow
    Yes, interesting especialy due to managing of admin rights...it looks EM can be useful replacement of DMR and "run as admin" system featur.
     
  4. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    20,590
    Does it match NVT's ERP?
     
  5. guest

    guest Guest

    It is not that kind of Anti-Executable.
    It makes use of the Windows mechanism Image File Execution Options.
    If you have Process Hacker installed and if it is set as the default Task Manager you'll see in the registry:
    Code:
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe    Debugger    REG_SZ    "C:\Program Files\Process Hacker\ProcessHacker.exe"
    The execution of taskmgr.exe is intercepted and instead of taskmgr.exe, ProcessHacker.exe will be executed (Action "Execute" in the GUI of Execution Master)

    If you select "Deny" it will set the appropiate executable as a Debugger ("..\Actions\Deny.exe")
     
  6. ichito

    ichito Registered Member

    Joined:
    Jan 14, 2011
    Posts:
    1,997
    Location:
    Poland - Cracow
    No matter is it definied anti-exe or not...more important are the features that can be easily configured in clear GUI.
     
  7. guest

    guest Guest

    Execution Master v1.10 Released (September 30, 2018)
    Download
     
  8. EASTER

    EASTER Registered Member

    Joined:
    Jul 28, 2007
    Posts:
    11,126
    Location:
    U.S.A. (South)
  9. itman

    itman Registered Member

    Joined:
    Jun 22, 2010
    Posts:
    8,593
    Location:
    U.S.A.
    Anyone know what the "run sandboxed" option does; appcontainer? Of note is it shows the Sandboxie icon for that option?
     
  10. guest

    guest Guest

    The shell extension of Sandboxie is reponsible for "Run Sandboxed".
    After registering of the shell extension of Execution Master this will be added to the contextmenu: "Set launch action: (None, Ask, Deny, ...)"
     
  11. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Yes, bad idea to mess around with these settings, not recommended.
     
  12. EASTER

    EASTER Registered Member

    Joined:
    Jul 28, 2007
    Posts:
    11,126
    Location:
    U.S.A. (South)
    Please explain.
    I heard of this setting before being used by malware-because of easy connect to debugger etc-Image File Execution Options are used to intercept calls to an executable-but as it became more widely exposed safe programs like this one make use of it.
     
  13. itman

    itman Registered Member

    Joined:
    Jun 22, 2010
    Posts:
    8,593
    Location:
    U.S.A.
    Some HIPS's have an option to create a rule to prevent an executable from be run in debug mode. That is what this utility is doing.
     
  14. TairikuOkami

    TairikuOkami Registered Member

    Joined:
    Oct 10, 2005
    Posts:
    3,434
    Location:
    Slovakia
    Yes, malware uses it all the time, but it is not a bug, it is a feature. :rolleyes:
    Some AVs block that key by default.
    Code:
    https://cybellum.com/doubleagentzero-day-code-injection-and-persistence-technique/
    I remove it before shutdown as a mitigation.
    Code:
    reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" /f
     
  15. diversenok

    diversenok Registered Member

    Joined:
    Oct 7, 2018
    Posts:
    18
    Location:
    Russia / Netherlands
    Of course, you should know what you are doing. Execution Master even shows warnings when you try to mess around with system programs.

    Not exactly. IFEO Debugger flag is not actually about debugging - it is about replacing of the command line on the fly. That's all it does.

    Debugging is just a way that Actions use to bypass it (they need to run the original program somehow). And it is used only on the stage of process creation. After that, the Action immediately detaches from the new process. So, programs don't run in debug mode after initialization.

    I also know another way to bypass IFEO without using debugging on any stage. Maybe I'll implement it later.
     
  16. WildByDesign

    WildByDesign Registered Member

    Joined:
    Sep 24, 2013
    Posts:
    2,587
    Location:
    Toronto, Canada
    @diversenok Thank you for the insight and details and also for sharing this program as open source. Keep up the great work! :thumb:

    Would there be any way to add the ability to start a process within AppContainer sandbox and choose from list of AppContainer capabilities?
    This, in my opinion, is a much needed program functionality in general. But would absolutely require capability choice though to be most functional.
     
  17. diversenok

    diversenok Registered Member

    Joined:
    Oct 7, 2018
    Posts:
    18
    Location:
    Russia / Netherlands
    @WildByDesign That's a great idea, thanks. Configurable actions are not an issue - I was planning to add some of them (like limiting CPU consumption up to the specified percentage). I was also thinking about adding more restrictive actions (prevent child process creation, deny any file modification). AppContainer sandbox can become an excellent addition. :thumb:
     
  18. WildByDesign

    WildByDesign Registered Member

    Joined:
    Sep 24, 2013
    Posts:
    2,587
    Location:
    Toronto, Canada
    @diversenok You're welcome. Your suggestions to add more restrictions like preventing child process creation and more would be absolutely fantastic. I can see a lot of potential with those ideas, particularly powerful for a tiny portable application. I look forward to following development and will continue testing. Very creative program in general, for sure. I've utilized the IFEO registry keys for Process Mitigations for a while now and had no idea how much more potential could come out of IFEO and your program definitely shows that.
     
  19. WildByDesign

    WildByDesign Registered Member

    Joined:
    Sep 24, 2013
    Posts:
    2,587
    Location:
    Toronto, Canada
    By the way, if you do have any interest in AppContainer sandbox, I have some decent code examples to share in case they may be beneficial. I will place in spoiler below since it may be off topic for this thread.

    Link: https://github.com/AaLl86/retroware/tree/master/AppContainers
    Image: http://www.andrea-allievi.com/wp-content/uploads/2013/06/8.-Saferbytes-AppContainer-Launcher.jpg

    That is by Andrea Allievi (https://twitter.com/aall86) who is working with Microsoft now. His code example have good examples for AppContainer capabilities.


    Also there is PrivExec by the same developer who makes NSudo.

    Link: https://github.com/M2Team/Privexec

    PrivExec can start processes within Appcontainer with limited/basic capabilities but no actual choice selection for choosing capabilities. A decent code example though.
     
  20. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    What I meant is that I rather not see these registry keys being modified since they are mostly associated with malware. But I have to say that Execution Master is an interesting app.
     
  21. diversenok

    diversenok Registered Member

    Joined:
    Oct 7, 2018
    Posts:
    18
    Location:
    Russia / Netherlands
    If it's interesting for anyone, I wrote a blog post about how the tool works. Image File Execution Options and related topics are full of surprises and neat pitfalls.
     
  22. blacknight

    blacknight Registered Member

    Joined:
    Sep 25, 2007
    Posts:
    3,348
    Location:
    Europe, UE citizen
    There are known incompatibility problems with other security software, such HIPS for example ?
     
  23. blacknight

    blacknight Registered Member

    Joined:
    Sep 25, 2007
    Posts:
    3,348
    Location:
    Europe, UE citizen
    It seems no. No problem with Defense+ and AppGuard.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.