Prime Minister Malcolm Turnbull flagged the move in July, prompted by the frequency and severity of attacks around the world.
It will allow Attorney-General George Brandis to apply for an extension 12 months before a sentence expires.
Also Read
"This bill strengthens the ability of our security agencies to continue to detain somebody if they've committed serious terrorism offences... And they have not been rehabilitated," Justice Minister Michael Keenan told parliament.
"We are not going to allow people who haven't been rehabilitated in prison to be released and then go on to harm our fellow Australians."
The law is similar to arrangements already in place for sex offenders and extremely violent individuals in some states. There would be regular reviews and reassessments.
The passing of the High Risk Terrorist Offenders Bill was opposed by the Greens and Liberal Democrat David Leyonhjelm, but had enough support to pass through the upper house Senate.
Leyonhjelm argued it was an unacceptable erosion of civil liberties.
"We should not be able to effectively impose life imprisonment on someone who was not originally sentenced to life imprisonment," he said.
Keenan said that since September 2014 when Australia's terror alert level was lifted to high, 55 people had been charged as a result of 24 counter-terrorism operations.
"Currently we have 40 people before the courts for terrorism-related offences," he added.
"We've also had four attacks in Australia during this period, and because of the great work of our counter-terrorism authorities, we have stopped a further 11 attacks.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
)