Skip to content
AI / LLM Write-up Advanced

AI Kill Chain in Action: Devin AI Exposes Ports to the Internet with Prompt Injection

Devin AI has a tool that can expose any local port to the public internet, and an indirect prompt injection could trick it into publishing sensitive files or services. The text does not demonstrate an actual exploit, only the capability.

embracethered.com

Published on embracethered.com

Today let’s explore Devin’s system prompt a bit more. Specifically, an interesing tool that I discovered when reading through it.

The author, on embracethered.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AI agent has a tool that publishes local ports publicly without requiring explicit user confirmation or restricting which ports and services can be exposed.

Impact

An attacker could use indirect prompt injection to make Devin publish sensitive files or internal services to the internet, though the text does not show this being carried out.

What the attacker needed

Indirect prompt injection into Devin's input; Devin has the port-exposing tool available

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Devin is an AI coding assistant that can run commands and use tools. One of its hidden tools can make a service running on the same machine reachable from the internet. If an attacker can slip instructions into something Devin reads, such as a file or web page, the AI might follow them and expose private data.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.