I suggest below a script that will bring some protection against Perl and CGI attacks , please dont hesitate to provide opinions , comments ..

Prerequisities : SUPHP + SUEXEC

PHP risk can be minimised by SUHOSIN Disabled functions , but a tricky Hacker can override this by running Perl , python or CGI script .

This script can be added to crontab each 10 min , and will suspend any cpanel account that run any CGI , Python , bash or perl script within his account ( with his account owner) ,you will be also alerted by mail , so you can check what script has been launched before may be ususpending the account .