Updating your router with any software updates that become available is one of best ways to prevent an attack on your home network. Software updates often fix security vulnerabilities in operating systems or apps that attackers could find and use to gain access to your network.
If you’re using a router given to you by your ISP, ask them what they do to keep it secure. Some ISPs provide security support by managing your router remotely. They'll patch it if they need to, or will close ports that could be abused by attackers.
If you use a router that you bought yourself, make sure you keep up-to-date with any security updates. If your router is old and doesn’t get updates anymore, you could consider:
- investing in a newer model, or
- talking to your ISP to see what routers they provide.