Astori was a member of the 23-man Italy squad that took part at the 2013 FIFA Confederations Cup under Prandelli; Italy reached the semi-finals, only to suffer a penalty shoot-out defeat to Spain following a 0–0 draw after extra time, on 27 June 2013. On 30 June 2013, Astori scored the opener against Uruguay in the third place match after knocking in the rebound from Alessandro Diamanti's free kick, as Italy won 3–2 on penalties to win the bronze-medal, following a 2–2 draw after extra time; this was his only international goal, and he became the first Cagliari player to score for Italy since Luigi Riva had done so 40 years earlier, in a 2–0 victory over Switzerland on 20 October 1973. A year later in September 2014, Astori was called up to the national team and earned his eighth international cap, in a 1–1 draw against Netherlands. Three years later on 5 September 2017, he played his last international match for Italy, starting the whole game and helped the national side kept a clean sheet, in a 1–0 victory over Israel. In total, Astori made 14 senior appearances for Italy between 2011 and 2017.