'"I thought it had probably leaked from the BBC," the author said, adding she had feared someone at the corporation had "put two and two together".
Rowling's secret identity was actually revealed after a partner at a law firm told his wife's best friend.
The friend then revealed Rowling's identity to a Sunday Times journalist.
"I was a bit unlucky the way it happened," the Harry Potter creator told BBC Radio 2's Graham Norton.'