Ladies and gentlemen, for everyone who has been dealing with this problem specifically with Safari, I discovered the source. As I stated before I wiped my OS and reinstalled due to a strange web shield warning that popped up unexpectedly and without apparent provocation. But to my horror, shortly after reinstalling, the warning popped up again. This time it occurred many times and randomly as I attempted to use the browser. I wiped out the caches, preferences files, deleted all the configuration files and it still kept popping up. Finally, within the browser itself, I deleted all of my bookmarks on a recommendation by an obscure forum.
The problem was solved.
It turns out an old bookmark (there were hundreds within several folders I never used anymore) was contacting it's domain for its corresponding metadata (images and basic site info). But the site was probably hacked by a redirect recently. So every time it contacted the domain to perform the update, BAM, webshield detected the attempt and blocked it thus causing all the disconcerting "infection detected" popups. So ultimately it probably wasn't even dangerous lol. But there you go.