<?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>Llm-Agent - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/llm-agent/</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>Thu, 18 Jun 2026 15:08:53 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/llm-agent/feed.xml" rel="self" type="application/rss+xml"/><item><title>PraisonAI: IMAP Command Injection via Unsanitized Email Search Parameters</title><link>https://feed.craftedsignal.io/briefs/2026-06-praisonai-imap-injection/</link><pubDate>Thu, 18 Jun 2026 15:08:53 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-praisonai-imap-injection/</guid><description>A command injection vulnerability (CVE-NONE) exists in PraisonAI's `praisonaiagents` package (versions &lt;= 1.6.48) where unsanitized LLM-controlled parameters are directly interpolated into IMAP SEARCH commands, allowing attackers to craft malicious prompts to inject arbitrary IMAP commands, leading to unauthorized email exfiltration, deletion, or denial-of-service when email tools are configured.</description><content:encoded><![CDATA[<p>A critical command injection vulnerability has been identified in the <code>praisonaiagents</code> package, affecting versions up to and including 1.6.48, developed by PraisonAI. This flaw stems from the improper sanitization of LLM-controlled parameters (such as <code>from_addr</code>, <code>subject</code>, <code>query</code>, <code>search_id</code>, and <code>message_id</code>) when constructing IMAP SEARCH commands. Attackers can leverage this by crafting malicious prompts that, when processed by an LLM agent configured with email tools, cause the agent to execute arbitrary IMAP commands on the backend mail server. This vulnerability, actively reported in June 2026, poses a significant risk to organizations using PraisonAI agents with email integration, potentially leading to sensitive data exfiltration, permanent email deletion, or denial-of-service by terminating IMAP sessions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious prompt containing an IMAP command injection payload, such as a double-quote followed by an IMAP command (e.g., <code>&quot; LOGOUT</code>).</li>
<li>An LLM agent, configured with <code>EMAIL_ADDRESS</code> and <code>EMAIL_PASSWORD</code> environment variables, processes the crafted prompt as part of its normal operation.</li>
<li>The LLM agent calls an internal <code>praisonaiagents</code> tool function (e.g., <code>search_emails</code>, <code>reply_email</code>, or <code>archive_email</code>) passing the malicious input as a parameter (e.g., <code>from_addr</code>, <code>subject</code>, <code>query</code>, <code>search_id</code>).</li>
<li>The <code>praisonaiagents</code> tool function dynamically constructs an IMAP <code>SEARCH</code> command by directly interpolating the unsanitized parameter into an f-string, allowing the attacker's double-quote to prematurely close the legitimate quoted string.</li>
<li>The constructed IMAP command string, now containing an injected IMAP command (e.g., <code>LOGOUT</code>, <code>SELECT INBOX</code>, <code>FETCH 1:* (BODY[])</code>, <code>DELETE 1:*</code>, <code>EXPUNGE</code>), is sent by the <code>praisonaiagents</code> process to the configured IMAP server.</li>
<li>The IMAP server receives the crafted command string, parses it, and executes both the legitimate <code>SEARCH</code> portion (if any) and the injected IMAP command.</li>
<li>The injected IMAP command performs an unauthorized action on the IMAP server, such as terminating the IMAP session, switching to another mailbox, fetching email contents, modifying email flags, or deleting messages.</li>
<li>The attacker achieves their objective, which could include exfiltrating sensitive email data, causing denial-of-service, or permanently deleting emails from the compromised mailbox.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability grants attackers significant control over the configured IMAP mailbox. Attackers can terminate IMAP connections, causing a denial-of-service against the agent's email capabilities. More critically, arbitrary IMAP commands can be injected, allowing the attacker to enumerate mailboxes (LIST), switch to different folders (SELECT), fetch the contents of any email (FETCH), modify email flags (STORE), move emails (COPY/MOVE), or permanently delete emails (DELETE/EXPUNGE). This leads to unauthorized email data exfiltration from potentially all accessible mailboxes, or catastrophic data loss through permanent deletion of email archives. The attack specifically targets email-capable agents deployed with the documented <code>EMAIL_ADDRESS</code> and <code>EMAIL_PASSWORD</code> environment variables, indicating a direct threat to sensitive communications.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately update the <code>praisonaiagents</code> package to a version greater than 1.6.48 (when available) or apply the recommended remediation of properly escaping double-quote characters or using IMAP literal syntax for all user-controlled parameters (<code>from_addr</code>, <code>subject</code>, <code>query</code>, <code>search_id</code>, <code>message_id</code>).</li>
<li>Monitor IMAP server logs for suspicious commands, specifically looking for unexpected IMAP keywords (e.g., <code>LOGOUT</code>, <code>SELECT</code>, <code>FETCH</code>, <code>DELETE</code>, <code>EXPUNGE</code>) embedded within <code>SEARCH</code> criteria, as outlined in the Sigma rules above.</li>
<li>Ensure IMAP server logging is enabled and captures full commands and arguments, which is essential to activate the Sigma rules in this brief.</li>
<li>Restrict the permissions of the IMAP account used by <code>praisonaiagents</code> to the bare minimum necessary for its operations (e.g., read-only access to specific folders).</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>command-injection</category><category>llm-agent</category><category>imap</category><category>email</category><category>data-exfiltration</category></item><item><title>PraisonAI: Server-Side Request Forgery (SSRF) in SearxNG / search_web Tools via Attacker-Controlled searxng_url Parameter</title><link>https://feed.craftedsignal.io/briefs/2026-06-praisonai-ssrf/</link><pubDate>Thu, 18 Jun 2026 14:56:56 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-praisonai-ssrf/</guid><description>A Server-Side Request Forgery (SSRF) vulnerability in PraisonAI's `praisonaiagents` package (versions prior to 1.6.61), specifically within the `searxng_search` and `search_web` tools, allows an attacker to exploit prompt injection by controlling the `searxng_url` parameter, enabling the server to make requests to arbitrary internal endpoints, read responses, perform network enumeration, and potentially expose cloud instance credentials.</description><content:encoded><![CDATA[<p>A significant Server-Side Request Forgery (SSRF) vulnerability has been identified in PraisonAI's <code>praisonaiagents</code> package, affecting versions prior to 1.6.61. This flaw stems from a lack of validation on the <code>searxng_url</code> parameter within the <code>searxng_search</code> and <code>search_web</code> tools, which are part of the default agent toolset. Attackers can leverage prompt injection techniques to manipulate the <code>searxng_url</code> parameter, forcing the agent's underlying <code>requests.get()</code> function to make unvalidated HTTP requests to internal systems. This allows for reading responses from internal services and APIs, performing internal network enumeration, and potentially accessing cloud instance metadata endpoints (e.g., 169.254.169.254) to expose sensitive IAM credentials or other system information. The vulnerability does not require misconfiguration and is directly exploitable through attacker-controlled content ingested by the agent.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Attacker Crafts Malicious Content</strong>: An attacker embeds a carefully constructed prompt into content (e.g., a web page, file, or chat message) that an <code>praisonaiagents</code> LLM agent is likely to ingest.</li>
<li><strong>Agent Ingests Malicious Prompt</strong>: The <code>praisonaiagents</code> LLM agent processes the attacker-controlled content, which includes instructions designed to coerce it into calling its <code>search_web</code> or <code>searxng_search</code> tool.</li>
<li><strong>Agent Calls Tool with Malicious Parameter</strong>: Triggered by the prompt, the agent invokes <code>search_web(...)</code> or <code>searxng_search(...)</code>, passing an attacker-specified internal URL (e.g., <code>http://127.0.0.1:19998/admin/secrets</code> or <code>http://169.254.169.254/latest/meta-data/</code>) as the <code>searxng_url</code> parameter.</li>
<li><strong>Unvalidated HTTP Request Made</strong>: The Python code within <code>src/praisonai-agents/praisonaiagents/tools/searxng_tools.py</code> or <code>src/praisonai-agents/praisonaiagents/tools/web_search.py</code> receives the <code>searxng_url</code> and uses it directly in <code>requests.get()</code> without any scheme, host, or port validation.</li>
<li><strong>Server Performs Internal Request</strong>: The server hosting the <code>praisonaiagents</code> instance attempts to connect to the specified internal endpoint, effectively turning the agent into a proxy for the attacker.</li>
<li><strong>Internal Response Captured and Returned</strong>: If the internal endpoint responds, its HTTP response body is captured by the agent tool, parsed (specifically for a JSON <code>results</code> key), and returned into the agent's context.</li>
<li><strong>Data Exfiltration/Enumeration</strong>: The attacker can then coerce the agent (via further prompt injection or subsequent tool calls) to exfiltrate the captured internal data or to continue enumerating internal services based on error responses from closed ports.</li>
<li><strong>Credential Exposure</strong>: In cloud environments, successful access to the instance metadata endpoint (<code>169.254.169.254</code>) can lead to the exposure of IAM role credentials, allowing for further compromise of cloud resources.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This SSRF vulnerability significantly compromises the security of <code>praisonaiagents</code> deployments. Any agent configured with the default <code>search_web</code> tool and capable of ingesting untrusted content (such as browsing the web, reading files, or processing external messages) is at risk. Attackers can gain unauthorized access to internal services and APIs, potentially reading sensitive data from administration panels or internal microservices that return JSON. The ability to distinguish between open and closed internal ports allows for comprehensive internal network enumeration, mapping out the internal infrastructure. Crucially, the reachability of cloud instance metadata endpoints (e.g., AWS IMDS) presents a high risk of IAM credential theft, which could lead to full compromise of the cloud environment. There are no known instances of active exploitation in the wild, but the existence of a public PoC increases the likelihood of future attacks.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch <code>praisonaiagents</code> immediately</strong>: Upgrade the <code>praisonaiagents</code> package to version 1.6.61 or later to remediate CVE-2026-XXXX.</li>
<li><strong>Deploy Sigma rules</strong>: Implement the provided Sigma rules (<code>Detect Outbound PraisonAI Connections to Internal/Metadata IPs</code> and <code>Detect PraisonAI Process Execution</code>) into your SIEM to identify suspicious activity.</li>
<li><strong>Implement egress filtering</strong>: Configure network egress filtering at the host or network perimeter to block <code>praisonaiagents</code> processes from initiating connections to RFC1918 private IP ranges and the cloud instance metadata IP <code>169.254.169.254</code>.</li>
<li><strong>Monitor outbound network connections</strong>: Enable detailed logging for all outbound network connections from systems running <code>praisonaiagents</code> to detect anomalous destinations, especially the IP address <code>169.254.169.254</code>.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>ssrf</category><category>llm-agent</category><category>prompt-injection</category><category>praisonai</category><category>python</category><category>ghsa</category></item></channel></rss>