->'''Psycho Mantis:''' I mean, you must spend every day pretending to act like you're falsely letting on that you aren't not unbetraying someone you don't not purport to allegedly not work for but really do! How do you keep all this shit straight without having an '''aneurysm'''?!\\
'''Revolver Ocelot:''' ''[shrug]'' Practice.
-->-- ''Webcomic/TheLastDaysOfFOXHOUND'', [[http://www.doctorshrugs.com/foxhound/comic.php?id=300 "Retroactive Conspiracy, Part II"]]

There's TheMole, who's a villain pretending to work for the good guys. And the ReverseMole, which is the same but reversed. You put them together, and you get the DoubleAgent, who's working for either the villain or the hero, and acts as a fake mole for the other.

Sometimes, they like to go one step beyond, [[UpToEleven or eleven]]. This is the trope for people who have exacted layers and layers of deception, normally as a massive GambitRoulette to satisfy their wishes, or their true employers' wishes. It's quite often that the chain of deception ends with the person the spy loves. The effect on the viewer can be [[MindScrew very disorienting]] as they try to keep up.

Contrast HeelFaceRevolvingDoor, which is a character cycling between being a hero and a villain, and ChronicBackstabbingDisorder, where people constantly make allegiances to stab them in the back. In the case of the revolving door and the disorder, the character is genuinely changing alignments or allegiances, whereas in this trope the character never truly changes (or at least, rarely), it's just the in-universe perceptions of the character that change. Sometimes, the recursion can reach IKnowYouKnowIKnow levels.

For example, take the classic UsefulNotes/ColdWar double agent. A Russian who "[[FakeDefector defects]]" to the Americans, to supply information back to the Russians. In these examples, the double agent is ''actually'' a spy for a fleet of invading aliens. But the CIA ''know'' about the aliens, thus make the man a mole for them. But the KGB had their suspicions about the aliens anyway, but don't have the tech themselves to infiltrate the aliens so they piggy back on the Americans. But this is all an act for his ''true'' employers, a PathOfInspiration... and so on.

Compare WildCard, who openly has no clear or multiple allegiances.

[[JustForFun/IThoughtItMeant This trope is not]] [[ComicSutra about a sex position]] (or a wrestling move), although now that it's been mentioned, there [[RuleThirtyFour probably is one]] by this name.



[[folder: Anime and Manga]]
* Follow along closely, children: Xellos in ''LightNovel/{{Slayers}}'' pretends to be a priest who's really a demon (who is a priest of the demon religion) who's really under the orders of a demon but is actually betraying THAT demon for another demon, and is trying to destroy the world except sometimes maybe not, and helps the team, except when trying to destroy them, except when he's secretly helping. Lina trusts him implicitly to eventually fuck her over, and says at much at one point. Xellos thinks she's crazy, but she's not the one serving multiple masters with multiple plans to destroy/save/rule the world.
* Kaji in ''Anime/NeonGenesisEvangelion'', appearing to work for Nerv, Seele, the Japanese Ministry of the Interior, and against another one of them, in varying configurations. His true mission is to find out the truth about the nature of both TheConspiracy behind Second Impact and the angels for himself.
* Sideways in ''Anime/TransformersArmada,'' not aided by a shaky, rushed translation. [[spoiler:He's an Autobot. No, a Decepticon posing as an Autobot. No, he just wants the Mini-cons for himself. No, he's working for Unicron. No, he ''is'' part of Unicron.]] And then he returns in ''Anime/TransformersCybertron'' to do it all over again [[spoiler:with a yet different final goal]].
* [[spoiler:Tsuchimikado Motoharu]] from ''LightNovel/ACertainMagicalIndex'' is [[spoiler:the only magician-esper hybrid]] and is constantly switching between working for Aleister Crowley (and Academy City's dark side) and Necessarius. It's even hinted that he works for even more covert organizations, but he's being let off the hook for the time being. The best part is that everyone knows he's got multiple agendas and nobody knows who he really works for... but because of this he makes an excellent neutral middleman between all these organizations so he's left alone for the most part.
* From ''Manga/{{Naruto}}'', we have Kabuto Yakushi. First, he disguised himself as a Leaf ninja for at least four years, only to reveal he's working for Orochimaru, who himself does not entirely trust him. Later we discover he was a spy for Sasori in Orochimaru's organization, but Orochimaru had long since removed that brainwashing and made him a double agent to keep tabs on the Akatsuki. After the apparent death of Orochimaru, Kabuto went rogue, with various reactions to the loss of Orochimaru from shock to joy. Nowadays, he's working [[BigBadDuumvirate with]] Tobi, but blackmailed him and is pretty much in charge, depending on their various trump cards. Later we learned he was a spy for Konoha (which he later spies on for Orochimaru) and infiltrated numerous countries on its behalf. However Konoha stopped trusting him resulting in him having a grudge again Konoha. Confused yet?
* ''Manga/{{Trigun}}'': Manga version of [[SexyPriest Nicholas D. Wolfwood]]. Part of every major faction in the series and [[MurderInc at least one minor one]]. Shot his [[EvilMentor teacher]] to join the [[CarnivalOfKillers Gung Ho Guns]] to subvert [[BigBad Knives']] plans for TheEndOfTheWorldAsWeKnowIt, but also manipulated TheHero on behalf of the villains before and even after becoming emotionally invested in his well-being. Then turned on them after [[TheHero Vash]] was defeated and captured, and staged a jail break. [[DyingMomentOfAwesome Finally]] abandons everyone in favor of his primary allegiance: the kids at the orphanage where he spent the [[CrapsackWorld closest thing to]] a happy bit of his childhood.
* [[spoiler:Nimura Furuta]] from ''Manga/TokyoGhoul'' and its sequel, '':Re''. [[spoiler:He's a TykeBomb working for the organization '''V''', a Ghoul Investigator, a collaborator in Dr. Kanou's experiments, a mole that leaks information to Aogiri, and infiltrated both the Ghoul Restaurant and the Clowns gang as Souta. To top off the complicated mess of his involvements, he's a BastardBastard from the Washuu Clan]]. Suffice to say, he's spent considerable time establishing connections with as many groups as possible. It isn't clear exactly where his true loyalties lie, or what his true goals might be.
* Agent Shigeki Arakawa from the JGSDF in ''[[{{Anime/Patlabor}} Patlabor 2]]'' is working for the government [[spoiler:while supposedly working with Tsuge, while supposedly working with Gotoh, while trying to appear innocent of Tsuge's terrorist acts as to avoid repercussions. It doesn't work for him, as he overplays Gotoh]].
* Aruka Schild of ''Manga/{{Needless}}''. She's introduced as a member of the resistance against Arklight. She appears to betray them, but was in fact working for Arklight as a double agent to obtain a data chip their leader possessed. When she appears again she makes several attempts to kill her brother Cruz, but mind bogglingly, also gives him help in secret, even going so far as to kill her own subordinates. Cruz is thoroughly confused by her contradictory actions. In their final encounter, Aruka reveals SHE was the one who hid the data chips in the first place, putting one in Cruz's head during a surgery he was having. Turns out all her murder attempts on her brother were so she wouldn't blow her cover while Arklight was watching and the help she gave in secret was to get Cruz, and the chip, as far away from harm and Arklight as possible. Sadly she is killed by Arklight as a traitor before she can heel-face turn, and the author never goes into further depth about her life of espionage and intrigue. How Aruka ended up under Arklight's thumb and what she was trying to accomplish would make a darn interesting spin-off story.

[[folder: Comic Books]]
* The [[Franchise/TransformersGeneration1 Autobot Punch/Counterpunch]] was originally portrayed as a DoubleAgent (an Autobot who pretended to be a Mole for the Decepticons). Later interpretations of the character sometimes depict him as a Double Reverse Quadruple Agent, often due to prolonged effects of BecomingTheMask.
* The second season of ''ComicBook/{{Sleeper}}'' has [[spoiler:Holden]] doing this through the entire run.
* During the early run of ''ComicBook/NewAvengers'', ComicBook/SpiderWoman is a quintuple agent. [[spoiler:She's an Avenger, a member of HYDRA, an agent of S.H.I.E.L.D., loyal to Nick Fury specifically, and really a Skrull.]]
* ''ComicBook/TrinityWar'': [[spoiler:The Atom turns out to be a JLA agent who was ordered to infiltrate the Justice League on Amanda Waller's orders. But then the finale reveals that she's actually Atomica of Earth-3, working with The Outsider and his [[LegionOfDoom Secret Society]] to manipulate everyone so that they could get their hands on PandorasBox and use it to summon the rest of the Crime Syndicate]].

[[folder:Fan Works]]
* In ''Fanfic/HarryPotterAndTheMethodsOfRationality'' Blaise Zabini is a ''[[UpToEleven quintuple]]'' agent. Who got [[LaserGuidedAmnesia Memory Charmed]] into thinking he's a quadruple agent. In a game with three sides. It was explicitly shown that the only reason he never became a sextuple agent was because he couldn't find anyone else to sell out to. He later makes this work for him: now that he's cultured his particular image, at a time when Slytherin House is divided in twain, with battle lines drawn, he sits ''in the middle.''
* In ''[[http://www.fanfiction.net/s/4446452/1/Deep-Cover Deep Cover]]'' Naruto spends years as spying on Sound for Konoha. Then he gets a job from Orochimaru to replace one of Konoha's other spies and feed them false information. In other words, he's a Konoha agent pretending to be a Sound agent pretending to be a Konoha agent pretending to be a Sound agent. In the end, he realizes that his loyalty to Konoha is only due to being born there and chooses to [[BecomingTheMask be a Sound ninja]].
* [[UpToEleven Basically everyone]] in ''[[http://www.fimfiction.net/story/48341/1/Changelings%2C-Changelings%2C-Everywhere/ Changelings, Changelings Everywhere!]]'' is either a spy or duplicate from another changeling faction, to the point most aren't really sure who they work for. Eventually the Twilight Sparkle changeling breaks out her graph paper so everyone can figure out who they work for.
* Kaji is this ''Fanfic/NeonMetathesisEvangelion'' as much as in [[Anime/NeonGenesisEvangelion canon]]. He works as inspector for the U.N., he works for Gendo, he works for the Japanese Ministry of the Interior, and at times also against all of those. Recently, he has even begun working for Kaworu in exchange for information. He already has pissed off or will piss off SEELE, Gendo and the JSSDF.

* In ''Film/{{Cypher}}'', the protagonist is the [[ThisLoserIsYou plaything]] in a GambitPileup. He ends up a hex-tuple spy, ultimately working for [[spoiler:himself. He pulled a Memory Gambit before the movie began, so he could pass one set of lie-detectors to get into one agency, then fail the same set of lie-detectors to get into the rival agency]].
* Lightly riffed in ''Film/IndianaJonesAndTheKingdomOfTheCrystalSkull'' : [[spoiler:Mac betrays Indy in the beginning, "explains" it partway through by claiming to be a CIA double-agent, then betrays him ''again'' at the end.]] Indy {{lampshade|Hanging}}s this:
-->'''Indy''': What, are you some kind of ''triple'' agent?!
-->'''[[spoiler:Mac]]''': Nah, I just lied about being a double.
* Koskov from ''Film/TheLivingDaylights'' is a somewhat {{downplayed|Trope}} version of this trope. By the end of the film his loyalties have mostly been clarified, [[spoiler:he was using the British to eliminate a superior who was about to have him arrested for corruption]], but earlier in the film he bounces back and forth.
* Cary Grant's character in ''Film/{{Charade}}'' is constantly changing sides, turning from TheMole to ReverseMole to DoubleAgent and eventually to Double Reverse Quadruple Agent.
* A relatively simple one in ''Film/{{Spy}}'': [[spoiler:CIA agent Bradley Fine turns up alive and working for the villain after faking his death, only for him to later reveal that he was actually forced to go into deep cover after another agent really did turn traitor and leaked the identities of the agency's top operatives.]]
* Ilsa Faust in ''Film/MissionImpossibleRogueNation'', whose allegiance seems to shift with every scene. Eventually, it's revealed that [[spoiler:she's a mole working under the command of MI6 whose goal is to take down the Syndicate; in order to maintain the illusion of working for them she is forced to "betray" Ethan and his allies numerous times to the enemy when in actuality she's helping them all the while... maybe.]]
* Nowak in ''Film/TheInquestOfPilotPirx'' is [[spoiler:a robot who works for no one but himself and pretends to be a human who for humanity's sake pretends to be a robot who works for no one but himself]].
* Protagonist Evelyn Salt in ''Film/{{Salt}}'', the extent of which is revealed over the course of the film. She started as a KGB, later SVR, SleeperAgent inserted into the United States as a child and joined the CIA, then gets outed by her own SVR handler as part of ThePlan and goes on the lam. Problem was, she'd [[GoingNative gone native]] after her American husband pulled out all the stops to get her freed after she was captured in North Korea on a CIA assignment, and after they kidnap [[spoiler:and later murder]] him, she fakes carrying out her part of the sleeper agents' plan, kills her handler, then infiltrates the infiltrators to completely wreck their attempt to start WorldWarIII.
* In ''Film/AtomicBlonde'', [[spoiler: Lorraine]] is revealed to be the mysterious Satchel, a KGB mole within MI6. Except the very end of the movie shows that in reality [[spoiler: she's a CIA agent, planted to [[PlayingBothSides play both of the other agencies]] against each other]].

* Severus Snape in ''Literature/HarryPotter''. Early on in the series we are given reason to suspect that he's an agent for Voldemort, but Dumbledore keeps insisting that Snape is on their side, without ever actually saying ''why'' he's so certain of this. The short version is, both sides think that Snape is ''their'' double agent, and both are aware of the other side thinking that to be the case. The only question is which side Snape actually ''does'' work for, and we don't finally learn the truth for a ''long'' time.
* In ''Literature/{{Dune}}'', Yueh came pretty close, what with his being mentally conditioned at the Imperial Medical School to be unable to harm another person, and then secretly captured along with his wife by the Harkonnen Family and re-brainwashed into an assassin, then retained by the Atreides Family on the grounds of his original, supposedly unbreakable conditioning, eventually betraying them to the Harkonnens on the promise of being reunited with his wife but secretly resisting their brainwashing and at the last minute helping the Duke's son and her mother escape, then arming the captured Duke Atreides with a concealed suicide weapon he can use to kill the Baron Harkonnen, then pretending to still be loyal to Harkonnen and asking to be reunited with his wife at which point Harkonnen tells him she is dead and kills him. More of a very unstable double agent, but then this all happens in something like the first three chapters of the book.
* ''Literature/XWingSeries'': Gara Petothel, though not intentionally, at least at first. At first she intended to be TheMole; later she [[BecomingTheMask became the mask]]. Later still she was discovered and had to go back to her old side - but worked to sabotage it.
* One of these is the main character of Creator/KeithLaumer's ''Dinosaur Beach'', leading to multiple levels of TomatoSurprise as he betrays one faction or another. His ultimate allegiance turns out to be to [[spoiler:''none'' of the main factions--all of them wished to "fix" the timestream by eliminating time travelers after their own time period, but none were willing to accept that their own time travel was part of the problem. He set everything up to retroactively prevent the invention of time travel, [[OmnicidalNeutral at the cost of the existence of everyone who was born after its invention]]]].
* The Literature/{{Illuminatus}} novels have Tobias Knight, described as the only quintuple agent in the history of espionage. Apparently at one point he was working for the CIA, KGB, FBI, Illuminati and the Discordians all at the same time, and had reached the point where he was participating in conspiracy for its own sake.
* While the [[MemoryGambit agent in question was completely unaware of his status]], unraveling the layers of this drive the plot of Creator/PhilipKDick's ''WeCanRememberItForYouWholesale''. {{M|indScrew}}aybe.
* The Creator/MackReynolds novel ''The Five-Way Secret Agent'', where a guy is drafted into an international espionage assignment by five different opposing factions, one after another.
* In James Clavell's ''Literature/NobleHouse'', [[spoiler:[[MagnificentBastard Roger Crosse]]]] is the chief of [[spoiler:British]] Intelligence for Hong Kong, who pretends to work for [[spoiler:the KGB]] but really reports to [[spoiler:London]] and earns money and commendations (by selling information to and selling out agents from) from both sides.
* Kemper Boyd in Creator/JamesEllroy's ''American Tabloid''. He works as a gofer for the Kennedy brothers, spies on them for J. Edgar Hoover, gets a job investigating civil rights abuses at the Kennedy Justice Department and uses it as a cover for operating an anti-Castro Cuban exile training camp for the CIA, and turns the camp into a front for a heroin-smuggling scheme he cooked up with TheMafia. If he had somehow worked out a way to get on the Hughes Tool Company payroll, he'd have been working both for and against ''every single faction'' in the novel simultaneously.
* Creator/TimPowers' novel ''Literature/{{Declare}}'' is based partially on the life of Kim Philby (see below, under "Real Life") and Cold War spying in general, so this inevitably comes into play. As is put to the protagonist Andrew Hale, the final fate of any spy network is "playback," where they're caught by a hostile power and used to feed false information back to their home agency, [[ExactlyWhatItSaysOnTheTin played back]] for all they're worth while trying to extract useful information from them. Hale ends the book [[spoiler:playing back against the British SIS and the Soviet KGB for ''himself'', finally getting out of the Great Game and retiring with the woman he loves]].
* ''Literature/TheRiddleMasterTrilogy'': [[spoiler:Deth: Pretends to be working for the High One, despite actually being the High One himself and working under deep cover for his impersonator, so that he can mentor his sucessor into success, which requires betraying said successor to the man unknowingly impersonating himself, aka the High One and faking his own death to impersonate a wizard who was never a wizard but was always him. (Deth why.)]]
* In ''Changes'', a novel of ''Literature/TheDresdenFiles'', Martin is a member of the Fellowship of St. Giles, people who have been infected by, but not yet succumbed to, the Red Vampire curse, who work to oppose the Red Court. As events in the novel progress [[spoiler:he betrays his fellow members to the Red Court, apparently as one of their agents. However he really is against the Red Court, just on his own terms, and betraying the others was part of a gambit of his, which involves sacrificing his own life to ultimately defeat the Red Court.]]
* In ''Literature/NineteenEightyFour'', O'Brien is a prominent member of the Inner Party (essentially government top brass), but Winston gets the gut feeling that he's not as loyal to the Party as he should be. About midway through the novel, O'Brien seemingly confirms Winston's suspicion when he reveals himself to be a member of [[LaResistance the Brotherhood]] and brings Winston into the fold. But then even later, it turns out that O'Brien was not only loyal to the Party all along, but was also the mastermind behind Winston's capture by the Thought Police and would eventually be the one to carry out Winston's MindRape.
-->'''Winston:''' They got you too!\\
'''O'Brien:''' [[WhamLine They got me a long time ago.]]

