
Indonesia won 3-1 to finish as runner-up in Group C with three points and a goal difference of +1, the same as Malaysia in Group B, which was topped by Vietnam.
However, Malaysia narrowly advanced, having scored a total of four goals compared with Indonesia’s three.
Malaysia now face an uphill task in the semi-final against favourites Thailand, who are known for their strong performance on home soil.
Under this year’s new rules, only the top teams from the three groups advance to the semi-finals, with the final spot awarded to the best-performing runner-up.
In the group stage, Malaysia beat Laos 4-1 but lost 0-2 to Vietnam, who will play the Philippines in the other semi-final.
Malaysia, represented by its U-23 team, last won a SEA Games football gold medal in 2011.