Australia will invest a record $106m over four years to counter terrorism and violent extremism, requiring all parts of society to hunker down and prevent politically motivated violence.