drakslamarer152 wrote:
I'm aware that McAfee and others is proper path to protecting oneself
No, not even for a Windows system these days. Both macOS & Windows have built-in protection these days along with other security features. If a person is careful & follows safe computing practices as outlined in this excellent article, then there is very little chance of issues:
Effective defenses against malware and other threats - Apple Community
Most of the anti-virus manufacturers these days, along with the cleaning/optimizer apps, and third party security software are just preying on peoples' fears in order to scam them. Many of these apps are collecting & selling your personal information as well. In addition, these types of apps will usually cause more problems than they solve and will impact system performance...sometimes to the point your 2024 system is running like a system from 2004 because they all interfere with the normal operation of the OS at a very low level where they can cause the most problems & damage.
but as this will be me stepping into a library and using their machines,
Somehow I overlooked this bit in your post and it changes everything. My previous suggestion does not apply to using other people's computers.
I don't have the option to use normal defenses to protect my USB drive. It would seem that a virus (using that to cover all the nasties) harms my system by writing to my disk. RO should block it but I'm not an expert.
If the external drive is read-only, then the other system will be unable to make any modifications to the files on that drive. There are only a few options available since you cannot control what an unknown computer will do. In fact, I would advise never connecting any important drive to an unknown computer (or any unknown device to your own computer).
The best option is to find a drive which allows you to flip a physical switch to put the drive into read-only mode. I am not aware of any specific drives with this feature, but I have seen drive adapters which had this ability and believe I saw a consumer drive a decade ago with that ability. I believe some current USB sticks & SD Cards still have this physical switch, but I'm not sure if any consumer SSDs or Hard Drives have such an option since I have not looked recently.
I certainly hope you have a good backup of the data on this drive especially if you are connecting it to unknown systems.