Chad Sabora, 31, of Skokie was arrested overnight in Chicago's South Austin neighborhood.
Police say they found packets of heroin in his car.
Sabora has been an assistant state's attorney in Cook County since 2005, but has been on unpaid leave since December.