First of all, the KRACK virus has nothing to do with which browser you use. (By the way, which one are you using? I use Google Chrome about 98% of the time, and Opera the other 2%, and I am not having issues).
Secondly, the Mac OS needs to be "patched" by Apple to resolve this. I actually made a post about this KRACK virus last week here, and here is the link:
https://www.mac-help.com/threads/krack-virus.223909/
There are a couple of informative links there. Note that Apple has only (so far) patched one or two beta versions of "prior" OS versions. Heck, they still don't have a patch available for High Sierra (although that OS is still wrought with issues), and not even Sierra.
I have followed the advice in the two links there, and I am having no issues. That is about the best one can do now.
One thing, though, is that you are 6 operating systems behind, and as time goes on, less and less software will support OS 10.7.5. The following information will be useful:
1. What exact Mac model do you have?
2. Are you making backups to an external device? That is so, so
critical! If you are (hopefully) making backups, what software are you using for that task?
3. Have you ever done any disk cleanup/maintenance/repairs, from a software perspective? You can actually do a lot of disk cleanup on your own, and there are some excellent programs available (both free and commercial) that can help you with those tasks.
4. How much free space is on your internal drive?
5. What third party (ie, non-Apple) apps are you using? And have you kept them updated?