"Two members of the peshmerga were killed and five wounded in a suicide attack on K1 base," a major general in the peshmerga told AFP on condition of anonymity.
He said five armed men wearing suicide belts attacked the base, where he said foreign advisers from the US-led coalition assisting Iraq against the jihadists were stationed.
"The attack was thwarted and all the attackers were killed," the officer.
Wista Rasool, another senior peshmerga officer in the area, confirmed the attack, which targeted a base between the Kurdish-controlled city of Kirkuk and the IS-held town of Hawija.
More From This Section
It had already lost most of it and its last fighters are mostly holed up in the Old City, preparing for a bloody last stand.
The jihadist group, whose self-proclaimed "caliphate" is disintegrating, has carried out a number of diversionary attacks on other fronts in recent months but failed to regain the initiative.
Hawija is one of the last two significant Iraqi towns, with Tal Afar, still under jihadist control.