Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post prop and render option for unsafe links #133

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

crspeller
Copy link
Member

@crspeller crspeller commented Feb 6, 2024

Summary

Unsafe links can potentially be generated by LLMs in the Mattermost AI plugin. For example a prompt injection could occour that tells the AI to create a malicious link that contains private data in the query paramenter: http://badserver.com/all/my?private=data

This PR adds a post prop and rendering options to mitigate the risk of links from prompt injections.

Related PRs

Server: mattermost/mattermost#26098
Webapp: mattermost/mattermost#26129
Mobile: mattermost/mattermost-mobile#7815

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crspeller crspeller merged commit a952ed5 into master Feb 15, 2024
4 checks passed
@crspeller crspeller deleted the restrict-post-rendering branch February 15, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants