<?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>Su - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/su/</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, 20 Jul 2026 12:44:03 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/su/feed.xml" rel="self" type="application/rss+xml"/><item><title>Potential Privilege Escalation via SUID/SGID Proxy Execution on Linux</title><link>https://feed.craftedsignal.io/briefs/2026-07-linux-suid-sgid-privesc/</link><pubDate>Mon, 20 Jul 2026 12:44:03 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-linux-suid-sgid-privesc/</guid><description>Attackers may exploit SUID/SGID binaries like pkexec, su, or sudo on Linux systems to execute commands with elevated privileges, by identifying instances where a process runs with root privileges (user ID 0 or group ID 0) while the real user or group ID is non-root, allowing a low-privilege foothold to gain full system control.</description><content:encoded><![CDATA[<p>This threat brief details how attackers can achieve privilege escalation on Linux systems by abusing binaries with the SUID (Set User ID) or SGID (Set Group ID) bit set. This technique allows a process to run with the permissions of the file owner (usually root) or group, regardless of the user who executed it. Attackers, having already established a low-privileged foothold, identify and exploit vulnerabilities or misconfigurations in these SUID/SGID binaries, such as <code>pkexec</code>, <code>su</code>, or <code>sudo</code>. By manipulating environment variables or providing crafted inputs, they can coerce these binaries to execute arbitrary commands or spawn a shell with root privileges, thereby escalating their access to full system control. This method is a common way for adversaries to transition from initial access to a persistent, high-privileged presence on a compromised system.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial low-privileged access to a Linux system, often through a vulnerable service, compromised credentials, or an exploit.</li>
<li>The attacker performs reconnaissance to identify SUID/SGID binaries present on the system (e.g., <code>pkexec</code>, <code>su</code>, <code>sudo</code>, <code>fusermount3</code>, <code>newuidmap</code>).</li>
<li>The attacker researches known vulnerabilities, misconfigurations, or exploitation techniques specific to the identified SUID/SGID binaries (e.g., environment variable manipulation for <code>pkexec</code>).</li>
<li>A crafted exploit is prepared, which typically involves setting specific environment variables, passing malicious arguments, or using input redirection.</li>
<li>The SUID/SGID binary is executed by the low-privileged user, triggering the exploit.</li>
<li>Due to the SUID/SGID bit, the executed binary runs with elevated privileges (e.g., as UID 0/root) while the attacker's real user ID remains non-root.</li>
<li>The exploit causes the SUID/SGID binary to execute an arbitrary command or spawn a shell (e.g., <code>/bin/sh -p</code>) with root privileges.</li>
<li>The attacker gains full root access to the compromised system, allowing for system modification, data access, and further lateral movement or persistence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>If this privilege escalation technique succeeds, an attacker gains complete control over the compromised Linux system. This includes the ability to install rootkits, modify system configurations, create new privileged accounts, access sensitive data, exfiltrate information, and deploy additional malware such as ransomware. While specific victim counts or targeted sectors are not detailed for this general technique, organizations across all sectors using Linux systems are vulnerable if their SUID/SGID binaries are misconfigured or unpatched. The primary damage is the loss of system integrity and confidentiality, potentially leading to significant operational disruption and data breaches.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM and tune for your environment to detect suspicious SUID/SGID proxy executions.</li>
<li>Enable comprehensive process creation logging (e.g., Elastic Defend, Linux Auditd) to capture <code>process.user.id</code>, <code>process.real_user.id</code>, <code>process.group.id</code>, <code>process.real_group.id</code>, <code>Image</code>, <code>ParentImage</code>, and <code>CommandLine</code> for accurate detection.</li>
<li>Investigate any triggered alerts by correlating events with TTY/SSH sessions, authentication logs, and polkit policy outcomes, as suggested in the Elastic investigation guide.</li>
<li>Immediately isolate affected hosts, terminate malicious SUID/SGID child processes, and temporarily remove the setuid/setgid bit from any abused binaries (e.g., <code>chmod u-s /usr/bin/pkexec</code>).</li>
<li>Reinstall and verify the integrity of abused SUID/SGID binaries and packages (e.g., <code>polkit</code> for <code>pkexec</code>) and remove any attacker-created artifacts from <code>/tmp</code>, <code>/var/tmp</code>, and user home directories.</li>
<li>Audit and reduce the SUID/SGID attack surface by removing the setuid bits from rarely used binaries (e.g., <code>chfn</code>, <code>chsh</code>, <code>newgrp</code>, <code>ssh-keysign</code>) and restricting <code>pkexec</code> via <code>polkit</code> rules.</li>
<li>Strengthen monitoring by enabling AppArmor/SELinux confinement for SUID/SGID helpers, adding <code>auditd</code> rules for execution of setuid binaries and writes to <code>/tmp</code> by root, and enforcing least-privilege <code>sudoers</code> configurations.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>privilege-escalation</category><category>linux-security</category><category>defense-evasion</category><category>persistence</category><category>system-exploitation</category></item></channel></rss>