ISTANBUL — If any meeting was meant to be private, it was this one: the top spy chief, the foreign minister and his deputy, and a top military official discussing secret plans for possible military action in Syria.

But in Turkey little, it seems, is beyond the skills of those who have been wiretapping and bugging the conversations of high-level officials and releasing the recordings on social media.

On Thursday morning, a recording was posted on YouTube in which the officials were heard discussing a plot to establish a justification for military strikes in Syria. One option that is said to have been discussed was orchestrating an attack on the Tomb of Suleyman Shah, the grandfather of the founder of the Ottoman Empire, which is in northern Syria and is considered by the government here to be Turkish territory.

By Thursday afternoon, the Foreign Ministry building in Ankara, Turkey’s capital — where the secret meeting was held — was being swept for surreptitious listening devices, and the government had moved to block access to YouTube, just a week after a similar ban on Twitter, which has also been a conduit for the leaking of documents and telephone conversations.