A very common setup that I observed. You just secured your seed offline and then you import in your xpub / ypub / zpub into either your phone or laptop as a wacht only wallet to check balance. Because your private keys are kept offline you confidently feel safe, and truly your funds are safe from theft.
Additionally, there's an unfamous security risk for having your extended public key (
xpub) leaked.
It affect those who are exporting their individual private keys and compromised at least one private key.
Getting one private key exposed sounds safe enough but having its parent extended public key exposed can be used together with that child private key to calculate its pair extended private key.
This is a warning to those who exported one or more private keys from their offline wallet.
The Fix
Do well and run your full node and also connect your watch-only wallet only to your node over Tor. In this way you never ask a third party.
Protecting your metadata IP + xpub in Bitcoin is just as so important as protecting your own key.
And make sure that your own server has an onion address, not a clearnet one.
And since it's your own server, use
--oneserver so that Electrum wont have to connect to random additional servers for security, since you trust that server anyways.
Because otherwise, if it has to connect to clearnet, a random malicious Tor exit node can still perform attacks to impact your privacy.