BYOSI - Evade EDR's The Simple Way, By Not Touching Any Of The API's They Hook
EDR solutions tend to overlook scripting files, focusing on binary implants. This oversight presents an opportunity for attackers. BYOSI (Bring Your Own Scripting Interpreter) leverages this by utilizing signed scripting interpreters that bypass EDR detection. A PHP script, signed by its creator, can execute on systems protected by CrowdStrike and Trellix without triggering alerts. The script fetches and extracts a PHP archive, then executes the implant using the whitelisted PHP binary. This method evades EDR detection, allowing attackers to establish an active shell on the target system. Even PowerShell scripts can evade EDR detection with just four lines of code. GitHub's trusted deployer status further enhances the effectiveness of this attack. The script demonstrates the vulnerability of EDR solutions to scripting file attacks. The author emphasizes that they are not responsible for the misuse of this technique but highlight it as a significant blind spot in EDR protection. Modifications to the PHP script may be necessary to evade detection by Microsoft Defender. Sentinel One may also be vulnerable to this attack, as it reportedly cannot scan PHP file types.