Either obtain your programs from trustworthy sources, or ensure that the programs behave.
You should acquire your programs from legitimate sources.