A BNC connector dust cap. Openscad source file included. The bayonet slot of this cap design has a cavity at the end to hold it better in place. I am marking it as 'customizable' even though the openscad code requires parameters cleanup and documentation.
You can tweak it either with the customizer here or just download the openscad file and tweak on your computer.