Soon after accepting the post of CIA director two years ago, Michael V. Hayden set an unusual goal for his scandal-beset agency: virtual invisibility.