The reality gap between Donald Trump and his spy chiefs, while always disconcerting, has grown to encompass far more than just Russia. According to a new threat-assessment report compiled by the U.S. intelligence community for the Senate Intelligence Committee, the president’s entire foreign-policy agenda is based on faulty assumptions, too.

The 42-page document is an extraordinary rebuke of Trump, who has claimed in recent months that Kim Jong Un is a dear friend, ISIS is essentially defeated, and Iran is on the warpath. Instead, as Director of National Intelligence Dan Coats and C.I.A. Director Gina Haspel told the Senate on Tuesday, North Korea is “unlikely to give up” its nuclear weapons, ISIS “still commands thousands of fighters in Iraq and Syria,” and Iran is not “currently undertaking the key nuclear weapons-development activity” to make a bomb.

On Wednesday morning, Trump erupted on Twitter. “The Intelligence people seem to be extremely passive and naive when it comes to the dangers of Iran. They are wrong! When I became President Iran was making trouble all over the Middle East, and beyond,” he wrote in a series of posts. “Since ending the terrible Iran Nuclear Deal, they are MUCH different, but a source of potential danger and conflict. They are testing Rockets (last week) and more, and are coming very close to the edge. There economy is now crashing, which is the only thing holding them back. Be careful of Iran. Perhaps Intelligence should go back to school!”

Neither Coats nor Haspel directly challenged the president during Tuesday’s hearing. But their testimony was, in its own way, a remarkable reminder of the disconnect between the commander in chief and the agencies that report to him. Whereas Trump has insisted that North Korea is well on its way to denuclearizing, and plans to meet with Kim later this month, Coats told the Senate that North Korea likely has no plans to do so, as “its leaders ultimately view nuclear weapons as critical to regime survival.” Haspel added that the regime has seemingly continued to develop a long-range missile, despite their claims they had begun denuclearizing. While Trump recently claimed that ISIS was “largely defeated” in Syria, justifying his controversial decision to remove nearly all troops from the region, Coats said that “ISIS is intent on resurging” and that the group would “seek to exploit Sunni grievances, societal instability, and stretched security forces to regain territory in Iraq and Syria in the long term.” Haspel said Iran was less of a threat than Trump claimed when he withdrew from the Iran deal, and “at the moment, technically they’re in compliance.”

Notably, the “Worldwide Threat Assessment” report does not say anything about building a wall along the southern border. Instead, it argues that the greatest foreign threats are technological in nature, including the risk of fake news, disinformation, and cyber-hacking. It specifically mentions China and Russia as the two greatest threats in that area: