| Título | andreashappe cochise v0.4.1 RCE |
|---|
| Descrição | Cochise is an LLM-driven pentest agent that connects to target machines via SSH. Two vulnerabilities combine to enable a second-stage remote code execution chain:
SSH host key verification is explicitly disabled (known_hosts=None), allowing man-in-the-middle attacks and connections to attacker-controlled SSH servers without any warning.
Raw SSH command output (including merged stderr) is appended directly to the LLM conversation history as a tool message with no filtering, sanitization, or taint marking. The LLM then generates and executes subsequent commands based on this untrusted input.
An attacker who controls a machine that Cochise connects to can inject prompt-injection text into the SSH session output, causing the LLM to generate malicious commands that Cochise will execute. |
|---|
| Fonte | ⚠️ https://github.com/andreashappe/cochise/issues/13 |
|---|
| Utilizador | ez-lbz (UID 87033) |
|---|
| Submissão | 04/08/2026 10h23 (há 1 mês) |
|---|
| Moderação | 12/09/2026 22h30 (1 month later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 403205 [andreashappe cochise até 0.4.1 SSH Host Key ssh_connection.py asyncssh.connect Autenticação fraca] |
|---|
| Pontos | 20 |
|---|