🚨 I spent some time this weekend performing Code Injection via the 𝐌𝐞𝐬𝐬𝐚𝐠...

@netbiosX@infosec.exchange

🚨 I spent some time this weekend performing Code Injection via the 𝐌𝐞𝐬𝐬𝐚𝐠𝐞𝐁𝐨𝐱𝐈𝐧𝐝𝐢𝐫𝐞𝐜𝐭𝐖 API.
🎯 Why? Some EDRs might not inspect a parameter in the 𝑴𝑺𝑮𝑩𝑶𝑿𝑷𝑨𝑹𝑨𝑴𝑺𝑾 structure.

𝑷𝒓𝒐𝒄𝒆𝒔𝒔

🔴 Shellcode is stored in allocated process memory
🔴 The 𝒍𝒑𝒔𝒛𝑰𝒄𝒐𝒏 field ➡️ points to the shellcode address
🔴 The 𝒍𝒑𝒇𝒏𝑴𝒔𝒈𝑩𝒐𝒙𝑪𝒂𝒍𝒍𝒃𝒂𝒄𝒌 has the same address 🟰 lpszIcon address
🔴 Help event invokes 𝒍𝒑𝒇𝒏𝑴𝒔𝒈𝑩𝒐𝒙𝑪𝒂𝒍𝒍𝒃𝒂𝒄𝒌 ➡️ Shellcode Trigger