Sri Lanka Navy prevented an illegal migration attempt to Australia by boat and detained 18 would-be asylum seekers yesterday.