{"id":446171,"date":"2025-01-26T09:04:34","date_gmt":"2025-01-26T09:04:34","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=446171"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=446171","title":{"rendered":"<span>WAF \u2014 \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435!<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0448\u043b\u044e\u0437\u0430 \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u00a0\u0431\u0430\u0437\u0435 \u041f\u041e\u00a0\u0441\u00a0\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c (\u0441\u0442\u0435\u043a Apache\/ModSecurity\/OWASP CRS\/ProjectHoneyPot).<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u00a0\u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0432\u00a0\u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435. \u0413\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u0438 \u043a\u0430\u043a\u00a0\u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b. \u041a\u0430\u043a\u00a0\u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c (\u0434\u0438\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u00a0\u2014 \u043d\u0435\u00a0\u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434). \u0412\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0430\u0440\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0430\u00a0\u0433\u0440\u0430\u0431\u043b\u0438, \u043d\u0430\u0439\u0434\u0435\u043c \u0447\u0442\u043e\u2011\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430\u00a0\u0438\u0437\u044f\u0449\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437\u00a0\u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0423\u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043e\u00a0\u0431\u043e\u0442\u0430\u0445 \u0438 \u043a\u0430\u043a\u00a0\u043e\u0442\u00a0\u043d\u0438\u0445 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412\u00a0\u043c\u043e\u0439 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0442\u0430\u043a\u00a0\u0436\u0435 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 Snort \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0430\u0442\u0430\u043a, \u043d\u043e\u00a0\u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0432 \u0432\u00a0\u043c\u0430\u043d\u0443\u0430\u043b \u0441\u043d\u043e\u0440\u0442\u0430 \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e\u00a0\u0442\u0430\u043c \u0434\u0435\u043b\u043e \u043d\u0435\u00a0\u043e\u0434\u043d\u043e\u0439 \u0438 \u0434\u0443\u043c\u0430\u044e \u043d\u0435\u00a0\u043f\u0430\u0440\u044b \u043d\u0435\u0434\u0435\u043b\u044c (\u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c\u00a0\u0431\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u00a0\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430\u043c\u0438). \u0422\u0430\u043a \u0447\u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043a\u0430\u043a\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u0432\u00a0\u0441\u0432\u043e\u0435\u043c \u0446\u0438\u043a\u043b\u0435.<\/p>\n<p>\u0428\u0442\u043e\u0448,\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0414\u043b\u044f\u00a0\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u0432\u0435\u0447\u0443 \u043d\u0430\u00a0\u043e\u0434\u0438\u043d \u0438\u0437\u00a0\u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432\u00a0\u2014 \u043f\u043e\u0447\u0435\u043c\u0443 OpenSource?\u00a0\u2014 \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c F5, Imperva, \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0443\u00a0Fortinet, \u0438 \u0443\u00a0Check Point, \u0438 \u0443\u00a0Palo. \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u0432. \u0412\u0437\u044f\u0442\u044c\u2011\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e, \u043d\u043e\u00a0\u0432\u043e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u00a0\u0442\u0430\u043a\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c \u0438\u043c\u0435\u0435\u0442\u00a0\u043b\u0438\u0448\u044c \u043d\u0435\u00a0\u0441\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f. \u041f\u043e\u00a0\u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c OpenSource <\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u043e\u043f\u0440\u043e\u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u00a0\u0418\u0411 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u00a0\u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438. \u0420\u0438\u0441\u043a\u0438, \u043a\u0430\u043a\u00a0\u043d\u0438 \u043a\u0440\u0443\u0442\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438 \u044f\u00a0\u0431\u044b 10\u00a0\u0440\u0430\u0437 \u043f\u043e\u0434\u0443\u043c\u0430\u043b (\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f) \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0434\u043b\u044f\u00a0\u0437\u0430\u0449\u0438\u0442\u044b \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0412\u00a0\u0442\u043e\u00a0\u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0434\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043c\u0430\u043b\u043e\u043c\u0443 \u0431\u0438\u0437\u043d\u0435\u0441\u0443 \u0438 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442\u0430\u043c \u0432\u00a0\u0418\u0422. \u0412\u0435\u0434\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u00a0\u043d\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e \u0432\u00a0\u0441\u0435\u0442\u044c \u0441\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439? \u0410\u00a0\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u00a0\u043d\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f? <\/p>\n<p>\u0418 \u0442\u0430\u043a, \u0447\u0442\u043e\u00a0\u0436\u0435 \u0442\u0430\u043a\u043e\u0435 WAF? <\/p>\n<p>\u0412\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u00a0\u2014 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b, \u0441\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043e\u0442\u00a0\u0442\u0438\u043f\u0438\u0447\u043d\u043e\u0433\u043e NGFW. \u0428\u043b\u044e\u0437\u044b \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438, \u043a\u0430\u043a\u00a0\u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u044b \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0432\u044d\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0435 \u043a\u00a0\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0430\u0442\u0430\u043a\u0430\u043c.<\/p>\n<p>\u0412\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b. \u041a\u0430\u043a\u00a0\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0449\u0438\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f OWASP \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430\u043c\u0438 (\u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0XSS, SQL \u0438\u043d\u0434\u0436\u0435\u043a\u0442\u043e\u0432, \u0430\u043d\u0430\u043b\u0438\u0437 HTTP \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0434\u043d\u044f \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0431\u043e\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u044b \u0432\u00a0\u0434\u043e\u0432\u0435\u0441\u043e\u043a \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b NGFW. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u043c \u0438 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430, \u0438 IPS, \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u043e\u0433\u043e \u041f\u041e. \u0412\u0441\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u00a0\u0436\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f WAF \u0441\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 <\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0442\u043e\u00a0\u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c?\u00a0\u2014 \u041c\u043d\u043e\u0433\u043e\u0435. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f\u00a0\u043b\u0438 \u043f\u0440\u0438\u00a0\u044d\u0442\u043e\u043c \u0441\u0442\u0440\u0430\u0434\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434?\u00a0\u2014 \u041d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437, \u0440\u0435\u043f\u043e\u0440\u0442\u044b? \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0443\u0436\u043d\u043e) \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043b\u043e\u0433\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u00a0SIEM \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u00a0\u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u044c\u044e<\/p>\n<\/li>\n<li>\n<p>OWASP? \u041d\u0443, \u0434\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0432\u0430\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0434\u043a\u043e\u0440<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u0442\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439? \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e\u0436\u0435 \u0434\u0430. \u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0431\u043e\u0442\u043e\u0432? \u0412\u00a0\u043a\u0430\u043a\u043e\u0439\u2011\u0442\u043e \u043c\u0435\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043d\u044f\u0442\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0447\u0442\u043e\u00a0\u0432\u0435\u043d\u0434\u043e\u0440 \u0438 \u0441\u00a0\u0441\u0430\u043f\u043e\u0440\u0442\u043e\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442, \u0438 \u0441\u0432\u044f\u0437\u0430\u043d \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438, \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u044d\u043a\u0434\u043e\u0440 \u0435\u043c\u0443 \u0432\u00a0\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0437\u0430\u043b\u0438\u0442\u044c, \u0434\u0430\u00a0\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043a\u0430\u043a\u00a0\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0448\u0438\u0440\u0435. \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e. <\/p>\n<p>\u041d\u043e\u00a0\u0432 \u043e\u0431\u0449\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c OpenSource<\/p>\n<h2>ModSecurity<\/h2>\n<p>ModSecurity \u0435\u0441\u0442\u044c \u043d\u0438\u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a\u00a0\u043a\u0440\u043e\u0441\u0441\u2011\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0448\u043b\u044e\u0437\u0430 \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f\u00a0\u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u00a0Apache, \u0442\u0430\u043a \u0438 Nginx. \u041c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u0438\u043b\u0430\u043c\u0438, \u0430\u00a0\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b OWASP CRS<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0434\u0435\u0441\u044c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043d\u0435\u00a0\u0437\u0430\u0439\u043c\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0443 \u0447\u0442\u043e\u00a0\u0443\u00a0\u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c Linux \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0438 \u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c Debian + Apache)<\/p>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">apt install libapache2-mod-security2<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c <\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">a2enmod security2<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">mv \/etc\/modsecurity\/modsecurity.conf-recommended \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0432\u0438\u0436\u043a\u0430 (\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u00a0DetectionOnly. \u0423\u00a0\u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">grep SecRuleEngine \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u00a0\u043b\u0438 \u0441\u043a\u0430\u043d \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">grep SecResponseBodyAccess \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0441\u0435\u00a0\u043b\u0438 \u0432\u00a0\u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cat \/etc\/apache2\/mods-enabled\/security2.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemctl restart apache2 systemctl status apache2<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043a\u0430\u043a\u043e\u0439\u2011\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0438 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<h2>OWASP CRS<\/h2>\n<p>\u0427\u0442\u043e\u00a0\u0436\u0435 \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? \u041d\u0435\u00a0\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043e\u0431\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043e\u0446\u0435\u043d\u043a\u0438 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0434\u043b\u044f\u00a0ModSecurity<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cd \/var\/tmp  wget https:\/\/github.com\/coreruleset\/coreruleset\/archive\/refs\/tags\/v4.10.0.tar.gz wget https:\/\/github.com\/coreruleset\/coreruleset\/releases\/download\/v4.10.0\/coreruleset-4.10.0.tar.gz.asc<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">gpg --fetch-key https:\/\/coreruleset.org\/security.asc gpg --edit-key &lt;RSA KEY ID&gt;  gpg&gt; trust Your decision: 5 (ultimate trust) Are you sure: Yes gpg&gt; quit  gpg --verify coreruleset-4.10.0.tar.gz.asc v4.10.0.tar.gz<\/code><\/pre>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">mkdir \/etc\/crs4 tar -xzvf v4.10.0.tar.gz --strip-components 1 -C \/etc\/crs4<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cd \/etc\/crs4 mv crs-setup.conf.example crs-setup.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432\u00a0ModSecuirty \u043c\u043e\u0434\u0443\u043b\u044c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/apache2\/mods-enabled\/security2.conf<\/code><\/pre>\n<pre><code class=\"bash\"># Include OWASP ModSecurity CRS rules if installed #IncludeOptional \/usr\/share\/modsecurity-crs\/*.load IncludeOptional \/etc\/crs4\/crs-setup.conf IncludeOptional \/etc\/crs4\/plugins\/*-config.conf IncludeOptional \/etc\/crs4\/plugins\/*-before.conf IncludeOptional \/etc\/crs4\/rules\/*.conf IncludeOptional \/etc\/crs4\/plugins\/*-after.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemctl restart apache2 systemctl status apache2<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<ul>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c. \u041a\u043e\u043d\u0444\u0438\u0433, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u0430\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u043d\u0430\u00a0\u0432\u0441\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/crs4\/crs-setup.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u00a0Anomaly Scoring \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecDefaultAction \"phase:1,log,auditlog,pass\" SecDefaultAction \"phase:2,log,auditlog,pass\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c Paranoia Level = 3\u00a0(\u0410 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0\u0431\u044b \u0438 \u0434\u0430? \u0421\u0435\u043a\u0443\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u044b \u0441\u00a0\u0432\u0430\u043c\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u043c, \u0430\u00a0\u0441\u00a0\u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438) \u041a\u0442\u043e\u00a0\u0431\u044b \u0437\u043d\u0430\u043b, \u0432\u043e\u00a0\u0447\u0442\u043e\u00a0\u044d\u0442\u043e \u0432\u044b\u043b\u044c\u0435\u0442\u0441\u044f \ud83d\ude42<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900000,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.blocking_paranoia_level=3\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Body Processor URLENCODED \u0434\u043b\u044f\u00a0\u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441\u00a0\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c Content\u2011Type \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900010,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.enforce_bodyproc_urlencoded=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u0432\u0435\u0441\u0430?) \u0434\u043b\u044f\u00a0\u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900100,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.critical_anomaly_score=5,\\     setvar:tx.error_anomaly_score=4,\\     setvar:tx.warning_anomaly_score=3,\\     setvar:tx.notice_anomaly_score=2\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f\u00a0\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0437\u0430\u0434\u0440\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043d\u0435\u00a0\u043e\u0442\u043b\u0430\u0434\u0438\u043c.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900110,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.inbound_anomaly_score_threshold=5000,\\     setvar:tx.outbound_anomaly_score_threshold=4000\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u041a\u0430\u043a\u2011\u043d\u0438\u043a\u0430\u043a \u0443\u00a0\u043d\u0430\u0441 PL=3\u00a0\u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900115,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.reporting_level=2\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900130,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.enable_default_collections=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 HTTP \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b PUT \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 CMS (\u0417\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435\u00a0\u2014 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u0435\u0435, \u0438\u0431\u043e \u043c\u043d\u043e\u0433\u043e\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442\u00a0\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u042f \u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0434\u00a0\u0441\u0435\u0431\u044f, \u043f\u043e\u00a0\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0431\u0435\u0437\u00a0\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b) \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e\u00a0\u043b\u043e\u0433\u0438\u043a\u0443 <a href=\"https:\/\/github.com\/coreruleset\/coreruleset\/blob\/main\/rules\/REQUEST-911-METHOD-ENFORCEMENT.conf\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a> \u0438 <a href=\"https:\/\/github.com\/coreruleset\/coreruleset\/blob\/main\/rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a><\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900200,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_methods=GET HEAD POST OPTIONS PUT'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c HTTP Content Type<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900220,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_request_content_type=|application\/x-www-form-urlencoded| |text\/html|'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c HTTP \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900230,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_http_versions=HTTP\/1.1'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900280,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_request_content_type_charset=|utf-8|'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u043b\u0438\u043d\u0443 \u0438\u043c\u0435\u043d\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443, \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900300,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.max_num_args=255\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900310,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.arg_name_length=100\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900320,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.arg_length=400\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900330,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.total_arg_length=64000\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0432\u00a0POST \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u0430\u00a0\u0442\u0430\u043a\u00a0\u0436\u0435 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900340,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.max_file_size=1048576\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900350,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.combined_file_sizes=1048576\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u00a0\u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900950,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.crs_validate_utf8_encoding=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/p>\n<\/li>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/apache2\/sites-enabled\/null.conf<\/code><\/pre>\n<pre><code class=\"bash\"># WAF &lt;IfModule security2_module&gt;   SecRuleEngine On &lt;\/IfModule&gt;<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemctl restart apache2<\/code><\/pre>\n<h2>\u041e\u0442\u043b\u0430\u0434\u043a\u0430<\/h2>\n<ul>\n<li>\n<p>\u0411\u0435\u0440\u0435\u043c \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a \u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c. \u0412\u00a0\u043e\u0434\u043d\u043e\u0439 \u0440\u0443\u043a\u0435\u00a0\u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">tail -f \/var\/log\/apache2\/modsec_audit.log | grep -iE \".*notice.*|*.warning.*|.*error.*|.*critical.*\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0440\u0443\u0433\u043e\u0439\u00a0\u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 1<\/h2>\n<pre><code class=\"bash\">Message: Rule 7faba9cd8db8 [id \"951250\"][file \"\/etc\/crs4\/rules\/RESPONSE-951-DATA-LEAKAGES-SQL.conf\"][line \"365\"] - Execution error - PCRE limits exceeded (-47): (null).<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0434\u0435\u0441\u044c \u043a\u0430\u043a\u0438\u0445\u2011\u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a\u00a0trial and error \u043d\u0435\u0442. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 (\u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0442\u044c Apache \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<pre><code class=\"bash\"># PCRE Tuning # We want to avoid a potential RegEx DoS condition # SecPcreMatchLimit 500000 SecPcreMatchLimitRecursion 250000<\/code><\/pre>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2<\/h2>\n<pre><code class=\"bash\">Message: Warning. Match of \"within %{tx.allowed_request_content_type}\" against \"TX:content_type\" required. [file \"\/etc\/crs4\/rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\"] [line \"1012\"] [id \"920420\"] [msg \"Request content type is not allowed by policy\"] [data \"|multipart\/form-data|\"] [severity \"CRITICAL\"] [ver \"OWASP_CRS\/4.10.0\"] [tag \"application-multi\"] [tag \"language-multi\"] [tag \"platform-multi\"] [tag \"attack-protocol\"] [tag \"paranoia-level\/1\"] [tag \"OWASP_CRS\"] [tag \"capec\/1000\/255\/153\"] [tag \"PCI\/12.1\"]<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0443\u00a0\u043d\u0430\u0441 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 Content Type = multipart\/form\u2011data. \u0424\u0438\u043a\u0441\u0438\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/crs4\/crs-setup.conf<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900220,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_request_content_type=|application\/x-www-form-urlencoded| |multipart\/form-data| |text\/html|'\"<\/code><\/pre>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 3 &#8212; \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f<\/h2>\n<pre><code class=\"bash\">Message: Warning. Found 24 byte(s) in ARGS:name outside range: 32-36,38-126. [file \"\/etc\/crs4\/rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\"] [line \"1611\"] [id \"920272\"] [msg \"Invalid character in request (outside of printable chars below ascii 127)\"]  \u043f\u0440\u0438\u043c\u0435\u0440 ARGS:name: \\xd0\\x9e\\xd1\\x82\\xd0\\xbb\\xd0\\xb0\\xd0\\xb4\\xd0\\xba\\xd0\\xb0<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0441\u0435 \u0434\u0435\u043b\u043e \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0OWASP CRS \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u00a0\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438, \u0430\u00a0\u0443\u00a0\u043d\u0430\u0441 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439. (\u044f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043f\u043e\u0434\u0441\u0443\u043d\u0443\u0442\u044c \u0435\u043c\u0443 \u0438 windows-1251\u00a0charset, \u0438 koi8-r\u00a0\u2014 \u0431\u0435\u0437\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043d\u043e. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0442\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u043c\u0438 \u0444\u0440\u0430\u0437\u0430\u043c\u0438 \u0430\u043b\u044f \u00ab\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u00bb. \u041d\u0435\u00a0\u0437\u043d\u0430\u044e, \u043d\u0435\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b, \u0434\u0430\u00a0\u0438 \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u0434\u0435\u0444\u043e\u043b\u0442? \u0427\u0442\u043e\u00a0\u043b\u0438\u0431\u043e \u0441\u00a0\u044d\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u00a0\u043f\u043e\u043d\u0438\u0436\u0430\u044f PL \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u0435\u043c\u0443 \u043f\u0438\u0448\u0435\u043c \u0431\u0430\u0439\u043f\u0430\u0441.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecRule ARGS:name \"@rx (.*)\" \\         \"id:001001001,\\         phase:1,\\         pass,\\         nolog,\\         msg:'Charset Check Bypass - Cyrilic encoding is not supported',\\         ctl:ruleRemoveById=920272\"<\/code><\/pre>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 4<\/h2>\n<pre><code class=\"bash\">Message: Warning. Matched phrase \"var\/log\" at ARGS:html. [file \"\/etc\/crs4\/rules\/REQUEST-930-APPLICATION-ATTACK-LFI.conf\"] [line \"116\"] [id \"930120\"] [msg \"OS File Access Attempt\"] [data \"Matched Data: var\/log found within ARGS:html: ***** tail -f \/var\/log\/apache2\/modsec_audit.log<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0434\u0435\u0441\u044c \u043e\u043d \u0443\u0436\u0435 \u0443\u043c\u043d\u0438\u0447\u0430\u0435\u0442 \u043f\u0440\u0438\u00a0\u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \ud83d\ude42 \u0412\u044b\u0445\u043e\u0434\u0430 \u0442\u0440\u0438: \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443, \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0430\u0439\u043f\u0430\u0441\u00a0\u043b\u0438\u0431\u043e \u043d\u0435\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u043e\u0432 \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0435. \u041f\u0435\u0440\u0432\u043e\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0434\u043e\u00a0\u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u043f\u0434\u0435\u0439\u0442\u0430, \u0442\u0440\u0435\u0442\u044c\u0435, \u0432\u00a0\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u0435\u00a0\u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u041f\u0438\u0448\u0435\u043c \u0431\u0430\u0439\u043f\u0430\u0441.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecRule ARGS:html \"@rx (.*)\" \\         \"id:001001002,\\         phase:1,\\         pass,\\         nolog,\\         msg:'Matched pattern bypass',\\         ctl:ruleRemoveById=930120\"<\/code><\/pre>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 5 &#8212; \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u044b\u0442\u0435\u043a\u0430\u044e\u0449\u0430\u044f<\/h2>\n<ul>\n<li>\n<p>\u041f\u043e\u00a0\u0444\u0430\u043a\u0442\u0443 \u043c\u044b \u0441\u00a0\u0432\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441\u00a0\u0442\u0435\u043c, \u0447\u0442\u043e\u00a0\u0443\u00a0\u043d\u0430\u0441 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u043f\u043e\u00a0\u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u043f\u043e\u00a0\u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u0427\u0442\u043e\u00a0\u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u00a0\u2014\u00a0\u043b\u0438\u0431\u043e \u043f\u043e\u043d\u0438\u0436\u0430\u0442\u044c PL\u00a0\u043b\u0438\u0431\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0430\u0439\u043f\u0430\u0441\u044b (\u0432\u044b\u0431\u043e\u0440 \u0432\u0430\u0448). \u041f\u043b\u043e\u0445\u043e \u0438 \u0442\u043e, \u0438 \u0434\u0440\u0443\u0433\u043e\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u043f\u0440\u0438\u00a0\u043f\u043e\u0434\u0431\u043e\u0440\u0435 WAF.<\/p>\n<\/li>\n<li>\n<p>\u042f \u0443\u0436\u0435\u00a0\u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u043f\u043e\u043d\u0438\u0436\u0430\u0442\u044c PL \u0438 \u0432\u043e\u0432\u0441\u044e \u043f\u0430\u0440\u0441\u0438\u043b \u043b\u043e\u0433\u0438, \u043a\u0430\u043a\u00a0\u043f\u0440\u0438\u0448\u043b\u043e \u043e\u0437\u0430\u0440\u0435\u043d\u0438\u0435 \ud83d\ude42 99% \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u00a0\u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438\u0437\u00a0\u0430\u0434\u043c\u0438\u043d\u043a\u0438. \u0427\u0442\u043e\u00a0\u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442? \u041d\u0435\u00a0\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0442\u043e, \u0447\u0442\u043e\u00a0\u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u043a\u00a0HTTP REQUEST_METHOD \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0430\u0439\u043f\u0430\u0441 \u0432\u0441\u0435\u0433\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u044e\u0441\u044b\u2011\u043c\u0438\u043d\u0443\u0441\u044b? \u041f\u043b\u044e\u0441\u044b\u00a0\u2014 \u0438\u0437\u0431\u0430\u0432\u0438\u043c\u0441\u044f \u043e\u0442\u00a0\u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u043f\u043e\u00a0\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 \u0438 \u0438\u0441\u0442\u0435\u0440\u0438\u0438 \u043f\u043e\u00a0\u043f\u043e\u0432\u043e\u0434\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u041c\u0438\u043d\u0443\u0441\u044b\u00a0\u2014 \u043d\u0430\u00a0\u0441\u0430\u0439\u0442\u0435 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e\u00a0\u0432\u00a0\u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043b\u0431\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u043e\u0431\u0445\u043e\u0434 \u043f\u043e\u043b\u0438\u0442\u0438\u043a.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0432\u00a0\u0446\u0435\u043b\u043e\u043c \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u00a0\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u0431\u044b\u00a0\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0440\u0438\u0441\u043a\u0438,\u00a0\u043b\u0438\u0431\u043e \u043f\u0438\u0441\u0430\u0442\u044c 100\u00a0500\u00a0\u043f\u0440\u0430\u0432\u0438\u043b \u0431\u0435\u0437\u00a0\u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u0432\u00a0\u0431\u0443\u0434\u0443\u0449\u0435\u043c. \u042f \u044d\u0442\u0438 \u0440\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u043d\u044f\u043b. \u0412\u00a0\u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c IPS \u0441\u00a0\u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430\u043c\u0438 \u043d\u0430\u00a0POST \u043c\u0435\u0442\u043e\u0434 \u0438 \u0441\u043f\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u0435\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0438 \u043a\u0440\u0438\u0432\u044b\u0435 \u043f\u043e\u0442\u0443\u0433\u0438 \u0432\u00a0\u043f\u0430\u0440\u0441\u0435\u0440 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">echo &gt; \/var\/log\/apache2\/modsec_audit.log  cat \/var\/log\/apache2\/modsec_audit.log | grep -iE \".*notice.*|*.warning.*|.*error.*|.*critical.*\" | perl -ne 'm\/.*(ARGS:\\w+)\/ &amp;&amp; print \"$1\\n\"' | sort | uniq &gt;&gt; \/var\/tmp\/args.txt  cat \/var\/log\/apache2\/modsec_audit.log | grep -iE \".*notice.*|*.warning.*|.*error.*|.*critical.*\" | perl -ne 'm\/ARGS:html.*(id \"\\d+\")\/ &amp;&amp; print \"$1\\n\"' | sort | uniq &gt;&gt; \/var\/tmp\/args_html.txt  cat \/var\/tmp\/args_html.txt | sed 's\/id \\\"\/ctl:ruleRemoveById=\/g' | sed 's\/\\\"\/\\,\\\\\/g' &gt;&gt; \/var\/tmp\/html_rules.txt<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f\u00a0\u0430\u0434\u043c\u0438\u043d\u043a\u0438 (\u0434\u0430\u0435\u043c \u0434\u0432\u0430, \u0438\u0431\u043e \u0430\u0432\u0442\u043e\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 PUT)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecRule REQUEST_METHOD \"@rx (POST|PUT)\" \\         \"id:001001001,\\         phase:1,\\         pass,\\         nolog,\\         msg:'Admin Panel WAF bypass',\\         ctl:ruleEngine=Off\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u00a0\u044d\u043d\u0442\u0435\u0440\u043f\u0440\u0430\u0439\u0437\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u043a\u00a0\u0431\u043b\u043e\u043a\u0443 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u0432\u044b\u0448\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0443\u0439\u0434\u0443\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecRule REMOTE_ADDR \"@ipMatchFromFile admin_panel_whitelist.txt\" \\         \"id:001001001,\\         phase:1,\\         pass,\\         log,\\         msg:'Admin Panel WAF bypass - POST|PUT only',\\         ctl:ruleEngine=Off,\\         chain\"  SecRule REQUEST_METHOD \"@rx (POST|PUT)\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u043e\u0433\u0438 \u043d\u0430\u00a0\u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u0438 \u0437\u0430\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u043e\u0433 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/crs4\/crs-setup.conf<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900110,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.inbound_anomaly_score_threshold=5,\\     setvar:tx.outbound_anomaly_score_threshold=4\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u043e\u0433\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">Action: Intercepted (phase 2) Apache-Handler: application\/x-httpd-php Stopwatch: 1737805433007092 8481 (- - -) Stopwatch2: 1737805433007092 8481; combined=5102, p1=911, p2=2835, p3=0, p4=0, p5=1355, sr=75, sw=1, l=0, gc=0 Response-Body-Transformed: Dechunked Producer: ModSecurity for Apache\/2.9.7 (http:\/\/www.modsecurity.org\/); OWASP_CRS\/4.10.0. Server: Apache Engine-Mode: \"ENABLED\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0443\u00a0\u0432\u0430\u0441 \u0441\u0442\u043e\u0438\u0442 <a href=\"https:\/\/null.somedomain.name\/books\/iptables\/page\/fail2ban\" rel=\"noopener noreferrer nofollow\"><u>Fail2Ban<\/u><\/a>, \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c \u0438 \u0442\u0443\u0434\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">fail2ban-client status apache-modsecurity<\/code><\/pre>\n<pre><code class=\"bash\">Status for the jail: apache-modsecurity |- Filter |  |- Currently failed: 0 |  |- Total failed:     14 |  `- File list:        \/var\/log\/apache2\/error.log `- Actions    |- Currently banned: 1    |- Total banned:     6    `- Banned IP list:   193.41.206.98<\/code><\/pre>\n<h2>\u0411\u043e\u043d\u0443\u0441\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/h2>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u043a\u0440\u043e\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/apache2\/mods-enabled\/security2.conf<\/code><\/pre>\n<pre><code class=\"bash\"># Manipulating server signaturte ServerTokens Min SecServerSignature \"null\"<\/code><\/pre>\n<pre><code class=\"bash\">systemctl restart apache2<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">curl -i --header 'Host: null.somedomain.name' https:\/\/null.somedomain.name | less<\/code><\/pre>\n<pre><code class=\"bash\">Server: null<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c, \u0430\u00a0\u043d\u0443\u0436\u043d\u043e\u00a0\u043b\u0438 \u043d\u0430\u043c \u0442\u0430\u043a\u043e\u0435 \ud83d\ude42 \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e\u00a0\u043c\u044b \u0445\u043e\u0441\u0442\u0438\u043c \u043d\u0435\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u044f\u043c\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0435\u0442 \u0438 \u043d\u0435\u00a0\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0438\u0442\u0441\u044f. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u00a0\u2014 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043a\u0430\u043a\u0438\u043c\u2011\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u0440\u043e\u0443\u043b\u0435\u0440\u043e\u043c \u043f\u043e\u00a0\u0441\u0430\u0439\u0442\u0443 \u0432\u00a0\u043f\u043e\u0438\u0441\u043a\u0430\u0445 HTTP 200\u00a0\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u0441\u00a0\u044d\u0442\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0432\u043e\u043f\u0440\u043e\u0441 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u00a0\u0441\u0442\u043e\u0440\u043e\u043d\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u00a0\u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c? \u041e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e HTTP 404\u00a0\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0434\u043e\u00a0\u0442\u043e\u0433\u043e \u043a\u0430\u043a\u00a0\u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442 HTTP 200, \u0430\u00a0\u0441\u00a0\u044d\u0442\u0438\u043c \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0447\u0442\u043e\u2011\u0442\u043e \u0442\u0430\u043a\u043e\u0435 (\u0443\u043b\u0435\u0442\u0430\u0435\u043c \u0432\u00a0\u0431\u0430\u043d \u043d\u0430\u00a0\u0434\u0435\u043d\u044c \u043f\u043e\u0441\u043b\u0435 10\u0442\u0438 HTTP 404)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecRule REMOTE_ADDR \"@ipMatchFromFile http_404_whitelist.txt\" \\         \"id:001002001,\\         phase:1,\\         pass,\\         nolog,\\         msg:'IP Whitelisted for HTTP 404',\\         ctl:ruleRemoveById=001002002,\\         ctl:ruleRemoveById=001002003\"  SecRule RESPONSE_STATUS \"@streq 404\" \\         \"id:001002002,\\         phase:3,\\         pass,\\         setvar:IP.bad_http_request=+1,\\         expirevar:IP.bad_http_request=86400,\\         log,\\         msg:'Page Not Found - HTTP 404 - Count %{IP.bad_http_request}'\"  SecRule IP:BAD_HTTP_REQUEST \"@gt 10\" \\         \"id:001002003,\\         phase:3,\\         drop,\\         log,\\         msg:'Client Exceeded HTTP 404 Request Limit of 10 - Banned For a Day'\"<\/code><\/pre>\n<h2>Project Honey Pot<\/h2>\n<p>\u0427\u0442\u043e\u00a0\u044d\u0442\u043e \u0437\u0430\u00a0\u0437\u0432\u0435\u0440\u044c \u0442\u0430\u043a\u043e\u0439? \u041d\u0435\u00a0\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0431\u0430\u0437\u0430 IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0431\u043e\u0442\u043e\u0432 (\u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0430\u0437\u0430, \u043d\u043e\u00a0\u043e\u0431\u00a0\u044d\u0442\u043e\u043c \u0434\u0430\u043b\u0435\u0435).<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 &#171;\u043b\u043e\u0432\u0443\u0448\u043a\u0438&#187;<\/h2>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0432 \u043e\u00a0\u0442\u043e\u043c, \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u0432\u0441\u0435\u00a0\u2014 \u0432\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043e\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u043e\u0442\u0430\u0445: \u0440\u043e\u0431\u043e\u0442\u0430\u0445, \u043a\u0440\u043e\u0443\u043b\u0435\u0440\u0430\u0445, \u0441\u043f\u0430\u043c\u0435\u0440\u0430\u0445 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u00a0\u043a\u0430\u043c\u043c\u0435\u043d\u0442\u0430\u0445) \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0445\u0430\u0440\u0432\u0435\u0441\u0442\u0435\u0440\u0430\u0445.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u043e\u00a0\u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u0425\u0430\u043d\u0438\u043f\u043e\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0445\u043e\u0441\u0442\u0438\u0442\u044c, \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0445\u0430\u043d\u0438\u043f\u043e\u0442<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430\u0441\u044b\u0442\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0443 \u0430\u00a0\u0434\u0430\u043b\u044c\u0448\u0435 \u0436\u0434\u0435\u043c \u043f\u0440\u0438\u0448\u0435\u0441\u0442\u0432\u0438\u044f \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u00ab\u043f\u0440\u043e\u043a\u043b\u0438\u043a\u0438\u0432\u0430\u044e\u0449\u0438\u0445\u00bb \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435, \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430\u0448\u0443 \u00ab\u043b\u043e\u0432\u0443\u0448\u043a\u0443\u00bb<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u00a0\u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0446\u0435 \u0441\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u00a0\u0445\u0430\u043d\u0438\u043f\u043e\u0442 \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u00a0\u043d\u0430\u043c<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u00a0\u0436\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0431\u043e\u0442\u0430\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u00a0\u044d\u0442\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e\u0439\u0434\u0435\u0442 \u0441\u043f\u0430\u043c \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430\u00a0\u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432\u00a0\u0447\u0435\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a <\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438<\/p>\n<p>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<ul>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/www.projecthoneypot.org\/\" rel=\"noopener noreferrer nofollow\"><u>\u0441\u0430\u0439\u0442\u0435<\/u><\/a> \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f\u00a0\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u00a0\u0441\u0430\u0439\u0442\u043e\u043c (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u0445\u043e\u043f\u0435). <\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">chown -R root:www-data \/var\/www\/bookstack\/public\/hello.php chmod 644 \/var\/www\/bookstack\/public\/hello.php<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u00a0footer \u043d\u0443 \u0438\u043b\u0438\u00a0\u043a\u0443\u0434\u0430\u2011\u043b\u0438\u0431\u043e \u0435\u0449\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u043f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430\u043c \u043d\u0435\u00a0\u0432\u0438\u0434\u043d\u043e\u00a0\u0431\u044b\u043b\u043e)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"xml\">&lt;footer class=\"print-hidden\"&gt;             &lt;a href=\"https:\/\/null.somedomain.name\/hello.php\" target=\"_blank\" rel=\"noopener\"&gt;&lt;\/a&gt; &lt;\/footer&gt;<\/code><\/pre>\n<ul>\n<li>\n<p>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u00a0\u2014 \u0438\u043d\u0434\u0436\u0435\u043a\u0442\u0438\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437\u00a0ModSecurity. \u0412\u043e\u0442 \u0442\u0430\u043a<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecContentInjection On SecStreamOutBodyInspection On  SecRule RESPONSE_CONTENT_TYPE \"@contains text\/html\" \\         \"id:001003001,\\         phase:4,\\         pass,\\         nolog,\\         chain\"  SecRule STREAM_OUTPUT_BODY \"@rsub s\/&lt;\\\/html&gt;\/&lt;a href=\\\"https:\\\/\\\/null.somedomain.name\\\/hello.php\\\"&gt;&lt;\\\/a&gt;&lt;\\\/html&gt;\/\"<\/code><\/pre>\n<h2>\u041f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u043a ModSecurity<\/h2>\n<p>\u041a\u0430\u043a\u00a0\u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437\u00a0\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0433\u043b\u0430\u0432\u044b, \u0435\u0441\u043b\u0438 \u0433\u0434\u0435\u2011\u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u043d\u0435\u00a0\u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0434\u044f\u0434\u044c \u0438 \u0442\u0435\u0442\u044c, \u0442\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0435\u0439 \u043d\u0435\u00a0\u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<ul>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a\u00a0API \u043d\u0430\u00a0\u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e (\u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0447\u0442\u043e\u00a0\u0435\u0433\u043e \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u043c)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/crs4\/rules\/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf<\/code><\/pre>\n<pre><code class=\"bash\"># HTTPBL Check SecHttpBlKey API \u043a\u043b\u044e\u0447  SecRule TX:REAL_IP|REMOTE_ADDR \"@rbl dnsbl.httpbl.org\" \\         \"id:001001001,\\         phase:1,\\         capture,\\         block,\\         log,\\         msg:'HTTPBL Match of Client IP.',\\         logdata:'%{tx.httpbl_msg}',\\         setvar:tx.httpbl_msg=%{tx.0},\\         chain\"  SecRule TX:0 \"threat score (\\d+)\" \"chain,capture\" SecRule TX:1 \"@gt 20\"<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430\u00a0\u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f. \u0412\u043f\u0435\u0440\u0435\u0434\u0438 Snort, DDoS Offloading, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e SIEM (\u043b\u043e\u0433\u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e).<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e\u00a0\u043a\u043e\u043d\u0446\u0430! \u041f\u043e\u00a0\u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438\u00a0\u2014 \u043a\u0440\u043e\u0441\u0441\u00a0\u043b\u0438\u043d\u043a <a href=\"https:\/\/null.somedomain.name\/\" rel=\"noopener noreferrer nofollow\">ProjectNull<\/a> (\u0441\u0435\u043e\u0448\u043d\u0438\u043a \u0432\u043e\u00a0\u043c\u043d\u0435 \u043d\u0435\u00a0\u0443\u043c\u0435\u0440 \ud83d\ude42 <\/p>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430\u00a0\u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u00a0\u0442\u0435\u043c\u0435.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/876632\/\"> https:\/\/habr.com\/ru\/articles\/876632\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435!<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0448\u043b\u044e\u0437\u0430 \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u00a0\u0431\u0430\u0437\u0435 \u041f\u041e\u00a0\u0441\u00a0\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c (\u0441\u0442\u0435\u043a Apache\/ModSecurity\/OWASP CRS\/ProjectHoneyPot).<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u00a0\u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0432\u00a0\u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435. \u0413\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u0438 \u043a\u0430\u043a\u00a0\u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b. \u041a\u0430\u043a\u00a0\u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c (\u0434\u0438\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u00a0\u2014 \u043d\u0435\u00a0\u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434). \u0412\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0430\u0440\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0430\u00a0\u0433\u0440\u0430\u0431\u043b\u0438, \u043d\u0430\u0439\u0434\u0435\u043c \u0447\u0442\u043e\u2011\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430\u00a0\u0438\u0437\u044f\u0449\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437\u00a0\u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0423\u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043e\u00a0\u0431\u043e\u0442\u0430\u0445 \u0438 \u043a\u0430\u043a\u00a0\u043e\u0442\u00a0\u043d\u0438\u0445 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412\u00a0\u043c\u043e\u0439 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0442\u0430\u043a\u00a0\u0436\u0435 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 Snort \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0430\u0442\u0430\u043a, \u043d\u043e\u00a0\u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0432 \u0432\u00a0\u043c\u0430\u043d\u0443\u0430\u043b \u0441\u043d\u043e\u0440\u0442\u0430 \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e\u00a0\u0442\u0430\u043c \u0434\u0435\u043b\u043e \u043d\u0435\u00a0\u043e\u0434\u043d\u043e\u0439 \u0438 \u0434\u0443\u043c\u0430\u044e \u043d\u0435\u00a0\u043f\u0430\u0440\u044b \u043d\u0435\u0434\u0435\u043b\u044c (\u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c\u00a0\u0431\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u00a0\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430\u043c\u0438). \u0422\u0430\u043a \u0447\u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043a\u0430\u043a\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u0432\u00a0\u0441\u0432\u043e\u0435\u043c \u0446\u0438\u043a\u043b\u0435.<\/p>\n<p>\u0428\u0442\u043e\u0448,\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0414\u043b\u044f\u00a0\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u0432\u0435\u0447\u0443 \u043d\u0430\u00a0\u043e\u0434\u0438\u043d \u0438\u0437\u00a0\u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432\u00a0\u2014 \u043f\u043e\u0447\u0435\u043c\u0443 OpenSource?\u00a0\u2014 \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c F5, Imperva, \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0443\u00a0Fortinet, \u0438 \u0443\u00a0Check Point, \u0438 \u0443\u00a0Palo. \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u0432. \u0412\u0437\u044f\u0442\u044c\u2011\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e, \u043d\u043e\u00a0\u0432\u043e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u00a0\u0442\u0430\u043a\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c \u0438\u043c\u0435\u0435\u0442\u00a0\u043b\u0438\u0448\u044c \u043d\u0435\u00a0\u0441\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f. \u041f\u043e\u00a0\u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c OpenSource <\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u043e\u043f\u0440\u043e\u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u00a0\u0418\u0411 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u00a0\u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438. \u0420\u0438\u0441\u043a\u0438, \u043a\u0430\u043a\u00a0\u043d\u0438 \u043a\u0440\u0443\u0442\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438 \u044f\u00a0\u0431\u044b 10\u00a0\u0440\u0430\u0437 \u043f\u043e\u0434\u0443\u043c\u0430\u043b (\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f) \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0434\u043b\u044f\u00a0\u0437\u0430\u0449\u0438\u0442\u044b \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0412\u00a0\u0442\u043e\u00a0\u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0434\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043c\u0430\u043b\u043e\u043c\u0443 \u0431\u0438\u0437\u043d\u0435\u0441\u0443 \u0438 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442\u0430\u043c \u0432\u00a0\u0418\u0422. \u0412\u0435\u0434\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u00a0\u043d\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e \u0432\u00a0\u0441\u0435\u0442\u044c \u0441\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439? \u0410\u00a0\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u00a0\u043d\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f? <\/p>\n<p>\u0418 \u0442\u0430\u043a, \u0447\u0442\u043e\u00a0\u0436\u0435 \u0442\u0430\u043a\u043e\u0435 WAF? <\/p>\n<p>\u0412\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u00a0\u2014 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b, \u0441\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043e\u0442\u00a0\u0442\u0438\u043f\u0438\u0447\u043d\u043e\u0433\u043e NGFW. \u0428\u043b\u044e\u0437\u044b \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438, \u043a\u0430\u043a\u00a0\u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u044b \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0432\u044d\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0435 \u043a\u00a0\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0430\u0442\u0430\u043a\u0430\u043c.<\/p>\n<p>\u0412\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b. \u041a\u0430\u043a\u00a0\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0449\u0438\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f OWASP \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430\u043c\u0438 (\u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0XSS, SQL \u0438\u043d\u0434\u0436\u0435\u043a\u0442\u043e\u0432, \u0430\u043d\u0430\u043b\u0438\u0437 HTTP \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0434\u043d\u044f \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0431\u043e\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u044b \u0432\u00a0\u0434\u043e\u0432\u0435\u0441\u043e\u043a \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b NGFW. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u043c \u0438 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430, \u0438 IPS, \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u043e\u0433\u043e \u041f\u041e. \u0412\u0441\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u00a0\u0436\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f WAF \u0441\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 <\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0442\u043e\u00a0\u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c?\u00a0\u2014 \u041c\u043d\u043e\u0433\u043e\u0435. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f\u00a0\u043b\u0438 \u043f\u0440\u0438\u00a0\u044d\u0442\u043e\u043c \u0441\u0442\u0440\u0430\u0434\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434?\u00a0\u2014 \u041d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437, \u0440\u0435\u043f\u043e\u0440\u0442\u044b? \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0443\u0436\u043d\u043e) \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043b\u043e\u0433\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u00a0SIEM \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u00a0\u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u044c\u044e<\/p>\n<\/li>\n<li>\n<p>OWASP? \u041d\u0443, \u0434\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0432\u0430\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0434\u043a\u043e\u0440<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u0442\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439? \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e\u0436\u0435 \u0434\u0430. \u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u0431\u043e\u0442\u043e\u0432? \u0412\u00a0\u043a\u0430\u043a\u043e\u0439\u2011\u0442\u043e \u043c\u0435\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043d\u044f\u0442\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0447\u0442\u043e\u00a0\u0432\u0435\u043d\u0434\u043e\u0440 \u0438 \u0441\u00a0\u0441\u0430\u043f\u043e\u0440\u0442\u043e\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442, \u0438 \u0441\u0432\u044f\u0437\u0430\u043d \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438, \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u044d\u043a\u0434\u043e\u0440 \u0435\u043c\u0443 \u0432\u00a0\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0437\u0430\u043b\u0438\u0442\u044c, \u0434\u0430\u00a0\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043a\u0430\u043a\u00a0\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0448\u0438\u0440\u0435. \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e. <\/p>\n<p>\u041d\u043e\u00a0\u0432 \u043e\u0431\u0449\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c OpenSource<\/p>\n<h2>ModSecurity<\/h2>\n<p>ModSecurity \u0435\u0441\u0442\u044c \u043d\u0438\u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a\u00a0\u043a\u0440\u043e\u0441\u0441\u2011\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0448\u043b\u044e\u0437\u0430 \u0432\u044d\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f\u00a0\u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u00a0Apache, \u0442\u0430\u043a \u0438 Nginx. \u041c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u0438\u043b\u0430\u043c\u0438, \u0430\u00a0\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b OWASP CRS<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0434\u0435\u0441\u044c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043d\u0435\u00a0\u0437\u0430\u0439\u043c\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0443 \u0447\u0442\u043e\u00a0\u0443\u00a0\u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c Linux \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0438 \u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c Debian + Apache)<\/p>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">apt install libapache2-mod-security2<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c <\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">a2enmod security2<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">mv \/etc\/modsecurity\/modsecurity.conf-recommended \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0432\u0438\u0436\u043a\u0430 (\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u00a0DetectionOnly. \u0423\u00a0\u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">grep SecRuleEngine \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u00a0\u043b\u0438 \u0441\u043a\u0430\u043d \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">grep SecResponseBodyAccess \/etc\/modsecurity\/modsecurity.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0441\u0435\u00a0\u043b\u0438 \u0432\u00a0\u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cat \/etc\/apache2\/mods-enabled\/security2.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemctl restart apache2 systemctl status apache2<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043a\u0430\u043a\u043e\u0439\u2011\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0438 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<h2>OWASP CRS<\/h2>\n<p>\u0427\u0442\u043e\u00a0\u0436\u0435 \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? \u041d\u0435\u00a0\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043e\u0431\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043e\u0446\u0435\u043d\u043a\u0438 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0434\u043b\u044f\u00a0ModSecurity<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cd \/var\/tmp  wget https:\/\/github.com\/coreruleset\/coreruleset\/archive\/refs\/tags\/v4.10.0.tar.gz wget https:\/\/github.com\/coreruleset\/coreruleset\/releases\/download\/v4.10.0\/coreruleset-4.10.0.tar.gz.asc<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">gpg --fetch-key https:\/\/coreruleset.org\/security.asc gpg --edit-key &lt;RSA KEY ID&gt;  gpg&gt; trust Your decision: 5 (ultimate trust) Are you sure: Yes gpg&gt; quit  gpg --verify coreruleset-4.10.0.tar.gz.asc v4.10.0.tar.gz<\/code><\/pre>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">mkdir \/etc\/crs4 tar -xzvf v4.10.0.tar.gz --strip-components 1 -C \/etc\/crs4<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">cd \/etc\/crs4 mv crs-setup.conf.example crs-setup.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432\u00a0ModSecuirty \u043c\u043e\u0434\u0443\u043b\u044c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/apache2\/mods-enabled\/security2.conf<\/code><\/pre>\n<pre><code class=\"bash\"># Include OWASP ModSecurity CRS rules if installed #IncludeOptional \/usr\/share\/modsecurity-crs\/*.load IncludeOptional \/etc\/crs4\/crs-setup.conf IncludeOptional \/etc\/crs4\/plugins\/*-config.conf IncludeOptional \/etc\/crs4\/plugins\/*-before.conf IncludeOptional \/etc\/crs4\/rules\/*.conf IncludeOptional \/etc\/crs4\/plugins\/*-after.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemctl restart apache2 systemctl status apache2<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<ul>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c. \u041a\u043e\u043d\u0444\u0438\u0433, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u0430\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u043d\u0430\u00a0\u0432\u0441\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/crs4\/crs-setup.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u00a0Anomaly Scoring \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecDefaultAction \"phase:1,log,auditlog,pass\" SecDefaultAction \"phase:2,log,auditlog,pass\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c Paranoia Level = 3\u00a0(\u0410 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0\u0431\u044b \u0438 \u0434\u0430? \u0421\u0435\u043a\u0443\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u044b \u0441\u00a0\u0432\u0430\u043c\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u043c, \u0430\u00a0\u0441\u00a0\u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438) \u041a\u0442\u043e\u00a0\u0431\u044b \u0437\u043d\u0430\u043b, \u0432\u043e\u00a0\u0447\u0442\u043e\u00a0\u044d\u0442\u043e \u0432\u044b\u043b\u044c\u0435\u0442\u0441\u044f \ud83d\ude42<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900000,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.blocking_paranoia_level=3\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Body Processor URLENCODED \u0434\u043b\u044f\u00a0\u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441\u00a0\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c Content\u2011Type \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900010,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.enforce_bodyproc_urlencoded=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u0432\u0435\u0441\u0430?) \u0434\u043b\u044f\u00a0\u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900100,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.critical_anomaly_score=5,\\     setvar:tx.error_anomaly_score=4,\\     setvar:tx.warning_anomaly_score=3,\\     setvar:tx.notice_anomaly_score=2\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f\u00a0\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0437\u0430\u0434\u0440\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043d\u0435\u00a0\u043e\u0442\u043b\u0430\u0434\u0438\u043c.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900110,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.inbound_anomaly_score_threshold=5000,\\     setvar:tx.outbound_anomaly_score_threshold=4000\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u041a\u0430\u043a\u2011\u043d\u0438\u043a\u0430\u043a \u0443\u00a0\u043d\u0430\u0441 PL=3\u00a0\u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900115,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.reporting_level=2\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900130,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.enable_default_collections=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 HTTP \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b PUT \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 CMS (\u0417\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435\u00a0\u2014 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u0435\u0435, \u0438\u0431\u043e \u043c\u043d\u043e\u0433\u043e\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442\u00a0\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u042f \u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0434\u00a0\u0441\u0435\u0431\u044f, \u043f\u043e\u00a0\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0431\u0435\u0437\u00a0\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b) \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e\u00a0\u043b\u043e\u0433\u0438\u043a\u0443 <a href=\"https:\/\/github.com\/coreruleset\/coreruleset\/blob\/main\/rules\/REQUEST-911-METHOD-ENFORCEMENT.conf\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a> \u0438 <a href=\"https:\/\/github.com\/coreruleset\/coreruleset\/blob\/main\/rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a><\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900200,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_methods=GET HEAD POST OPTIONS PUT'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c HTTP Content Type<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900220,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_request_content_type=|application\/x-www-form-urlencoded| |text\/html|'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c HTTP \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900230,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_http_versions=HTTP\/1.1'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900280,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:'tx.allowed_request_content_type_charset=|utf-8|'\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u043b\u0438\u043d\u0443 \u0438\u043c\u0435\u043d\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443, \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900300,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.max_num_args=255\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900310,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.arg_name_length=100\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900320,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.arg_length=400\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900330,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.total_arg_length=64000\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0432\u00a0POST \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u0430\u00a0\u0442\u0430\u043a\u00a0\u0436\u0435 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900340,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.max_file_size=1048576\"<\/code><\/pre>\n<pre><code class=\"bash\">SecAction \\     \"id:900350,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.combined_file_sizes=1048576\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u00a0\u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">SecAction \\     \"id:900950,\\     phase:1,\\     pass,\\     t:none,\\     nolog,\\     tag:'OWASP_CRS',\\     ver:'OWASP_CRS\/4.10.0',\\     setvar:tx.crs_validate_utf8_encoding=1\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/p>\n<\/li>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">nano -w \/etc\/apache2\/sites-enabled\/null.conf<\/code><\/pre>\n<pre><code class=\"bash\"># WAF &lt;IfModule security2_module&gt;   SecRuleEngine On &lt;\/IfModule&gt;<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Apache<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">systemct<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-446171","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446171","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=446171"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446171\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}