Tesla is suing a former employee for allegedly illegally exporting gigabytes of confidential data, according to a lawsuit filed Wednesday in Nevada.

The electric car maker said it is only beginning to understand all of former process technician Martin Tripp's allegedly illegal activity. The suit said, Tripp "has thus far admitted to writing software that hacked Tesla's manufacturing operating system ('MOS') and to transferring several gigabytes of Tesla data to outside entities."

The data include "dozens of confidential photographs and a video of Tesla's manufacturing systems."

In addition to that, Tesla alleges Tripp wrote computer code to periodically export Tesla's data to people outside the company.

Furthermore, the suit alleges that Tripp made false statements to the media.

"For example, Tripp claimed that punctured battery cells had been used in certain Model 3 vehicles even though no punctured cells were ever used in vehicles, batteries or otherwise," the suit said. "Tripp also vastly exaggerated the true amount and value of 'scrap' material that Tesla generated during the manufacturing process, and falsely claimed that Tesla was delayed in bringing new manufacturing equipment online."

Justin Chin | Bloomberg | Getty Images

Elon Musk, CEO of SpaceX and Tesla

Tesla said in the suit that Tripp had complained he had not been given a more senior role in the company and was combative and disruptive with fellow employees. The suit alleges Tripp took his actions in retaliation for being reassigned to a new role within Tesla.

Tesla declined to comment on the lawsuit. Tripp could not be located for comment.