How secure are clipboards on Linux? #298
-
And this really detailed article: https://www.ctrl.blog/entry/clipboard-security.html |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no clipboard security on desktop Linux except in two known cases:
Even on GNOME Wayland which implements security restrictions for several dangerous APIs, an app can read the clipboard simply by being in the foreground, and this allows utilities such as wl-clipboard to work without any user notification or approval. Clipboard history is a separate issue entirely. In reality it is not any more dangerous than browser cookies, which also contain numerous secrets that can be trivially extracted by any unsandboxed app. If shoulder-surfing is a concern, then clipboard history should absolutely be turned off, but "saving sensitive clipboard content to disk" is not a real issue at all if you have disk encryption (which you absolutely should) — password managers also save sensitive data to disk. |
Beta Was this translation helpful? Give feedback.
There is no clipboard security on desktop Linux except in two known cases:
Even on GNOME Wayland which implements security restrictions for several dangerous APIs, an app can read the clipboard simply by being in the foreground, and this allows utilities such as wl-clipboard to work without any user notification or approval.
Clipboard history is a separate issue entirely. In reality it is not any more dangerous than browser cookies, which also contain numerous secrets that can be trivially extracted by any unsandboxed app. If shoulder-surfing is a concern, th…