AdGholas_mem_antisec_M2

YARA-2025-1095 Medium general Active
No description available for this rule
AdGholas_mem_antisec_M2.yar Valid Syntax
rule AdGholas_mem_antisec_M2
{
 meta:
     malfamily = "AdGholas"
	 author = "Proofpoint"
	 reference = "https://www.proofpoint.com/us/threat-insight/post/massive-adgholas-malvertising-campaigns-use-steganography-and-file-whitelisting-to-hide-in-plain-sight"
	 reference2 = "https://blog.malwarebytes.com/cybercrime/exploits/2016/12/adgholas-malvertising-business-as-usual/"


 strings:
     $s1 = "ActiveXObject(\"Microsoft.XMLDOM\")" nocase ascii wide
     $s2 = "loadXML" nocase ascii wide fullword
     $s3 = "parseError.errorCode" nocase ascii wide
     $s4 = /res\x3a\x2f\x2f[\x27\x22]\x2b/ nocase ascii wide
     $s5 = /\x251e3\x21\s*\x3d\x3d\s*[a-zA-Z]+\x3f1\x3a0/ nocase ascii wide

 condition:
     all of ($s*)
}

Rule Metadata

malfamily
AdGholas
author
Proofpoint
reference
https://www.proofpoint.com/us/threat-insight/post/massive-adgholas-malvertising-campaigns-use-steganography-and-file-whitelisting-to-hide-in-plain-sight
reference2
https://blog.malwarebytes.com/cybercrime/exploits/2016/12/adgholas-malvertising-business-as-usual/

String Definitions

{"name":"$s1","value":"\"ActiveXObject(\\\"Microsoft.XMLDOM\\\")\" nocase ascii wide"}
{"name":"$s2","value":"\"loadXML\" nocase ascii wide fullword"}
{"name":"$s3","value":"\"parseError.errorCode\" nocase ascii wide"}
{"name":"$s4","value":"\/res\\x3a\\x2f\\x2f[\\x27\\x22]\\x2b\/ nocase ascii wide"}
{"name":"$s5","value":"\/\\x251e3\\x21\\s*\\x3d\\x3d\\s*[a-zA-Z]+\\x3f1\\x3a0\/ nocase ascii wide"}

Threat Analysis

This YARA rule is designed to detect general threats.

Severity Level: Medium

The rule uses pattern matching to identify specific byte sequences, strings, or behavioral patterns associated with malicious activity.

Detection Capabilities

  • File-based detection for executables and documents
  • Memory scanning for running processes
  • Network traffic analysis support

Command Line Usage

# Scan a single file
yara AdGholas_mem_antisec_M2.yar /path/to/suspicious/file

# Scan a directory recursively
yara -r AdGholas_mem_antisec_M2.yar /path/to/directory/

# Scan with metadata output
yara -m AdGholas_mem_antisec_M2.yar target_file

# Scan process memory (Linux)
yara AdGholas_mem_antisec_M2.yar /proc/[pid]/exe

Integration Examples

Python (yara-python)

import yara
rules = yara.compile(filepath='AdGholas_mem_antisec_M2.yar')
matches = rules.match('/path/to/file')

ClamAV Integration

clamscan --yara-rules=AdGholas_mem_antisec_M2.yar /path/to/scan

Rule Information

YARA ID
YARA-2025-1095
Created
August 19, 2025
Last Updated
August 19, 2025
Last Imported
Never

Threat Intelligence

Risk Level Medium
Category general
Detection Confidence Analysis Pending
False Positive Rate Not Available
Last Seen in Wild No Data

Export Options