Some of the biggest cybersecurity attacks this year happened because of third-party risks and breaches. Here’s how you can avoid them.