ÝÇíÑææá CSF Firewall Íá ãÔßáÉ cpanel Suspicious File Alert /dev/shm/set
csf Reason: Linux Binary - warning: Suspicious file types found in /dev
cpanel Suspicious File Alert /dev/shm/set - webshell - /dev/shm and /tmp
cpanel Suspicious File Alert File: /dev/shm/set
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen
Suspicious File Alert: Tracking where the file has come from
------------------------------------------
ÇáãÔßáÉ:
------------------------------------------
åíÕá áß Çíãíá Úáì ÓíÑÝÑß AlmaLinux Çä åäÇß user Úáì ÇáÓíÑÝÑ ÑÝÚ ãáÝ ÊÌÓÓ
íÞæã åÐÇ ÇáÝíÑæÓ íÓÍÈ ãáÝ config ÇáÎÇÕ ÈÇáææÑÏÈÑíÓ áÞæÇÚÏ ÈíÇäÇÊ
áÚãáÇÁ ÇÎÑíä Úáì äÝÓ ÇáÓíÑÝÑ æåÊÌÏ ÈÇáÝÚá ÞæÇÚÏ ÇáÈíÇäÇÊ ÇáÊì ÓÍÈÊ
ãæÌæÏÉ Ýì ÝæáÏÑ ÏÇÎá ÍÓÇÈ ÇáÚãíá ÈÓÈÈ ÝíÑæÓ ãÑÝæÚ.
ÊÌÏ åäÇ Ýì ÇáÕæÑ Çä åäÇß ãáÝ file ÈÇÓã set Êã ÑÝÚå Úáì dev/shm
ÈÏÇÎáå ÇæÇãÑ Ôá äÝÐÊ åÐÇ ÇáÇãÑ ! æÇáÝÇíÑææá ÊáÞÇÆíÇ Úãá Action
æÞÝ åÐÇ ÇáãáÝ Úä ÇáÚãá ÈäÞáå Çáì var/lib/csf/suspicious.tar
æÈÇáÝÚá åÊÌÏå åäÇß.
æåäÇ íÙåÑ Çä ÇáÝÇíÑææá ÇäÊÈå áÐáß ææÌÏ Çä ÇáÚãíá user áíÓ sudo æíÞæã ÈÚãá root
------------------------------------------
Íá ÇáãÔßáÉ :
------------------------------------------
1- ÇÐÇ ßÇä áÏíß csf ÝÇíÑææá áÇ ÊÞáÞ Ýåæ ÈÇáÝÚá æÞÝ åÐÇ ÇáÚãá æßÐáß
ÇÐÇ ßäÊ ãÇäÚ ÇáÇÊÕÇá ãÚ ÞæÇÚÏ ÇáÈíÇäÇÊ ãä ÎÇÑÌ ÇáÓíÑÝÑ ÝÇäÊ Ýì ÇãÇä
ãä Çì ÇÊÕÇá ÎÇÑÌì ãÚ ÞæÇÚÏ ÇáÈíÇäÇÊ ÇáãÓÑÈÉ æíÝÖá ÊÛííÑ ÈÇÓæÑÏ ÞæÇÚÏ ÇáÈíÇäÇÊ åÐå.
2- ÇÓÎÏã ImunifyAV áÝÍÕ ÍÓÇÈ ÇáÚãíá æÇÍÐÝ ÍÓÇÈ ÇáÚãíá ÊãÇãÇ ÇÐÇ ßÇä ÈÇÓÊØÇÚÊß
ÞÏ íßæä åäÇß backdoor æáÇ ÊÔÚÑ Èå ! íÌÈ ÇáÊÍÞÞ ãä ÇáÍãÇíÉ áãäÚ ÍÏæË ãËá Ðáß
Ýì ÇáßáÇæÏ áíäßÓ Cloudlinux ÇäÊ ãÍãì áÇä ßá Úãá Ýì ÞÝÕ Cage
ÇãÇ ÇááíäßÓ ÝíÌÈ æÖÚ ÇáãÒíÏ ãä ÇáÍãÇíÉ.
3- ÛáÞ allow_url_fopen ãä MultiPHP INI Editor
The allow_url_fopen is a setting managed through the PHP Options which allows PHP file functions to retrieve data from remote locations over FTP or HTTP. This option is a significant security risk, thus, do not turn it on without necessity.
The Allow_url_fopen function can retrieve information from a remote server. This function will be in deactivation server-wide for all domains on the majority of shared servers. We have to disable this since it poses a severe security risk. For security reasons, in a shared hosting account allow_url_fopen is disabled by default. Note that in a shared account the allow_url_fopen is by default disabled. The allow_url_fopen PHP option specifies whether or not PHP is permitted to fetch URL objects such as files. This feature is frequently disabled for security reasons, although some scripts may require it to function properly. Users who attempt to enable or disable this via the MultiPHP INI Editor in cPanel may notice that their scripts or PHP information pages are not updated. Disable allow_url_fopen on a Linux/cPanel Server There is a high probability for a website to get weak for hackers if the allow_url_fopen is in the activation stage on the server. So most hosting companies opt to disable it to ensure security. The probability and the chances of website compromisation if this directive is active globally on the server.
4- ÇáãÓÇÑ /dev/shm æ /tmp ßáÇåãÇ writeable Çì Úãíá íÓÊØíÚ ÑÝÚ ãáÝÇÊ Úáíå
æáÇ íæÌÏ ØÑíÞÉ áÚãá block áÐáß ÇáÇ ãä ÎáÇá ÍÙÑ ÇáÏæÇá disable_functions Ýì php
ßæÏ:disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
ÞÏ íßæä ÈÚÖåÇ ãÝÚá æáíÓ ÌãíÚåÇ , áÐáß ÇÍÙÑ ÌãíÚåÇ æáíÓ ÈÚÖåÇ
Your basically disabling some stuff that makes it much easier to hack your server. Like anything if your not using it then no need to leave it for the world to take advantage of.
ÔÇåÏ ÇíÖÇ/dev/shm and /tmp are world writeable; any user can write files there. There is no 100% way to block these. ModSecurity and CXS can help. However the only way to not have your customers be infected with these is to make them keep their CMS software (joomla, wordpress, etc.) fully updated and with good strong administrative passwords. You can also set in /usr/local/lib/php.ini the disable_functions setting to disallow exec and other risky php functions. Mine is set something like:
ÍãÇíÉ WHM / CPANEL ãä ÎáÇá ÛáÞ FUNCTIONS ÇáÎØÑÉ DISABLE_FUNCTIONS
ÇáãÑÌÚ:
https://forums.cpanel.net/threads/we...nd-tmp.396252/
https://forums.cpanel.net/threads/di...o-popen.58180/
https://www.webhostingtalk.com/showthread.php?t=1456023









ÑÏ ãÚ ÇÞÊÈÇÓ
ÇáãÝÖáÇÊ