Two Jordanian migrants detained for months inside the U.S. then charged with trying to breach Marine Corps Base Quantico in May were released from federal custody after posting tens of thousands of dollars bond last week, one news outlet reported.

Despite their immigration status, two men leaving the border town facility in El Paso were recently released from Immigration and Customs Enforcement (ICE) detention: Hasan Yousef Hamdan and Mohammad Khair Dabous.

Law enforcement sources said Hamdan had entered the country illegally in April and that Dabous overstayed his student visa and was facing removal proceedings.

Both were arrested for trespassing onto the military installation May 3 and turned over to ICE officers for their immigration statuses.

“Big-time intel failure, security failure,” a federal law enforcement source told The Post.

“If it wasn’t an act of terrorism, why aren’t the government officials releasing the details of this? What was the intent?”

According to law enforcement sources, Hamdan and Dabous bonded out in their respective ICE cases — they were held on $15,000 bond for Hamdan; $10,000 bond for Dabous — shortly after their arrests last month. Court documents say federal prosecutors had endorsed agreeing to these conditions of release.

Federal law enforcement sources said Hamdan entered the US illegally at San Diego across its southern border in April and was set free because agents had no detention capacity. Two sources said Dabous was in the US illegally after he overstayed his student visa.

Governor Glenn Youngkin (R-VA) had said at the time of the attempted breach: “The Biden Administration’s failure to secure the border has brought this crisis to the front gates of our military installations.”

According to court documents, each of the men received citations for trespassing and were ordered to appear in federal court in Alexandria on July 22. 

Matt Strickland, 40, first flagged the incident to local new site Potomac Local News.

“After I [raised the alarm], I had people who work at Quantico messaging me saying, ‘Holy f—k, when did this happen?,’” Strickland said.

“Two weeks after it happened, Quantico finally put an email out to employees on base letting them know.”

Hamdan and Dabous criminal defense attorneys did not immediately return calls for comment Wednesday. The two suspects have court dates in September.