A major cyberattack has compromised personal data belonging to 900,000 current and former customers of Australia’s largest energy retailer.

The company has also said it was aware of a potential threat since early July.

Origin Energy says it started reviewing a "potential security threat" early this month but deemed it not credible, before new information indicated a breach.