infected_08_26_18_shell1_index
YARA-2018-3631
Medium
general
Active
shell1 - file index.php
infected_08_26_18_shell1_index.yar
Valid Syntax
/*
Yara Rule Set
Author: Brian Laskowski
Date: 2018-08-26
Identifier: shell1
Reference: https://github.com/Hestat/lw-yara/
*/
/* Rule Set ----------------------------------------------------------------- */
rule infected_08_26_18_shell1_index {
meta:
description = "shell1 - file index.php"
author = "Brian Laskowski"
reference = "https://github.com/Hestat/lw-yara/"
date = "2018-08-26"
hash1 = "4b00a6c47568876d81d3ffc1b9ae3721ffc4e91086f86d266526853d17e56c88"
strings:
$s1 = "header(\"location: 1.php?cmd=login_submit&id=$praga$praga&session=$praga$praga\");" fullword ascii
condition:
( uint16(0) == 0x3f3c and
filesize < 1KB and
( all of them )
) or ( all of them )
}
rule infected_08_26_18_shell1_ws00 {
meta:
description = "shell1 - file ws00.php"
author = "Brian Laskowski"
reference = "https://github.com/Hestat/lw-yara/"
date = "2018-08-26"
hash1 = "68bcfb4a9fe324ebbeed2e1c87e5670f5a776ea030d983a9d38fa8948d56a43d"
strings:
$s1 = "eval($_(" fullword ascii
$s2 = "$_=\"\\x62\\x61\\x73\\x65\\x36\\x34\\x5f\\x64\\x65\\x63\\x6f\\x64\\x65\";" fullword ascii
$s3 = "/*.*/"
$s4 = "<?php"
condition:
( uint16(0) == 0x3f3c and
filesize < 1KB and
( all of them )
) or ( all of them )
}
Rule Metadata
description
shell1 - file index.php
author
Brian Laskowski
reference
https://github.com/Hestat/lw-yara/
date
2018-08-26
hash1
4b00a6c47568876d81d3ffc1b9ae3721ffc4e91086f86d266526853d17e56c88
String Definitions
{"name":"$s1","value":"\"header(\\\"location: 1.php?cmd=login_submit&id="}
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_shell1_index.yar /path/to/suspicious/file # Scan a directory recursively yara -r infected_08_26_18_shell1_index.yar /path/to/directory/ # Scan with metadata output yara -m infected_08_26_18_shell1_index.yar target_file # Scan process memory (Linux) yara infected_08_26_18_shell1_index.yar /proc/[pid]/exe
Integration Examples
Python (yara-python)
import yara
rules = yara.compile(filepath='infected_08_26_18_shell1_index.yar')
matches = rules.match('/path/to/file')
ClamAV Integration
clamscan --yara-rules=infected_08_26_18_shell1_index.yar /path/to/scan
Rule Information
YARA ID
YARA-2018-3631
Author
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
Related Rules
Export Options
Similar Rules in general
YARA-2023-0001
CRI
Detect_Mimic_Ransomware
Detect_Mimic_Ransomware
YARA-2023-0002
MED
SystemBC_malware
Detect_SystemBC
YARA-2023-0003
MED
detect_catB
detect_CatB_ransomware
YARA-2022-0001
MED
detect_Typhon_Stealer
detect_Typhon_Stealer
YARA-2023-0004
MED
Nosu_stealer
Detect_Nosu_stealer
YARA-2022-0002
MED
detect_Lumma_stealer
detect_Lumma_stealer
YARA-2022-0003
MED
detect_StrelaStealer
detect_StrelaStealer
YARA-2022-0004
MED
detect_silence_Downloader
detect_silence_Downloader