The best way to get your hands on StarCraft: Brood War is to buy it through legitimate channels. Blizzard has made the original StarCraft and its Brood War expansion freely available through the official Battle.net launcher, so you can download and install both safely and at no cost.
If you still own the old physical copies, you can install directly from the CDs. Either way, sticking to official sources keeps your PC free of malware and makes sure you can play online without any issues.