Tesla says that customer data and vehicle security were not compromised while confirming that hackers gained access to one of its platforms.

Tesla was alerted to the breach on one of its cloud computing platforms by RedLock, which claimed the attackers were using computing power at the electric car company to mine cryptocurrency.

Tesla says it addressed the vulnerability "within hours" and that the hack only affected internal test cars.

"Our initial investigation found no indication that customer privacy or vehicle safety or security was compromised in any way," a spokeswoman said.

RedLock said hackers gained access to a console that was not password-protected after finding out the company’s Amazon Web Services log-in details and used "sophisticated evasion measures" to avoid detection.

Reports suggest that Tesla paid RedLock £2,243 for uncovering the flaw.