BERLIN/LOS ANGELES/DETROIT -- Volkswagen made several versions of its "defeat device" software to rig diesel-emissions tests, three people familiar with the matter told Reuters, potentially suggesting a complex deception by the German carmaker. During seven years of self-confessed cheating, Volkswagen altered its illegal software for four engine types, said the sources, who include a VW manager with knowledge of the matter and a U.S. official close to an investigation into the company.

Representatives of VW in Europe and the U.S. declined to comment on whether it developed multiple defeat devices, citing ongoing investigations by the company and authorities in both regions. Asked about the number of people who might have known about the cheating, a representative at company headquarters in Wolfsburg, Germany, said, "We are working intensely to investigate who knew what and when, but it's far too early to tell."

Some industry experts and analysts said several versions of the defeat device raised the possibility that a range of employees were involved. Software technicians would have needed regular funding and knowledge of engine programs, they said.

The number of people involved is a key issue for investors because it could affect the size of potential fines and the extent of management change at the company, said Arndt Ellinghorst, an analyst at the banking-advisory firm Evercore ISI.

Brandon Garrett, a corporate-crime expert at the University of Virginia School of Law, said federal prosecution guidelines would call for the U.S. Justice Department to seek tougher penalties if numerous senior executives were found to have been involved in the cheating. "The more higher-ups that are involved, the more the company is considered blameworthy and deserving of more serious punishment," Garrett said.

Europe's biggest carmaker, VW has been criticized by some lawmakers and analysts for blaming a small number of individuals for the banned software installed in as many as 11 million vehicles worldwide, even while investigations continue.

Its U.S. chief, Michael Horn, told U.S. lawmakers this month that he believed "a couple of software engineers" were responsible, while a letter dated Oct. 8 from VW to the European Parliament blamed "the misconduct of a few people."

Many Changes

VW admitted publicly Sept. 18 to using software that could tell when a diesel vehicle was being tested and temporarily lower its toxic emissions to pass U.S. regulations.

The scandal has wiped around one-quarter off its stock-market value and forced out its longtime CEO.

When it started using defeat-device software in 2008, VW installed it with the EA189 diesel engine. The software was subsequently added to the newer EA288 engine.

"VW would have had to reconfigure the software for each generation of engines," said the U.S. official close to an ongoing investigation into VW.

A U.S.-based expert on diesel engines and testing said the defeat-device software also had to be altered when VW changed the emissions-control system in its engines.

In older diesel models, VW used so-called Lean NOx Traps designed to reduce toxic nitrogen oxides in engine exhaust. From around 2012, it introduced a more sophisticated and expensive system called Selective Catalytic Reduction.

VW's Horn told U.S. lawmakers Oct. 8 that different software was developed for Europe as well. "Since the standards are different, my understanding is that the defeat devices in those [European] cars are as well," he said, without elaborating. Horn added VW was withdrawing its application for regulatory certification of 2016 diesel models because it contained another software feature that had not been disclosed as required by the authorities.

(Reporting by Andreas Cremer, Bruce Wallace and Paul Lienert; Additional reporting by Laurence Frost, Joel Schectman, Gilles Guillaume and Joe White; Writing by Mark Potter; Editing by Janet McBride)