Daniel Craig will play a Stormtrooper in 'Star Wars: Episode VII - The Force Awakens'.

The 'Skyfall' actor's mystery role in the highly-anticipated blockbuster was accidentally leaked by fellow actor Simon Pegg, who let the secret slip before realising his mistake.

Speaking to The Sun newspaper at the premiere of Man Up in London, he said: 'I wasn't a Stormtrooper. Daniel Craig, he was a Stormtrooper.'

Scroll down for video

Handsome: Liverpool-born Daniel Craig will be a Stormtrooper in 'Star Wars: Episode VII - The Force Awakens'

Realising his mistake, he quickly admitted: 'I shouldn't have said that.'

While Simon has long been a rumoured star in the movie, Daniel's small cameo part was revealed last year, despite the fact the identity of his character will remain a mystery in the film as his face will be concealed.

An insider said: 'Daniel asked for some sort of secret cameo role - and was happy to have his name left off the posters.

'Fans will love trying to work out which covered up character is him.'

Bigmouth strikes again: The 'Skyfall' actor's mystery role in the highly-anticipated blockbuster was accidentally leaked by fellow actor Simon Pegg, who let the secret slip before realising his mistake

Sheepish: Simon realised his red carpet error and quickly added: 'I shouldn't have said that'

Meanwhile, the 47-year-old hunk recently returned to finish filming on his fourth movie as James Bond, 'Spectre', after he was flown to Manhattan to have emergency knee surgery, having injured himself shooting scenes for the film.

Craig was spotted arriving back in London two weeks ago to resume filming for the upcoming Sam Mendes-directed action adventure.

The 47-year-old actor appeared to have made a triumphant recovery from his arthroscopic surgery following an on-set injury, and was looking very sprightly as he landed at Heathrow on 22 April.

Iconic: Daniel Craig pictured filming Casino Royale on the beach in the Bahamas

The last images seen from the spy movie set saw a stunt double performing in Daniel's place, grappling with another man in a moving helicopter.

The star recently told chat show host Jimmy Kimmel that he tries to do as much of the action stuff as possible, saying, 'I like the fact that occasionally that you’ll see on screen that it’s my face and it’s me. And I think audiences hopefully appreciate that.'

The hugely-anticipated film marks Craig's fourth outing as Bond and is scheduled for release in November 2015.