This 2007 list of the National Security Agency’s major missions illustrates the sweep of the agency’s goals for signals intelligence (Sigint) or electronic eavesdropping, which include not only such obvious targets as terrorist groups and Iran’s nuclear program, but the diplomacy and economic policy of friendly countries.

On the idea that N.S.A. cannot cover everything, the document designates targets that can be set aside if necessary — in this case, minor terrorist groups and their supporters.

Top agency priorities include intelligence on the threat of disease epidemics and threats to the president and other top American officials.

The influence of Venezuela’s leftist leaders and their allies in Latin America are a surprising priority, here described as “Bolivarian Developments.”

N.S.A. was looking out for “intrusions” from foreign cyberattackers (including code names for certain Chinese and Russian hacking groups).

The agency engages in “military deception” and other actions to mislead adversaries, though no examples are given.

N.S.A. watches out for new technologies that could give an edge to rivals — including allies as well as hostile countries.

While officials often describe N.S.A. as a counterterrorist agency, it also tries to intercept diplomatic communications of friends and enemies for an advantage in negotiations and policy making.

Among the countries identified as the most aggressive in spying on the United States are not just obvious rivals like China and Russia, but Israel, France and South Korea.

Economic policy and data are a major target of N.S.A. spying, though officials insist that it is used only by the government and not shared with American companies.