[[folder:Live-Action TV]]
* [[spoiler:Tony Almeida]] in Season 7 of ''Series/TwentyFour''. He initially seems to be working for David Emerson and his mercenaries, until it's revealed that he's working with Bill and Chloe to take down the people behind Emerson (General Benjamin Juma and Jonas Hodges). But then it's revealed he was evil and working for a cabal of rival {{Big Bad}}s who wanted Juma and Hodges taken down all along, then eventually we find out he's trying to gain the trust of the cabal's leader so he can kill him in revenge for [[spoiler:ordering the death of his wife back in Season 5.]]
* Dr. Jill Roberts (Jordana Brewster) in several episodes of ''Series/{{Chuck}}''. Her apparent loyalty switches back and forth in a dizzying manner.
* The loyalties of Adelle [=DeWitt=] in ''{{Series/Dollhouse}}'' dizzyingly switch between Rossum and Echo at least once or twice per episode throughout the second/final season. Eventually, it's revealed [[spoiler:she's working against Rossum]].
* Irina Derevko, Jack Bristow, and Arvin Sloane on ''Series/{{Alias}}'' who vacillate between working for terrorists, the CIA, the K Directorate, SD-6, Authorized Personnel Only, themselves, each other... Jack Bistrow at least is out for Sydney alone.
** And then there's Julian Sark, who literally does not care whose side he is on, as long as he ends up on top.
* ''Series/{{Farscape}}'': Scorpius takes this to mindbending levels by the end of the series. [[spoiler:Sikozu]] qualifies as well, especially in ''Peacekeeper Wars'' when she [[spoiler:sells out to the species she was created to destroy in an attempt to make them free her species]].
** In fact, when Scorpius finally explains all the levels of spying he's doing, Noranti exclaims, "Oh, I do admire your compartmentalization of duplicity!"
** In both cases they're actually much more ''straightforward'' than they first appear. They have one goal, and any allegiance beyond that is something to be picked up, faked, or discarded at will.
* Dr Kellerman in the ''Series/DoctorWho'' serial ''[[Recap/DoctorWhoS12E5RevengeOfTheCybermen Revenge of the Cybermen]]''.
* Figuring out how many factions Alex Krycek works for in any given episode of ''Series/TheXFiles'' is an exercise in futility, especially since he ''also'' has an unhealthy [[ChronicBackstabbingDisorder tendency to backstab his employers (mostly) for the lulz]].
* ''Series/{{Grimm}}'' has Captain Renard, a half-Wesen estranged son of the Royals. Every single faction he has contacted so far has assumed he's working for some other side. And his actions really aren't helping us decide either. Then in season 5 [[spoiler:he gets recruited by the Wesen supremacist group Black Claw, unless he's just stringing them along to entrap them, or to get his daughter back, or for some other reason.]] Keep in mind that this is all ''on top of'' being a police officer and Nick's boss, which usually means having to cover up when Nick's actions are more Grimm than cop.
-->'''Meisner''': You chose the wrong side, Sean.
-->'''Renard''': I never choose sides. You shouldn't either.
* ''Franchise/StarTrek''
** ''Series/StarTrekDeepSpaceNine'': So, does [[MysteriousPast Garak]] support the [[TheGovernment Detappa Council]]? The [[SecretPolice Obsidian Order]]? The [[PraetorianGuard Central Command]]? The [[LaResistance Dissident Movement]]? The [[TheFederation Federation]]? [[TheSpymaster Enabran Tain?]] [[ItsAllAboutMe Himself?]] Have fun trying to figure it out because none of the characters in-universe can! [[spoiler:His [[PatrioticFervour true loyalty]] seems to be to Cardassia itself and that means his alliances can shift all over the place depending on who he feels has Cardassia's best interests at heart.]]
-->'''Bashir:''' So of the stories you told me, which ones were true?
-->'''Garak:''' My dear doctor, they're all true.
-->'''Bashir:''' Even the lies?
-->'''Garak:''' Especially the lies.
** ''Series/StarTrekTheNextGeneration'': The two-part episode "Gambit" had both Picard and Riker captured by a group of artifact smugglers, and they pretend to work for them to investigate what they're really up to. Furthermore, Picard and Riker have to pretend to hate each other for this to work (the group's boss dislikes Picard, so Picard disliking Riker would hopefully make the boss take Riker into his confidence). Throw in a half dozen other crew members, each with their own personal loyalties and it starts to get very confusing. This is even lampshaded in the episode by Picard:
--> '''Picard:''' I'm having trouble remembering whose side I'm on!
* [[spoiler:Cortez]] on ''Series/LastResort''. While on the sub, [[spoiler:she is secretly a CIA mole that they've planted there to undermine a rogue nuclear sub captain by stealing his launch key. But then, the actual CIA has been partially infiltrated by the Conspiracy, so she's secretly working for a sub-conspiracy that wants to ''keep'' the rogue sub in play, just under a different captain.]]
* Parodied in a ''Series/{{MADtv}}'' sketch spoofing ''Series/{{Alias}}'', along with the show's hyperkinetic style (read the dialogue about two times as fast as you normally would, and you'll get the idea).
-->'''Sydney:''' Dad!
-->'''Dad:''' There's no time. I'm a spy for [=SD6=].
-->'''Sydney:''' But [=SD6=] is a rogue faction for the CIA.
-->'''Dad:''' But I'm a double agent for the CIA.
-->'''Sydney:''' How do I know you're not a triple agent pretending to be a double agent who's pretending to be an agent for [=SD6=] when you're really not an agent at all?
-->'''Dad:''' ...Now I'm confused.
* ''Series/{{Continuum}}'' [[spoiler:Everyone. Liber8 was created and sent back in time by 2077-Alec. Escher is an ex-Freelancer and the creator of CPS, the organization that Kira works for. Garza was hired by Liber8 to assassinate 2077-Alec who then hires her to go back and intimidate 2012-Alec. Julian, after being recruited by Liber8, arrested, reformed, then being intimidated by Kira becomes Theseus and impersonates Kagame in order to influence Lucas into hacking the city. Kellog, working for his own interests pits Sonya and Travis against each other, only to end up working for them when they team up again, then betrays them to the Freelancers and Kira to Escher. Curtis, a Liber8 member, after being shot by Kira shows up later as a Freelancer.]] And that's only what viewers know after the first two seasons.
* Nicholas Brody, a POW brought back after 8 years on ''Series/{{Homeland}}'' is suspected to be TheMole for Al Qaeda by CIA agent Carrie Matheson. [[spoiler:Turns out she's right, however the CIA manages to convince him to work for them in exchange for immunity after his attempted suicide bombing. It becomes unclear where his allegiance lies.]]
* Aidan Matthews in ''Series/{{Revenge}}''. Starts out as Emily's mole inside Grayson Global, planted with the help of their mentor Takeda, and somehow manages to not blow his cover even once Emily's marriage to Daniel is revealed to be a fraud, leading to a point where both Conrad and Victoria believe him to be their double agent in their feud with ''each other''.
* On ''Series/TheMusketeers'', Rochefort was originally the Cardinal's spy in Spain, who was kept hostage, tortured, and then sent back to France to spy on them, however he has his own plans to [[spoiler:usurp the king and marry Queen Anne]].
* On ''Series/PowerRangersDinoForce'', the white ranger starts of as a villain, but eventually becomes this (and/or a HeelFaceRevolvingDoor). He later splits into ''two'' white rangers, one good and the other evil, who later [[ThereCanOnlyBeOne battle to the death one on one]].
* Leo Kamali from ''Series/StrikeBack'': Shadow Warfare.

[[folder:Newspaper Comics]]
* ''ComicStrip/CalvinAndHobbes'' did this in one strip where they're playing football. Then they try to justify why the other didn't score (I'm actually a double agent, triple agent, your goal is on top of mine so anytime you score it's a point for me, I'm actually a badminton player disguised as a football player, etc.) until it turns into a game of {{Calvinball}}.

[[folder: Radio]]
* Parodied to the hilt in the radio play 'The Dog It Was That Died' by Creator/TomStoppard.

[[folder:Tabletop Games]]
* The Green Lady from ''TabletopGame/{{Exalted}}'' is working for four different Deathlords--one of whom [[CreepyCrossdresser is convinced she's secretly a man]]--as well as the Bureau of Destiny, and playing every last one of them off of the others. In fact, she's pulling such a convoluted, multilayered MemoryGambit that even ''she'' doesn't know whose side she's really on. [[spoiler:Her true loyalties lie with Heaven, but she may well end up helping to destroy the world before her gambit resolves itself.]]
* Fully and hilariously possible in ''TabletopGame/{{Paranoia}}'': secret societies often have agents infiltrate other secret societies, who in turn might use the very same person to spy on yet another secret society, ''ad nauseum''. The rulebook even acknowledges the (very remote) possibility of spying on all of Alpha Complex at once. "[[DeadpanSnarker Try to keep your cover stories straight.]]"
** The end result of this is a secret society called The Wobblies. The Computer heard about it and sent a team of Troubleshooters to gather information. Problem was, it didn't exist (the RealLife Wobblies had died out long before Alpha Complex was created), so when the Troubleshooters returned with no information they were swiftly executed for insubordination. This cycle repeated until one group got smart and [[TakeAThirdOption actually founded the society just so they had something to spy on]]. This attracted the attention of other groups, who sent in their own spies, resulting in [[FlockOfWolves a group made up entirely of spies from other groups]].
* ''TabletopGame/TheWerewolvesOfMillersHollow'' will sometime [[StealthPun flirt]] with this. The {{m|oleInCharge}}ayor of the village can secretly be a [[OurWerewolvesAreDifferent werewolf]], but more precisely a [[FoodChainOfEvil white werewolf]], as well as the [[InterspeciesRomance lover]] of the [[MagicalFlutist pied piper]]. It works better if there are many players.
* ''TabletopGame/{{Munchkin}} Impossible'' has the triple agent card. It allows you to claim allegiance to three nations (out of the four available) at the same time. There's also the {{sidekick}} [=Dusty McRonin=], the man of too many allegiances.
* Loyalties in ''TabletopGame/DemonTheFallen'' can get convoluted, as shown with Fell Knight Guanli in the ''City of Angels'' supplement. He's a LAPD officer... except he's secretly a demon and the Minister of Lions in the Infernal Court of Los Angeles... except he's actually TheMole for the Cryptic faction placed there to spy on the Court... except he's in the process of betraying them too by killing other demons alongside [[UnholyMatrimony his lover Ravana]] to consume their power... And then there's the fact that Ravana's loyalties are in turn somewhat convoluted...

* ''Toys/{{Bionicle}}'' has a rather simple one, as these things go: Roodaka worked for both the Brotherhood of Makuta and the Dark Hunters, but she played them off of each other and her true allegiance is to herself. Eventually both sides found out and started targeting her; at which point a third faction, the Order of Mata Nui, caught her and made her a BoxedCrook.

[[folder:Video Games]]
* {{Trope Namer|s}} is the original description of [[Characters/TeamFortress2 the Spy]] in ''VideoGame/TeamFortress2''. [[GameplayAndStorySegregation In game]], you can disguise yourself as a spy. Since this disguise includes a random disguise (so you look like a proper spy to the enemy team), you can be a spy disguised as a spy disguised as a spy. [[WrongGenreSavvy The soldier in "Meet the Spy" did think the spy was a spy from the other team.]]
** For more on this topic, see [[WMG/TeamFortress2 the game's Wild Mass Guessing page]].
*** For [[MindScrew bonus points]], it may be possible for the spy the other spy is disguised as to be ''you''. And if you are a spy yourself, the enemy spy can disguise himself as you, disguised as himself.
* Revolver Ocelot in ''Franchise/MetalGear'' has, at various points in the series, apparently been working for the CIA, NSA, KGB, GRU, FOXHOUND, rogue FOXHOUND, the Gurlukovich Mercenaries, Solidus Snake and the Patriots. In ''VideoGame/MetalGearSolid4GunsOfThePatriots'', we learn that [[spoiler:he was truly faithful to Big Boss, and the entire ''Solid'' games was a plot by him to recover Big Boss's remains and fulfill his dream of Outer Heaven]].
** EVA from ''VideoGame/MetalGearSolid3SnakeEater''. When Snake meets her, he assumes that she is a NSA agent who defected to the Soviets and now works for the KGB infiltrating Volgin's private army. [[spoiler:But she's actually a Chinese spy posing as a KGB agent and let herself get captured by Volgin. She walked into Snake by accident without knowing about his mission (since she didn't know the password), but when he asked her if she was "ADAM", she did some quick thinking and said she was ADAM's partner "EVA". Snake bought it and "EVA" ran with it during the entire mission.]]
*** [[spoiler:For added bonus points, both EVA and Snake were unaware of the fact that ADAM was Ocelot.]]
* [[spoiler:Zelos]] of ''VideoGame/TalesOfSymphonia'' works for Lloyd by working for Kratos while working for [[spoiler:Yggdrasil]] by pretending to pretend to be helping Lloyd in one ending. He also passes information to [[spoiler:the Renegades]] throughout, that group also being headed up by a more traditional DoubleAgent who's pretending to still be working for [[spoiler:Yggdrasill]] himself. Of course, [[spoiler:Zelos']] ''true'' allegiance for most of the game is to ''himself'', explicitly so when he's found out. Afterward, he [[spoiler:either pulls a genuine and permanent HeelFaceTurn or else [[SuicideByCop forces the party to fight and kill him]], depending on which path you're on.]]
* The above character's SpiritualSuccessor, [[spoiler:Alvin]] from ''VideoGame/TalesOfXillia'', is even ''worse.'' First, he seems to be on your side. Then, it's revealed he's done work for [[spoiler:Exodus, the group trying to assassinate Milla]]. He's also spying for [[spoiler:Gaius and the Chimeriad]], manipulating [[spoiler:Ivar]], and at one point he leaks information to [[spoiler:Muzet as well]]. This is less of a diabolical plot on his part and more of a natural impulse; [[spoiler:he was raised as a child spy.]]
* ''VideoGame/{{Xenoblade}}'' has Alvis. Through the course of the story, it's impossible to tell which side he's on. At one point he's a mysterious helper, then he's acting shady with a group of shady characters, then he's back again on Shulk's side. It continues to grow from there, and it's not until the very end that his true motivations become clear.
* ''[[VideoGame/FireEmblemTellius Fire Emblem: Path of Radiance]]'' and ''[[VideoGame/FireEmblemTellius Radiant Dawn]]'' have [[MemeticBadass Naesala]], Raven King of Kilvas. He works for Daein as a mercenary leader (the rest of the mercenaries are Kilvans), and he seemingly betrayed Reyson for Oliver, but later he betrays Daein to protect Reyson and Leanne from Ashnard. ChronicBackstabbingDisorder, anyone? [[spoiler:Turns out his ultimate loyalty was to his own kingdom, but this was complicated by a [[DealWithTheDevil blood pact]] he'd signed with a certain Begnion senator. Generally, he took whichever side would benefit Kilvas the most, or harm it the least. The last time he switched sides, he did so in order to secure the blood pact and do away with it once and for all.]]
* ''Franchise/CarmenSandiego'': Carmen is described in some of the game manuals as a ''Triple'' agent. It's not too hard to think she probably reaches Double Reverse Quadruple Agent status pretty easily, given her [[ImpossibleTheft legendary stealing prowess]].
* ''Franchise/KingdomHearts'' has Axel in ''Chain of Memories'', working for Marluxia. [[spoiler:He betrays Marluxia for Zexion and Lexaeus]] and then ditches them to fend for himself - although ''358/2 Days'' reveals that [[spoiler:he was under Saix's orders the whole time]]. In ''VideoGame/KingdomHeartsII'', he abandons the Organization after being ordered to eliminate Roxas, [[spoiler:kidnapping Kairi]], and ultimately [[spoiler:sacrificing himself to protect Sora]]. He plays for all teams.
* In ''VideoGame/KnightsOfTheOldRepublic'', you can repeatably betray the two instructors of the Sith Academy on Korriban, pitching them against each other while pretending to work for each of them as a double agent. This can end with them both saying to kill the other, then they feel the effects of the poison you gave to both of them, [[OhCrap leading them to realize you are working for yourself]]. As is ''proper'' for a Sith, so really [[GoneHorriblyRight they're very good teachers]].
* In ''VideoGame/BaldursGate II'', while in Underdark, you can triple-cross two Drow priestesses, an elder Baatezu, and a white dragon, who each thinks you work for them, while in reality, you pursue your own agenda...
* In ''VideoGame/StarWarsTheOldRepublic'' Imperial characters have several opportunities to do this and decide on the fly whose side you're actually on, if anyone's. One of the most notable cases is act 2 in Imperial Agent's story, where you're an undercover agent for both the Imperial and Republic intelligences [[spoiler:though not entirely by choice for the Republic, since they've found the keyword to set off your brainwashing (originally put in place by Imperials at the command of the Sith) which allows them to give orders you cannot disobey. And then one of the other members of the Republic team turns out to have been on to you but let it go because he was actually working for a ''third'' faction all along. Then in the third act things get ''complicated'']].
* The Lost Archive DLC in VideoGame/AssassinsCreedRevelations reveals [[spoiler:Lucy to be one]].
* Harley Filben in VideoGame/DeusEx. He starts off as a UNATCO informant giving JC Denton information about the NSF. As it turns out, [[spoiler:he's working for then NSF. And near the end of the game, he reveals that he's actually part of the Illuminati, posing as an NSF agent.]] The funny thing is, every time he reveals a new identity, that's the side you happen to be working with at that part in time. He was on your side the whole time.
* [[spoiler:Dietrich Troy/Nicklaus]] in ''VideoGame/SpyFiction''. [[spoiler:He's working for both Phantom and Enigma. He's committed several acts of terrorism, but also wants revenge on Scarface.]] [[FridgeBrilliance In hindsight]], it also appears that [[spoiler:he specifically arranged the destruction of the primary Lahder production facilities, the rescue of Doctor Coleman, and the defeat of Scarface, so he's at least against Enigma if not necessarily aligned with Phantom]].
* ''VideoGame/{{Battlefield 3}}'' features [[spoiler:the BigBad]], who, it is revealed late in the game, is [[spoiler:actually an American agent provocateur]], which is why no one believes the main character's assertions that he's a bad guy. While it is entirely possible to look at the evidence and draw the same conclusion as the interrogators, the protagonist ultimately decides they're wrong and goes after him. [[spoiler:And he's right. The BigBad used his American contacts to cover up his terrorist dealings, and is only just barely stopped from nuking New York City by the protagonist.]]
* An almost untraceable example comes from VideoGame/PlanescapeTorment in the form of a semi-retired officer of the Harmonium named Ebb Creakknees. Early in the game, he is presented as a 'tout', or guide, who sits in the Smoldering Corpse bar and is one of the most valuable and helpful sources of information on Sigil and its environs. Much later, however, he can be found leading a group of Anarchists in Curst and reveals he is a double agent spying on the Harmonium...except if certain conditions are met, in which he reveals himself to be a ''triple'' agent, a member of the Harmonium pretending to be an Anarchist pretending to be a member of the Harmonium.
* Delita, TheChessmaster from ''VideoGame/FinalFantasyTactics'' is allegedly a DoubleAgent working for the church in the Southern Sky forces, but he's also strategically feeding info to Ramza while sending bad intel to the Church. [[spoiler:In his case, he's ultimately a WildCard out for his own ambition. Acting as a Double Reverse Quadruple Agent allows him to stay out of the way while Ramza kills off the other players in the GambitPileup.]]
* One career level in ''VideoGame/TheSims3'' Law Enforcement career is "Triple Agent".

[[folder:Web Comics]]
* Professor Tiktoffen in ''Webcomic/GirlGenius''. Everyone seems to think they are the ones he is really working for. It's been [[http://www.girlgeniusonline.com/comic.php?date=20110704 revealed]] that he was pretty much ''everyone's'' "man inside" the city-state of Mechanicsburg, and his true loyalty was solely to himself - his goal was to take over Mechanicsburg, and by making all the other factions think he was on their side in the struggle for the empire, they wouldn't oppose him when he made his bid for power over a single city.
* Webcomic/SchlockMercenary:
** Tagon's Toughs occasionally find they have the opportunity to play this role, or at least what looks like the opportunity to do so. Look for the phrase "get paid twice"; it means both sides in a conflict are trying to hire the Toughs, and Tagon is optimistically trying to find a way to satisfy both contracts without letting either one catch on to his game.
** On at least [[http://www.schlockmercenary.com/2002-09-29 one]] occasion they successfully managed to get paid ''five'' times.
** They get paid four times in ''The Body Politic'', starting [[http://www.schlockmercenary.com/2007-07-15 here]]. They get paid twice for stealing Xinchub's corpse, once for ''preventing'' the same theft, and once more for cloning a copy.
*** Though it's worth noting that the two sides paying for the corpse's theft [[spoiler:are actually working together, because "[[BatmanGambit [Tagon] will do anything if he thinks he can be paid twice]]".]]
* ''Webcomic/TheOrderOfTheStick'' explains the trope with a simple quote:
-->'''Nale:''' Glamored Armor? Isn't that kind of a weak ability, [[spoiler:Dad]]?\\
[[spoiler:'''Tarquin:''']] Actually, when you change flags as often as I do, it's a real cost-saver.

[[folder:Western Animation]]
* ''WesternAnimation/TheAvengersEarthsMightiestHeroes'': Black Widow. ...[[WildMassGuessing Maybe.]] [[EpilepticTrees Maybe not.]] [[TheMole Or...]] [[ReverseMole Who knows?]] Season Two shows [[spoiler:Nick Fury trusts her directly as a Lancer when dealing with the Skrull invasion. Then again he also had Mockingbird as a confidant, and she's the BigBad Skrull Queen in disguise]].

[[folder:Real Life]]
* [[http://www.historycommons.org/entity.jsp?entity=ali_touchent_1 Ali Touchent]], identified as "Tarek" by the pseudonymous [[http://articles.cnn.com/2006-11-16/world/schuster.column_1_qaeda-bin-laden-unit-jihadi?_s=PM:WORLD "Omar Nasiri"]] in his book "Inside The Jihad: My Life with Al-Qaeda - A Spy's Story", was supposedly a fervent and devoted member of the fundamentalist Armed Islamic Group (GIA) fighting against the Algerian military government. However, later evidence surfaced that he may've been an ''agent provocateur'' working with and/or for the Algerian government to help portray the GIA in the light of ruthless killers by goading them into committing various atrocities. However, the fact that he was behind the Paris metro attacks of 1995, among other terrorist acts, [[BecomingTheMask makes his allegiances all the more murky and questionable]].
* During the Second World War, Britain [[https://en.wikipedia.org/wiki/Double-Cross_System had great success (in fact, 100% success)]] at detecting German spies and either imprisoning/executing them, or turning them into double agents.
** There's a story that the Germans, suspecting many of their spies had been turned, tried a counter: they instructed one of their spies to (on arrival) go to British intelligence and admit to being a German spy and to offer to be a double agent. This way, they'd find out what the British told double agents to say, while the spy would pass their real observations on by alternate means. This would have been a triple agent (i.e. pretending to be a double agent.) However, on arrival the spy went to British intelligence as planned but also told them about the triple agent plan, so the British could control both streams of information - hence he was a quadruple agent.
** Several spies gave intelligence that led Hitler to conclude that Normandy being the target was a deception and that Calais, located at the shortest distance across the Channel and also closer to targets in Germany itself, was the real target (one of the agents truthfully reported that Normandy was the target, but because his particular information stream to this point [[CryingWolf had been verified lies]] [[CassandraTruth the Germans took it as further evidence of a Calais landing]]). The resulting intelligence caused Hitler to keep his armored reserves concentrated at Calais until it was too late for the potential reserves to do anything meaningful. [[RefugeInAudacity These agents were notified by radio that they had been awarded the Iron Cross for their services to Germany.]]