An Australian company has been given the green light by a court in a bid to find out the identity of a "mole" who published its secret financial information on Twitter.

The company, which cannot be named for legal reasons, had swathes of its confidential information published by four Twitter accounts beginning in May this year.

Twitter has been taken to court after an Australian company's financial information was tweeted out. Credit:AP

The first account – which impersonated the company's CEO – had been tweeting for three days when it was discovered on May 19. It threatened to expose more material at midnight, and lawyers for the company demanded that Twitter shut the account down.

The social network complied, however it refused to reveal who was behind the account unless it was ordered to by a court.