<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Kibana 9.4.0+ - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/kibana-9.4.0+/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 27 Jul 2026 15:31:41 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/kibana-9.4.0+/feed.xml" rel="self" type="application/rss+xml"/><item><title>Detection of Rare PowerShell Scripts on Windows Systems</title><link>https://feed.craftedsignal.io/briefs/2026-07-rare-powershell-script/</link><pubDate>Mon, 27 Jul 2026 15:31:41 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-rare-powershell-script/</guid><description>Elastic's machine learning job detects rare PowerShell script executions on Windows hosts, identified by their script block hash, indicating potential malware activity or persistence mechanisms that deviate from an established baseline.</description><content:encoded><![CDATA[<p>Elastic has developed a machine learning rule to identify the execution of rare PowerShell scripts on Windows systems, leveraging script block hashes to detect deviations from established environmental baselines. This detection method focuses on scripts that have rarely or never been observed within a specific Windows host's historical activity, differentiating it from entropy-based anomaly detection. The objective is to uncover potentially malicious activity such as malware execution, the establishment of persistence mechanisms, or other suspicious behaviors that leverage PowerShell. This rule is integrated into the Elastic security platform, requiring specific ML jobs and data from the Windows integration to be active in Kibana version 9.4.0 or higher. While the rule identifies unusual behavior, false positives may occur with newly installed legitimate programs or infrequently run legitimate scripts.</p>
<h2 id="attack-chain">Attack Chain</h2>
<p>This brief describes a detection methodology rather than a specific attack chain. The Elastic machine learning rule is designed to identify the <em>execution</em> phase of an attack, specifically focusing on the rarity of PowerShell script blocks. When an attacker executes a novel or infrequently used PowerShell script, whether for initial payload delivery, command and control, persistence, or data exfiltration, this ML rule aims to flag the anomalous execution. It does not cover the initial access vector but rather the post-exploitation activity where PowerShell is often heavily utilized. The detection focuses on the inherent unusualness of the script itself within the context of the monitored environment.</p>
<h2 id="impact">Impact</h2>
<p>The successful execution of rare PowerShell scripts, if malicious, can lead to severe consequences, including system compromise, data theft, and the deployment of ransomware. Such scripts are frequently used by threat actors for various post-exploitation activities like privilege escalation, lateral movement, establishing persistence, or directly executing payloads. If this activity goes undetected, attackers can maintain a foothold within the network, escalate privileges, exfiltrate sensitive data, disrupt operations through ransomware, or deploy destructive malware. Early detection of such anomalous PowerShell usage is critical for containing potential breaches and mitigating their impact before significant damage occurs.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the <code>v3_windows_rare_script_ea</code> machine learning job to your Elastic environment to enable this detection rule.</li>
<li>Ensure the Elastic Agent System <code>windows</code> integration is properly configured and collecting PowerShell script block logs on all Windows hosts.</li>
<li>Upon detection, investigate the PowerShell script block hash by retrieving the full script content and examining it for malicious indicators using tools like VirusTotal, Hybrid-Analysis, or Any.run.</li>
<li>Analyze the process execution chain (parent process tree) of the PowerShell process flagged by the rule to determine its origin and legitimacy.</li>
<li>Review the <code>user.name</code> field associated with the alert to determine if the activity is part of an expected workflow for that user.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>windows</category><category>machine-learning</category><category>powershell</category><category>execution</category><category>threat-detection</category></item></channel></rss>