Simulation-based analysis of security exposures in mobile ad hoc networks