It's difficult, but it’s possible. To ensure your safety, you should take additional precautions like using a VPN while browsing Tor. Hackers have managed to compromise the network in the past, to spy on users' browsing or even gain control of their devices. They do this by setting up rogue Tor nodes, which can intercept traffic and inject malware into user devices. Using a VPN with a malware blocker can help protect you from these attacks. A good blocker will scan all incoming traffic for malware and other malicious activity, blocking anything that looks suspicious before it reaches your device. This means that, even if a hacker does manage to compromise a Tor node, your VPN should still protect you.