<?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>Docker Engine - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/docker-engine/</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>Fri, 07 Aug 2026 15:16:51 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/docker-engine/feed.xml" rel="self" type="application/rss+xml"/><item><title>Suspicious Docker Build Execution in Temporary Directories</title><link>https://feed.craftedsignal.io/briefs/2026-08-suspicious-docker-build/</link><pubDate>Fri, 07 Aug 2026 15:16:51 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-suspicious-docker-build/</guid><description>Detection of docker build commands executed on Dockerfiles located in temporary directories, a common indicator of unauthorized container deployment or persistence attempts on Linux hosts.</description><content:encoded><![CDATA[<p>Security researchers have identified a pattern of suspicious activity involving the use of the 'docker build' command on Linux systems. Attackers often stage malicious Dockerfiles within temporary directories such as /tmp to minimize their footprint or obfuscate their activity. Because the /tmp directory is typically used for transient files and is rarely a legitimate location for software builds, this behavior is a high-fidelity indicator of potential unauthorized container deployment or post-exploitation activities. This detection is particularly relevant for Linux environments using the Docker Engine, where attackers may seek to gain additional persistence or facilitate further command execution by leveraging the container runtime. Defenders should monitor for command-line arguments that reference the /tmp path during docker build operations to identify potential malicious intent early in the kill chain.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains initial access to the Linux host via an exploit or stolen credentials.</li>
<li>Attacker downloads or creates a malicious Dockerfile.</li>
<li>Attacker places the Dockerfile into a writable temporary directory like /tmp.</li>
<li>Attacker executes 'docker build' pointing to the temporary directory using the -f flag or by executing from within that path.</li>
<li>The Docker daemon processes the malicious configuration, often pulling malicious base images or executing internal commands during the build phase.</li>
<li>The container image is successfully built and registered in the local Docker engine.</li>
<li>Attacker triggers the new container to execute malicious code, achieving persistence or gaining a sandbox environment for further operations.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to establish persistent containerized backdoors, bypass host-level security controls, or gain a stable execution environment for secondary tools. This activity is frequently observed in Linux Post-Exploitation scenarios where the attacker attempts to expand their influence within the compromised infrastructure.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to detect suspicious 'docker build' executions originating from temporary directories.</li>
<li>Establish a process for reviewing developer-approved usage of build environments to reduce noise from legitimate development activities.</li>
<li>Enable Sysmon for Linux (or equivalent EDR telemetry) to capture full command-line arguments and parent process information, which is critical for identifying the origin of the build command.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>linux</category><category>container-security</category><category>persistence</category></item></channel></rss>