https://developers.yubico.com/libu2f-host/
or maybe even better:
https://github.com/amluto/u2f-hidraw-policy
On the Yubikey its also possible to deactivate individual modes. If somehow U2F mode was disabled, it should not work anywhere, but if you don't use the other modes, maybe deactivate them. In earlier version there were some problems.
Probably its the first one.
https://developers.yubico.com/libu2f-host/
or maybe even better:
https://github.com/amluto/u2f-hidraw-policy
On the Yubikey its also possible to deactivate individual modes. If somehow U2F mode was disabled, it should not work anywhere, but if you don't use the other modes, maybe deactivate them. In earlier version there were some problems.
Probably its the first one.