As you'll have to go through customs you should get an e-visa.
As a Malaysian Citizen you can get one and it's valid at Kochi Airport.
Albania, Andorra, Angola, Anguilla, Antigua & Barbuda, Argentina,
Armenia, Aruba, Australia, Austria, Azerbaijan, Bahamas, Barbados,
Belgium, Belize, Bolivia, Bosnia & Herzegovina, Botswana, Brazil,
Brunei, Bulgaria, Burundi, Cambodia, Cameron Union Republic, Canada,
Cape Verde, Cayman Island, Chile, China, China- SAR Hongkong, China-
SAR Macau, Colombia, Comoros, Cook Islands, Costa Rica, Cote d'lvoire,
Croatia, Cuba, Cyprus, Czech Republic, Denmark, Djibouti, Dominica,
Dominican Republic, East Timor, Ecuador, El Salvador, Eritrea,
Estonia, Fiji, Finland, France, Gabon, Gambia, Georgia, Germany,
Ghana, Greece, Grenada, Guatemala, Guinea, Guyana, Haiti, Honduras,
Hungary, Iceland, Indonesia, Iran, Ireland, Israel, Italy, Jamaica,
Japan, Jordan, Kazakhstan, Kenya, Kiribati,Kyrgyzstan , Laos, Latvia,
Lesotho, Liberia, Liechtenstein, Lithuania, Luxembourg, Madagascar,
Malawi, Malaysia, Mali, Malta, Marshall Islands, Mauritius,
Mexico, Micronesia, Moldova, Monaco, Mongolia, Montenegro, Montserrat,
Mozambique, Myanmar, Namibia, Nauru, Netherlands, New Zealand,
Nicaragua, Niger Republic, Niue Island, Norway, Oman, Palau,
Palestine, Panama, Papua New Guinea, Paraguay, Peru, Philippines,
Poland, Portugal , Republic of Korea, Republic of Macedonia, Romania,
Russia, Rwanda, Saint Christopher and Nevis, Saint Lucia, Saint
Vincent & the Grenadines, Samoa, San Marino, Senegal, Serbia,
Seychelles, Sierra Leone, Singapore, Slovakia, Slovenia, Solomon
Islands, South Africa, Spain, Sri Lanka, Suriname, Swaziland, Sweden,
Switzerland, Taiwan, Tajikistan, Tanzania, Thailand, Tonga, Trinidad &
Tobago, Turks & Caicos Island, Tuvalu, UAE, Uganda,Ukraine, United
Kingdom, Uruguay, USA, Uzbekistan, Vanuatu, Vatican City-Holy See,
Venezuela, Vietnam, Zambia and Zimbabwe
e-Visa is valid for entry through 25 designated Airports, i.e.
However, the foreigner can take exit from any of the authorized Immigration Check Posts (ICPs) in India.