[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Can AppArmor prevent sudo password sniffing through abuse of X Windows System?

Quote https://www.whonix.org/wiki/Dev/Permissions#X_Windows_System

X Windows System

Any graphical application running under X Windows System (X11) can see what any user is typing in any other application for any user. [1] For example, if user user running X11 would run lxsudo -u limited-user some-application that application if compromised could sniff anything that user user is writing. Including but not limited to any sudo password prompts.

See the footnote on that page too.

Can apparmor prevent that?

Related:

https://blog.invisiblethings.org/2011/04/23/linux-security-circus-on-gui-isolation.html

AppArmor prevent access to the the API that xinput is using for global keyboard sniffing?

1 Like

No. There is work on it though but I haven’t seen any progress https://gitlab.com/apparmor/apparmor/-/wikis/AppArmorXace

SELinux can do this though (among tons of other things apparmor cannot). Switching to SELinux might be a good idea in the future.

2 Likes

SELinux is in Debian. Are you familiar with its syntax?

2 Likes

No, I’m not familiar with the syntax. SELinux is far more complicated than apparmor and harder to learn. I only have a basic understanding of what can be done with it.

2 Likes

Here was some interesting news for SELinux in years.

https://www.phoronix.com/scan.php?page=news_item&px=SELinux-Updates-For-Linux-5.6

2 Likes

Worth asking AppArmor upstream about this or was already discussed?

SELinux: not looking forward to research / debate NSA/SELinux. Best discussed in separate thread. Perhaps even one for technology and one for trustworthiness.

2 Likes

Another way to potential fix this:
Can we replace xfce window manager as an easy path to switch to wayland?

2 Likes

No point considering it when we don;t have someone proficient in profile writing. It would be absolutely worthless to us.

2 Likes

It was already discussed. See the apparmor wiki link above.

2 Likes
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]