SYDNEY, Australia — Girls as young as 12 have been strip-searched by the police in Australia’s most populous state in recent years, according to data released on Wednesday, a revelation that spurred new criticism of a tactic frequently used to hunt for drugs at places like music festivals.

The police minister for the state of New South Wales, David Elliott, acknowledged that officers had not always abided by standard procedures in conducting strip searches of children, which are legal if the circumstances are urgent and a parent or guardian is present.

But he said that if drugs were uncovered in the process, parents would nonetheless be happy. “I’ve got young children, and if I thought that the police felt that they were at risk of doing something wrong, I’d want them strip-searched,” he said.

Civil liberties advocates strenuously disagreed. They called the searches an invasive overstep of paternalistic police powers that leave psychological trauma. They also said laws allowing the tactic reflected a zero-tolerance drug policy that is doing more harm than good.