Difference between revisions of "HIDS 60027"
|Line 41:||Line 41:|
Please see these article for '''solutions if your application
Please see these article for '''solutions if your application this ''':
Note: '''Java''' may require you to open other holes in your system. If you are attempting to
Note: '''Java''' may require you to open other holes in your system. If you are attempting to Java , please see this article:
Revision as of 14:11, 1 February 2016
|Alert Message||Denied a RWX mmap event. An application just attempted to use the mprotect function to bypass memory protection functions in the kernel.|
This means this program is:
1) Being attacked, and the attack was stopped
2) The program is attempting to perform a dangerous operation, that could cause your system to be compromised.
In both cases, this means the ASL kernel is preventing this program from doing this and the action was stopped. Many, and perhaps even most, computer insecurities are due to errors in programs that make it possible to alter their function, effectively allowing them to be "rewritten" while running. Specifically, this protection in the ASL kernel guarantees that this can not occur, by enforcing that memory pages will not become both writable and executable, and thus fertile ground for simple widely exploited code injection attacks. Without this restriction, a three step exploit is possible: Inject code, ret2libc::ret2mprotect(), execute code.
This protection may also be triggered by malicious applications. Some malicious applications are known to try to use this method to modify their code in real time, to try to evade malware in memory scanners.
You can read more about the technical details of this kernel protection capability in this article:
You should investigate this event as it may be part of a broader attack. In all cases, any application doing this is doing something dangerous on your system, and is exposing your system to potential compromise.
Jun 27 20:32:38 host kernel: grsec: From 126.96.36.199: denied RWX mmap of <anonymous mapping> by /usr/sbin/r1soft/bin/2-6/cdp-2-6[cdp-2-6:6653] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
May 5 09:24:02 host kernel: grsec: From 188.8.131.52: denied RWX mprotect of /lib64/ld-2.12.so by /usr/local/cpanel/whostmgr/docroot/cgi/addon_installatron.cgi[addon_installat:3705] uid/euid:0/0 gid/egid:0/0, parent /usr/local/cpanel/cpsrvd-ssl[cpsrvd-ssl:3642] uid/euid:0/0 gid/egid:0/0
May 1 01:01:01 host kernel: grsec: From 184.108.40.206: denied RWX mprotect of /lib64/ld-2.5.so by /usr/local/cpanel/3rdparty/php/53/bin/php-cgi[php-cgi:25915] uid/euid:32003/32003 gid/egid:32003/32003, parent /usr/local/cpanel/cpsrvd-ssl[cpsrvd-ssl:25913] uid/euid:32003/32003 gid/egid:32003/32003
Please see this article if you see this event for any paxtest events:
Please see these article for solutions if your application requires to be run this way, and therefore has the mmap weakness:
Note: Java may require you to open other holes in your system. If you are attempting to allow Java to do this, please see this article:
Please report this to support if you know this is not an attack.
Knowledge Base Articles