The National Security Agency is an intelligence agency of the United States Department of Defense, under the authority of the director of national intelligence.