The 28-year-old moved to Pittodrie in 2008 but was released by the Dons at the end of the season.
Duff is likely to feature in Saints' next pre-season fixture against Arbroath at Gayfield park on Wednesday.
Source: BBC Sport