Source Code is a 2011 science fiction action thriller film directed by Duncan Jones and written by Ben Ripley. It stars Jake Gyllenhaal as a US Army officer who is sent into an eight-minute virtual re-creation of a real-life train explosion, and tasked with determining the identity of the terrorist who bombed it. Michelle Monaghan, Vera Farmiga, and Jeffrey Wright play supporting roles.