Russian President Vladimir Putin, frustrated by his bogged-down war in Ukraine, is trying to intimidate the European nations that — given President Donald Trump’s severe cuts in aid to Kyiv — are now Ukrainians’ main military, economic and diplomatic supporters.

A few of the many examples: an explosive-laden drone found at the airport in Leipzig, Germany; vital undersea cables cut or damaged in the Baltic Sea; parcels exploding at logistics facilities in Germany, Poland and the U.K.; a failed arson attack at a Czech bus depot; a Polish railway damaged by explosives; and a steady increase in the intensity of cyberattacks against North Atlantic Treaty Organization members.

This intensifying pattern by Russia could trigger NATO’s Article 4 — under which any member believing its security or sovereign territory is under serious threat can initiate an alliance-wide consultation on collective action. That, in turn, can lead to an Article 5 determination — activating the fundamental premise of the alliance, that an attack on one nation is an attack on all.

Given that the Russian Federation and NATO both have nuclear weapons, the potential for miscalculation and vertical escalation is chilling. And while Putin has turned up the heat, he has been playing with fire for decades.

When I became NATO’s supreme allied commander in 2009, we were already studying intelligence reports about hybrid warfare. When Russia invaded Georgia, its military and intelligence services had used cyberattacks, disinformation campaigns and aid to separatist forces strategically.

Russia had also previously conducted cyberattacks against the Baltic states, leading to the establishment in 2008 of the NATO Cooperative Cyber Defence Centre of Excellence in Estonia.

At NATO headquarters, two things were clear to me: Putin would continue these types of operations, yet the alliance had no effective tactics, techniques or procedures to counter them. While NATO has made progress on these fronts, it still needs a firmer, more comprehensive set of responses that its forces can execute — without triggering a full-scale war.

First, NATO needs an all-hands-on-deck intelligence effort to uncover the Russian organizations involved in hybrid attacks. It should step up its “name and shame” campaign by making public undeniable evidence of Russian state-level involvement. This would include calling out senior Russian intelligence and military figures and placing maximum sanctions against any organization or individual involved.

The West has initiated such sanctions, especially since the war in Ukraine began, but they have fallen short, largely because of inconsistent application and the Russians’ ability to find ways around them.

A second necessary step is to prepare in advance for stronger responses to Russian actions. This means adding more surveillance and intelligence devoted to Russian plots and building a quick-reaction element at the headquarters of the supreme allied command in Mons. Kinetic capabilities should include mobile air-defense units that can be shifted to protect vulnerable targets (such as airports and railheads); on-call fighters around alliance borders to intercept drones that may “accidentally” cross NATO borders; and special forces units that can rapidly deploy to counter the “little green men” that might turn up in, say, the Baltic states or Poland.

Finally, the alliance must be prepared to go beyond defensive responses and go on the offensive. The first layer is obvious: Put more and better offensive weapons in the hands of the Ukrainians. The more trouble Putin is having with Ukraine, the less capability he has to harass the rest of Europe.

The second layer is more controversial and risky: The alliance must be prepared to conduct its own brand of hybrid warfare. While NATO would not copy Putin’s techniques that are clearly illegal and immoral, going after his military assets is fair game. I’d start by using cyber to disrupt operations at Kaliningrad, a Russian enclave on the shores of the Baltic Sea that has become Moscow’s front line for sophisticated electronic warfare and intelligence collection against Europe.

Putin needs to see that NATO knows what he is up to and is willing not only to defend its members but to create a real military cost if he continues to strike in the gray zone.

James Stavridis is a Bloomberg Opinion columnist, a retired U.S. Navy admiral, former supreme allied commander of NATO and vice chairman at Carlyle.