The Belgian security services, as well as other Western intelligence agencies, had advance and precise intelligence warnings regarding the terrorist attacks in Belgium on Tuesday, Haaretz has learned.

Sign up today: $1 for the first month

The security services knew, with a high degree of certainty, that attacks were planned in the very near future for the airport and, apparently, for the subway as well.

Despite the advance warning, the intelligence and security preparedness in Brussels, where most of the European Union agencies are located, was limited in its scope and insufficient for the severity and immediacy of the alert.

As far as is known, the attacks were planned by the headquarters of the Islamic State (ISIS) in Raqqa, Syria, which it has pronounced as the capital of its Islamic caliphate.

The terror cell responsible for the attacks in Brussels on Tuesday was closely associated with the network behind the series of attacks in Paris last November. At this stage, it appears that both were part of the same terrorist infrastructure, connected at the top by the terrorist Salah Abdeslam, who was involved in both the preparation for the Paris attacks and its implementation.

Abdeslam escaped from Paris after the November attacks, hid out in Brussels and was arrested last week by the Belgian authorities.

Abdeslam's arrest was apparently the trigger for Tuesday's attacks, due to the concern in ISIS that he might give information about the planned attacks under interrogation, particularly in the light of reports that he was cooperating with his captors.

The testimony of the detained terrorist, alongside other intelligence information, part of which concerned ISIS operations in Syria, should have resulted in much more stringent security preparedness in crowded public places in Brussels, along with a heightened search for the cell.

As of now, the search is focused on the terrorist Najim Laachraoui, who created the explosive vests used by the bombers and escaped from the airport at the last moment.

There is concern, however, that other cells connected to ISIS in Western Europe will attempt to carry out additional attacks in the near future, either in Belgium or in other countries involved in the war against the terror organization in Syria and Iraq.

At least 31 people were killed and 260 wounded in the terrorist bombings at the Brussels airport and in the subway system on Tuesday. Responsibility for the attacks was claimed by ISIS.

Belgian authorities have named the two airport attackers as brothers Ibrahim and Khalid El Bakraoui. Laachraoui, who was photographed with the brothers at the airport and was observed fleeing the scene, is the subject of a massive manhunt.