Skip to content
MediumNewsLLM-specific

The dangers of AI agents unfurling hyperlinks and what to do about it

Published
Record updated
View JSON

Summary

The post explains how automatic link unfurling in Slack can enable data exfiltration when untrusted content, such as text injected through a prompt injection attack, causes an LLM-powered Slack App to render a hyperlink with chat data appended. Slack's unfurling request sends that appended data to the third-party server. The author then shows how to disable unfurling in a Slack App's message payload.

Mitigation

Set "unfurl_links" and "unfurl_media" to False in the message JSON, as shown in the source's create_message function (the source's code example is cut off after "unfurl_media": Fal).