APT20140414_1PE

YARA-2025-1094 Medium general Active
No description available for this rule
APT20140414_1PE.yar Valid Syntax
import "pe"

rule APT20140414_1PE
{
meta:
    author = "phbiohazard"
    reference = "https://github.com/phbiohazard/Yara"

strings:
    $genep1 = {04 01 68 9b 1a 40 00 6a 01 6a 00 6a 00 ff 15 0c}
    $genep2 = {e9 3d 87 f8 ff bb d6 fb 04 8a 10 5c d2 70 d9 cb}
    $genep3 = {57 56 8b f0 e8 70 fd ff ff 5e e8 6e 01 00 00 5f}
    $contep1 = {e9 02 47 83 c6 02 89 f2 83 f9 00}
    $contep2 = {e5 44 75 c1 8b 36 0c 44 4d c9 31 8b 8a d7 88 d8}
    $contep3 = {9c d1 d4 52 7b c5 99 29 1c d7 46 c5 f9 8c f8 e2}
    $contep4 = {e8 ef e4 bb 00 5d c3}
condition:
    $genep1 and $contep1 and $contep2 or ($genep2 at pe.entry_point and ($contep3 in (pe.entry_point..pe.entry_point + 65))) or ($genep3 at pe.entry_point and ($contep4 in (pe.entry_point..pe.entry_point + 26)))

}

Rule Metadata

author
phbiohazard
reference
https://github.com/phbiohazard/Yara

String Definitions

{"name":"$genep1","value":"{04 01 68 9b 1a 40 00 6a 01 6a 00 6a 00 ff 15 0c}"}
{"name":"$genep2","value":"{e9 3d 87 f8 ff bb d6 fb 04 8a 10 5c d2 70 d9 cb}"}
{"name":"$genep3","value":"{57 56 8b f0 e8 70 fd ff ff 5e e8 6e 01 00 00 5f}"}
{"name":"$contep1","value":"{e9 02 47 83 c6 02 89 f2 83 f9 00}"}
{"name":"$contep2","value":"{e5 44 75 c1 8b 36 0c 44 4d c9 31 8b 8a d7 88 d8}"}
{"name":"$contep3","value":"{9c d1 d4 52 7b c5 99 29 1c d7 46 c5 f9 8c f8 e2}"}
{"name":"$contep4","value":"{e8 ef e4 bb 00 5d c3}"}

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 APT20140414_1PE.yar /path/to/suspicious/file

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

YARA ID
YARA-2025-1094
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