The CIA blew the cover of one of its former deputy directors after revealing he had a cameo in the latest episode of Game of Thrones.

David S Cohen made a brief appearance as an unnamed resident of Winterfell in season 8, episode 2 of the hit HBO series, where he was seen being served soup by Ser Davos Seaworth (Liam Cunningham).

The CIA revealed Cohen's cameo in a tweet that read: “Little birds, be on the lookout for a former deputy director of ours wandering through #Westeros in tonight’s episode of #GameOfThrones."

Game of Thrones family tree Show all 8 1 /8 Game of Thrones family tree Game of Thrones family tree Targaryens Marriage: Rhaella Targaryen, Aerys II Targaryen AKA "The Mad King" Kids: Rhaegar Targaryen, Viserys Targaryen, Daenerys Targaryen (married Khal Drogo) Marriage: Rhaegar Targaryen and Elia Martell Kids: Rhaenys Targaryen, Aegon Targaryen II Romance: Rhaegar Targaryen and Lyanna stark Kids: Aegon Tagaryen (AKA Jon Snow) HBO Game of Thrones family tree Martells Doran Martell, Oberyn Martell, Elia Martell Marriage: Elia Martell and Rhaegar Targaryen Kids: Rhaenys Targaryen, Aegon Targaryen II Marriage: Oberyn Martell, Ellaria Sand Kids: Tyene Sand, Obara Sand, Nymeria Sand HBO Game of Thrones family tree Baratheon Stannis Baratheon, Renly Baratheon (lover: Loras Tyrell), Robert Baratheon (kid: Gendry) Marriage: Stannis Baratheon and Selyse Baratheon Kids: Shireen Baratheon Marriage: Robert Baratheon and Cersei Lannister Kids: Joffrey Baratheon, Myrcella Baratheon, Tommen Baratheon (all Jaime’s) Marriage: Joffrey Baratheon and Margaery Tyrell HBO Game of Thrones family tree Lannisters Tywin Lannister, Kevan Lannister (kid: Lancel Lannister) Marriage: Tywin Lannister, Joanna Lannister Kids: Cersei Lannister, Jaime Lannister, Tyrion Lannister (married: Sansa Stark) Romance: Cersei Lannister and Jaime Lannister Kids: Joffrey, Myrcella, Tommen HBO Game of Thrones family tree Tyrells Marriage: Olenna Tyrell and Luthor Tyrell Kids: Mace Tyrell Marriage: Mace Tyrell and Alerie Tyrell Kids: Loras Tyrell, Margaery Tyrell (married: Joffrey Baratheon) HBO Game of Thrones family tree Tullys Brynden ”The Blackfish” Tully, Hoster Tully Marriage: Hoster Tully and Minisa Tully Kids: Lysa Arryn, Cateyn Stark, Edmure Tully Marriage: Lysa Arryn and Jon Arryn Kids: Robyn Arryn Marriage: Catelyn Stark and Ned Stark Kids: Robb Stark (married Talisa Stark), Sansa Stark (married Tyrion Lannister), Arya Stark, Bran Stark, Rickon Stark Marriage: Edmure Tully and Roslin Frey (daughter of Walder Frey) HBO Game of Thrones family tree Starks Ned Stark, Benjen Stark, Brandon Stark, Lyanna Stark Romance: Lyanna Stark and Rhaegar Targaryen Kids: Aegon Tagaryen (AKA Jon Snow) Marriage: Ned Stark and Catelyn Stark Kids: Robb Stark (married Talisa Stark), Sansa Stark (married Tyrion Lannister), Arya Stark, Bran Stark, Rickon Stark HBO Game of Thrones family tree Greyjoys Euron Greyjoy, Aeron Greyjoy, Balon Greyjoy Marriage: Balon Greyjoy and Alannts Harlaw Kids: Yara Greyjoy, Theon Greyjoy, Rodrik Greyjoy, Maron Greyjoy HBO

Cohen served as deputy director of the CIA under President Barack Obama from 2015 to 2017. He responded to the agency's tweet by joking that they had “blown his cover”.

However, he had already hinted about his forthcoming cameo in a tweet posted the week before.

“You seem to have good sources in Winterfell,” he wrote in response to Playboy's Washington correspondent, who was first to report the planned cameo.

In an interview with NBC, Cohen revealed that he asked his brother-in-law, who is a showrunner on the HBO show, if he could be an extra while they were celebrating Thanksgiving in 2017.