The hackers who upended the U.S. presidential election had ambitions well beyond Hillary Clinton's campaign, targeting the emails of Ukrainian officers, Russian opposition figures, U.S. defence contractors and thousands of others of interest to the Kremlin, according to a previously unpublished digital hit list obtained by The Associated Press.

The list provides the most detailed forensic evidence yet of the close alignment between the hackers and the Russian government, exposing an operation that stretched back years and tried to break into the inboxes of 4,700 Gmail users across the globe — from the Pope's representative in Kyiv to the punk band Pussy Riot in Moscow.

"It's a wish list of who you'd want to target to further Russian interests," said Keir Giles, director of the Conflict Studies Research Center in Cambridge, England, and one of five outside experts who reviewed the AP's findings. He said the data was "a master list of individuals whom Russia would like to spy on, embarrass, discredit or silence."

The AP findings draw on a database of 19,000 malicious links collected by cybersecurity firm Secureworks, dozens of rogue emails, and interviews with more than 100 hacking targets.

Powerful evidence Russia interfered

Secureworks stumbled upon the data after a hacking group known as Fancy Bear accidentally exposed part of its phishing operation to the internet. The list revealed a direct line between the hackers and the leaks that rocked the presidential contest in its final stages, most notably the private emails of Clinton campaign chairman John Podesta.

The issue of who hacked the Democrats is back in the national spotlight following the revelation Monday that a Donald Trump campaign official, George Papadopoulos, was briefed early last year that the Russians had "dirt" on Clinton, including "thousands of emails."

Hillary Clinton; Lockheed Martin; Mikhail Khodorkovsky; Ukrainian military; former U.S. secretary of state Colin Powell; the Democratic National Committee; John Kerry; Wesley Clark; and Maria Alekhina. These people and organizations were among the thousands targeted by the hacking group Fancy Bear. The group had ambitions well beyond Clinton's election campaign, according to a previously unpublished digital hit list obtained by The Associated Press. (Associated Press)

Kremlin spokesman Dmitry Peskov called the notion that Russia interfered "unfounded." But the list examined by AP provides powerful evidence that the Kremlin did just that.

"This is the Kremlin and the general staff," said Andras Racz, a specialist in Russian security policy at Pazmany Peter Catholic University in Hungary, as he examined the data.

"I have no doubts."

The new evidence

Secureworks' list covers the period between March 2015 and May 2016. Most of the identified targets were in the United States, Ukraine, Russia, Georgia and Syria.

In the United States, which was Russia's Cold War rival, Fancy Bear tried to pry open at least 573 inboxes belonging to those in the top echelons of the country's diplomatic and security services: then-secretary of state John Kerry, former secretary of state Colin Powell, then-NATO supreme commander, U.S. Air Force Gen. Philip Breedlove, and one of his predecessors, U.S. Army Gen. Wesley Clark.

The list skewed toward workers for defence contractors such as Boeing, Raytheon and Lockheed Martin or senior intelligence figures, prominent Russia watchers and — especially — Democrats. More than 130 party workers, campaign staffers and supporters of the party were targeted, including Podesta and other members of Clinton's inner circle.

The AP also found a handful of Republican targets.

'They got two years of email'

Podesta, Powell, Breedlove and more than a dozen Democratic targets besides Podesta would soon find their private correspondence dumped to the web. The AP has determined that all had been targeted by Fancy Bear, most of them three to seven months before the leaks.

"They got two years of email," Powell recently told AP. He said that while he couldn't know for sure who was responsible, "I always suspected some Russian connection."

In Ukraine, which is fighting a grinding war against Russia-backed separatists, Fancy Bear attempted to break into at least 545 accounts, including those of President Petro Poroshenko and his son Alexei, half a dozen current and former ministers such as Interior Minister Arsen Avakov and as many as two dozen current and former lawmakers.

Ukranian President Petro Poroshenko, Ukrainian Interior Minister Arsen Avakov, and Ukranian parliamentarian and former investigative journalist Serhiy Leshchenko are among the Ukranian targets of the hacking group Fancy Bear. (Associated Press)

The list includes Serhiy Leshchenko, an opposition parliamentarian who helped uncover the off-the-books payments allegedly made to Trump campaign chairman Paul Manafort — whose indictment was unsealed Monday in Washington.

'Everything on this list fits'

In Russia, Fancy Bear focused on government opponents and dozens of journalists. Among the targets were oil tycoon-turned-Kremlin foe Mikhail Khodorkovsky, who spent a decade in prison and now lives in exile, and Pussy Riot's Maria Alekhina. Along with them were 100 more civil society figures, including anti-corruption campaigner Alexei Navalny and his lieutenants.

"Everything on this list fits," said Vasily Gatov, a Russian media analyst who was himself among the targets. He said Russian authorities would have been particularly interested in Navalny, one of the few opposition leaders with a national following.

Pussy Riot member Maria Alekhina, anti-corruption campaigner Alexei Navalny and oil tycoon-turned-Kremlin foe Mikhail Khodorkovsky are among the Russian targets of the hacking group Fancy Bear. (Associated Press)

Many of the targets have little in common except that they would have been crossing the Kremlin's radar: an environmental activist in the remote Russian port city of Murmansk; a small political magazine in Armenia; the Vatican's representative in Kyiv; an adult education organization in Kazakhstan.

"It's simply hard to see how any other country would be particularly interested in their activities," said Michael Kofman, an expert on Russian military affairs at the Woodrow Wilson International Center in Washington. He was also on the list.

"If you're not Russia," he said, "hacking these people is a colossal waste of time."

Working 9 to 5 Moscow time

Allegations that Fancy Bear works for Russia aren't new. But raw data has been hard to come by.

Researchers have been documenting the group's activities for more than a decade and many have accused it of being an extension of Russia's intelligence services. The "Fancy Bear" nickname is a none-too-subtle reference to Russia's national symbol.

In the wake of the 2016 election, U.S. intelligence agencies publicly endorsed the consensus view, saying what American spooks had long alleged privately: Fancy Bear is a creature of the Kremlin.

But the U.S. intelligence community provided little proof, and even media-friendly cybersecurity companies typically publish only summaries of their data.

A careless mistake

That makes the Secureworks' database a key piece of public evidence — all the more remarkable because it's the result of a careless mistake.

Secureworks effectively stumbled across it when a researcher began working backward from a server tied to one of Fancy Bear's signature pieces of malicious software.

He found a hyperactive Bitly account Fancy Bear was using to sneak thousands of malicious links past Google's spam filter. Because Fancy Bear forgot to set the account to private, Secureworks spent the next few months hovering over the group's shoulder, quietly copying down the details of the thousands of emails it was targeting.

The AP obtained the data recently, boiling it down to 4,700 individual email addresses, and then connecting roughly half to account holders. The AP validated the list by running it against a sample of phishing emails obtained from people targeted and comparing it to similar rosters gathered independently by other cybersecurity companies, such as Tokyo-based Trend Micro and the Slovakian firm ESET.

The Secureworks data allowed reporters to determine that more than 95 per cent of the malicious links were generated during Moscow office hours — between 9 a.m. and 6 p.m. Monday to Friday.