{"id":2466,"date":"2026-11-29T14:44:52","date_gmt":"2026-11-29T14:44:52","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=2466"},"modified":"2026-11-29T14:46:12","modified_gmt":"2026-11-29T14:46:12","slug":"%d0%b4%d0%b5%d0%b9%d1%81%d1%82%d0%b2%d0%b8%d1%8f-%d0%bf%d1%80%d0%b8-%d0%be%d0%b1%d0%bd%d0%b0%d1%80%d1%83%d0%b6%d0%b5%d0%bd%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d1%82%d0%be%d1%80%d0%be%d0%bd%d0%bd%d0%b5","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=2466","title":{"rendered":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 GNU\/Linux \u0421\u0435\u0440\u0432\u0435\u0440\u0435"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u0414\u043b\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u0434\u043d\u043e\u043d\u043e\u0441\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e:<\/strong><\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><code>\/root\/audit_suspicious.sh<\/code><\/summary>\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n# \u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 Proxmox VE\n# \u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415: \u0421\u043a\u0440\u0438\u043f\u0442 \u041d\u0415 \u041e\u0421\u0422\u0410\u041d\u0410\u0412\u041b\u0418\u0412\u0410\u0415\u0422 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0442\u0447\u0435\u0442.\n\nREPORT=\"\/root\/suspicious_report_$(date +%F_%H-%M).txt\"\necho \"=== \u041e\u0422\u0427\u0415\u0422 \u041f\u041e \u041f\u041e\u0414\u041e\u0417\u0420\u0418\u0422\u0415\u041b\u042c\u041d\u041e\u0419 \u0410\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u0418 ===\" &gt; \"$REPORT\"\necho \"\u0425\u043e\u0441\u0442: $(hostname) | \u0414\u0430\u0442\u0430: $(date)\" &gt;&gt; \"$REPORT\"\necho \"=========================================\" &gt;&gt; \"$REPORT\"\n\n# 1. \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 (\u0447\u0430\u0441\u0442\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u0430\u043b\u0432\u0430\u0440\u0438)\necho -e \"\\n&#91;1] \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0438\u0437 \/tmp, \/var\/tmp, \/dev\/shm, \/var\/www:\" &gt;&gt; \"$REPORT\"\nfor pid in $(ls \/proc | grep -E '^&#91;0-9]+$'); do\n    exe=$(readlink -f \/proc\/$pid\/exe 2&gt;\/dev\/null)\n    if &#91;&#91; \"$exe\" == \/tmp\/* || \"$exe\" == \/var\/tmp\/* || \"$exe\" == \/dev\/shm\/* || \"$exe\" == \/var\/www\/* ]]; then\n        echo \"PID: $pid | USER: $(ps -o user= -p $pid) | EXE: $exe\" &gt;&gt; \"$REPORT\"\n    fi\ndone\n\n# 2. \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b \u0443\u0434\u0430\u043b\u0435\u043d \u0441 \u0434\u0438\u0441\u043a\u0430 (\u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0431\u044d\u043a\u0434\u043e\u0440\u0430)\necho -e \"\\n&#91;2] \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c (deleted):\" &gt;&gt; \"$REPORT\"\nfor pid in $(ls \/proc | grep -E '^&#91;0-9]+$'); do\n    exe=$(readlink \/proc\/$pid\/exe 2&gt;\/dev\/null)\n    if &#91;&#91; \"$exe\" == *\"(deleted)\"* ]]; then\n        echo \"PID: $pid | USER: $(ps -o user= -p $pid) | EXE: $exe\" &gt;&gt; \"$REPORT\"\n    fi\ndone\n\n# 3. \u0422\u043e\u043f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e CPU (\u043f\u043e\u0438\u0441\u043a \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0430\u0439\u043d\u0435\u0440\u043e\u0432)\necho -e \"\\n&#91;3] \u0422\u043e\u043f-15 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 CPU:\" &gt;&gt; \"$REPORT\"\nps -eo pid,ppid,user,%cpu,comm --sort=-%cpu | head -n 16 &gt;&gt; \"$REPORT\"\n\n# 4. \u041f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\necho -e \"\\n&#91;4] \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 TCP\/UDP \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f (ESTAB):\" &gt;&gt; \"$REPORT\"\nss -tunap | grep ESTAB &gt;&gt; \"$REPORT\"\n\n# 5. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0438\u043b\u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0445\necho -e \"\\n&#91;5] \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0441 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 (\u0441\u043a\u0440\u044b\u0442\u044b\u0435\/\u043f\u043e\u0434\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435):\" &gt;&gt; \"$REPORT\"\nps -eo pid,comm | awk '{if(length($2)&lt;3 &amp;&amp; $1!=1) print $0}' &gt;&gt; \"$REPORT\"\n\necho -e \"\\n\u2705 \u041e\u0442\u0447\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d: $REPORT\"\necho \"\u26a0\ufe0f  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u0443\u0447\u0438\u0442\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0435\u043c \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043c\u0435\u0440!\"<\/code><\/pre>\n<\/details>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u0441\u0432\u043e\u0439\u0442\u0435 \u0435\u043c\u0443 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b\u0443 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x <span style=\"background-color: initial; font-family: inherit; font-size: inherit; text-align: initial; color: initial;\">\/root\/audit_suspicious.sh<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0438\u0437 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/<span style=\"background-color: initial; font-family: inherit; font-size: inherit; text-align: initial; color: initial;\">audit_suspicious.sh<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0431\u0435\u0439\u0442\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u0430\u043a, \u043a\u0430\u043a \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0445 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/p><\/blockquote><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0423\u0431\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u0437\u043b\u043e\u043c\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439\nkill -9 101516\n\n# \u0423\u0431\u0438\u0432\u0430\u0435\u043c pip3 (\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0442\u0430\u043a\u0438)\nkill -9 116543\n\n# \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043c\u0435\u0440\u0442\u0432\u044b\nps aux | grep -E '(crack|pip3)' | grep -v grep<\/code><\/pre>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/?p=2419&amp;swcfpc=1\">\u0414\u043b\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0446\u0438\u0434\u0438\u0432\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0412\u044b, \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u0441\u0435\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0441\u0442\u0430\u043b \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u043f\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u0441\u0432\u043e\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u0430\u043c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u043e \u0432\u0430\u043c \u0441\u0440\u043e\u0447\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n","protected":false},"author":1,"featured_media":2468,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,33],"tags":[1080,1077,1079,1082,1081],"class_list":["post-2466","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category---linux","category-33","tag-1080","tag-1077","tag-1079","tag-1082","tag-1081"],"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2466"}],"version-history":[{"count":4,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2466\/revisions"}],"predecessor-version":[{"id":2471,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2466\/revisions\/2471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/2468"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}