President Donald Trump has accused the newspaper of foiling a plot to catch the leader of Isil - AFP

President Donald Trump on Saturday attacked The New York Times and its "sick agenda," alleging that one of the paper's reports thwarted a US bid to take out Islamic State of Iraq and the Levant chief Abu Bakr al-Baghdadi.

"The Failing New York Times foiled US attempt to kill the single most wanted terrorist, al-Baghdadi. Their sick agenda over National Security," Mr Trump wrote in one of a barrage of early morning tweets.

Mr Trump did not expand on his charge against The Times, or explain what revelation by the daily is supposed to have hampered Baghdadi's capture.

This file image made from video posted on a militant website in 2014 purports to show Abu Bakr al-Baghdadi Credit: AP

The New York Times told the Politico news site in a statement: "We have asked the White House to clarify the tweet."

US media suggested that Mr Trump may have been referring to a Fox News report about comments made by a top general at a security conference on Friday in Aspen, Colorado.

At that gathering, General Tony Thomas – head of the US military's Special Operations Command – reportedly said that American forces at one point came "particularly close" to Baghdadi after a 2015 raid recovered information about Isil.

Fox News reported that General Thomas said US troops had "a very good lead," on the Isil leader's whereabouts.

"Unfortunately, it was leaked in a prominent national newspaper about a week later and that lead went dead," General Thomas reportedly said at the forum.

The ruins of the al-Nuri Mosque in Mosul's Old City, where Baghdadi declared the so-called caliphate Credit: REUTERS/Thaier Al-Sudani

Mr Trump posted his tweet 20 minutes after a section about the allegation aired on Fox News.

US Secretary of Defense James Mattis said Friday that he believes Baghdadi is still alive, following various claims in recent months that he has been killed.

"We are going after him, but we assume he is alive," the Pentagon chief said.

There have been persistent rumors that Baghdadi has died in recent months.

With a $25 million US bounty on his head, Baghdadi has kept a low profile but is rumored to move regularly throughout IS-held territory in Iraq and Syria.

The Iraqi - nicknamed "The Ghost" - has not been seen since making his only known public appearance as "caliph" in 2014 at the Grand Mosque of Al-Nuri in Mosul, which was destroyed in the battle for Iraq's second city.

Story continues

The New York Times is one of Mr Trump's favourite targets Credit: Volkan Furuncu/Anadolu Agency/Getty Images

The Times has become a favorite Mr Trump target despite his penchant for reaching out to the daily, including this week, when he gave its reporters a major interview in which he criticized his own Attorney General Jeff Sessions.

In Saturday's tweetstorm, Mr Trump railed against The Washington Post, which is owned by Amazon founder Jeff Bezos, for its "illegal leaks."

"A new INTELLIGENCE LEAK from the Amazon Washington Post, this time against A.G. Jeff Sessions," he wrote on Twitter, adding "These illegal leaks... must stop!"

He also groused about some of his favorite targets: the failure of US lawmakers to repeal "dead" Obamacare, Democratic "obstructionists" and alleged "ties to Russia" by Hillary Clinton, his defeated opponent in last year's presidential election.