Most secure contact form?

I have noticed a lot of sites getting hacked lately, both my own and a lot of new clients coming to me because their sites got hacked. It seems like a lot of these may be injection attacks via the contact forms and I was wondering what is the best way to prevent this? I used to always use ithemes security and now I am using Defender on all of my sites. But is there a specific contact form that is more secure? Would something like Contact Form 7 that doesn't store entries in the database be best?