{"id":192800,"date":"2013-09-06T15:58:02","date_gmt":"2013-09-06T11:58:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192800"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192800","title":{"rendered":"<span class=\"post_title\">OSSEC: \u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u0411\u0440\u0430\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e\u0431\u043e\u0439<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f3c\/d58\/b3c\/f3cd58b3c83409a50b4d03e77d2f045e.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u043d\u0435 \u043e\u0448\u0438\u0431\u0443\u0441\u044c, \u0435\u0441\u043b\u0438 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438. \u041e\u0441\u043e\u0441\u0431\u0435\u043d\u043d\u043e \u043e\u0441\u0442\u0440\u043e \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u0441\u0442\u0430\u0435\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043a\u0430\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c \u0432\u0430\u0441, \u043a\u043e\u043b\u043b\u0435\u0433\u0438, \u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c host-based IDS \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c OSSEC. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442\u2026<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0422\u0435\u043e\u0440\u0438\u044f<\/h4>\n<p>  <b>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u0439 (\u0421\u041e\u0412) (\u0430\u043d\u0433\u043b. Intrusion Detection System (IDS))<\/b> \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 (\u043a\u0430\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u0438\u043b\u0438 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u043a\u0442\u043e\u0432 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0430\u0442\u0430\u043a\u0438) \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438\u043b\u0438 \u0441\u0435\u0442\u044c.<\/p>\n<p>  \u0426\u0435\u043b\u0438, \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 IDS:<\/p>\n<ul>\n<li>\u0421\u0430\u043c\u0430\u044f \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u2014 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u0430\u0442\u0430\u043a\u0443 <\/li>\n<li>\u041f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u044f \u2014 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u044f\u0434 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0440\u0438 \u043f\u0440\u043e\u0449\u0443\u043f\u044b\u0432\u0430\u043d\u0438\u0438 \u0432\u0430\u0448\u0435\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0441\u043b\u0435\u0434 <\/li>\n<li>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0435\u0442\u0438 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439)<\/li>\n<li>\u041c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0446\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \ud83d\ude42<\/li>\n<\/ul>\n<p>  \u0421\u0438\u0441\u0442\u0435\u043c\u044b IDS \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 <b>network-based<\/b> \u0438 <b>host-based<\/b>. <\/p>\n<p>  Network-based IDS \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0430\u0442\u0430\u043a\u0438, \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044f \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b. \u0421\u043b\u0443\u0448\u0430\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442, NIDS \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0445\u043e\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u043a \u0441\u0435\u0442\u0435\u0432\u043e\u043c\u0443 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0443, \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u044d\u0442\u0438 \u0445\u043e\u0441\u0442\u044b. <\/p>\n<p>  Host-based IDS \u0438\u043c\u0435\u044e\u0442 \u0434\u0435\u043b\u043e \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0422\u0430\u043a\u043e\u0435 \u0432\u044b\u0433\u043e\u0434\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 HIDS \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0430\u0442\u0430\u043a\u0435 \u0432 \u041e\u0421. \u041dIDS \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0434\u0432\u0443\u0445 \u0442\u0438\u043f\u043e\u0432: \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0430\u0443\u0434\u0438\u0442\u0430 \u041e\u0421 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043b\u043e\u0433\u0438.<\/p>\n<p>  OSSEC \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f HIDS, \u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 <b>\u0441\u0435\u0440\u0432\u0435\u0440&lt;&#8212;&gt;\u0430\u0433\u0435\u043d\u0442\u044b<\/b>. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0441\u0445\u0435\u043c\u0443.<\/p>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0438\u043c\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0430\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0435\u0442\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0437\u043e\u043d\u0430 DMZ \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c.<br \/>  \u041f\u0443\u0441\u0442\u044c \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u0434 CentOS 6.x (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u0434 \u043b\u044e\u0431\u043e\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 OS \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Windows)<br \/>  \u0415\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0432 DMZ, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 OSSEC.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0435\u0440 OSSEC.<\/p>\n<pre><code class=\"bash\">wget -q -O - https:\/\/www.atomicorp.com\/installers\/atomic |sh && yum install ossec-hids ossec-hids-server <\/code><\/pre>\n<p>  \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0443\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b yum \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 OSSSEC.<br \/>  \u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b OSSEC \u0445\u0440\u0430\u043d\u0438\u0442 \u0432 <b>\/var\/ossec<\/b>. \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b <b>\/var\/ossec\/ossec.conf<\/b> \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u0435\u0433\u043e \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<pre><code class=\"bash\">&lt;ossec_config&gt;   &lt;global&gt;     &lt;email_notification&gt;yes&lt;\/email_notification&gt;     &lt;email_to&gt;&lt;b&gt;root@domain.local&lt;\/b&gt;&lt;\/email_to&gt;     &lt;smtp_server&gt;&lt;b&gt;smtp.domain.local&lt;\/b&gt;&lt;\/smtp_server&gt;     &lt;email_from&gt;osssec@forumspb.com&lt;\/email_from&gt;     &lt;email_maxperhour&gt;200&lt;\/email_maxperhour&gt;   &lt;\/global&gt;    &lt;rules&gt;     &lt;include&gt;rules_config.xml&lt;\/include&gt;     &lt;include&gt;pam_rules.xml&lt;\/include&gt;     &lt;include&gt;sshd_rules.xml&lt;\/include&gt;     &lt;include&gt;telnetd_rules.xml&lt;\/include&gt;     &lt;include&gt;syslog_rules.xml&lt;\/include&gt;     &lt;include&gt;arpwatch_rules.xml&lt;\/include&gt;     &lt;include&gt;symantec-av_rules.xml&lt;\/include&gt;     &lt;include&gt;symantec-ws_rules.xml&lt;\/include&gt;     &lt;include&gt;pix_rules.xml&lt;\/include&gt;     &lt;include&gt;named_rules.xml&lt;\/include&gt;     &lt;include&gt;smbd_rules.xml&lt;\/include&gt;     &lt;include&gt;vsftpd_rules.xml&lt;\/include&gt;     &lt;include&gt;pure-ftpd_rules.xml&lt;\/include&gt;     &lt;include&gt;proftpd_rules.xml&lt;\/include&gt;     &lt;include&gt;ms_ftpd_rules.xml&lt;\/include&gt;     &lt;include&gt;ftpd_rules.xml&lt;\/include&gt;     &lt;include&gt;hordeimp_rules.xml&lt;\/include&gt;     &lt;include&gt;roundcube_rules.xml&lt;\/include&gt;     &lt;include&gt;wordpress_rules.xml&lt;\/include&gt;     &lt;include&gt;cimserver_rules.xml&lt;\/include&gt;     &lt;include&gt;vpopmail_rules.xml&lt;\/include&gt;     &lt;include&gt;vmpop3d_rules.xml&lt;\/include&gt;     &lt;include&gt;courier_rules.xml&lt;\/include&gt;     &lt;include&gt;web_rules.xml&lt;\/include&gt;     &lt;include&gt;web_appsec_rules.xml&lt;\/include&gt;     &lt;include&gt;apache_rules.xml&lt;\/include&gt;     &lt;include&gt;nginx_rules.xml&lt;\/include&gt;     &lt;include&gt;php_rules.xml&lt;\/include&gt;     &lt;include&gt;mysql_rules.xml&lt;\/include&gt;     &lt;include&gt;postgresql_rules.xml&lt;\/include&gt;     &lt;include&gt;ids_rules.xml&lt;\/include&gt;     &lt;include&gt;squid_rules.xml&lt;\/include&gt;     &lt;include&gt;firewall_rules.xml&lt;\/include&gt;     &lt;include&gt;cisco-ios_rules.xml&lt;\/include&gt;     &lt;include&gt;netscreenfw_rules.xml&lt;\/include&gt;     &lt;include&gt;sonicwall_rules.xml&lt;\/include&gt;     &lt;include&gt;postfix_rules.xml&lt;\/include&gt;     &lt;include&gt;sendmail_rules.xml&lt;\/include&gt;     &lt;include&gt;imapd_rules.xml&lt;\/include&gt;     &lt;include&gt;mailscanner_rules.xml&lt;\/include&gt;     &lt;include&gt;dovecot_rules.xml&lt;\/include&gt;     &lt;include&gt;ms-exchange_rules.xml&lt;\/include&gt;     &lt;include&gt;racoon_rules.xml&lt;\/include&gt;     &lt;include&gt;vpn_concentrator_rules.xml&lt;\/include&gt;     &lt;include&gt;spamd_rules.xml&lt;\/include&gt;     &lt;include&gt;msauth_rules.xml&lt;\/include&gt;     &lt;include&gt;mcafee_av_rules.xml&lt;\/include&gt;     &lt;include&gt;trend-osce_rules.xml&lt;\/include&gt;     &lt;include&gt;ms-se_rules.xml&lt;\/include&gt;     &lt;!-- &lt;include&gt;policy_rules.xml&lt;\/include&gt; --&gt;     &lt;include&gt;zeus_rules.xml&lt;\/include&gt;     &lt;include&gt;solaris_bsm_rules.xml&lt;\/include&gt;     &lt;include&gt;vmware_rules.xml&lt;\/include&gt;     &lt;include&gt;ms_dhcp_rules.xml&lt;\/include&gt;     &lt;include&gt;asterisk_rules.xml&lt;\/include&gt;     &lt;include&gt;ossec_rules.xml&lt;\/include&gt;     &lt;include&gt;attack_rules.xml&lt;\/include&gt;     &lt;include&gt;openbsd_rules.xml&lt;\/include&gt;     &lt;include&gt;clam_av_rules.xml&lt;\/include&gt;     &lt;include&gt;bro-ids_rules.xml&lt;\/include&gt;     &lt;include&gt;dropbear_rules.xml&lt;\/include&gt;     &lt;include&gt;local_rules.xml&lt;\/include&gt;   &lt;\/rules&gt;     &lt;syscheck&gt;     &lt;!-- Frequency that syscheck is executed - default to every 22 hours --&gt;     &lt;frequency&gt;79200&lt;\/frequency&gt;      &lt;!-- Directories to check  (perform all possible verifications) --&gt;     &lt;directories check_all=&quot;yes&quot;&gt;\/etc,\/usr\/bin,\/usr\/sbin&lt;\/directories&gt;     &lt;directories check_all=&quot;yes&quot;&gt;\/bin,\/sbin&lt;\/directories&gt;      &lt;!-- Files\/directories to ignore --&gt;     &lt;ignore&gt;\/etc\/mtab&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/mnttab&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/hosts.deny&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/mail\/statistics&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/random-seed&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/adjtime&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/httpd\/logs&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/utmpx&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/wtmpx&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/cups\/certs&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/dumpdates&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/svc\/volatile&lt;\/ignore&gt;   &lt;\/syscheck&gt;     &lt;rootcheck&gt;     &lt;rootkit_files&gt;\/var\/ossec\/\/etc\/shared\/rootkit_files.txt&lt;\/rootkit_files&gt;     &lt;rootkit_trojans&gt;\/var\/ossec\/\/etc\/shared\/rootkit_trojans.txt&lt;\/rootkit_trojans&gt;     &lt;system_audit&gt;\/var\/ossec\/\/etc\/shared\/system_audit_rcl.txt&lt;\/system_audit&gt;     &lt;system_audit&gt;\/var\/ossec\/\/etc\/shared\/cis_rhel_linux_rcl.txt&lt;\/system_audit&gt;     &lt;system_audit&gt;\/var\/ossec\/\/etc\/shared\/cis_rhel5_linux_rcl.txt&lt;\/system_audit&gt;   &lt;\/rootcheck&gt;    &lt;global&gt;     &lt;white_list&gt;127.0.0.1&lt;\/white_list&gt;     &lt;white_list&gt;^localhost.localdomain$&lt;\/white_list&gt;   &lt;\/global&gt;   &lt;remote&gt;     &lt;connection&gt;syslog&lt;\/connection&gt;   &lt;\/remote&gt;   &lt;remote&gt;     &lt;connection&gt;secure&lt;\/connection&gt;   &lt;\/remote&gt;   &lt;alerts&gt;     &lt;log_alert_level&gt;1&lt;\/log_alert_level&gt;     &lt;email_alert_level&gt;7&lt;\/email_alert_level&gt;   &lt;\/alerts&gt;    &lt;command&gt;     &lt;name&gt;host-deny&lt;\/name&gt;     &lt;executable&gt;host-deny.sh&lt;\/executable&gt;     &lt;expect&gt;srcip&lt;\/expect&gt;     &lt;timeout_allowed&gt;yes&lt;\/timeout_allowed&gt;   &lt;\/command&gt;    &lt;command&gt;     &lt;name&gt;firewall-drop&lt;\/name&gt;     &lt;executable&gt;firewall-drop.sh&lt;\/executable&gt;     &lt;expect&gt;srcip&lt;\/expect&gt;     &lt;timeout_allowed&gt;yes&lt;\/timeout_allowed&gt;   &lt;\/command&gt;    &lt;command&gt;     &lt;name&gt;disable-account&lt;\/name&gt;     &lt;executable&gt;disable-account.sh&lt;\/executable&gt;     &lt;expect&gt;user&lt;\/expect&gt;     &lt;timeout_allowed&gt;yes&lt;\/timeout_allowed&gt;   &lt;\/command&gt;    &lt;command&gt;     &lt;name&gt;restart-ossec&lt;\/name&gt;     &lt;executable&gt;restart-ossec.sh&lt;\/executable&gt;     &lt;expect&gt;&lt;\/expect&gt;   &lt;\/command&gt;     &lt;command&gt;     &lt;name&gt;route-null&lt;\/name&gt;     &lt;executable&gt;route-null.sh&lt;\/executable&gt;     &lt;expect&gt;srcip&lt;\/expect&gt;     &lt;timeout_allowed&gt;yes&lt;\/timeout_allowed&gt;   &lt;\/command&gt;    &lt;!-- Active Response Config --&gt;   &lt;active-response&gt;     &lt;!-- This response is going to execute the host-deny        - command for every event that fires a rule with        - level (severity) &gt;= 6.        - The IP is going to be blocked for  600 seconds.       --&gt;     &lt;command&gt;host-deny&lt;\/command&gt;     &lt;location&gt;local&lt;\/location&gt;     &lt;level&gt;6&lt;\/level&gt;     &lt;timeout&gt;600&lt;\/timeout&gt;   &lt;\/active-response&gt;     &lt;active-response&gt;     &lt;!-- Firewall Drop response. Block the IP for        - 600 seconds on the firewall (iptables,        - ipfilter, etc).       --&gt;     &lt;command&gt;firewall-drop&lt;\/command&gt;     &lt;location&gt;local&lt;\/location&gt;     &lt;level&gt;6&lt;\/level&gt;     &lt;timeout&gt;600&lt;\/timeout&gt;   &lt;\/active-response&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/messages&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/secure&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/xferlog&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/maillog&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;apache&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/httpd\/error_log&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;apache&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/httpd\/access_log&lt;\/location&gt;   &lt;\/localfile&gt; &lt;\/ossec_config&gt; <\/code><\/pre>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0442\u0443\u0442 \u0435\u0441\u0442\u044c. \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0442\u0441\u044b\u043b\u043a\u0443 \u0430\u043b\u0435\u0440\u0442\u043e\u0432 \u043d\u0430 \u043f\u043e\u0447\u0442\u0443, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u0441\u0435\u043c \u0432 \u0447\u0430\u0441. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, OSSE\u0421 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0432\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0432\u0430\u0441 \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u043f\u0438\u0441\u0435\u043c.<br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0438\u0434\u0435\u0442 \u0431\u043b\u043e\u043a <b>rules<\/b>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0430 \u0447\u0442\u043e \u0438 \u043a\u0430\u043a OSSEC \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u2014 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435, \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e \u043c\u043e\u0438\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u043c, \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442. \u0421\u0435\u043a\u0446\u0438\u044f <b>syscheck<\/b> \u2014 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e <b>integrity check<\/b>. \u0421\u043c\u044b\u0441\u043b \u0435\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e IDS \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0445\u044d\u0448 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u0445 \u0438 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0445 \u0441\u0432\u0435\u0440\u044f\u0435\u0442. \u0422\u0443\u0442 \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430. \u0412 \u0441\u0435\u043a\u0446\u0438\u0438 <b>command<\/b> \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c IDS \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u0421\u0435\u043a\u0446\u0438\u044f <b>active-response<\/b> \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u0438 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 <b>firewall-block<\/b> \u0437\u0430\u043d\u0435\u0441\u0435\u0442 src ip \u0432 iptables \u043d\u0430 600 \u0441\u0435\u043a\u0443\u043d\u0434. \u0423\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430. \u0412 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0443 \u043d\u0430\u0441 \u0438\u0434\u0443\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438.<br \/>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0433\u0440\u0443\u0431\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 OSSEC \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430 \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0435:<\/p>\n<pre><code class=\"bash\">service ossec-hids start <\/code><\/pre>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430, \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u043c\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u0438\u0434\u0435\u0442 \u043f\u0438\u0441\u044c\u043c\u043e \u0441 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c \u043e \u0441\u0442\u0430\u0440\u0442\u0435:<\/p>\n<pre><code class=\"bash\">OSSEC HIDS Notification. 2013 Sep 06 13:10:35  Received From: server.domain.local-&gt;ossec-monitord Rule: 502 fired (level 3) -&gt; &quot;Ossec server started.&quot; Portion of the log(s):  ossec: Ossec started.     --END OF NOTIFICATION <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0435 \u0443\u0434\u0430\u043b\u0441\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a. \u041f\u043e\u043c\u043e\u0449\u044c\u044e \u0432 \u044d\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 -\u0444\u0430\u0439\u043b <b>\/var\/ossec\/logs\/ossec.log<\/b>.<\/p>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/h5>\n<p>  \u0412\u0435\u0431-\u0438\u043d\u0442\u0440\u0435\u0444\u0435\u0439\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0435\u043d, \u043d\u043e \u0440\u0430\u0434\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u0438 \u0443\u0441\u0442\u043d\u043e\u0432\u0438\u0442\u044c<\/p>\n<pre><code class=\"bash\">wget \u2013c http:\/\/www.ossec.net\/files\/ossec-wui-0.3.tar.gz tar xzvf ossec-wui-0.3.tar.gz mv ossec-wui-0.3 \/var\/www\/html\/ossec cd \/var\/www\/html\/ossec\/ .\/setup.sh <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b .htaccess. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f ossec \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 apache<\/p>\n<pre><code class=\"bash\">nano \/etc\/group ossec:x:494:ossec,ossecr,ossecm,ossece,apache service httpd restart <\/code><\/pre>\n<p>  \u0417\u0430\u0439\u0434\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u043d\u0430 \u043d\u0430\u0448\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0437\u0430\u0442\u0435\u043c \u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0435 tmp \u043f\u0440\u0430\u0432\u0430:<\/p>\n<pre><code class=\"bash\">chmod 770 \/var\/www\/html\/ossec\/tmp chgrp apache \/var\/www\/html\/ossec\/tmp <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0432 OSSEC \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c.<\/p>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/h5>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0430\u0433\u0435\u043d\u0442\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 DMZ<\/p>\n<pre><code class=\"bash\">wget -q -O - https:\/\/www.atomicorp.com\/installers\/atomic |sh && yum install ossec-hids ossec-hids-client <\/code><\/pre>\n<p>  \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <b>\/var\/ossec\/ossec.conf<\/b> \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u0435\u0433\u043e \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<pre><code class=\"bash\">&lt;ossec_config&gt;   &lt;client&gt;     &lt;server-ip&gt;&lt;b&gt;server.domain.local&lt;\/b&gt;&lt;\/server-ip&gt;   &lt;\/client&gt;    &lt;syscheck&gt;     &lt;!-- Frequency that syscheck is executed -- default every 2 hours --&gt;     &lt;frequency&gt;7200&lt;\/frequency&gt;      &lt;!-- Directories to check  (perform all possible verifications) --&gt;     &lt;directories check_all=&quot;yes&quot;&gt;\/etc,\/usr\/bin,\/usr\/sbin&lt;\/directories&gt;     &lt;directories check_all=&quot;yes&quot;&gt;\/bin,\/sbin&lt;\/directories&gt;      &lt;!-- Files\/directories to ignore --&gt;     &lt;ignore&gt;\/etc\/mtab&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/mnttab&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/hosts.deny&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/mail\/statistics&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/random-seed&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/adjtime&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/httpd\/logs&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/utmpx&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/wtmpx&lt;\/ignore&gt;     &lt;ignore&gt;\/etc\/cups\/certs&lt;\/ignore&gt;   &lt;\/syscheck&gt;    &lt;rootcheck&gt;     &lt;rootkit_files&gt;\/var\/ossec\/etc\/shared\/rootkit_files.txt&lt;\/rootkit_files&gt;     &lt;rootkit_trojans&gt;\/var\/ossec\/etc\/shared\/rootkit_trojans.txt&lt;\/rootkit_trojans&gt;   &lt;\/rootcheck&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/messages&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/secure&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/maillog&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;apache&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/httpd\/error_log&lt;\/location&gt;   &lt;\/localfile&gt;    &lt;localfile&gt;     &lt;log_format&gt;apache&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/httpd\/access_log&lt;\/location&gt;   &lt;\/localfile&gt;  &lt;b&gt;&lt;localfile&gt;     &lt;log_format&gt;syslog&lt;\/log_format&gt;     &lt;location&gt;\/var\/log\/proftpd\/error.log&lt;\/location&gt;   &lt;\/localfile&gt;&lt;\/b&gt;   &lt;\/ossec_config&gt; <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u0443\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u2014 \u044d\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0430\u0434\u0440\u0435\u0441 OSSEC \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u044b. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u043d\u0435\u0446 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b proftpd \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<br \/>  \u041e\u0431\u0449\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u043f\u043e\u0440\u0442\u0443 <b>UDP\/1514<\/b>, \u043d\u0435\u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c!<\/p>\n<p>  \u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u043c \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0430\u0433\u0435\u043d\u0442\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <b>\/var\/ossec\/bin\/manage_agents<\/b><\/p>\n<pre><code class=\"bash\">**************************************** * OSSEC HIDS v2.7 Agent manager.     * * The following options are available: * ****************************************    (A)dd an agent (A).    (E)xtract key for an agent (E).    (L)ist already added agents (L).    (R)emove an agent (R).    (Q)uit. Choose your action: A,E,L,R or Q: &lt;b&gt;A&lt;\/b&gt;  - Adding a new agent (use '\\q' to return to the main menu).   Please provide the following:    * A name for the new agent: &lt;b&gt;ftp-server&lt;\/b&gt;    * The IP Address of the new agent: &lt;b&gt;192.168.0.2&lt;\/b&gt;    * An ID for the new agent[001]: Agent information:    ID:001    Name:ftp-server    IP Address:192.168.0.2  Confirm adding it?(y\/n): &lt;b&gt;y&lt;\/b&gt; Agent added.   **************************************** * OSSEC HIDS v2.7 Agent manager.     * * The following options are available: * ****************************************    (A)dd an agent (A).    (E)xtract key for an agent (E).    (L)ist already added agents (L).    (R)emove an agent (R).    (Q)uit. Choose your action: A,E,L,R or Q: &lt;b&gt;e&lt;\/b&gt;  Available agents:    ID: 001, Name: ftp-server, IP: 192.168.0.2 Provide the ID of the agent to extract the key (or '\\q' to quit): &lt;b&gt;001&lt;\/b&gt;  Agent key information for '001' is: &lt;b&gt;MDA3IGZ0cC1zZXJ1ZXIgMTkyLjE2OC4wLjIgOTQyODg5ODg2NDI5MGNiYTkzYTU1N2I5Yzg5OWTwNTJhNzQ2ZDdlYmNkNzM3NGYyZWQyZGQyZmFlNjdjMjZmOA==&lt;\/b&gt;  ** Press ENTER to return to the main menu.  **************************************** * OSSEC HIDS v2.7 Agent manager.     * * The following options are available: * ****************************************    (A)dd an agent (A).    (E)xtract key for an agent (E).    (L)ist already added agents (L).    (R)emove an agent (R).    (Q)uit. Choose your action: A,E,L,R or Q: &lt;b&gt;q&lt;\/b&gt;  ** You must restart OSSEC for your changes to take effect.  manage_agents: Exiting .. <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u2014 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0443\u0434\u0435\u0442 BASE64-\u0441\u0442\u0440\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u0443. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code class=\"bash\">service ossec-hid restart <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <b>\/var\/ossec\/bin\/manage_client<\/b> \u043d\u0430 \u0430\u0433\u0435\u043d\u0442\u0435:<\/p>\n<pre><code class=\"bash\"> **************************************** * OSSEC HIDS v2.7 Agent manager.     * * The following options are available: * ****************************************    (I)mport key from the server (I).    (Q)uit. Choose your action: I or Q: &lt;b&gt;i&lt;\/b&gt;  * Provide the Key generated by the server. * The best approach is to cut and paste it. *** OBS: Do not include spaces or new lines.  Paste it here (or '\\q' to quit): &lt;b&gt;MDA3IGZ0cC1zZXJ1ZXIgMTkyLjE2OC4wLjIgOTQyODg5ODg2NDI5MGNiYTkzYTU1N2I5Yzg5OWTwNTJhNzQ2ZDdlYmNkNzM3NGYyZWQyZGQyZmFlNjdjMjZmOA==&lt;\/b  ** Press ENTER to return to the main menu.    **************************************** * OSSEC HIDS v2.7 Agent manager.     * * The following options are available: * ****************************************    (I)mport key from the server (I).    (Q)uit. Choose your action: I or Q: &lt;b&gt;q&lt;\/b&gt;  manage_agents: Exiting .. <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u0433\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"bash\">service ossec-hid restart <\/code><\/pre>\n<p>  \u0418\u0434\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043c, \u0447\u0442\u043e \u0430\u0433\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d:<\/p>\n<pre><code class=\"bash\">\/var\/ossec\/bin\/list_agents -a ftp-server-192.168.0.2 is available. <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u043e\u0439. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435? OSSEC \u043e\u0447\u0435\u043d\u044c \u0433\u0438\u0431\u043a\u0430\u044f \u0438 \u043c\u043e\u0449\u043d\u0430\u044f IDS. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u2014 \u0438\u0445 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043e\u0442 \u0442\u0443\u0434\u0430 \u0436\u0435, \u0441\u0432\u044f\u0437\u0430\u0442\u044c IDS \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 IDS (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 NIDS Snort) \u0438 \u043c\u043d\u043e\u0433\u043e\u0435-\u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0430\u0442\u0430\u043a\u0438.<\/p>\n<h4>\u0421\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  <\/p>\n<ul>\n<li><a href=\"http:\/\/www.ossec.net\/\">www.ossec.net\/<\/a> <\/li>\n<li><a href=\"http:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0_%D0%BE%D0%B1%D0%BD%D0%B0%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F_%D0%B2%D1%82%D0%BE%D1%80%D0%B6%D0%B5%D0%BD%D0%B8%D0%B9\">ru.wikipedia.org\/wiki\/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0_%D0%BE%D0%B1%D0%BD%D0%B0%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F_%D0%B2%D1%82%D0%BE%D1%80%D0%B6%D0%B5%D0%BD%D0%B8%D0%B9<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/192800\/\"> http:\/\/habrahabr.ru\/post\/192800\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f3c\/d58\/b3c\/f3cd58b3c83409a50b4d03e77d2f045e.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u043d\u0435 \u043e\u0448\u0438\u0431\u0443\u0441\u044c, \u0435\u0441\u043b\u0438 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438. \u041e\u0441\u043e\u0441\u0431\u0435\u043d\u043d\u043e \u043e\u0441\u0442\u0440\u043e \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u0441\u0442\u0430\u0435\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043a\u0430\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c \u0432\u0430\u0441, \u043a\u043e\u043b\u043b\u0435\u0433\u0438, \u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c host-based IDS \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c OSSEC. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442\u2026  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-192800","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192800"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192800\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}