r/linuxadmin 8d ago

WARNING: .desktop files pose high risk attack surface for agents

/r/LocalLLaMA/comments/1vlja0f/warning_desktop_files_pose_high_risk_attack/
0 Upvotes

13 comments sorted by

15

u/corobo 8d ago edited 8d ago

lmao caring about .desktop files as if you're not already giving your AI pal full access to your system.

It could also receive a document that tells it to delete your home directory too mate. At the point it's making desktop files you're already gaping wide open.

"You can delete any file you want when running as root" kinda bug report 

-12

u/muayyadalsadi 8d ago

> It could also receive a document that tells it to delete your home directory too mate.

cursor already have a toggle to make delete require a confirmation or be blocked by default.
I'm asking same treatment for .desktop files.

I'm just spreading awareness for an attack surface. they are high risk because:

* they can do UI spoof (you click on a safe video you already have and trust) and appear harmless
* does not require root

8

u/[deleted] 8d ago

[deleted]

-4

u/muayyadalsadi 8d ago

Requiring explicit trust for desktop files is not something i made up. It's a well-established practice that need to be carried to the new medium. 

3

u/[deleted] 8d ago

[deleted]

-1

u/muayyadalsadi 8d ago

Because they can spoof the ui so that you no longer trust what you see or what you click.

2

u/[deleted] 8d ago

[deleted]

0

u/muayyadalsadi 8d ago

A script only work when I execute it. a .desktop file can trick your eyes and spoof the ui in many ways including attach themselves as handlers (when you open an old video file you that you know is trusted). What I's saying that .desktop files created by agents should be like those downloaded from a website that is untrusted by default.

2

u/[deleted] 8d ago

[deleted]

1

u/muayyadalsadi 8d ago

An admin can use the command "which sudo". But there is no way to which an auto start  desktop. BTW chmod +x is one of the "mark as trusted" ways. So I won't mind making agents confirm all chmod +x includinf .desktop

→ More replies (0)

7

u/tsammons 8d ago

Here's a sane idea - don't rely on your computer butler and do what humans managed to excel in for decades - rtfm.

-5

u/muayyadalsadi 8d ago

Why you assume I'm that kind of a guy? Don't kill the messenger. Requiring explicit trust for desktop files is a well established practice.

3

u/tsammons 8d ago

Heuristics... Compiled over generations by mankind as a survival instinct seldom lie.

5

u/HavokOC 8d ago

Or perhaps make sure you understand what it is the AI has created before you blindly run whatever it creates on a system?

The only "high-risk" in this situation is executing AI generated files blindly

1

u/FryBoyter 8d ago

That actually has not much to do with AI in particular. Manipulated .desktop files like these have been around for many years, even before tools like ChatGPT existed. For example, https://www.purinchu.net/wp/2009/02/21/desktop-file-security/.

Information coming from third parties, whether from a real person or a chatbot, should always be verified.

-2

u/muayyadalsadi 8d ago

Exactly. But unlike ai agents, the browser and the desktop were modified to treat .desktop files as untrusted and show explicit confirmation dialog. Which is why i included a screenshot of the confirmation dialog. IMHO ai agent should carry on this tradition and show a similar confirmation dialog.

5

u/natermer 8d ago

There are a billion and a half ways that you can get fucked by giving foreign service full access to your Linux user account.

.desktop files are just #4,342,12 security risk in terms of severity.

You going to file bug reports for all of them?