Nearly 40 S&P 500 firms included security costs in their CEOs' perk packages last year, according to an analysis of…