Game theoretic analysis of security in mobile ad hoc networks