My computer was hacked, which probably resulted in malware/a virus being installed so I'm using my most recent backup on a separate machine (all macOS). Luckily, I was able to determine the timing of the attack exactly, so I know the backup is clean and my separate machine should be good to go. But I wonder: is it safe to reuse the same wifi router and mouse—which I used with the infected computer—with my clean computer?
To be clear, I have wifi turned off on the infected machine, and I have reset my wifi router to factory settings and then changed the network name and password, so the infected computer couldn't connect to the internet even if it tried. Bluetooth is off on the infected machine also. I'm not worried about my dirty computer reinfecting the clean one. I am worried about the dirty computer having already infected my router, malware somehow surviving the router being reset, and now reinfecting my clean machine that's now connected to the router. I don't know for a fact whether a factory reset really would get rid of a virus that had made it onto my router. It seems like a great strategy for a virus to infect a router and then spread to computers users think are clean.
I have already learned that I should not reuse my keyboard. But what about my mouse and my wifi router?