I seem to recall
that security, in 5G, is software-defined.
Meaning wrote by humans. Humans don't have a great track record in writing secure software, otherwise there wouldn't be so many AV companies, data recovery companies and security consulting services, all of which fall prey at some point to the very threats they promise to protect you against.
5G may work, but when it goes wrong it will go very wrong, and there will be much gnashing of teeth and pulling of hair.