President Obama’s White House quietly produced a plan in October to counter a possible Election Day cyber attack that included extraordinary measures like sending armed federal law enforcement agents to polling places, mobilizing components of the military and launching counter-propaganda efforts.

The 15-page plan, a copy of which was obtained by TIME, stipulates that “in almost all potential cases of malicious cyber activity impacting election infrastructure, state, local, tribal, and territorial governments” would have primary jurisdiction to respond.

But in the case of a “signifcant incident” the White House had several “enhanced procedures” it was prepared to take.

The plan allowed for the deployment of “armed federal law enforcement agents” to polling places if hackers managed to halt voting. It also foresaw the deployment of “Active and Reserve” military forces and members of the National Guard “upon a request from a federal agency and the direction of the Secretary of Defense or the President.”

For three days after the election, a special interagency effort would be tasked with addressing “any post-election cyber incidents,” including “planted stories calling into question the results.”

The plan reflects how thoroughly the Russian effort to undermine public confidence in the U.S. electoral system had succeeded. The U.S. intelligence community had concluded the primary and abiding goal of the Russian operation was “to undermine public faith in the U.S. democratic process.”

By Election Day, with widespread coverage of Russian hacking and then-candidate Donald Trump’s assertions that the vote would be rigged against him, Gallup found that only 30% of Americans had faith in the honesty of elections, while 69% did not.

A copy of the plan was obtained as part of the reporting for the current TIME cover story on the effort by federal officials to secure the 2016 vote in the face of Russia’s influence operation and its attacks against State and local election systems. The document’s formatting has been changed from the original.

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.