Russia is scrambling to shore up its defenses more than a week into Ukraine’s shock, lightning attack across the border on the southern Kursk region.

A sizeable trench has been dug across countryside near the town of Selektsionnyi, around 45 kilometers (about 28 miles) from the border, in Kursk, satellite imagery showed. Online job adverts for trench diggers have emerged. “Payment every week,” promised one.

Trenches, west of Lgov, Russia Maxar Technologies

But after months on the backfoot, losing ground in grinding battles in their own territory, just how were the Ukrainians able to catch Moscow by surprise and penetrate the Russian homeland?

First: superb operational security. Nothing about the operation leaked. Based on videos from the ground and satellite imagery of their advance, the troop movements almost seemed like an exercise or a defensive reinforcement.

The force was built up under cover of thick summer foliage along the rural roads of Sumy region, in northeast Ukraine. Experienced, battle-hardened units were brought up or diverted from other areas. Units such as the 82nd Air Assault Brigade, which had until recently been fighting in nearby Kharkiv region, were pulled into the mission to breach the border, according to multiple videos and social media accounts.

Among the detailed preparations was precise intelligence on the readiness and ability of Russian units on the border, and the number of obstacles that lay ahead, from minefields to tank traps. There weren’t many.

Ukrainian forces also used detailed knowledge of the geography to launch the attack, using forest belts for cover and roads for speed. It was only in the last days before the incursion began that commanders were briefed on the mission.

“The key, in terms of Ukraine’s success, [was that] they managed to penetrate Russian territory quite easily with little to no resistance. It was a complete surprise for the Russians, and it demonstrates that Russian intelligence services really failed to foresee any sort of Ukrainian incursion into the region,” said Seskuria.

Having established weak points in Russian defenses, the first Ukrainian units stormed into Kursk on the afternoon of August 6.

Ukrainian President Volodymyr Zelensky said on Thursday that Ukrainian forces had taken control of Sudzha – the first official confirmation that the troops, which have been in the town since last Wednesday, had captured it.

The town is an important transit point for gas supples from Russia to Europe via Ukraine. Satellite images showed a gas terminal at a nearby border point in ruins.

In their charge across the border, Ukrainians have used fast, resilient western-made armored vehicles: Strykers and Marders. Small mobile groups of special forces swiftly fanned out to dozens of locations as the Russian military scrambled to assess the strength of the assault.

Key to their success: air defenses and supporting artillery, as well as jamming to prevent the Russian military from communicating. Thermal protection for their body armor also helped soldiers evade heat-detecting drones.

Within hours of crossing the border, the Ukrainians were close to Sudzha. Many of its residents were sent scrambling on hair-raising escapes, some cursing the Russian military for abandoning them.

As the operation unfolded, Ukrainian soldiers posted video of themselves in front of village signs before vanishing, part of a parallel campaign of psychological warfare.

“I think that has a great value in terms of information warfare because these images, videos that we see … that is a really good morale boost for Ukrainians,” said RUSI’s Seskuria.

Rather than confront Russian units head-on, advanced Ukrainian units bypassed them, cutting them off. The Russian military command struggled to keep up with where the threat was emanating from.

The head of Ukraine’s armed forces, Oleksandr Syrskyi, said Thursday that Ukrainian forces had captured 1,150 square kilometers (about 444 square miles) of territory and 82 settlements since the start of the surprise incursion.

More than a week after the incursion began, the Ukrainians were still probing for weaknesses, consolidating their hold on a band of territory 35 kilometers (about 22 miles) deep – even providing Russian civilians with emergency food aid.

“[Ukraine’s] strategic aim would be to divert Russian forces from offensive operations in the Donetsk oblast, where Russians have been making some advances in the recent months… that would be an obvious intention, to ease the military pressure in Ukraine.”

Seskuria added that Ukraine’s recent activity might provide Ukraine with “a better negotiating position when it comes to any sort of peace talks in the future.” Indeed Mykhailo Podolyak, an aide to Zelensky, said the incursion was aimed at persuading Russia to enter a “fair negotiation process.”

Russian military bloggers are apoplectic about the lack of readiness and the slow response to the incursion.

The Russian Defense Ministry insisted this week it was repelling Ukrainian advances and taking prisoners, but Russia’s reinforcements were struggling to retake ground, outmaneuvered and hit with missiles and artillery.

“The offensive is culminating, and the battleground is stabilizing. Nonetheless, the Ukrainian military has already secured operational depth. If they can set robust defensive positions … they can stay inside Russian territory for a long time,” he said.

Kursk would be Ukraine’s “crown jewel” when negotiating an end to the conflict, Kasapoğlu added, if Kyiv manages to hold on to the seized territory.

Lizzy Yee, Paul Murphy, Avery Schmitz and Isaac Yee contributed reporting.

This post appeared first on cnn.com