A cloud environment owned and operated by Tesla was breached back hackers who used the company’s compromised machines and computer resources to mine for cryptocurrency, according to security researchers .

In a report published this week by security firm RedLock, it was revealed that Tesla suffered a breach as a result of the vehicle manufacturer failing to password protect an open-source system that contained keys to access the company’s cloud.

According to the report, once the attackers gained access to Tesla’s cloud servers, they began running a cryptocurrency mining protocol called Stratum to mine for valuable digital currency that they could pocket and profit off of.

“We maintain a bug bounty program to encourage this type of research, and we addressed this vulnerability within hours of learning about it," Tesla said in a statement provided to International Business Times. "The impact seems to be limited to internally-used engineering test cars only, and our initial investigation found no indication that customer privacy or vehicle safety or security was compromised in any way.”

The attackers used Tesla’s cloud environment to do the dirty work of the mining process, essentially making the company’s computer do all the work while pocketing all of the profits generated from the operation.

A protocol called Stratum was used to carry out the attack, and the hackers managed to evade detection by obscuring the true IP address of the mining server and keeping the CPU usage low so as to not raise any suspicion.

Read more: International Business Times