Deputy Premier Troy Grant has come under an extraordinary attack from the peak NSW barristers' association over "draconian" proposed powers it warns are "an unprecedented attack on individual freedoms and the rule of law".

The NSW Bar Association has taken aim at Mr Grant's bill to introduce "crime prevention orders" that could restrict a person's movements for up to five years, warning it "potentially endangers the liberties of tens of thousands of NSW citizens".

Troy Grant's bill "potentially endangers the liberties" of NSW citizens, the Bar Association warns. Credit:Cole Bennetts

"The potential for unwarranted interference in individuals' liberties and their day-to-day lives is extreme," NSW Bar Association president Noel Hutley, SC, said in a statement on Wednesday.

Mr Hutley said the association was "deeply concerned" at the way the bill was introduced to Parliament, without consultation with professional legal bodies or legal reform or civil liberties groups, which was normally the role of the Attorney-General.