Just a week after the US Senate failed to stop the Iran nuclear deal, Tehran launched a major cyberattack on the State Department — and the Obama administration kept it secret.

The Washington Free Beacon broke the story last week, revealing that Team Obama was even more craven than we’d thought.

The two sides were then still negotiating the “side deals” to finalize the accord; it wasn’t too late to stop it. And the attack showed that Iran wouldn’t remotely begin to moderate its ways, as the Obamaites had hoped.

Indeed, the hacking seemed to target the State personnel involved in those negotiations — the better to wring a last few concessions, no doubt.

It’s obvious why Iran thought it could get away with it: Washington had proved willing to cede every point in order to reach a deal.

President Trump has yet to junk the deal, and understandably so: President Barack Obama gave away so much up front (billions in cash as well as hundreds of billions in sanctions relief) that America may be better off trying to make the rest of it stick.

But that doesn’t change the fact that Obama’s chief foreign-policy achievement was in fact a shameful defeat for the nation and the world.