Astronomers have detected a rare sugar in a distant molecular cloud, adding a new twist to the search for life's chemical ingredients beyond Earth.