YaraHunter, developed by Deepfence, is a versatile malware scanner designed for cloud-native environments.

It leverages YARA rulesets to detect indicators of compromise (IOCs) in container images, running Docker containers, and local filesystems.

By identifying resources that match known malware signatures, YaraHunter helps ensure the security of infrastructure against potential threats.

Key Features And Capabilities

  1. Scanning Versatility:
  • At Build-and-Test: YaraHunter integrates into CI/CD pipelines to scan build artifacts for malware indicators.
  • At Rest: It verifies local container images before deployment to ensure they are free from malicious content.
  • At Runtime: The tool monitors running Docker containers for anomalies like unusual network traffic or CPU usage.
  • Filesystem Scanning: It can scan local filesystems at any time to detect compromised files.
  1. Portability and Integration:
  • YaraHunter is highly portable and distributed as a Docker container, enabling it to run across diverse environments.
  • It supports automation with easy-to-parse JSON output, making it suitable for integration into larger security workflows.
  1. Open Source and Extensible:
  • The tool is open-source under the Apache 2.0 license, encouraging community contributions and customization with public or private YARA rulesets.

A common scenario involves scanning a container image suspected of hosting cryptomining malware like XMRig.

Users can pull the YaraHunter Docker image, generate a license key, and execute the scan on the target container image. The results, stored in JSON format, provide detailed insights into detected IOCs, such as matched rule names.

To use YaraHunter:

  1. Pull the official Docker image or build it from source.
  2. Generate a license key using an official email address.
  3. Run the tool with appropriate configurations to scan images, containers, or filesystems.

For instance:

docker run -i --rm --name=deepfence-yarahunter \
    -e DEEPFENCE_PRODUCT=ThreatMapper \
    -e DEEPFENCE_LICENSE=<LICENSE_KEY> \
    -v /var/run/docker.sock:/var/run/docker.sock \
    quay.io/deepfenceio/deepfence_malware_scanner_ce:2.5.2 \
    --image-name metal3d/xmrig:latest \
    --output=json > xmrig-scan.json

YaraHunter is an essential tool for detecting malware in cloud-native applications, offering flexibility for use during development, deployment, or runtime.

Its integration capabilities and open-source nature make it a valuable asset for enhancing cybersecurity practices in modern infrastructures.

LEAVE A REPLY

Please enter your comment!
Please enter your name here