U.S. President Donald Trump has threatened to impose tariffs on cars from around the world, as he did with aluminium and steel last March, but European Commission President Jean-Claude Juncker negotiated a "ceasefire agreement" last July.

Malmstrom, speaking at a panel event at the World Economic Forum in Davos, said the Trump-Juncker agreement, which delayed the tariffs while trade talks took place, had tried to find common ground.

"We're advancing, we have made some very important progress there and there's a process that is positive, I think, and it said also that we would not impose tariffs on each other," Malmstrom said.

"If that is violated by the U.S., we will have to respond. I don't want to do that. But we will have to do that. But we are confident that we will not be taxed on this."

The European and U.S. car industries have both made perfectly clear they do not want to see a 25 percent tariff imposed, and such a trade barrier would be bad for both economies, Malmstrom said.

The legal form of the "Section 232" tariffs invoked by Trump would imply that the EU was a national security threat to the United States, she said.

"We can never accept that. We are friends and allies and we are not a national security threat. So we hope that this will not happen," she said.

(Reporting by Soyoung Kim, writing by Tom Miles; Editing by Gareth Jones)