The U.S. attorney for Massachusetts is defending her office’s handling of the prosecution of internet activist Aaron Swartz.