Well, it is hard to say what your issue is. But I can say with confidence it isn’t a security problem.
First thing I would do is check my battery voltage. Then I would get the car scanned, in fact if you go to Auto zone they will do both of those checks for free. If these are dead ends I’d look to the starter.
Good luck.