{"id":5628,"date":"2022-10-05T16:22:36","date_gmt":"2022-10-05T16:22:36","guid":{"rendered":"https:\/\/www.opsshield.com\/blog\/?p=5628"},"modified":"2023-10-05T11:25:43","modified_gmt":"2023-10-05T11:25:43","slug":"wordpress-core-files-cleanup-with-cpguard","status":"publish","type":"post","link":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/","title":{"rendered":"WordPress Core Files Cleanup with cPGuard"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The file cleanup engine is an important part of the scanner module and that helps to automate removing file injections\/infections without any manual effort. The importance of such cleanup is when any core file required for the website is infected and quarantined, and that can lead to website downtime.\u00a0 This is one of the major problems that we were facing especially with WordPress websites.<\/p>\n<p>So we have been checking for additional options to handle such cases and how to fix such issues using our cleanup engine. Conventionally we clean files based on the patterns and virus type, which seems to be not very effective because the hackers keep changing the pattern of the infection<\/p>\n<p>Up on receiving multiple website down complaints after a virus scan and identifying most are WordPress websites, we have started looking for an option to handle such issues. We have finally come up with the file replace option from the original core file which is very effective based on our testing. So it works as the following<\/p>\n<ul>\n<li>cPGuard Scanner engine detects an infected file<\/li>\n<li>The file will then pass to the cleanup engine and it will identify the framework<\/li>\n<li>If it detects WordPress, it will check whether the affected file is a WordPress core file<\/li>\n<li>When it verifies a WordPress core is infected, it will detect the WordPress version<\/li>\n<li>Then it will replace the affected file from the copy of the original file in the specific version<\/li>\n<li>Finally, it verifies the restore after checking the file checksum<\/li>\n<\/ul>\n<p>\u00a0It will also keep a copy of the infected file in the quarantine folder if you wish to check the injection later.<\/p>\n<p>We have been testing this workflow and released it with version 4.37 today as it was found to be very effective to recover WordPress websites from the core file injections.<\/p>\n<p>We hope this will give additional benefit to our customers to run their WordPress websites safely and with less downtime. If yuo need any additional information regarding this feature, please feel free to contact our support team.<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The file cleanup engine is an important part of the scanner module and that helps to automate removing file injections\/infections without any manual effort. The importance of such cleanup is when any core file required for the website is infected and quarantined, and that can lead to website downtime.\u00a0 This is one of the major [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5631,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[10],"tags":[],"class_list":["post-5628","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpguard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog\" \/>\n<meta property=\"og:description\" content=\"The file cleanup engine is an important part of the scanner module and that helps to automate removing file injections\/infections without any manual effort. The importance of such cleanup is when any core file required for the website is infected and quarantined, and that can lead to website downtime.\u00a0 This is one of the major [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\" \/>\n<meta property=\"og:site_name\" content=\"OPSSHIELD Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/opsshield\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-05T16:22:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-05T11:25:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1946\" \/>\n\t<meta property=\"og:image:height\" content=\"1096\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Radhika Valsan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@opsshieldllp\" \/>\n<meta name=\"twitter:site\" content=\"@opsshieldllp\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Radhika Valsan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\"},\"author\":{\"name\":\"Radhika Valsan\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/5d5c7d7813a49fed4ee4ef48fe5919fd\"},\"headline\":\"WordPress Core Files Cleanup with cPGuard\",\"datePublished\":\"2022-10-05T16:22:36+00:00\",\"dateModified\":\"2023-10-05T11:25:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\"},\"wordCount\":426,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg\",\"articleSection\":[\"CPGUARD\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\",\"url\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\",\"name\":\"WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg\",\"datePublished\":\"2022-10-05T16:22:36+00:00\",\"dateModified\":\"2023-10-05T11:25:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage\",\"url\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg\",\"contentUrl\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg\",\"width\":1946,\"height\":1096},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.opsshield.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Core Files Cleanup with cPGuard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#website\",\"url\":\"https:\/\/www.opsshield.com\/blog\/\",\"name\":\"OPSSHIELD Blog\",\"description\":\"OPSSHIELD blogs\",\"publisher\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.opsshield.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#organization\",\"name\":\"OPSSHIELD LLP\",\"url\":\"https:\/\/www.opsshield.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/06\/image.png\",\"contentUrl\":\"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/06\/image.png\",\"width\":1500,\"height\":300,\"caption\":\"OPSSHIELD LLP\"},\"image\":{\"@id\":\"https:\/\/www.opsshield.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/opsshield\",\"https:\/\/x.com\/opsshieldllp\",\"https:\/\/linkedin.com\/company\/opsshield\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/5d5c7d7813a49fed4ee4ef48fe5919fd\",\"name\":\"Radhika Valsan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fc0bb3c502a6ba41e8a61c7b262b27895fbf8346b71d23b0736bd0559f859cde?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fc0bb3c502a6ba41e8a61c7b262b27895fbf8346b71d23b0736bd0559f859cde?s=96&d=mm&r=g\",\"caption\":\"Radhika Valsan\"},\"description\":\"Radhika a web developer with over six years of experience in PHP and WordPress development. Radhika is passionate about building user-friendly and efficient web applications and looking for new ways to improve her skills.\",\"url\":\"https:\/\/www.opsshield.com\/blog\/author\/radhika\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog","og_description":"The file cleanup engine is an important part of the scanner module and that helps to automate removing file injections\/infections without any manual effort. The importance of such cleanup is when any core file required for the website is infected and quarantined, and that can lead to website downtime.\u00a0 This is one of the major [&hellip;]","og_url":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/","og_site_name":"OPSSHIELD Blog","article_publisher":"https:\/\/www.facebook.com\/opsshield","article_published_time":"2022-10-05T16:22:36+00:00","article_modified_time":"2023-10-05T11:25:43+00:00","og_image":[{"width":1946,"height":1096,"url":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg","type":"image\/jpeg"}],"author":"Radhika Valsan","twitter_card":"summary_large_image","twitter_creator":"@opsshieldllp","twitter_site":"@opsshieldllp","twitter_misc":{"Written by":"Radhika Valsan","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#article","isPartOf":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/"},"author":{"name":"Radhika Valsan","@id":"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/5d5c7d7813a49fed4ee4ef48fe5919fd"},"headline":"WordPress Core Files Cleanup with cPGuard","datePublished":"2022-10-05T16:22:36+00:00","dateModified":"2023-10-05T11:25:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/"},"wordCount":426,"commentCount":0,"publisher":{"@id":"https:\/\/www.opsshield.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage"},"thumbnailUrl":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg","articleSection":["CPGUARD"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/","url":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/","name":"WordPress Core Files Cleanup with cPGuard - OPSSHIELD Blog","isPartOf":{"@id":"https:\/\/www.opsshield.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage"},"image":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage"},"thumbnailUrl":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg","datePublished":"2022-10-05T16:22:36+00:00","dateModified":"2023-10-05T11:25:43+00:00","breadcrumb":{"@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#primaryimage","url":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg","contentUrl":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/10\/wordpress-core-files-cleanup-with-cpguard.jpg","width":1946,"height":1096},{"@type":"BreadcrumbList","@id":"https:\/\/www.opsshield.com\/blog\/wordpress-core-files-cleanup-with-cpguard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.opsshield.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress Core Files Cleanup with cPGuard"}]},{"@type":"WebSite","@id":"https:\/\/www.opsshield.com\/blog\/#website","url":"https:\/\/www.opsshield.com\/blog\/","name":"OPSSHIELD Blog","description":"OPSSHIELD blogs","publisher":{"@id":"https:\/\/www.opsshield.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.opsshield.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.opsshield.com\/blog\/#organization","name":"OPSSHIELD LLP","url":"https:\/\/www.opsshield.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.opsshield.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/06\/image.png","contentUrl":"https:\/\/www.opsshield.com\/blog\/wp-content\/uploads\/2022\/06\/image.png","width":1500,"height":300,"caption":"OPSSHIELD LLP"},"image":{"@id":"https:\/\/www.opsshield.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/opsshield","https:\/\/x.com\/opsshieldllp","https:\/\/linkedin.com\/company\/opsshield"]},{"@type":"Person","@id":"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/5d5c7d7813a49fed4ee4ef48fe5919fd","name":"Radhika Valsan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.opsshield.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fc0bb3c502a6ba41e8a61c7b262b27895fbf8346b71d23b0736bd0559f859cde?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc0bb3c502a6ba41e8a61c7b262b27895fbf8346b71d23b0736bd0559f859cde?s=96&d=mm&r=g","caption":"Radhika Valsan"},"description":"Radhika a web developer with over six years of experience in PHP and WordPress development. Radhika is passionate about building user-friendly and efficient web applications and looking for new ways to improve her skills.","url":"https:\/\/www.opsshield.com\/blog\/author\/radhika\/"}]}},"_links":{"self":[{"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/posts\/5628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/comments?post=5628"}],"version-history":[{"count":5,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/posts\/5628\/revisions"}],"predecessor-version":[{"id":5634,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/posts\/5628\/revisions\/5634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/media\/5631"}],"wp:attachment":[{"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/media?parent=5628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/categories?post=5628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.opsshield.com\/blog\/wp-json\/wp\/v2\/tags?post=5628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}