XP (post SP2) is pretty secure but still not nearly as good as Win7. Vista added a lot of features re: security and 7/8 built upon that. Also, XP effectively expires in less than a year so only an idiot would be installing XP onto a machine at this point.