An intelligence officer said that a total of 170 men were taken from the villages of Al-Shajara and Gharib in Kirkuk province, after two IS flags were burned in the area, an account confirmed by other officials from the province.
"Members of the (IS) organisation who were driving around 30 vehicles took the kidnapped (people) to the centre of Hawijah," a nearby town where they have a court and a prison, the officer said.
A resident of Al-Shajara said that women pleaded with the IS militants not to harm the men, to which the fighters responded that they would investigate and only punish those responsible for the flag burning in the village.
Signup to our newsletter and follow us on Facebook and Twitter!
A resident from Gharib said they took around 90 people from that village, and that the fighters said they were searching for 15 men who burned their flag there.
It is not the first time IS has turned to mass detentions as it seeks to quell resistence in the swathes of territory in Iraq that it has overrun since June.
It seized 50 people in Kirkuk province after residents burned one of their positions and flag in September, and 20 more the following week for allegedly forming a resistance group.
Some of those seized by IS have been subsequently released.
But the group has also executed thousands of people in areas it controls in Iraq and Syria, sometimes in grisly beheadings it videotapes and posts online.