The NSW Supreme Court has frozen assets relating to the sale of a revealing book by former Guantanamo Bay detainee David Hicks as Commonwealth prosecutors attempt to seize all proceeds from the sale of the book.

The Commonwealth claims that money from the sale of Mr Hicks's book, Guantanamo, My Journey, which is about his six-year ordeal in the notorious prison, are the proceeds of crime.

Former Guantanamo Bay detainee David Hicks. Credit:Jacky Ghossein

About 30,000 copies of the book, published by Random House, have been sold since it went on sale last year.

In response to an application from the Commonwealth Director of Public Prosecutions, Justice Peter Garling issued a restraining order in relation to two assets connected to the sale of the book - a trust fund called the Misha Family Trust and a company called Lakeside Pty Ltd.