{"id":2440,"date":"2026-11-28T16:52:55","date_gmt":"2026-11-28T16:52:55","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=2440"},"modified":"2026-11-28T19:59:14","modified_gmt":"2026-11-28T19:59:14","slug":"%d0%ba%d0%b0%d0%ba-%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d1%82%d1%8c%d1%81%d1%8f-%d1%83%d1%82%d0%b8%d0%bb%d0%b8%d1%82%d0%be%d0%b9-auditd-%d0%b2-os-proxmox","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=2440","title":{"rendered":"\u041a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 auditd \u0432 OS Proxmox"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0423\u0442\u0438\u043b\u0438\u0442\u0430 <code>auditd<\/code> (Linux Audit Daemon) \u2014 \u044d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430. \u0412 Proxmox VE \u043e\u043d\u0430 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0442\u043e\u0433\u043e, <strong>\u043a\u0442\u043e, \u043a\u043e\u0433\u0434\u0430 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/strong> \u0432\u043d\u043e\u0441\u0438\u043b \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0438\u043b\u0438 \u043c\u0435\u043d\u044f\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0438 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e <code>auditd<\/code> \u0432 Proxmox VE (\u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 Debian).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u043e\u0434\u0435 Proxmox \u043f\u043e SSH \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update\napt install auditd audispd-plugins -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em><code>audispd-plugins<\/code> \u043d\u0443\u0436\u043d\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 syslog \u0438\u043b\u0438 SIEM).<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 2. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0441\u043b\u0443\u0436\u0431\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status auditd\nauditctl -s<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(\u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <code>enabled 1<\/code> \u0438 <code>failure 1<\/code> \u0438\u043b\u0438 <code>2<\/code>)<\/em>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 3. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0430\u0443\u0434\u0438\u0442\u0430 (\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043b\u044f Proxmox)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>\/etc\/audit\/rules.d\/<\/code>. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>proxmox.rules<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/audit\/rules.d\/proxmox.rules<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u044d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u0421\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Proxmox (\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430)\n# wa = \u0437\u0430\u043f\u0438\u0441\u044c (write) \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 (attribute)\n-w \/etc\/pve\/ -p wa -k pve_config_changes\n\n# 2. \u0421\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438\n# x = \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 (execute)\n-w \/usr\/sbin\/qm -p x -k pve_qm_exec\n-w \/usr\/sbin\/pct -p x -k pve_pct_exec\n-w \/usr\/sbin\/pvesm -p x -k pve_storage_exec\n\n# 3. \u0421\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438\n-w \/etc\/shadow -p wa -k shadow_changes\n-w \/root\/.ssh\/ -p wa -k root_ssh_changes\n-w \/etc\/ssh\/sshd_config -p wa -k sshd_config_changes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em><code>-k<\/code> (key) \u2014 \u044d\u0442\u043e \u043c\u0435\u0442\u043a\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0442\u043e\u043c \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u043b\u043e\u0433\u0430\u0445.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 4. \u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>augenrules --load\nsystemctl restart auditd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>auditctl -l<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 5. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043b\u043e\u0433\u043e\u0432 \u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041b\u043e\u0433\u0438 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 <code>\/var\/log\/audit\/audit.log<\/code>, \u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. \u041f\u043e\u0438\u0441\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0442\u043e \u043c\u0435\u043d\u044f\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0438 Proxmox):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ausearch -k pve_config_changes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. \u041f\u043e\u0438\u0441\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, root):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ausearch -ua root<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ausearch -f \/etc\/pve\/qemu-server\/100.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0432\u043e\u0434\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 (\u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e!):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u0442\u0447\u0435\u0442 \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u0432\u044b\u0437\u044b\u0432\u0430\u0432\u0448\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<code>aureport -u --summary<\/code><\/li>\n\n\n\n<li>\u041e\u0442\u0447\u0435\u0442 \u043f\u043e \u0432\u0441\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u044f\u0442\u0441\u044f:<code>aureport -x --summary<\/code><\/li>\n\n\n\n<li>\u041e\u0442\u0447\u0435\u0442 \u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0448\u0438\u0431\u043a\u0438):<code>aureport --failed<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438):<\/strong><br>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u0432\u0430 \u043e\u043a\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0412 \u043e\u0434\u043d\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0439\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>qm start 100<\/code>), \u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0436\u0438\u0432\u043e\u0439 \u043f\u043e\u0442\u043e\u043a, \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e \u043a\u043b\u044e\u0447\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ausearch -k pve_qm_exec -i | tail -f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(\u0424\u043b\u0430\u0433 <code>-i<\/code> \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 UID\/GID \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0432 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442).<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f \u0412\u0430\u0436\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0434\u043b\u044f Proxmox<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/strong> \u041d\u0435 \u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e <code>-p rwxa<\/code> (\u0447\u0438\u0442\u0430\u0442\u044c, \u043f\u0438\u0441\u0430\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c, \u043c\u0435\u043d\u044f\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b) \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0432\u0435\u0441\u044c <code>\/var\/lib\/vz<\/code>). \u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a \u0438 CPU. \u0421\u043b\u0435\u0434\u0438\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 (<code>-p x<\/code> \u0438\u043b\u0438 <code>-p wa<\/code>).<\/li>\n\n\n\n<li><strong>\u041d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b:<\/strong> \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0441\u0430\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0430\u0443\u0434\u0438\u0442\u0430 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 <code>\/etc\/audit\/rules.d\/proxmox.rules<\/code> \u0441\u0442\u0440\u043e\u043a\u0443 <code>-e 2<\/code>. <strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435:<\/strong> \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430!<\/li>\n\n\n\n<li><strong>\u0420\u043e\u0442\u0430\u0446\u0438\u044f \u043b\u043e\u0433\u043e\u0432:<\/strong> <code>auditd<\/code> \u0441\u0430\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u043e\u0442\u0430\u0446\u0438\u0435\u0439 \u0441\u0432\u043e\u0438\u0445 \u043b\u043e\u0433\u043e\u0432 (\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 <code>\/etc\/audit\/auditd.conf<\/code>). \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043e <code>max_log_file<\/code> \u0438 <code>num_logs<\/code>, \u0447\u0442\u043e\u0431\u044b \u0434\u0438\u0441\u043a \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 Proxmox, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u0438 \u044f \u043f\u043e\u043c\u043e\u0433\u0443 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e <code>auditd<\/code> \u043f\u043e\u0434 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0442\u043b\u0438\u0447\u043d\u043e! \ud83c\udf89 \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 <strong>\u043d\u0435\u0442<\/strong> \u0441\u0442\u0440\u043e\u043a\u0438 <code>enabled 2<\/code>, \u2014 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0430\u0443\u0434\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0432\u044b \u0432\u0441\u0451 \u0435\u0449\u0451 \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0438\u0431\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043b\u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0438 \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u0433\u0438.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea \u0428\u0430\u0433 1. \u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Proxmox \u043b\u044e\u0431\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qm list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(\u0418\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 <code>pvesm status<\/code>)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d \u0428\u0430\u0433 2. \u041f\u043e\u0438\u0441\u043a \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u043b\u043e\u0433\u0430\u0445<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0439\u0434\u0451\u043c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u043b\u043e\u0433\u0430\u0445 \u0430\u0443\u0434\u0438\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430\u0448\u0443 \u043c\u0435\u0442\u043a\u0443 (<code>-k pve_qm_exec<\/code>). \u0424\u043b\u0430\u0433 <code>-i<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c (\u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u044b UID\/GID \u0432 \u0438\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ausearch -k pve_qm_exec -i<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type=PROCTITLE msg=audit(28.11.2026 10:00:00.000:123): proctitle=\"qm\" \"list\"\ntype=PATH msg=audit(28.11.2026 10:00:00.000:123): item=0 name=\"\/usr\/sbin\/qm\" ...\ntype=CWD msg=audit(28.11.2026 10:00:00.000:123): cwd=\"\/root\"\ntype=SYSCALL msg=audit(28.11.2026 10:00:00.000:123): arch=c000003e syscall=59 success=yes exit=0 a0=... a1=... a2=... a3=... items=1 ppid=1234 pid=5678 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=pts0 ses=1 comm=\"qm\" exe=\"\/usr\/bin\/perl\" key=\"pve_qm_exec\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u043b\u044f <code>uid=root<\/code> (\u043a\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b), <code>tty=pts0<\/code> (\u043e\u0442\u043a\u0443\u0434\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e SSH) \u0438 <code>exe<\/code> (\u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b).<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcca \u0428\u0430\u0433 3. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0432\u043e\u0434\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 (\u0441\u0430\u043c\u044b\u0439 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043c\u0435\u0441\u0442\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u044b\u0440\u044b\u0445 \u043b\u043e\u0433\u043e\u0432, <code>auditd<\/code> \u0443\u043c\u0435\u0435\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0441\u0432\u043e\u0434\u043a\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. \u041a\u0442\u043e \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aureport -x --summary<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(\u041f\u043e\u043a\u0430\u0436\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443: \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\/usr\/sbin\/qm<\/code>, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432, \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b).<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. \u041a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aureport -f --summary<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. \u041e\u0442\u0447\u0435\u0442 \u043e \u0432\u0441\u0435\u0445 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0448\u0438\u0431\u043a\u0438\/\u043e\u0442\u043a\u0430\u0437\u044b):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aureport --failed --summary<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udee1\ufe0f \u0428\u0430\u0433 4. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 (\u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0432\u0438\u0434\u0438\u0442\u0435, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0438\u0448\u0443\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0445\u043e\u0442\u0438\u0442\u0435 <strong>\u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0430\u0443\u0434\u0438\u0442\u0430<\/strong> (\u0434\u0430\u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e root) \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b: <code>nano \/etc\/audit\/rules.d\/proxmox.rules<\/code><\/li>\n\n\n\n<li>\u0423\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0438\u043c\u0432\u043e\u043b <code>#<\/code> \u043f\u0435\u0440\u0435\u0434 <code>-e 2<\/code>, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e <code>-e 2<\/code> \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435.<\/li>\n\n\n\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 (<code>Ctrl+O<\/code>, <code>Enter<\/code>, <code>Ctrl+X<\/code>).<\/li>\n\n\n\n<li>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435: <code>augenrules --load<\/code><\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435: <code>auditctl -s<\/code> (\u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c <code>enabled 2<\/code>).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>reboot<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0441\u0451 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e! \u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0412\u041c \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043c\u043e\u0441\u0442\u043e\u0432 <code>vmbr<\/code>), \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u0438 \u044f \u0434\u0430\u043c \u0442\u043e\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Proxmox<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ausearch -k pve_config_changes -i | grep -v CONFIG_CHANGE<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0412\u041c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ausearch -k pve_qm_exec -i<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">auseport &#8212;failed<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0432\u043e\u0434\u043a\u0443 \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">aureport -u &#8212;summary<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041d\u0430\u0439\u0442\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ausearch -ua root -i<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83c\udf89 <strong>\u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u0441\u0442 \u043f\u0440\u043e\u0448\u0435\u043b \u043d\u0430 100% \u0443\u0441\u043f\u0435\u0448\u043d\u043e!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044c. \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0438\u0437\u0443 \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <strong>\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0439\u043c\u0430\u043b \u0430\u0443\u0434\u0438\u0442:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>proctitle=touch \/root\/.ssh\/suspicious_file_test<\/code> \u2014 \u0432\u0438\u0434\u043d\u0430 \u043f\u043e\u043b\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c.<\/li>\n\n\n\n<li><code>nametype=CREATE<\/code> \u0438 <code>name=\/root\/.ssh\/suspicious_file_test<\/code> \u2014 \u0430\u0443\u0434\u0438\u0442 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e <strong>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435<\/strong> \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/li>\n\n\n\n<li><code>comm=touch<\/code> \u0438 <code>exe=\/usr\/bin\/touch<\/code> \u2014 \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a\u0430\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.<\/li>\n\n\n\n<li><code>key=root_ssh_changes<\/code> \u2014 \u043d\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0438 \u043f\u043e\u043c\u0435\u0442\u0438\u043b\u043e \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435: \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0438 \u0441 <code>CONFIG_CHANGE<\/code> \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <code>grep<\/code> \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442 \u043b\u043e\u0433\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e, \u0430 \u043d\u0435 \u0431\u043b\u043e\u043a\u0430\u043c\u0438. \u041e\u043d \u0443\u0434\u0430\u043b\u0438\u043b \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 <code>comm=auditctl<\/code>, \u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 <code>grep<\/code>. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 <code>ausearch<\/code>: <code>ausearch -k root_ssh_changes -i -m PATH,SYSCALL<\/code>)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf9 \u0428\u0430\u0433 \u043e\u0447\u0438\u0441\u0442\u043a\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/root\/.ssh\/suspicious_file_test<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfc6 \u0418\u0442\u043e\u0433 \u0432\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 <code>auditd<\/code> \u043d\u0430 Proxmox VE.<\/li>\n\n\n\n<li>\u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u0446\u0435\u043b\u0435\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0412\u041c (<code>qm<\/code>, <code>pct<\/code>), \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 (<code>\/etc\/pve\/<\/code>) \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (<code>\/root\/.ssh<\/code>, <code>\/etc\/ssh\/<\/code>).<\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u0433\u0438, \u043e\u0442\u0434\u0435\u043b\u044f\u044f &#171;\u0448\u0443\u043c&#187; \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udee1\ufe0f \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 (\u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e):<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0442\u0443 \u043f\u0440\u0430\u0432\u0438\u043b:<\/strong> \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>-e 2<\/code> \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 <code>\/etc\/audit\/rules.d\/proxmox.rules<\/code> \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e (\u0434\u0430\u0436\u0435 root) \u043d\u0435 \u043c\u043e\u0433 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442 \u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/li>\n\n\n\n<li><strong>\u0423\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430:<\/strong> \u0415\u0441\u043b\u0438 <code>aureport<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0442 <code>\/etc\/pve\/priv\/lock\/<\/code>, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f <code>qemu-server\/<\/code>, <code>lxc\/<\/code>, <code>user.cfg<\/code> \u0438 \u0442.\u0434.).<\/li>\n\n\n\n<li><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u043e\u0442\u0430\u0446\u0438\u044e \u043b\u043e\u0433\u043e\u0432:<\/strong> \u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043b\u043e\u0433\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u044f\u0442 \u0434\u0438\u0441\u043a (\u043c\u044b \u0443\u0436\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u043b\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 <code>max_log_file<\/code> \u0432 <code>auditd.conf<\/code>).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c! \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0430\u0443\u0434\u0438\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b GNU\/Linux<\/p>\n","protected":false},"author":1,"featured_media":2458,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,33,22],"tags":[213,29,13,70,17],"class_list":["post-2440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category---linux","category-33","category-22","tag-debian","tag-lan","tag-linux","tag-proxmox","tag-server"],"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2440","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=2440"}],"version-history":[{"count":5,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2440\/revisions"}],"predecessor-version":[{"id":2460,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2440\/revisions\/2460"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/2458"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}