{"id":1592,"date":"2013-01-03T23:59:41","date_gmt":"2013-01-03T21:59:41","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1592"},"modified":"2013-01-04T00:09:22","modified_gmt":"2013-01-03T22:09:22","slug":"mitigating-wordpress-xmlrpc-attack-using-ossec","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/","title":{"rendered":"mitigating wordpress xmlrpc attack using ossec"},"content":{"rendered":"<p>I&#8217;ve created some local rules for <a href=\"http:\/\/www.ossec.net\/\">ossec<\/a> to mitigate some of the effects of the wordpress xmlrpc attack presented here: <a href=\"http:\/\/www.pentestgeek.com\/2013\/01\/03\/wordpress-pingback-portscanner-metasploit-module\/\">WordPress Pingback Portscanner \u2013 Metasploit Module<\/a>.<\/p>\n<p>They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second rule to something that will trigger your active-response. Feel free to tweak the alert level, frequency and timeframe.  Before you change frequency to something else please read the following thread though: <a href=\"http:\/\/marc.info\/?l=ossec-list&#038;m=129736702512080&#038;w=2\">setting ossec frequency level<\/a><\/p>\n<p><pre><code2 class=\"preserve-code-formatting\">\n&nbsp;&nbsp; &lt;rule id=&quot;100167&quot; level=&quot;1&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;if_sid&gt;31108&lt;\/if_sid&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;url&gt;xmlrpc.php&lt;\/url&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;match&gt;POST&lt;\/match&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;WordPress xmlrpc attempt.&lt;\/description&gt;\n&nbsp;&nbsp;&lt;\/rule&gt;\n\n&nbsp;&nbsp;&lt;rule id=&quot;100168&quot; level=&quot;10&quot; frequency=&quot;2&quot; timeframe=&quot;600&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;if_matched_sid&gt;100167&lt;\/if_matched_sid&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;same_source_ip \/&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;WordPress xmlrpc attack.&lt;\/description&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;group&gt;attack,&lt;\/group&gt;\n&nbsp;&nbsp; &lt;\/rule&gt;\n<\/code2><\/pre><\/p>\n<p>btw, if you don&#8217;t want xmlrpc.php accessible at all, you can block it through a simple mod_rewrite rule:<br \/>\n<pre><code2 class=\"preserve-code-formatting\">\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteCond %{REQUEST_URI} ^\/PATH\/TO\/xmlrpc.php [NC]\nRewriteRule ^(.*)$ - [F,L]\n<\/code2><\/pre><\/p>\n<p>or you can try any of the other numerous ways to accomplish the same thing as presented <a href=\"http:\/\/perishablepress.com\/wordpress-xmlrpc-pingback-vulnerability\/\">here<\/a>.<\/p>\n<p>You&#8217;ll lose pingback functionality though&#8230;oh well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve created some local rules for ossec to mitigate some of the effects of the wordpress xmlrpc attack presented here: WordPress Pingback Portscanner \u2013 Metasploit Module. They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[5,3,8],"tags":[457,597,595,217,540,185,16,541],"class_list":["post-1592","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","category-networking","tag-attack","tag-internet","tag-linux","tag-ossec","tag-portscan","tag-vulnerability","tag-wordpress","tag-xmlrpc"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"I&#039;ve created some local rules for ossec to mitigate some of the effects of the wordpress xmlrpc attack presented here: WordPress Pingback Portscanner \u2013 Metasploit Module. They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#article\",\"name\":\"mitigating wordpress xmlrpc attack using ossec | Into.the.Void.\",\"headline\":\"mitigating wordpress xmlrpc attack using ossec\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2013-01-03T23:59:41+02:00\",\"dateModified\":\"2013-01-04T00:09:22+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#webpage\"},\"articleSection\":\"Internet, Linux, Networking, attack, Internet, Linux, ossec, portscan, vulnerability, wordpress, xmlrpc\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#listItem\",\"name\":\"mitigating wordpress xmlrpc attack using ossec\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#listItem\",\"position\":3,\"name\":\"mitigating wordpress xmlrpc attack using ossec\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/\",\"name\":\"mitigating wordpress xmlrpc attack using ossec | Into.the.Void.\",\"description\":\"I've created some local rules for ossec to mitigate some of the effects of the wordpress xmlrpc attack presented here: WordPress Pingback Portscanner \\u2013 Metasploit Module. They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2013\\\/01\\\/03\\\/mitigating-wordpress-xmlrpc-attack-using-ossec\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2013-01-03T23:59:41+02:00\",\"dateModified\":\"2013-01-04T00:09:22+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"mitigating wordpress xmlrpc attack using ossec | Into.the.Void.","description":"I've created some local rules for ossec to mitigate some of the effects of the wordpress xmlrpc attack presented here: WordPress Pingback Portscanner \u2013 Metasploit Module. They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#article","name":"mitigating wordpress xmlrpc attack using ossec | Into.the.Void.","headline":"mitigating wordpress xmlrpc attack using ossec","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2013-01-03T23:59:41+02:00","dateModified":"2013-01-04T00:09:22+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#webpage"},"articleSection":"Internet, Linux, Networking, attack, Internet, Linux, ossec, portscan, vulnerability, wordpress, xmlrpc"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#listItem","name":"mitigating wordpress xmlrpc attack using ossec"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#listItem","position":3,"name":"mitigating wordpress xmlrpc attack using ossec","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/","name":"mitigating wordpress xmlrpc attack using ossec | Into.the.Void.","description":"I've created some local rules for ossec to mitigate some of the effects of the wordpress xmlrpc attack presented here: WordPress Pingback Portscanner \u2013 Metasploit Module. They seem to work for me, use at your own risk of getting flooded with tons of alerts. Obviously you need to set the alert level of the second","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2013-01-03T23:59:41+02:00","dateModified":"2013-01-04T00:09:22+02:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"1592","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:55:24","updated":"2026-10-21 09:54:49","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tmitigating wordpress xmlrpc attack using ossec\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"Linux","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/"},{"label":"mitigating wordpress xmlrpc attack using ossec","link":"https:\/\/www.void.gr\/kargig\/blog\/2013\/01\/03\/mitigating-wordpress-xmlrpc-attack-using-ossec\/"}],"views":20186,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1592"}],"version-history":[{"count":5,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1592\/revisions"}],"predecessor-version":[{"id":1597,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1592\/revisions\/1597"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}