The federal Immigration and Customs Enforcement agency’s practice of arresting people appearing at Connecticut courthouses for nonimmigration issues is raising red flags for many attorneys who deride the policy as unfair and dangerous.

The issue heated up last week when Samuel Cruz, who was in Danbury Superior Court on July 6 to be sentenced on a domestic assault charge, fled when he saw ICE agents waiting for him at the courthouse.