Uncategorized

WMEye : A Post Exploitation Tool That Uses WMI Event Filter And MSBuild Execution For Lateral Movement

WMEye is an experimental tool that was developed when exploring about Windows WMI. The tool is developed for performing Lateral Movement using WMI and remote MSBuild Execution. It uploads the encoded/encrypted shellcode into remote targets WMI Class Property, create an event filter that when triggered writes an MSBuild based Payload using a special WMI Class called Log File Event Consumer and finally executes the payload remotely.

UseCase

Fileless Lateral Movement using WMI, can be used with Cobalt Strike’s Execute-Assembly

Note: This is still in experimental stage and no where near to be used in a real engagement.

Preview

Current Working

  • Creates a Remote WMI Class
  • Writes Shellcode as property value to the above created Fake WMI Class
  • Creates a WMI Event Filter to trigger on powershell.exe process creation
  • On Event Trigger, it Uploads MSBuild Payload into remote system using LogFileEventConsumer (A WMI Consumer type to write Log Files)
  • Finally Invoke Win32_Process Create to call MSbuild remotely

The MSBuild Payload fetches encoded shellcode from WMI Class Property, decodes and executes it.

Upcoming Features

  • Replace WIN32_Process Create method of invocation with something better
  • Add GZIP Compression for Shellcode and XML File Bytes
  • Add NTLM PTH Support
  • Add CleanUp Functions for removing event filter after the logfileeventconsumer finished writing the MSBuild Payload

Whats Unique in this Project ?

  • Uploads the encoded/encrypted shellcode to remote machines WMI property on a Created Fake Class (can maybe tweak to write shellcode into existing class’s Property)
  • Uses LogFileEventConsumer to upload MSBuild File , instead of relying in spawning Powershell.exe using win32_process Create
R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

1 week ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

2 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago