There are some offline antiviruses that can work without an internet connection, but their features are often restricted. Good antiviruses will often use the internet so that they can do real-time scanning, give regular updates, and do cloud-based analysis.