The leak renewed a debate about whether and when the NSA should disclose security flaws it discovers. The agency can use them to gain intelligence to protect the country, but keeping the flaws secret runs the risk that criminals or foreign governments also know about them and can use them to attack computers in the U.S.