infected_08_26_18_shell_fun

YARA-2018-3632 Medium general Active

shell2 - file fun.php

infected_08_26_18_shell_fun.yar Valid Syntax
/*
   Yara Rule Set
   Author: Brian Laskowski
   Date: 2018-08-26
   Identifier: shell2
   Reference: https://github.com/Hestat/lw-yara/
*/

/* Rule Set ----------------------------------------------------------------- */

rule infected_08_26_18_shell_fun {
   meta:
      description = "shell2 - file fun.php"
      author = "Brian Laskowski"
      reference = "https://github.com/Hestat/lw-yara/"
      date = "2018-08-26"
      hash1 = "9d095e4f6a3f37c46a1aac4704da957c92fbde23feea3cfd1a0693522e3a73a8"
   strings:
      $s1 = "<?php /* Only For NassRawi , X-SHADOW" fullword ascii
      $s2 = "$OOO000000=urldeCode('" fullword ascii
   condition:
      ( uint16(0) == 0x3f3c and
         filesize < 50KB and
         ( all of them )
      ) or ( all of them )
}

Rule Metadata

description
shell2 - file fun.php
author
Brian Laskowski
reference
https://github.com/Hestat/lw-yara/
date
2018-08-26
hash1
9d095e4f6a3f37c46a1aac4704da957c92fbde23feea3cfd1a0693522e3a73a8

String Definitions

{"name":"$s1","value":"\"<?php \/* Only For NassRawi , X-SHADOW\" fullword ascii"}
{"name":"$s2","value":"\""}
{"name":"$OOO000000","value":"urldeCode('\" fullword ascii"}

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

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

YARA ID
YARA-2018-3632
Repository
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