"We've already had some indications of that," said James Clapper, the director of national intelligence, according to AP.

But the revelation is not totally surprising: The Chinese government reportedly hacked both Obama and McCain in 2008, and hackers tried repeatedly to break into the campaign accounts of Obama and Romney in 2012.The Romney campaign was "under constant attack," Digital Director Zac Moffatt told Time Magazine.

"Four or five times a week.

"According to CNN, Clapper said both the FBI and DHS were working to educate the campaigns about cyber threats.Hackers working for foreign governments can gain valuable insight into a presidential candidate's mindset before they take office, or uncover private communications that might give their country a leg up in diplomatic negotiations.

In 2008, for example, a letter Sen. John McCain sent to the president of Taiwan was intercepted by hackers from China.And on the flip side, the US government does much the same thing to many world leaders, as the massive leaks out of the National Security Agency from former contractor Edward Snowden have demonstrated.The Clinton and Trump campaigns did not immediately respond to a request for comment.Read the original article on Tech Insider.

More from Tech Insider:12 of history's greatest philosophers reveal the secret to happinessThe nation's top spy says hackers are spying on presidential candidatesThis wearable exoskeleton could one day turn your grandparents into cyborgsA new trailer for the 'Ghostbusters' reboot is here and it's much better than the firstSunday s 'Game of Thrones' director was surprised by fan reactions to this brief character interactionNOW WATCH: Hackers showed us how easy it is to secretly clone a security badgeLoading video...

The text above is a summary, you can read full article here.