I am a new Gentoo user (been using it as my daily driver since about a month).
A couple of days ago, I noticed my Firefox browser seemingly being operated remotely. I use tridactyl to control my browser using the keyboard. On an idle system with a github page opened on my browser, I noticed the popup usually triggered by pressing <w>, which gives a selection of urls to be opened in a new window.
Then, this popup disappeared, usually done by pressing <Esc>. From this, I infer that this was not a case of some random key presses being sent over, but rather, the attacker could see the graphical contents of my screen. Then, hints to various links on the page appeared, usually triggered by pressing <f>. Then, I guess one of the links was followed, because a different part of the github page appeared. Then, hints to links appeared again and then nothing happened for a couple of secs. At this point, I powered off my system, and since then only accessed it with internet access disabled to inspect the logs for any useful info, to no success.
I am not very knowledgeable about security, but I was probably totally compromised in this scenario
Some details about my setup and what was running on the system at that point:
1. Since the attacker seemed to have access to the screen contents, maybe the display server setup is relevant. I use a wayland compositor.
2. I was running firefox inside firejail. There was another firefox process running with a different profile (also within firejail) in which a couple of streaming sites recommended by r/piracy were running. I should mention that this streaming setup was running without firejail (an oversight from me) a few days prior to this. I guess this could be the source of the attack and I know it's on me if it was, but I checked these URLs on VirusTotal, I had uBlock running and I assumed that Firefox's features like site isolation etc. would keep me safe
3, I was connected to my home wifi and was using a VPN service with Local Network Sharing enabled, which means my device would be accessible on the LAN even with the VPN turned on.
4. Far as network services are concerned, sshd was inactive. There was no active firewall. I never installed any remote desktop software. But the syncthing user service was on. I should mention that I had setup and configured the syncthing service and the related web GUI just a couple of days prior to this incident. So apart from the streaming sites, I see this as the other probable source since that was the only network service that was running at that point.
Thanks very much for sparing your time to read this! Any insights and tips for my next setup are greatly appreciated!


