The director of the U.S. Federal Bureau of Investigation, Robert Mueller, is vowing to take swift action against the former CIA analyst who has confessed to leaking documents exposing a pair of top secret government surveillance programs.

Speaking to lawmakers Thursday, FBI chief Mueller confirmed that a criminal investigation has been opened into the leaks, which he said have dealt a blow to U.S. national security.