← Back to SOC feed Coverage →

PM Email Sent By PHP Script

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-06-22T11:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may use PHP scripts to send phishing emails as part of initial compromise or credential harvesting. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential spear-phishing campaigns or malicious script execution early.

YARA Rule

rule PM_Email_Sent_By_PHP_Script
{
  strings:
    $php1="X-PHP-Script" fullword
    $php2="X-PHP-Originating-Script" fullword
    $php3="/usr/bin/php" fullword

  condition:
    any of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

False Positive Guidance

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/MALW_Mailers.yar