Abū Alī Hasan ibn Muhammad ibn Abbās (Persian: ابوعلی حسن بن محمد بن عباس), better known as Hasanak the Vizier (حسنک وزیر), also Hasanak Mīkālī (حسنک میکالی), was an Iranian statesman from the Mikalid family, who served as the vizier of the Ghaznavid sultan Mahmud from 1024 to 1030. After having been removed from the vizierate, Hasanak still continued to be an important and influential figure in the Ghaznavid state. However, he later fell out of favor and was executed by hanging during the reign of Mahmud's son Mas'ud I. Hasanak's official charge was infidelity which was a politically motivated charge, and his execution was ordered by the Abbasid caliph of Baghdad.