Buoyed by their earnings, AIG executives stubbornly clung to the belief that their firm was invulnerable. They thought they’d dodged a bullet when, toward the end of 2005, they stopped underwriting insurance on CDOs that had pieces tied to subprime mortgage-backed securities.