Pakistan Cricket Board (PCB) last week banned the 22-year-old spinner after he failed a drug test conducted during a domestic cricket event in January this year.
"I have filed an appeal against the ban," Hasan told reporters.
"The ban is illegal because I was not given a chance to defend myself and the PCB should have formed a tribunal to hear my point of view."
Local media last month reported Hasan was under investigation for using cocaine, but PCB in its announcement did not disclose the name of the banned substance.
Hasan featured in the 2012 World Twenty20 held in Sri Lanka and last played a one-day international in December 2014 against New Zealand in United Arab Emirates.
"I have never indulged in anything illegal and will fight the ban," said Hasan, who had been tipped as a future prospect for Pakistan at the international level.