Leveraging threat intelligence to mitigate the risk posed by third parties