South Africa had already clinched the five-match series with one encounter left to play in Cape Town on Wednesday.
Kyle Abbott took four wickets as Australia were bowled out for 167 in just 36.4 overs, leaving South Africa with a modest target to chase. They did so successfully, reaching 168 for the loss of four wickets in 35.3 overs.
In the three previous ODIs, South Africa’s batsmen dominated the inexperienced Australian attack but on Sunday it was their bowlers who took centre stage.
In reply, South Africa were two wickets down for 29 runs before Du Plessis and JP Duminy steadied the ship and set them on course for a potential clean-sweep of the series.
Du Plessis was patient, although he should have been out on 17 when Adam Zampa spilled a simple catch. Rilee Rossouw finished 33 not out, thrashing the winning runs through the covers.