Obama: Don't email something you wouldn't want in the news
© Getty

President Obama talked cybersecurity and hacking during an interview with NBC's Lester Holt, and said he tries to be cautious when sending emails.

"My general rule about email is: Don't send something that you don't mind being published in the newspapers," Obama said.

"I will tell you that the cyber issue is a different kettle of fish," he said. "The ability, at a fairly low cost, for state actors like Russia and China, but also non-state actors, to penetrate core functions in our society … that is moving faster than our defenses are moving."

"Our problem is we're more vulnerable because we're more digitalized," Obama added.

Holt had asked Obama about the ongoing news surrounding hacking during the election that has since been linked to Russia.

Intelligence agencies have concluded that Russian President Vladimir Putin had personally ordered a hacking and influence campaign intended to help Donald TrumpDonald John TrumpEx-ethics chief calls on Trump to end 'monstrous' migrant policies Laura Bush blasts Trump migrant policy as 'cruel' and 'immoral' US denies report of coalition airstrike on Syria MORE win the presidency. 

The hacks included email leaks from the Democratic National Committee, leading former DNC head Debbie Wasserman Schultz to resign. Leaked emails from Hillary ClintonHillary Diane Rodham ClintonThere are many unanswered questions about FBI culture FBI agent who sent anti-Trump texts offers to testify on Capitol Hill Giuliani wants 'full and complete' investigation into Russia probe's origins MORE campaign chairman John Podesta's emails were also published by WikiLeaks. 

And thousands of pages of Clinton's emails have been published as part of an investigation into her use of a private email server while secretary of State.