That's a bit extreme. There's risk involved just from turning on a computer, with any OS these days, if you are going to have a network connection. Doesn't even have to have access to the Internet itself. Just being on a network where OTHER devices exist is a risk because one of those could be infected or otherwise controlled by someone malicious, and stupid stuff like SMB flaws allow infections without even DOING anything. Heck, plug in a USB drive that's never been connected to another PC and you might get infected with something that was on the drive from the factory due to a supply chain attack.
It's always a trade-off to get the things you want/need out of a machine, balancing convenience and functionality with security. Completely avoiding doing anything else on the koboldcpp machine would make it much more inconvenient to use koboldcpp itself (I don't really know WHAT you can do with it anyway or how you do so), maybe even impossible, and just following best practices of not going to questionable sites that might be willing to be involved with other risky services or even be run by bad actors directly (porn, content pirating, gambling, etc.) and using ad-blockers and script blocking is generally enough to ensure you're not going to have a problem. And a site trying to run JS to access your koboldcpp server is VERY niche so the odds are much lower, although if you're searching for information about that software you might be more likely to run across it. Just stick to well-known and trusted sites and you'll probably be okay, but you might be the one in 10 million to get infected. If koboldcpp is going to be processing your company financial data or all the naughty pictures and videos you made with all your exes then you'd want to limit what you do with that machine, but otherwise treat it like any other computer where you'd do things like entering passwords on websites, accessing your bank account or healthcare info or browsing content you wouldn't want your pastor to know about.