In 2017, Hector was named in Germany's squad for the Confederations Cup in Russia. He played in all-but-one of Germany's matches at the tournament as the nation went on to lift the title.