<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sigma &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/sigma/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Thu, 01 Oct 2026 06:34:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://ptesc.tech/wp-content/uploads/2026/09/cropped-cropped-large_icon-32x32.png</url>
	<title>sigma &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Idea for a correlation rule in SIEM</title>
		<link>https://ptesc.tech/en/idea-for-a-correlation-rule-in-siem/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Mon, 29 Sep 2025 17:16:11 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[reverse]]></category>
		<category><![CDATA[sigma]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b8%d0%b4%d0%b5%d1%8f-%d0%b4%d0%bb%d1%8f-%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d0%b0-%d0%ba%d0%be%d1%80%d1%80%d0%b5%d0%bb%d1%8f%d1%86%d0%b8%d0%b8-%d0%b2-siem/</guid>

					<description><![CDATA[Idea for a SIEM correlation rule 💡 Although tracking the entire attack chain described in the posts above provides a complete picture, the strongest and simplest signal to implement is the user creation event itself. IF eventName = CreateUs…]]></description>
										<content:encoded><![CDATA[<p><strong>Idea for a SIEM correlation rule</strong> <strong>💡 </strong></p>
<p>Although tracking the entire attack chain described in the posts above provides a complete picture, the strongest and simplest signal to implement is the user creation event itself.</p>
<p>IF <code>eventName = CreateUser</code> AND <code>userIdentity</code> points to a Lambda function role (<code>userIdentity.inScopeOf.issuerType = AWS::Lambda::Function</code>), <br />
THEN generate a high-priority alert.</p>
<p>Given that creating users via Lambda functions is extremely rare and anomalous behavior, such a rule will have a very low false positive rate.</p>
<p><strong>Sigma rule:</strong></p>
<pre><code>title: Suspicious IAM User Creation by AWS Lambda Function
id: 700feb27-05a5-4ba1-ae80-2c8d0d3591eb
status: test
description: &gt;-
    Detects the creation or modification of an IAM user/credentials where the action is initiated by an AWS Lambda function&#039;s execution role.
    This is a highly anomalous behavior and a key indicator of the &quot;Persistence-as-a-Service&quot; technique,
    where an attacker uses a Lambda function (often exposed via an open API Gateway) to create backdoor users.
references:
    - https://securitylabs.datadoghq.com/articles/tales-from-the-cloud-trenches-the-attacker-doth-persist-too-much/
author: &#039;PT ESC&#039;
date: &#039;2025/09/20&#039;
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventName:
            - CreateUser
            - CreateAccessKey
            - AttachUserPolicy
            - UpdateLoginProfile
        userIdentity.inScopeOf.issuerType: &#039;AWS::Lambda::Function&#039;
    condition: selection
falsepositives:
    - Legitimate workflows that use Lambda to automatically create users (e.g., a custom registration portal). These functions should be added to the exceptions.
level: high
</code></pre>
<p>This experiment once again proved that monitoring the actions of the services themselves (not just users) is the key to cloud security. What other cloud persistence techniques have you encountered?</p>
<p><span class="hashtag">#detect</span> <span class="hashtag">#tip</span> <span class="hashtag">#sigma</span> <span class="hashtag">#reverse</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Detecting CVE-2025-33073</title>
		<link>https://ptesc.tech/en/detection-of-cve-2025-33073/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 27 Jun 2025 17:40:56 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[cve]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[sigma]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b2-%d0%bf%d1%80%d0%be%d0%b4%d0%be%d0%bb%d0%b6%d0%b5%d0%bd%d0%b8%d0%b5/</guid>

					<description><![CDATA[Continuing previous publications, we explain how to detect the CVE-2025-33073 vulnerability 🕵️‍♂️ 1️⃣ Monitor DNS queries with a Marshalled suffix In Reflection Relay attacks, the attacker forces services to perform DNS queries to spoofed n…]]></description>
										<content:encoded><![CDATA[<p><strong>Continuing </strong><a href="https://t.me/ptescalator/389" rel="noopener" target="_blank">previous publications</a><strong>, we explain how to detect the CVE-2025-33073 vulnerability</strong> 🕵️‍♂️</p>
<p>1️⃣<strong> Monitor DNS queries with a Marshalled suffix</strong></p>
<p>In Reflection Relay attacks, the attacker forces services to perform DNS queries to spoofed names with the pattern <code>1UWhRCA</code> + 37–45 Base64 characters. Records like <code>srv11UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA.example.com</code> or <code>localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA.example.com</code> are indicators of a Reflection Relay attempt (NTLM, Kerberos).</p>
<p><strong>• What to monitor</strong></p>
<p>All DNS queries where the hostname ends with the marshalled part (<code>1UWhRCA</code> + 37-45 Base64 characters).</p>
<p><strong>• Events</strong></p>
<p>Sysmon Event ID 22 (DNS queries on hosts).</p>
<p>DNS server events containing such queries.</p>
<p>2️⃣<strong> Catch LDAP searches with a marshalled suffix</strong></p>
<p>Reflection Relay triggers LDAP queries from the attacked host to the domain controller, in which the <code>name= </code>parameter contains a spoofed DNS name in the format <code>[hostname]1UWhRCA[Base64]</code>. This occurs when performing a Relay attack back onto the victim.</p>
<p><strong>• What to monitor:</strong></p>
<p>LDAP queries in which the <code>name=</code> parameter contains the construct: <br />
<code>&quot;[hostname]1UWhRCA[Base64 characters]&quot;</code></p>
<p><strong>• Events: </strong></p>
<p>Windows Security Event 1644 (&quot;A search was performed in Active Directory&quot;) on domain controllers.</p>
<p>3️⃣<strong> Know the mechanics of CVE-2025-33073 and Coerce attacks</strong></p>
<p><strong>How the vulnerability works:</strong></p>
<p>• Coerce attacks (PetitPotam, PrinterBug) force the victim to connect to a spoofed DNS name.<br />
• Windows mistakenly considers the request local due to the marshalled suffix, disabling NTLM and Kerberos checks.<br />
• This allows the attacker to relay the session back to the victim to gain RCE with SYSTEM privileges.</p>
<p><strong>Examples of Coerce attacks:</strong></p>
<p><strong>• PetitPotam:</strong> coercion via a vulnerability in EFS RPC, forcing LSASS to initiate authentication;<br />
<strong>• PrinterBug:</strong> forced sending of NTLM hashes via a vulnerability in the Windows print service (MS-RPRN).</p>
<p>4️⃣ <strong>Rely on examples of triggered correlation rules</strong></p>
<p>When implementing CVE-2025-33073 together with PetitPotam to dump credentials, the following correlation rules triggered:</p>
<p><strong>• Coerce_Auth: </strong>the rule detects Coerce attacks on a host aimed at intercepting the machine account hash of the attacked host, and also attempts to determine from the name of the pipe used which attack technique is being employed (netdfs = DFSCoerce; spoolss = PrinterBug; fssagentrpc = ShadowCoerce; efsrpc, lsarpc, samr, lsass, netlogon = PetitPotam; msftewds = WSPCoerce) and which tool is being used.</p>
<p><strong>• SVCCTL_Connection:</strong> the rule detects a connection to the named pipe <code>svcctl</code>, which is responsible for remote configuration of Windows services on hosts via the Service Control Manager, which can lead to arbitrary code execution;</p>
<p><strong>•</strong> <strong>Remote_Password_Dump:</strong> the rule detects a remote password dump via access to the named pipe <code>WINREG</code>.</p>
<p>5️⃣ <strong>Use examples of SIGMA rules</strong></p>
<p>If you don&#8217;t have MaxPatrol SIEM, here are some examples of simple SIGMA rules:</p>
<p><a href="https://telegra.ph/SIGMA-pravilo-dlya-Sysmon-Event-ID-22-06-27" rel="noopener" target="_blank">For Sysmon Event ID 22</a>.</p>
<p><a href="https://telegra.ph/SIGMA-pravilo-dlya-Windows-Security-Event-1644-06-27" rel="noopener" target="_blank">For Windows Security Event 1644</a>.</p>
<p>6️⃣ <strong>Use our public Suricata </strong><a href="https://rules.ptsecurity.com/view/rules/ptopen-windows.rules#L53" rel="noopener" target="_blank">signatures</a><strong> </strong>to detect this attack</p>
<figure class="wp-block-image"><img width="1024" height="783" src="https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-1024x783.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-1024x783.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-300x229.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-768x587.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="730" src="https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-1024x730.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-1024x730.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-300x214.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-768x548.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56.jpg 1063w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#detect</span> <span class="hashtag">#cve</span> <span class="hashtag">#win</span> <span class="hashtag">#sigma</span> <span class="hashtag">#rules</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Here&#039;s the continuation</title>
		<link>https://ptesc.tech/en/heres-the-continuation/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Mon, 21 Oct 2024 18:27:29 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[sigma]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%bb%d0%be%d0%b2%d0%b8%d1%82%d0%b5-%d0%bf%d1%80%d0%be%d0%b4%d0%be%d0%bb%d0%b6%d0%b5%d0%bd%d0%b8%d0%b5/</guid>

					<description><![CDATA[🤔 Remember, in a couple of previous posts we described simple and slightly more complex approaches to detecting malware using the example of an email that landed in our SOC and an attachment from it? Here's the continuation 👇 If a similar m…]]></description>
										<content:encoded><![CDATA[<p>🤔 Remember, in a couple of previous posts we described <a href="https://t.me/ptescalator/113" rel="noopener" target="_blank">simple</a> and slightly <a href="https://t.me/ptescalator/124" rel="noopener" target="_blank">more complex</a> approaches to detecting malware using the example of an email that landed in our SOC and an attachment from it? </p>
<p><strong>Here&#8217;s the continuation</strong> 👇</p>
<p>If a similar malware managed to get past all the lines of defense, land on a user&#8217;s machine, and start working there, not all is lost!</p>
<p>You did notice that at the first stage the malicious BAT file copied and renamed a couple of system files (<code>cmd.exe</code> and <code>certutil.exe</code>), which it then used?</p>
<p>Detecting such behavior is easy to automate 😏</p>
<p>A well-configured Microsoft Sysmon service allows you not only to log process launches and command-line parameters, but also to capture such interesting data from file properties as its original name (<em>see screenshots 1 and 2</em>).</p>
<p>Which means it&#8217;s enough to simply compare the values of two fields in an event to detect the use of this hacking technique in time (it&#8217;s called &#8220;<a href="https://attack.mitre.org/techniques/T1036/003/" rel="noopener" target="_blank">Masquerading: Rename System Utilities</a>&#8220;, by the way).</p>
<p>As part of the MaxPatrol SIEM expertise packages, we have a rule for this case as well — <code>Copied_or_Renamed_Executable</code>.</p>
<p>And if you don&#8217;t have our product, you can use one of the SIGMA rules <a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_renamed_binary_highly_relevant.yml" rel="noopener" target="_blank">proc_creation_win_renamed_binary_highly_relevant</a> as a basis for your detections.</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_96@21-10-2024_18-27-29.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#Detect</span> <span class="hashtag">#Sigma</span> <span class="hashtag">#Rules</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
