Charlie Miller prepared his cyberattack in a bedroom office at his suburban home. He spent five years at the NSA where he secretly hacked into foreign computer systems for the US government. Then he turned his attention to the Apple iPhone. "I know I can do it," Miller, now a cybersecurity consultant, told himself.