<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:redhat:openshift:3.5:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3aredhatopenshift3.5/</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>Wed, 03 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3aredhatopenshift3.5/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Potential Container Escape via Modified release_agent File</title><link>https://feed.craftedsignal.io/briefs/2024-01-release-agent-container-escape/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-release-agent-container-escape/</guid><description>Modification of the CGroup release_agent file from inside a privileged container can allow an attacker with SYS_ADMIN capabilities to escalate privileges and escape to the host machine.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>This threat involves the modification of the <code>release_agent</code> file within a CGroup directory from inside a privileged container. A privileged container, typically running on Linux, is granted elevated privileges, including <code>SYS_ADMIN</code> capabilities. An attacker leveraging a privileged container mounts a CGroup directory and alters the <code>release_agent</code> file, which is a script executed on the host at the termination of any process within that CGroup. This can lead to privilege escalation and a container escape, compromising the underlying host system. This is related to CVE-2022-0492, a vulnerability that can be exploited through this technique. The Elastic Defend for Containers integration introduced in version 9.3.0 helps detect such modifications.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains access to a privileged container with <code>SYS_ADMIN</code> capabilities.</li>
<li>The attacker mounts a CGroup directory within the container.</li>
<li>The attacker modifies the <code>release_agent</code> file within the mounted CGroup directory, injecting malicious code.</li>
<li>A process within the container terminates, triggering the execution of the <code>release_agent</code> script on the host.</li>
<li>The host executes the attacker-controlled code contained in the modified <code>release_agent</code> file.</li>
<li>The attacker gains code execution on the host system.</li>
<li>The attacker leverages the gained code execution to escalate privileges on the host.</li>
<li>The attacker achieves a container escape and compromises the host.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to escape the container and gain arbitrary code execution on the host system. This can lead to a full compromise of the host, potentially affecting other containers and sensitive data residing on the machine. The impact can range from data exfiltration and denial of service to complete system takeover, depending on the permissions and access of the compromised host account.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &quot;Potential release_agent Container Escape Detected via Defend for Containers&quot; rule provided by Elastic Defend for Containers (version 9.3.0+) to detect malicious modifications of the <code>release_agent</code> file.</li>
<li>Monitor file changes on Linux hosts, specifically targeting the <code>release_agent</code> file, using the file integrity monitoring capabilities of your EDR or SIEM solution to surface unexpected modifications.</li>
<li>Reduce the attack surface by limiting the number of privileged containers and revoking unnecessary <code>SYS_ADMIN</code> capabilities from containers to reduce the risk of exploitation.</li>
<li>Review system logs and audit logs on the host for any signs of unauthorized access or privilege escalation attempts that coincide with the alert timestamp related to this attack to prevent further escalation.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">threat</category><category>container-escape</category><category>privilege-escalation</category><category>linux</category></item></channel></rss>