Inside every car sits almost three miles of electric cabling. The snaking wires carry instructions, from steering the wheels to opening the boot.

This jumble of motoring spaghetti is held together by the harness, a low-cost part that, until the invasion of Ukraine, vehicle manufacturers almost took for granted.

Both BMW and Volkswagen have both been forced to idle plants across Europe after Russia’s invasion forced Ukrainian wiring plants to shut.

Now the country’s fledgling auto industry, which boasts close to 40 parts factories, is at risk, as carmakers race to relocate or duplicate the bespoke equipment needed to make harnesses.

The country accounts for about a fifth of Europe’s supply of harnesses, which also come from other parts of eastern Europe as well as north Africa, according to estimates from AutoAnalysis.

“The problem with wire harnesses is that they are fundamental,” said

Alexandre Marian, a managing director at consultancy AlixPartners in Paris. “You cannot start assembling even an incomplete car without wire harnesses. ”

Unlike other parts that can be easily made elsewhere, harnesses are bespoke. Each car model has its own individual system, honed to the millimetre, so manufacturers can squeeze wires around the vehicle.

Herbert Diess, VW chief executive, said: “In our case, as we are positioned in premium or close to premium, most of the wiring harnesses we put in the cars are car specific. So, it’s a one-to-one relation.”

But shifting production is a logistical headache.