Uncharted waters: extreme environments provide clues to extraterrestrial life