Kuwait has made DNA testing mandatory for all citizens, as well as foreigners living in the country, following the deadly Shia mosque bombing by Isis last week that killed 26 people.

The country's parliament adopted the law on Wednesday to make DNA testing compulsory for its 1.3 million citizens and 2.9 million foreign residents, in order to create a database that will help security agencies track criminals.

The punishment for refusing to give a DNA sample to the government will land a person in jail for a year with a fine of $33,000.

"We have approved the DNA testing law and approved the additional funding. We are prepared to approve anything needed to boost security measures in the country," independent MP Jamal al-Omar was quoted saying by AFP.

The security measures come in the light of an Isis attack, in which a suicide bomber detonated himself at the Imam Sadiq Shia mosque in Kuwait City during Friday prayers, even as Muslims are observing the holy month of Ramadan.

The Najd Province, the Saudi affiliate of Isis, claimed responsibility for the attack. Isis has launched similar attacks on Shiite mosques in the Middle East over recent weeks, killing scores in Saudi Arabia and Yemen. The Sunni militants consider Shia Muslims to be 'heretics'.

Kuwait's interior ministry had declared a 'state of war' against the terror group. The country has already arrested 90 people, including two police officers, for investigation following the mosque attack.

The Kuwait parliament allocated $400 million to the interior ministry on Wednesday for building the DNA database of citizens and foreign residents.