Cyberattacks represent an expanding and perilous front line for companies and the government. What do we do about a borderless war that has impacted business across the world and even a presidential campaign?

The Wall Street Journal’s Rebecca Blumenstein spoke with Adm. Michael S. Rogers, head of the National Security Agency and commander of the U.S. Cyber Command. Here are edited excerpts of the discussion.

MS....