"Directions have been issued for carrying out stern action against all the banned outfits without any discrimination not only by me but by the president as well," Ashraf said in his opening remarks at a meeting of his cabinet.
"Those who are perpetrating these heinous acts are not only attempting to weaken our social fabric and democratic culture, they are also bringing a bad name to Pakistan and Islam," he said.
The Pakistan People’s Party-led government, which is set to complete its five-year term on March 16, has come in for strong criticism for its failure to prevent attacks on the minority Shia sect.
A devastating bomb blast in the Shia neighbourhood of AbbasTown in Karachi killed 48 people and injured scores more on March 3.
Nearly 200 people, a majority of them Shia Hazaras, were killed in two bombings in the southwestern city of Quetta in the first two months of the year.
Those attacks triggered countrywide protests by Shia groups and rights bodies.
The government has been criticised for failing to crack down on the banned Lashkar-e-Jhangvi, which claimed the attacks in Quetta.
However, Ashraf said his government is committed to eradicating all forms of terrorism and militancy.
"No efforts would be spared to bring the perpetrators to justice and exemplary punishment will be given to those found involved in these cowardly attacks," he added.
The premier contended that a "blame game" would not serve the "common goal of defeating terrorism".
He called for "collective will and efforts" by all political stakeholders and the civil society to eradicate terrorism.
Ashraf referred to two conferences of political parties that were orgnaised recently to find solutions to the issue of terrorism and said any political initiative aimed at achieving peace and stability would be welcomed.
"The government believes that the challenge of terrorism and threats to peace and security of the country can only be tackled through national consensus and collective response," he said.
Ashraf also spoke at length on the achievements of the PPP-led government, saying the party would present “ourselves to the people of Pakistan very soon” after completing a five-year term.
"I am confident that the masses would acknowledge the service rendered by this government despite financial constraints and adverse regional situation," he said.
The government, he said, is "committed to holding elections on time" and creating history by "ensuring the transfer of power by a political government".
Though the PPP took significant steps such as the restoration of the Constitution of 1973, Ashraf’s government has been buffeted by allegations of corruption and poor governance in recent months.
The Supreme Court is currently investigating several scams involving top federal ministers.
In one case related to alleged corruption in setting up rental power projects, the apex court had ordered the arrest of Ashraf.
Now sponsor Viacom 18's Colors pulls out of Wharton forum
UNSC imposes new sanctions on North Korea
Ousted Pistorius detective quits SA police
FA Cup becomes priority for wounded Manchester United