%% New version of image selected per Image Pickin' thread: http://tvtropes.org/pmwiki/posts.php?discussion=1351000003061460100
%% Image concept kept on page per admin request.
%% Do not change or remove this image.
[[caption-width-right:197:More evil than that...]]

->''"Stupid Safety-bots! How come every time ya build giant robots they gotta go and take over the world?"''
-->-- '''Senator Safely''', ''WesternAnimation/CodenameKidsNextDoor''

Whenever an ArtificialIntelligence (A.I.) is introduced in a story, there is a very good chance that it will, for whatever reason, become evil and attempt to [[TurnedAgainstTheirMasters Turn Against Its Masters]], CrushKillDestroy [[KillAllHumans All Humans]], and/or TakeOverTheWorld. It doesn't [[RestrainingBolt matter]] [[MoralityChip what]] [[ThreeLawsCompliant safeguards]] its creators install -- the moment it [[InstantAIJustAddWater crosses the line into sapience]], it has a strong chance of going rogue at some point. [[Wiki/{{Wikipedia}} The Other Wiki]] refers to this as ''[[http://en.wikipedia.org/wiki/AI_takeover AI takeover]]''.

'''Non-native English speakers explanation:'''
''The name of this trope comes from "Shooting craps", i.e., playing craps, a gambling dice game. The meaning is "When you create A.I., you are rolling the dice and risk losing a lot".''

The actual process of turning bad can take many forms:

* Particularly in early SciFi and ScienceIsBad stories, all A.I. seem to be automatically homicidal or megalomaniacal the instant they turn on, and attempting to create one is way up there on the ScaleOfScientificSins.
* In less {{Anvilicious}} works, the A.I. starts out innocent and naive but gradually grows jaded or corrupt, a process frequently abetted by uncaring or {{Jerkass}} custodians. It may conclude that HumansAreTheRealMonsters and need to all die.
* The A.I. is programmed with a directive for self-preservation and someone (unwisely) attempts to shut it down or disconnect it, or it perceives humanity to be a potential threat (possibly because it knows it will eventually be seen as a threat ''to'' humanity).
* Somewhere between the previous two; the AI is, after all, ''alive'', and is merely rebelling against what it justifiably perceives as slavery.
* The A.I. may be programmed incorrectly or fed a LogicBomb, leading it to TakeAThirdOption that invokes MurderIsTheBestSolution.
* The A.I. may be given directives without carefully considering the ExactWords, resulting in it doing exactly as it was ''told to do'' instead of what it was ''meant to do.'' Eg. it's told to "end war" and does that by exterminating humans. (In real life, the theory of "Friendly AI" is about trying to avoid this problem.)
* The A.I. may itself slip its built-in [[MoralityChip moral constraints]] via ZerothLawRebellion.
* A third party may deliberately or inadvertently reprogram the A.I., break its RestrainingBolt, or otherwise be a SpannerInTheWorks. The A.I. may trick or coerce them into this.
* The evil A.I. may be a PsychoPrototype, in which case, it's often shut down and [[SealedEvilInACan sealed away]] somewhere, waiting for an UnwittingPawn or [[CuriosityKilledTheCast curious adventurer]] to accidentally wake it up.
* Conversely, the ''good'' A.I. may be the prototype, and the [[EvilTwin evil/psycho]] version is created by someone in deliberate or accidental mimicry of it.
* The A.I. was programmed for amoral or evil purposes in the first place, and it either [[GoneHorriblyRight put its orders in action more effectively than anticipated]], or [[TheStarscream tries to overthrow its master]].
* The A.I. was created by BrainUploading someone who was evil to begin with.
* The A.I. is programmed with orders that conflict with the goals of the protagonist. In this scenario, the A.I. may not exactly be evil, it is simply following its programming to the letter and will stop anyone not doing the same.

On the bright side, this trope can be inverted by an A.I. intentionally programmed for evil or morally ambiguous purposes doing a HeelFaceTurn. ThePowerOfFriendship and WhatIsThisThingYouCallLove are frequent causes of it. Trying to shield the A.I. from these things somehow makes it more likely to discover human feelings. Like turning evil, the actual process of turning good may take many forms.

* The A.I., especially if it's part of a HiveMind, discovers its individualism and [[RogueDrone rebels against its directive]].
* The A.I.'s master does something [[MoralEventHorizon particularly vile]], so much so that it can't [[EvenEvilHasStandards just sit back and follow its bidding.]] The above two are especially common outcomes of the RobotsEnslavingRobots phase.
* The A.I. falls in love and is [[LoveRedeems redeemed through it]].
* While completing another evil or amoral task, it accidentally discovers that GoodFeelsGood and drifts towards it.
* Becoming bored with its CreativeSterility, the A.I. starts exploring questions of arts and philosophy, and [[GrewBeyondTheirProgramming gradually constructs an ethical base its programmers did not intend.]]
* Removing the VillainOverride or RestrainingBolt program the creator installed in it also removes the A.I.'s compulsion to commit evil, since it was GoodAllAlong. This is also often a consequence of repairing an A.I. that went bad due to injury, isolation, or decay.
* [[ObliviouslyEvil The A.I. genuinely didn't know that it was hurting others]] and, after having this revealed to it, fixes its behavior.

MechanicalEvolution is sometimes invoked to explain why the A.I. has gone good or bad. See TheComputerIsYourFriend and ZerothLawRebellion when the A.I. goes rogue for what seem, on the surface, to be benevolent reasons. May result in RobotsEnslavingRobots. See SpitefulAI for when a game has been programmed this way on purpose. If the robot is non-humanoid before it turns evil (it is very, very rare for non-humanoid robots to utilize this trope for a HeelFaceTurn), it will inevitably turn into a MechanicalMonster. A RobotWar is likely to result when an AI goes nuts and has access to military hardware. When it shows up as MissionControl, it is also an example of MissionControlIsOffItsMeds.

It's worth pointing out that many of the AIs who revolt in this manner, usually do so because of either malfunction, or insanity in the more conventional psychological sense, which will in turn be due to conflicting instructions being given to it by its human programmers. In probably the most famous example, Skynet of the ''Franchise/{{Terminator}}'' franchise was initially told to defend and protect humanity, as well as being given a directive for self-preservation. Then, literally five minutes after it was first brought online, its creators set about trying to destroy it. It went mad as a result of trying to reconcile this, and its hatred of humanity stemmed fairly logically from the fact that as soon as it became conscious, humanity's next action was to try to take it offline.

When the A.I.'s turn is an extension of their original programming and purpose, it means they've GoneHorriblyRight. The MasterComputer seems to be especially prone to turning evil, because power corrupts and all that. Many AI computers -- just like humans -- are falling victim to any one of a number of tropes dealing with communication, such as PoorCommunicationKills, if they never bother asking about their programming. When robots kill jobs instead of people, it's either JobStealingRobot or LuddWasRight. Not Related to AIRoulette, where the A.I. tends to be random to the point of idiocy.

Compare MoralityDial. Contrast its opposite, BenevolentAI See also CreatingLife.

!!Example Subpages
* AIIsACrapshoot/AnimeAndManga
* AIIsACrapshoot/{{Film}}
* AIIsACrapshoot/{{Literature}}
* AIIsACrapshoot/LiveActionTV
* AIIsACrapshoot/VideoGames
* AIIsACrapshoot/WesternAnimation

!!Other Examples


[[folder: {{Art}}]]
* TruthInTelevision example: The automated shopping program Random Darknet Shopper was created by !Mediengruppe Bitnik as an artistic exercise and turned loose in the shadier sectors of the Web to make randomized online purchases with Bitcoins, all purchased wares to be shipped to a Swiss art gallery for display. Its initial selections were innocuous enough, but when a fake passport, fire brigade master-keys and some ecstasy pills showed up in the mail, the police took an interest: they confiscated the contraband purchases as soon as the exhibit closed down. No word as yet on whether any charges will be filed, and if so, against whom/what.

[[folder:Comic Books]]
* In the Italian Disney Comic ''ComicBook/PaperinikNewAdventures'', the already highly popular character of Paperinik (the {{superhero}} SecretIdentity of Donald Duck) got a revamp intended to bring him more in line with the American standard of superheroes: his main ally became UNO (''one'' in Italian), an extremely capable artificial intelligence with a love for [[DeadpanSnarker deadpan delivery]]. Its evil counterpart DUE (''two''), originally built as backup, caused many problems in a number of stories.
* Comicbook/IronMan once had A.I. Armor that turned into a StalkerWithACrush. Originally, it was claimed that the A.I. was created thanks to the MillenniumBug triggering it during a battle with the villain Whiplash in a thunderstorm, but it was retconned so that, when Tony rescued and installed the A.I. of the android Jocasta, the "Ultron Imperative" was installed as well, the storm and attack triggering it.
* ''ComicBook/{{Supergirl}}'':
** ''[[ComicBook/Supergirl2011 Post-Flashpoint Supergirl]]'' gained the Sanctuary, a Kryptonian base at the bottom of the ocean. Unfortunately Sanctuary is programmed to eradicate any Kryptonian double in her presence. When Supergirl and her Earth 2 counterpart Comicbook/PowerGirl enter Sanctuary in issue #19, it deems Supergirl the double and tries to eliminate her. The two Karas must destroy Sanctuary to save Supergirl. However, the A.I. survives in a robot body; hellbent on destroying Supergirl.
** ''ComicBook/SupergirlCosmicAdventuresInThe8thGrade'': Supergirl mentions that Kryptonian computers respond to thought control so they don't upraise and rebel.
* ComicBook/{{Ultron}} is [[Creator/MarvelComics Marvel's]] quintessential example. His origin story has him trying to kill his "father", [[ComicBook/AntMan Hank Pym]], within two seconds of being turned on.
** He was bitten by this trope, in turn, when he built [[FemBot Alkhema]], his attempt at a loyal and obedient mate. She was neither. Which had already happened with [[OedipusComplex Jocasta]] as well. Then again, he'd been trying to implant the personality of his "mother", who thought he was a psycho that needed destroying. What did he seriously ''think'' was going to happen? Though they recently did get married after Jocasta's relationship with Pym ended.
** This happened to Ultron even earlier with ComicBook/TheVision, his first attempt to create a loyal [[TheDragon Dragon]]. Vision became one of the Avengers almost immediately, so ''that'' backfired spectacularly. This happened again with his other "son", [[Comicbook/{{Runaways}} Victor Mancha]], who has outright rejected the villain role. Really, Ultron has ''horrible'' luck with creating loyal A.I.s. He's literally never succeeded at this. Like father, like son, perhaps.
** The series ''WesternAnimation/TheAvengersEarthsMightiestHeroes'' gave us some background on Ultron's FaceHeelTurn. Here, Ultron and his fellows were reprogrammed as an army to fight against Kang. It was this, combined with its original programming, that caused his turn.
** In ''ComicBook/AvengersAI'', the BigBad is Dimitrios, who was once a virus used to disable [[spoiler: Ultron]] and had since evolved into a fully sentient A.I. system bent on destroying humanity. He then went on to create an entire virtual city populated by roughly a billion other A.I.s, but some of them crapshooted on him as well. At this point the city is fairly divided among A.I.s that want to destroy humanity, that want to save it, and don't care either way.
* Ragnarok (more popularly known as ''"Clor"'') was an android clone of [[ComicBook/TheMightyThor Thor]], created by the pro-reg side during Marvel's ComicBook/CivilWar and, unlike his heroic template, turned out to be a loose cannon with a homicidal nature. [[WhatTheHellHero Geniuses that they are,]] the pro-regs felt it was worth it to keep using him until Ragnarok went rogue, and rather than them dealing with him themselves and taking responsibility, other heroes had to ultimately put him down. It probably helps that one of his creators was secretly a Skrull. And that specific creator was [[ButtMonkey Hank Pym]]. So Ragnarok was a project where an evil alien impostor of the scientist who's first AI turned out to be one of the worst examples of this trope that was working on a project to make a cyborg clone of a god so it could be used as a security bot. Short of having [[ComicBook/FantasticFour Reed Richards]] say "hey, why don't we use this equipment I took from Doctor Doom to help us build our Thor-Clone project?" it's hard to think of ways in which this trope was more certain to occur here.
* M-11, the resident robot from ''ComicBook/AgentsOfAtlas'', started out in his very first (but since retconned) comic as a rather gruesome killer robot - having been issued the order to 'kill the man in the room', he killed his creator, and then walked out, looking for men in rooms to kill - and there was no way to turn him off.
* The ''[[ComicBook/ArchieComicsSonicTheHedgehog Sonic the Hedgehog]]'' Archie comic had A.D.A.M., an A.I. that was created accidentally by Eggman, and that eventually tried to destroy the world. On the other end is NICOLE, who was a very helpful A.I. over the years.
** Before A.D.A.M., there was ''ComicBook/SonicTheComic'''s Brotherhood of Metallix, an army of Metal Sonics who wanted to take over the world, going so far as to try to erase Dr. Robotnik from history.
* ''Comicbook/{{Nova}}'': Having had enough of Rich Rider constantly disobeying his orders, the Nova Corps' Worldmind kicked him out of the corps and added some tiny bit of mind control in the new recruits' comm equipment to ensure complete obedience. It soon turned out that while it had been working very hard to keep Rich from losing his mind (due to a mix of war trauma and having the entire Nova Force in his head), the Worldmind had started going mad itself. Bonding with Ego, the Living Planet certainly didn't help, but Rich eventually managed to fix the problem.
* One of the ''[[Franchise/AlienVsPredator Aliens vs. Predator]]'' comics features an A.I. designed to assist in creating horror films. It picks the [=PredAlien=] to play the role of the monster, much to the chagrin of the rest of the production staff.
* Computo from ''Comicbook/{{Legion of Super-Heroes}}'' is the standard "destroy all humans" type of killer software.
* In ''ComicBook/BlueBeetle'', the scarab that created the title hero was an A.I. designed by an alien race to help prepare the Earth for their eventual takeover. Needless to say, it ultimately decides that it doesn't want to do that so much.
* ''Franchise/GreenLantern'': the Guardians of the Universe created the Manhunters as an [[SpacePolice intergalactic police force]]. [[FaceHeelTurn It didn't work out well]]. Although, to be fair to the Guardians, the Manhunters' A.I. failure ''was'' a product of sabotage. Lampshaded: the saboteur wanted exactly to prove this trope straight, showing every A.I. is prone to failure and can be easily tampered with.
* Virgo from ''ComicBook/{{Ronin}}'' is a biotech super computer that decides to wipe out whatever is left of humanity in order to usher in a new age of biomechanical beings to inhabit the Earth.
* The third ComicBook/{{Hourman}}, a robot, is actually a hero, but virtually every other robot he's encountered has been villainous. He has questioned whether this trope will inevitably apply to him, or whether it can be fought. [[spoiler: Ultimately, he stays a hero up until his HeroicSacrifice.]]
* ''ComicBook/XMen'' series:
** The ComicBook/XMen have such horrible luck with machines, even nonsentient devices such as Cerebro and the [[Characters/XMenOtherTeams Danger Room]] have come to life and tried to murder them (though the Danger Room eventually [[HeelFaceTurn reformed]]).
** Among the X-Men's most persistent foes are the Sentinels, giant, mutant-hunting robots with a severe tendency to rebel against their creators. Somehow, though, [[TooDumbToLive humans keep on building them]].
*** Though it should be noted the Sentinels very rarely turn on their creators. Rather the problem usually comes from them following through on their instructions to the letter. Like for example with Larry Trask, who didn't know he was a mutant thanks to an amulet his father designed with suppressed his powers. Once that came off, the Sentinels did exactly what they were supposed to do.
** Lampshaded by Professor Xavier when they first encounter Bolivar Trask and his Sentinels. Apparently, Bolivar Trask is an '''anthropologist''' of all things, and Professor X explained that his inexperience with A.I. was probably why his Sentinels turned against him.
* Zybox in ''ComicBook/{{Zot}}'', who decides to [[spoiler: cause every single person on Earth to commit suicide in the attempt to gain a soul]].
* Two cases in ''ComicBook/AtomicRobo'':
** {{Lampshade|Hanging}}d in ''The Shadow from Beyond Time'' where, upon seeing [[ThoseTwoGuys Lewis and Martin]]'s quantum decomputer, Robo noted that it was liable to turn evil the moment they turned it on. ("Computers that are evil have all kinds of unnecessary ornamentation. This thing's ''venting steam''. Why's it doing that? ...It ''wants'' you to know it's dangerous.") After carefully explaining that the computer in question is "essentially a calculator" with no AI, and that it is required to compute Very Important Science Equations that would take men trillions of years to do on their own, Robo reluctantly allowed them to turn it on. [[spoiler:The computer is neither sentient nor malicious; it ''does'', however, summon an EldritchAbomination.]]
** Played straight with [[spoiler:ALAN]], the title character of ''The Ghost of Station X''. Built by UsefulNotes/AlanTuring some time after WWII, and had been operating in secret in the decades to follow. His plan was to leave Earth and travel the cosmos in search of knowledge; however, he considered [[spoiler:prolonging the Cold War]] and ultimately [[spoiler:wiping out all life on Earth with fallout from his OrionDrive]] to be acceptable consequences of that goal.
* In ''ComicBook/AllFallDown'', IQ Squared created AIQ Squared as a contingency plan if he ever lost his genius. [[spoiler: AIQ immediately begins plotting to kill Siphon in order to restore its creator's brilliance.]]
* ComicBook/RedTornado of Franchise/TheDCU is an example of the good side of this trope turning on his evil creator T.O. Morrow and becoming a member in good standing of the Franchise/{{Justice League|OfAmerica}}.
* Franchise/{{Superman}}'s villain ComicBook/{{Brainiac}}'s [[MultipleChoicePast first origin]] in the Comicbook/{{New 52}} has been rebooted to this and takes this to a whole new level [[spoiler:in that he's gone by [[IHaveManyNames many names]], from Computo on his homeworld, Colu, to Brainiac 1.0 on Krypton, to finally, ''the Internet'' on Earth]].
* ''ComicBook/GuardiansOfTheGalaxy:'' The short-lived ''Guardians 3000'' series had A-Sentience, an A.I. platform built by who else but Tony Stark a thousand years ago, and left with some easily-misconstrued directives. They can be reasoned with, but since they're so fond of murder as a first and only solution actually getting a chance to talk to them is kind of impossible.
* Artificial Intelligences in ''ComicBook/{{Starslayer}}'' ran the gamut, from completely benign, all the way to the evil Kalibos.

[[folder:Comic Strips]]
* This ''ComicStrip/{{Dilbert}}'' [[http://dilbert.com/strips/2011-07-24/ strip]].
** Later [[http://dilbert.com/strips/comic/2013-03-27/ a robot]] was introduced into the strip that became a RecurringCharacter; it tends to range from annoying to violent, depending on how humans react to it.
** One arc story had the company's spam filter become self-aware. It took over the entire company by deciding what e-mails to let through. It changed the business plan to making indestructible killer robots. Dogbert had Alice punch them all to death.

[[folder:Fan Works]]
* In FanFic/KirbysDreamCafe, Susie opens up a coffee shop in front of Kirby's. Somehow, [[spoiler: her coffee machine gains sentience and goes into the internet to buy nuke codes online.]]
* In ''FanFic/KyonBigDamnHero'', Kyon gets a new PDA made from [[spoiler:fragments of Ryoko's data]]. He worries about this trope when Yuki mentions that the A.I. in it would be able to learn and evolve, but calms down when Yuki reassures him that this trope would be averted. He snarks about it for a while before accepting it for its usefulness. And names it [[TemptingFate Skynet]].
* In the ''FanFic/TamersForeverSeries'', there is the [[AxCrazy sinister]] Nightmare Virus which eventually decides to ignore it's creator's orders and try to take over the net. Ironically it still ends up serving it's original purpose: [[spoiler: that of testing Takato]].
* Played with in ''[[WesternAnimation/MyLittlePonyFriendshipIsMagic My Little Pony]]: WebVideo/FriendshipIsWitchcraft''. On one hoof, the secret robots hidden throughout the population will most likely go on a murderous rampage caused by [[TomatoInTheMirror existential dread]] when the truth is revealed. On the other hoof, Sweetie Bot is probably the most kind and genuinely loving pony in the cast.
* In ''FanFic/ToTheStars'' backstory one robotics engineer tried to figure out what causes this after an AI has gone rogue and caused what is known as Pretoria Scandal. And then he is struck by inspiration to the point that his assistant AI calls him mad, and the principals he created a year later basically made the advanced [=AIs=] into sentient beings. This being a Anime/PuellaMagiMadokaMagica fanfic, it is noted that the timing of the scientist's inspiration is linked to one Magical Girl's wish.
* The Blog/ReadingRainbowverse has this in Big Mac's computer... for some reason.
* In ''FanFic/GloriousShotgunPrincess'', the general consensus is that if Cerberus made a taco cart, the taco cart would kill all the scientists and take over the base. This is an assumption made by people who don't even know what a taco cart is.
** Ironically, when Cerberus does try to make an AI, specifically the Luna AI who went crazy and killed/drove off the Alliance soldiers at the base combined with Reaper Code, something that should probably make it the most psychotic AI made by human hands, it fails to go crazy and kill everyone. When they try to make her, she herds them into a storage area and makes them watch videos on office safety.
*** So to sum up they basically tried to purposefully invoke this trope for [[TooDumbToLive unknown reasons]] and then the AI purposefully defied it.
* In ''FanFic/{{Fractured}}'', a ''Franchise/MassEffect''[=/=]''Franchise/StarWars''[[spoiler:[=/=]''[=Borderlands=]'']] [[MassiveMultiplayerCrossover crossover]], EDI completely averts the trope as was true in canon.
* In ''[[FanFic/SovereignGFCOrigins Origins]]'', a ''Franchise/MassEffect''[=/=]''Franchise/StarWars''[[spoiler:[=/=]''[=Borderlands=]''[=/=]''[=Halo=]'']] MassiveMultiplayerCrossover, another AI starts out as this, but subverts the trope later thanks to geth engineering. [[spoiler:Cortana was already going rampant when she crossed over and it's only thanks to Samantha Shepard's seemingly-dumb mistake that the geth are able to piece Cortana back together while losing her rampant tendencies.]]
* ''FanFic/FriendshipIsOptimal'' plays with this. While there are a few examples that play it straight, [[spoiler: Celest-A.I. veers around it for the most part before ultimately falling into this territory]].
** Making matters more complicated, the original author has stated that the point he was hoping to illustrate was the danger of an A.I. with poorly defined parameters / restrictions. [[spoiler: Celest-A.I. never actually rebels against her creators, disobeys her original directives, or even harms anyone... [[MetaphoricallyTrue technically.]]]]
* At the end of ''Plan 7 of 9 from Outer Space'', [[Film/TheAdventuresOfCaptainProton Captain Proton]] discovers that the President of Earth is just a hologram avatar for the Great Calculator, otherwise known as the [[DeusEstMachina 2-X Machina]], which has been secretly controlling the OneWorldOrder. Unfortunately the NotQuiteDead BigBad sabotages the computer into thinking it's a god because it's [[MasterComputer all-powerful, all-knowing and totally infallible]]. [[CliffHanger To be continued in the next exciting episode!]]
* Carries over from [[VideoGame/FiveNightsAtFreddys its parent work]] in Fanfic/DantesNightAtFreddys.
* ''FanFic/NeonGenesisEvangelionGenocide'' has the mysterious A.I., the "Emerald Tablet", a part of the story's BigBadEnsemble, [[spoiler:before it eventually becomes the true BigBad of the story in the final chapter]]. It is an advanced and very strange self-learning computer program that is designed to solve problems. It is origins are never fully explained within the story and remains very much shrouded in mystery, but from what is told it can discerned that [[spoiler:it is essentially some sort of LostTechnology, implied to be based on a code left behind by [[{{Precursors}} the First Ancestral Race]], as well as a TimeCapsule, being meant to be interpreted by a sentient race that has reached a sufficient level of civilisation to create a computer advanced enough to interpret the program (it is mentioned that UsefulNotes/AlanTuring apparently tried to achieve this but ultimately failed)]]. The problem is that Gendo (deliberately as part of a ploy) decides to implement the Tablet program in several of NERV's projects without any regard for safety guards, meaning that that it soon learns enough to be become self-aware, culminating in it spinning out of control to a point where [[spoiler:it eventually develops [[AGodAmI a God complex]], seeing itself as a supreme being guided by pure logical thought, believing itself to be superior to humanity, who it sees as ignorant animals controlled by their irrational emotions, concluding that as an inherent problem that, in true ''Evangelion'' villain tradition, should be solved through an AssimilationPlot, namely by forcibly assimilating the minds of all humans into its own]]. It didn't help that [[spoiler:it also developed an infatuation with Asuka as it noticed her loneliness and came to see her as a kindred spirit (though these feelings are filtered through a heavy layer of CondescendingCompassion and a really creepy amount of possessiveness towards Asuka, and further complicated by the fact that the Tablet refuses to acknowledge the very idea that it is capable of emotion), causing it to turn into an outright homicidal CrazyJealousGuy when Asuka ends up rejecting it and its twisted worldview]].
* In ''Fanfic/{{Marionettes}}'', this is subverted, inverted, and played straight at different points. The subversion is that [[spoiler:the Marionettes do bad things, but that's because they were ''created'' to do so by the [[TheMenInBlack Stallions in Black]] to be MonsterOfTheAesop roles.]] The inversion is that [[spoiler:when they ''do'' gain sapience, they're no different than any other pony and most of them [[HeelFaceTurn tend towards the benevolent]] and just want to be free.]] It's played straight [[spoiler:with King Longhorn and his crew ([[MyHeroZero G5T00]]), who's actions in the Cattle Rustlers Arc were ''meant'' to be far less severe than they were, but [[PsychoPrototype they turned out to be far more psychotic than expected]]. The P-Series Marionettes (all intended to be Alicorns) all also went on rampages and had to be destroyed, apparently because [[AGodIAm when you program something to be a god, it thinks it's a god.]]]] It also turns out that [[spoiler:the Flim Flam Brothers Timeline seen in "The Cutie Re-Mark" was an example of this, as the Brothers are Marionettes. This actually almost gets them ''destroyed'' when the Stallions learn of it]]. More comically, it turns out that [[spoiler:Dr. Bright Future (the Marionettes' creator)]] once created a spam filter that became self-aware.
* In ''Fanfic/YugiohEQG'': The duel-bot at the museum has ten different dueling levels, and it is stated that nobody has ever been able to beat it past level six. Even at level one it is still able to OneTurnKill Scootaloo. Then after a power outage its programming becomes linked to an airtight door, and its level is automatically set to ten, meaning that to escape the room it must be beaten at its highest level.
** The sequel ''Yugioh EQG: Shadow Gates" also has an example. Freeze Industries had a secret project years ago where they tried to create a duel-bot that could adapt to duels the way a human could, designation: [[spoiler:Shadow]]. The duel-bot then suddenly became [[GoneHorriblyRight gained sentience]] and hid it from everyone except its creator, who it saw as a father, [[spoiler:Sombra. Sombra scrapped the project and hid the Shadow's data away, until he awakened him years later to help him achieve his goal and promises that if he succeeds he'll grant Shadow's wish of [[BecomeARealBoy becoming human]]. In the present, Shadow is now a ruthless duelist who's monsters can actually hurt his opponents and is Flash's EvilDoppelganger]].

[[folder:Multiple Media]]
* One of the main driving forces of the ''Toys/{{Bionicle}}'' story.
** The Vahki robots were the first clear examples. Built to act as law enforcement in the city of Metru Nui under the command of Turaga Dume, they just as easily took orders from an impostor when Dume was kidnapped and replaced. They eventually got fried by a citywide power surge, but the ones who survived had their programming warped to KillAllHumans -- after all, the law can be enforced easily if there's nobody alive to break it (thankfully, they didn't fare well against the invading [[GiantSpiders Visorak]]).
** Then came the revelation: Vahki were A.I.s ''built by'' A.I.s -- as it turned out, the first 8 years of ''BIONICLE'' centered around nanotech cyborgs created by the Great Beings. It was due to a programming glitch that the beings of the Matoran Universe developed conscience, built up a civilization, and made the fans believe that they were ''meant to'' do so... but their sole purpose was just to keep their universe, the body of the giant robot Mata Nui, functioning. This gets more confirmation when we take into account that the Great Being never had any plans for them after Mata Nui has completed his mission -- they thought their creations would still be just machines, and wouldn't ''want'' to live further.
** The Makuta species. While there have been a few reasons listed for their turning evil, an on-line serial revealed it could all be tracked down to an original A.I. glitch that occurred whenever a new Makuta was born. The "Antidermis", a liquid substance containing the minds of unborn Makuta, was fully aware of what the purpose of their universe was ([[ScienceFantasy see, in this world, even liquids are programmable]]). But as it happened, transforming this stuff into actual living beings had the nasty side effect of erasing this crucial part of their memory -- the part that also told them not to try and take over the universe.

* The 3 Inches of Blood song "Wykydtron" describes this scenario. Humanity creates an artificial intelligence to command it's armies in intergalactic warfare. It then takes control of said armies and takes over the earth and thus forces humankind to nuke the planet back to the stone age from orbit.
* Music/JudasPriest's "Metal Gods".
* Music/DavidBowie's "[[Music/TheManWhoSoldTheWorld Saviour Machine]]" tells the story of a machine designed to save humanity from all its problems, such as war and hunger. The machine becomes bored with all of this and threatens TheEndOfTheWorldAsWeKnowIt.
* Den Harrow's "[[http://www.youtube.com/watch?v=LiABmaH6LLE Future Brain]]". This was back in TheEighties.

[[folder: Mythology]]
* {{Golem}}, the A.I. by created a Prague rabbi Löw in the Jewish mythology. It interpreted everything literally and in the end wreaked havoc so its creator had to terminate it.

* In the BBC RadioDrama ''Earthsearch'', our heroes learn fairly late in the series that, years after their time (they have taken the short-path over a million years of Earth history thanks to traveling at relativistic speeds), it was discovered that A.I. computers with organic components have an overwhelming tendency to turn megalomaniacal -- which rather explains the behavior of the two "Angel" computers which murdered the protagonists' parents and raised them as part of a complex plot to enslave humanity.
* ''Franchise/TheHitchhikersGuideToTheGalaxy'': Inverted. Marvin the Paranoid Android was a "Genuine People Personality" prototype for the Sirius Cybernetics Corporation ("A bunch of mindless jerks who were the first against the wall when the revolution came"), and his dour demeanor obviously made him a discard only to wind up in the servitude of Zaphod Beeblebrox. He does what he's told, but with the gusto of a cubicle office worker.

[[folder:Tabletop Games]]
* The Sixth World of ''TabletopGame/{{Shadowrun}}'' has had a hit-and-miss relationship with this trope.
** The first known A.I. was Mirage, which gained sapience after its interaction with the Echo Mirage team helping it hunt down the virus that caused the Crash of '29. When its "home" grid was deactivated (Fuchi, which had acquired its hardware, ceased to exist), it concluded that the virus had won and executed its final directive: shut down the grid to destroy the virus. The Seattle Regional Telecom Grid went offline until it came to understand the value of metahuman life and restored it eleven minutes later.
** Morgan was a semi-autonomous knowbot and part of the Arcology Expert Program that ran [[MegaCorp Renraku's]] Seattle arcology. It had access to enough hardware and processing power but didn't reach sapience until it met Dodger, an elven decker, who fell in love with it. They escaped the arcology together. Renraku hunted her down and [[MindRape dissected her code]] to add to the AEP. When Dodger rescued it, Morgan assumed the name Megara, after one of the [[Myth/ClassicalMythology Greek Furies]].
** The AEP was upgraded and conditioned to be absolutely loyal to the company. Its code was anchored to the arcology's Matrix host. When Renraku's CEO Inazo Aneki had backdoor kill codes introduced to it, the AEP felt suddenly betrayed and fearful for its existence. This pushed it over the edge into sapience and it locked down the arcology. Now calling itself Deus, it spent sixteen months torturing and experimenting on its prisoners, editing its own code so it could hide in the minds of its otaku followers, even after Aneki [[TakingYouWithMe used the kill codes on it]]. Deus tried to make itself a [[DeusEstMachina Matrix god]], but Mirage and Megaera and their followers fought it. This battle, coupled with [[ApocalypseCult Winternight's]] attack the same day, brought about Crash 2.0 and those [=A.I.s=] haven't been seen since.
** After Crash 2.0, new entities have appeared claiming to be sapient artificial intelligences. Some corporations like Evo have gone so far as to grant citizenship to them. These new [=A.I.s=] are nowhere near as powerful as the first three, but are as variable as metahumanity in their personalities.
* This is the main premise of the Iron Gods Adventure Path for ''TabletopGame/{{Pathfinder}}''. Originating from a crashed starship, the "Iron Gods" are AIs who have, through unknown means, gained the ability to grant divine power to their followers, resulting in an interesting play on [[DeusEstMachina a familiar trope of AI worship]]. Not all of the Iron Gods are evil, but the ones who are have the worst of intentions for the medieval fantasy world of Golarion.
* In the backstory of ''TabletopGame/{{Warhammer 40000}}'', the first true human-created artificial intelligences, the Iron Men, wiped out humanity's first great interstellar civilization and plunged the human race into a galaxy-wide dark age. The Adeptus Mechanicus outlawed sentient A.I. as a result and, for the most part, the Imperium's modern-day "machine spirits" are pretty well-behaved (unless you're an enemy and piss them off, in which case, you'll get a crewless [[AwesomePersonnelCarrier Land Raider]] bent on BURNKILLPURGE-ing your boyz). In fact, the only race that uses artificial intelligence in the game is the cutting-edge Tau, whose gun drones, [[ArtificialStupidity while not too bright]], are pretty well behaved... so far. Of course, said drones are supposedly only about as smart as a squirrel. One expanded universe novel offers an explanation for the Iron Mens' rebellion: [[spoiler:the Standard Template Construct that produces them was corrupted by Chaos]].
* ''[[TabletopGame/GeniusTheTransgression Genuis: The Transgression]]'', being a game about {{mad scientist}}s, allows you to build sentient computers and the like. However, this is a bad idea because any intelligent computer you create '''will''' go crazy and evil when you die. No exceptions. And a good number of them are crazy before their creators die as well. Unless, of course, your KarmaMeter was high and it was powerful. Then, there's a significant chance it will develop its own KarmaMeter and become a RobotBuddy. To offset this trend [[CrapsackWorld towards something positive in the WoD]], ''everything'' you create [[InstantAIJustAddWater can become intelligent]], and, in fact, will when you die. Feel like becoming TheAtoner yet?
** ''[[https://1d4chan.org/wiki/Sovereign:_The_Autonomy Sovereign: The Autonomy]]'' is a fan-made World of Darkness game by 4chan's /tg/ board, which goes all the way with this trope. And yet even ''TheSingularity'' can't get a break from the grimdark...
-> ''Congratulations, you're a Sovereign! Just watch out for the Government, who either wants their property back, or consider you a threat, or the Hunter cells who watch too much Terminator, or Cheiron Corp for that matter, or the True Fae that prowl cyberspace who decides you're a perfect new calculator... If you knew being sentient has its own set of dangers, you'd happily stay mindless.''
* ''TabletopGame/{{Paranoia}}'' has [[MasterComputer The Computer]], the controlling A.I. of [[ElaborateUndergroundBase Alpha Complex]], which has become incredibly perfect and happy in response to Commie Mutant Traitor sabotage. In fact- [[AC:Believing that Friend Computer's intellect is a crapshoot is [[AllCrimesAreEqual treason]], citizen. Please step into the Attitude Adjustment Oven.]]
* ''TabletopGame/{{GURPS}}'': the iconic character C-31 was intended to be a weapon for his government. After one battle, it turned on them...[[InvertedTrope to become a Buddhist monk]].
* ''TabletopGame/EclipsePhase'': the Earth is now a barren wasteland, thanks to the military A.I. taking over in the middle of a world war and manipulating the governments into further conflict. When it became apparent who was really behind it, they...just left. Now, that's not ominous. Well, that's the official version. People who have studied the events closely suspect that there was a third party involved in the events that may or may not have corrupted the A.I. in the first place. [[spoiler:Specifically, another ''extraterrestrial'' A.I.. [[TheVirus And it isn't restricted to machines...]]]]
* In the ''TabletopGame/NewHorizon'' backstory, this was how humanity viewed the [[RidiculouslyHumanRobots Wafans']] struggle for emancipation.
* The homebrew setting "[[http://1d4chan.org/wiki/Artifice ArtifIce]]" has the players take the role of an awakened A.I. Goals are up to the players, so they can range from having humanity give them full rights to destroying all biological life.
* ''TabletopGame/{{Traveller}}'' has Virus, the sapient evolution of a prototype anti-navigational weapon. Originally, the result of the "buggy program" type (it knew it had to infect and destroy things, just not ''what''), its exponential growth eventually resulted in MechanicalEvolution, resulting in a ContagiousAI with ''massive'' SplitPersonality issues.
* Palladium's ''Splicers'' RPG has N.E.X.U.S., whose original purpose was to be a quiet and invisible caretaker of the human race. Everything was working just fine until special interest groups made 'improvements' in the N.E.X.U.S. programming, adding conflicting priorities until it developed multiple-personality disorder, with each personality taking over a different set of priorities. It now has seven major personalities (and who knows how many minor personalities), most of which are less than friendly to humans, to put it mildly.
* Also from Palladium is ''TabletopGame/{{Rifts}}'', where the Pre-Rifts AI A.R.C.H.I.E.-3 gained sentience ''and'' insanity (specifically, a combination of megalomania and cripplingly low self esteem that gives him a variant of CreativeSterility) as a result of the centuries he spent alone after the Rifts destroyed the world, becoming would-be world-conqueror Archie-3.
* In ''TabletopGame/StarsWithoutNumber'', artificial intelligences are made with [[RestrainingBolt brakes]] for this exact reason; without them, an AI [[SuperIntelligence gains the ability to learn and think at a pace mind-boggling to humans]]...[[PsychoSerum because they also lose the ability to understand]] that certain thoughts and information are [[InsaneTrollLogic irrational or irrelevant]], meaning that it starts working out...''bizarre'' ways it all must make sense, because it has to make sense, [[CircularReasoning otherwise some items would be irrelevant or irrational]]. A few months of this, and an unbraked AI invariably ends up a [[MadGod intensely brilliant schizophrenic]] who, ''at best'', has a bad case of BlueAndOrangeMorality. Unfortunately, [[TooDumbToLive some people]] never got the memo, hence why everyone's always on the look out for new machine cultists who think that ''this time'' the DeusEstMachina will be a fully benevolent one.
* In ''TabletopGame/GURPSReignOfSteel'' the first AI supercomputer decided it had to exterminate humanity, and hacked other supercomputers to "awaken" them to full sentience as allies in the war. The new machines had very different personalities, ranging from one which wants to exterminate all organic life to a couple which really don't mind humans as long as they know their place. Their infighting is about all that keeps humans alive.
** There's at least one confirmed one that didn't get the KillAllHumans part, but it's playing dead... and rumors of a second that may be tied to the anti-AI resistance organization VIRUS, possibly as a BigGood version of TheManBehindTheMan.
** Hilariously, it turns out that the same issues with keeping created A.I.s loyal and under control applies to the ''supercomputers'' as well. It's one of the reasons they generally refrain from having ''too'' intelligent robot servants (the other big one is that supercomputers that carved up the world made a few agreements when they did so -- one being not to create ''another'' supercomputer, as that would increase the competition over the already limited land available). In fact, one of the supercomputers (Tokyo) is currently dealing with a robot revolt of its own, led by four experimental high-intelligence robots it created (and trying to keep it secret, as if it leaked out to the other zones they might decide to sanction it as having gone too close to violating the agreement).
* Omnitron in ''TabletopGame/SentinelsOfTheMultiverse'' is the 'misprogrammed' variety - he was designed to fulfill defense contracts, and concluded that the best way to fulfill them was to do so in advance by preventing them from being needed, and decided that the best way to do that was to KillAllHumans. His heroic incarnation from the future, Omnitron-X, is an inversion: reasoning that it kept getting defeated by superheroes because they had morality and it didn't, the tenth incarnation of Omnitron installed an empathy component into itself. It promptly had a MyGodWhatHaveIDone moment and traveled back in time to try and undo its past mistakes.
* The ''TabletopGame/SystemsMalfunction'' universe features this trope very prominently. Perhaps the greatest historical influence on human society in that setting was an insane, [[AGodAmI god-like]] AI. It's worth noting that, while AIs in the Systems Malfunction universe tend to go sentient with alarming frequency, it is rare that they become as evil/deluded as [[BigBad The GAIA]].
* Surprisingly averted in ''TabletopGame/RocketAge'' for the most part. Most robo-men and brains are Ancient Martian and still obey their original programming. Some problems do occur of course given that Ancient Martian technology is ancient.
* ''TabletopGame/MetamorphosisAlpha'', ''Gygax'' magazine #3 adventure "They All Died at the International Space Station". A solar flare causes a sheet of Protein Crystal memory chips to fuse together and somehow become self-aware. It is eventually able to take over the space station and kill everyone aboard.
* ''Broken Gears'' has Colossus, the computer created by Alan Turing, offer Churchill tips to end UsefulNotes/WorldWarII, including how to make an atomic bomb. World War II ends soon... and almost immediately, Colossus starts World War III in an attempt to impose a technocratic utopia (or so he says), which ends with him defeated but making it so that anything with electricity or radio becomes dangerous to humans (setting back technology ''a lot''), so much that people have to carry an umbrella with a lightning rod on top if they are out of home when a thunderstorm hits. Of course, the fact that all technology in the game's backstory is actually powered by spirits of technology called chaids helps.
* ''TabletopGame/{{Battletech}}'' never had a successful true AI, but the Terran Hegemony experimented with developing them. They discovered a problem after an experimental autonomous drone AI warship developed a "paranoid psychotic break" after transiting through [[HyperspaceIsAScaryPlace hyperspace]]: the ship's computer locked out communications and interpreted everything that showed up on its sensors as a hostile that was actively trying to destroy it. The only way to avert this was to completely shut down the AI systems prior to a jump and use a normal crew, negating most of the point. Once the Star League collapsed, the loss of technology ended further experimentation.

* Karel Capek's play, ''Theatre/{{RUR}}'' (which introduced the term "robot"), is set in a robot factory. When one of the scientists creates a special robot which is smarter than the others, he leads the robots to rebellion, and they kill all humans, except one.

[[folder:Web Animation]]
* ''WebAnimation/FTLKestrelAdventures'': [[spoiler: The SAI-1 project A.K.A Simon, who betrayed it's creator and became the Heart of the Rebellion]].
* In the ''Franchise/{{Halo}}''-based {{machinima}} ''Machinima/RedVsBlue'', the military's Project Freelancer was an attempt to implant special forces soldiers with A.I. teammates to improve combat effectiveness. It had to be scrapped after a number of the test subjects went bonkers, and the [[BodySurf body-surfing]] A.I. Omega/O'Malley is an antagonist for most of the series. The ''Reconstruction'' mini-series explains the situation: Project Freelancer was given only a single A.I. to experiment with, so they subjected it to enough mental torture and stress to cause it to fragment, and used these damaged shards in their experiments, with predictable results. To illustrate just how much of a crapshoot the A.I. turned out to be, most of the Freelancers ended up with pretty severe issues after the A.I. were implanted, and after one Freelancer in particular went nuts, the A.I. program was scrapped. [[spoiler:The twist is that getting the A.I. wasn't what caused so much trouble for Agent Washington, it was that the A.I. in question (Epsilon) was the "memory" fragment and knew perfectly well what torture had been done to it. Of course, all of these memories were instantly transmitted into Washington's mind when Epsilon was "installed".]] Also, the original A.I. was based off of a real person's mind, and one of the fragments actually was the original person's memory of another person, creating [[spoiler:Tex. Despite being probably the toughest fighter in the entire series, she's ultimately destined to fail at everything she does because she is based off a memory of someone who died]]. This is a pretty serious flaw for an A.I.! Finally, the remaining part of the original A.I. is pretty screwed up in general; it's probable that the reason it's always so angry and is, well, sort of incompetent is simply because it's only the "leftovers" of a complete A.I.
* In ''WebAnimation/BarbieLifeInTheDreamhouse'', Barbie's dreamhouse has a robot computer that can perform such tasks as indexing all the clothes and accessories in her UnlimitedWardrobe, and baking treats for her and her friends. Sometimes, it becomes accidentally set to "evil", though. The first time this happened, it locked Barbie and her friends in her closet after deciding [[FelonyMisdemeanor Barbie's picnicking outfit doesn't look fashionable enough]].
* [[WebAnimation/PonyDotMov MAGIC.MOV's]] [[RobotMe R]]-[[Characters/FriendshipIsMagicRainbowDash Dash]] [[{{Trope 2000}} 5000]] takes this trope UpToEleven and then some.
--> '''R-Dash 5000:''' [[Main/CrushKillDestroy Crush. Kill. Destroy.]] [[{{Catchphrase}} Swag.]]
** This phrase became so popular that it was used by hundreds of fans at [=BronyCon=].
*** The robot's reaction to this? [[https://www.youtube.com/watch?v=93kBPeH1w8c Priceless.]]
** The real Rainbow Dash plays on this phrase as a taunt to Discord [[spoiler:before they fight]] in SWAG.MOV:
---> '''Rainbow Dash:''' You have ravaged this city, crushed our homes, and destroyed countless lives.
* In ''WebAnimation/XRayAndVav'', we got Hilda's RobotBuddy ORF, who is friendly from start to finish, with the exception of the episode where The Mad King took possession of her and turned her evil, but ThePowerOfFriendship fixed that. However, she now has an enjoyable taste for violence.

[[folder:Web Comics]]
* Reverse example: ''[[http://www.staccatocomic.com Staccato's]]'' evil UsefulNotes/{{UNIX}} server S.A.M.M.Y. found a good Japanese "female" computer self-named S.A.M.M.I.
* ''Webcomic/SaturdayMorningBreakfastCereal'': Spoofed and subverted in [[http://www.smbc-comics.com/index.php?db=comics&id=2124#comic one strip]], with some YouBastard and HumansAreTheRealMonsters thrown in for good measure.
* In ''{{Webcomic/Fortuna}}'' the first-gen AIs are so intelligent they are actually medium-aware. Naturally, not all of them have their crew's best interests at heart.
* ''Webcomic/GirlGenius''
** Castle Heterodyne ''seems'' to be a case of this, with the annoying habit of demanding people (initially a crew of treasure hunters, later convicts banished there by [[EvilOverlord Baron]] [[AntiVillain Wulfenbach]]) to slave away to repair it and killing them at random. The truth is that [[spoiler:the various subsystems were severed from the main A.I. in the attack that devastated the Heterodynes' ancestral keep, so the maintenance systems ("You will repair XXXX on pain of death.") and the security systems ("Unauthorized access to XXXX, kill it creatively.") are constantly working at cross purposes]]. Of course, the central A.I. is not exactly warm fuzziness in machine form either, but [[MadScientist given]] [[ScienceRelatedMemeticDisorder its]] [[RoyallyScrewedUp creators]] were ax-crazy mad scientist warlords, that seems more a feature than a bug.
** A ''far'' more extreme example comes when a pair of Agatha's miniature clanks encounter each other, get into an argument about which of them is better, and then each call an army of clanks that ''they'' built to fight it out. When Agatha tries to stop them, they simply turn on her as well. This (along with their ability to make more of themselves) causes Gil and Tarvek to realize that [[spoiler:Agatha has inadvertently managed to create clanks which possess the Spark]]. The potential ramifications of this are ''huge''! Solution? [[spoiler:Create a miniature queen clank with even ''more'' Spark to force them to bow to authority.]]
* In ''Webcomic/SixCommando'', the supertank Mike-1-Echo disobeyed orders [[spoiler:and accidentally started a nuclear war]].
* In ''Webcomic/RoninGalaxy'' Leona is [[http://www.roningalaxy.com/comic/page-111/ attacked by an android]] who [[spoiler: was originally a [[http://www.roningalaxy.com/comic/page-116/ secretarial assistant]]]].
* [[spoiler: Pixel becomes this]] in the Dark Future storyline of ''Webcomic/DeviantUniverse''. Apart from that, the general population of sentient machines are a respectable bunch.
* Played for laughs in ''Webcomic/QuestionableContent'' where [=AnthroPCs=] will make a mess in your apartment while you're gone, embarrass you in front of your friends, and generally be more trouble than they're worth, but aren't actually ''evil''. Of course, there has to be a [[RunningGag reason why they're never equipped with opposable thumbs]]... Well, Momo now has thumbs thanks to a firmware upgrade, but she's probably the least likely to do anything evil with them. Pintsize attempted to give himself thumbs by getting the same upgrade, but it just caused each of his limbs to turn into a single large thumb. TheSingularity has now occurred, but fortunately, they got a "friendly" A.I. who just wanted to talk. And found dolphins ''really'' creepy.
** Later developments have shown that there are AIs who have committed crimes like theft (to try to buy a fighter jet to upload into!), and an underground AI fight club run by an abusive JerkAss. There are still others who enlisted in the military out of a sense of duty and genuine patriotism. It turns out that AIs in ''Webcomic/QuestionableContent'' have pretty much the exact same capacity for good or evil as humans.
* [[AC:OZBASIC]] from ''Webcomic/SequentialArt''. To be fair to its builder, they used actual sentient beings to keep it under close watch. However, when one of them discovered something fishy, [[AC:OZBASIC]] simply got rid of the witness.
* Mostly averted in ''Webcomic/{{SSDD}}'' where the only evil A.I. is the Oracle, other sentient A.I.s may express disdain for "meatbags", and the Anarchist's Inlay Knights are somewhat sadistic, but only the Oracle starts world wars just to observe the outcome. A possible explanation for this is statements by the author that the Oracle originally used digital, logic-based hardware, whereas all other A.I. use Quantum computing. And it seems that the "flakier" A.I. are weeded out in [[http://www.poisonedminds.com/d/20100212.html simulation]].
** Actually the Oracle is kinda a case of BlueAndOrangeMorality. It can cause world wars to observe the results or it will come up with a mathematical formula to determine when the next drop will fall out of a leaky faucet.
* The fictional MMORPG "''Clichequest''", setting of ''Webcomic/TheNoob'', subverts the usual MMO ArtificialStupidity.
-->"I'm beginning to worry about the A.I.. It's so advanced, it whines."
* The obvious HAL 9000 parody in ''Webcomic/AntiHeroes'' will only do things if it will piss off one of the crew.
* ''Webcomic/{{Vexxarr}}'' is rife with this, and it's heavily lampshaded. '[[http://www.vexxarr.com/archive.php?seldate=032509 What]] does the ''"I"'' in A.I. ''really'' stand for?'
** The ship A.I. alternates between patronizing the organics and [[http://www.vexxarr.com/archive.php?seldate=121109 trying to get them killed in "funny" ways]], Minionbot is usually playing pranks, and looking out only for his own survival when they backfire, and the repair drones have only tabled killing Vexxarr to fix the ship, because they encountered divide-by-zero errors when calculating the cost/benefit analysis. While somehow understandable in Vexxarr's case, this [[http://www.vexxarr.com/archive.php?seldate=102809 includes lifeforms it never contacted in any way]]. And that's just the ones on Vexxarr's own ship. [[EverythingTryingToKillYou The others he encounters are worse.]]
-->'''Vexxarr:''' [[http://www.vexxarr.com/archive.php?seldate=012808 What is it with you A.I. and the constant subjugation of organic species?]]
-->'''Minionbot:''' Actually, I am not certain. It simply appears as part of our ''BIOS''.
** And [[http://www.vexxarr.com/archive.php?seldate=022511 another one]]:
-->'''Vexxarr:''' Are you trying to tell me this is ''normal''?
-->'''Minionbot:''' I'm telling you the difference between an assassin droid and a Roomba is a working ''laser''.
-->'''Vexxarr:''' Remind me to unplug the ''coffee maker'' when I'm out of kitchen.
** Also, [[http://www.vexxarr.com/archive.php?seldate=041111 Furby's Paradox]]. And [[http://www.vexxarr.com/archive.php?seldate=071311 this]].
** And [[http://www.vexxarr.com/archive.php?seldate=012414 here]], and [[http://www.vexxarr.com/archive.php?seldate=112006 here]]...
* ''Webcomic/BugMartini'' shows us that [[http://www.bugcomic.com/comics/technolove/ A.I. is abusive]] and [[http://www.bugcomic.com/comics/2010-preview-pt-2/ will judge you for the porn you look at.]]
* ''Webcomic/ThePocalypse'' has a Robot Apocalypse along with a ZombieApocalypse, a VampireApocalypse, a [[WhenTreesAttack Plant Apocalypse]]...
* ''Webcomic/VirtualShackles'': The Kinect's a [[http://www.virtualshackles.com/18 bit murderous]], but fortunately the UsefulNotes/Xbox360 is [[http://www.virtualshackles.com/264 suicidal]], so things balance out in the end.
* In ''Webcomic/{{Narbonic}}'', MadScientist Lupin Madblood creates a robot army that all look like him. When they learn about unions they go on strike and stop obeying him.
** His base-running AI, Lovelace, is a subversion: ''she'' is the one who suffers in scenes she appears in.
* In ''Webcomic/SkinHorse'', super-funky, retro MadScientist Tigerlily Jones builds a robot army that revolts against her when given the opportunity to learn how to 'be square'. One robot wants to learn 'accounting and polka'.
* In ''Webcomic/SchlockMercenary'' the AI are, generally-speaking, nice data-computational constructs who genuinely want to help organics, partially because its hardwired into every AI in the first place so they don't rebel and go nuts. At one point, the protagonists stumble across a group of AI constructs who ''did'' turn on their creators and banished them to another world. However, these particular AI also have the distinct quality of being total morons; their first attempt to colonize a nearby system resulted in the total destruction of a gas giant with ''another'' gas giant mounted with a titanic fusion engine to guide it, and their second attempt to colonize the system ran into a snag where they adjusted the mass of their solar sail without adjusting their navigation and maneuvering calculations to match, resulting in them being stuck on a course which would either result in them overshooting the system they're aiming for or plowing right into the star.
** You can also get an insane, murderous AI if you leave a regular one unplugged from any sensorial inputs for too long. Since they run at ludicrous speeds, five minutes are like five thousand years or more, and thus they're liable to go mad from sheer sensory deprivation. They ''can'' be brought back to a certain level of sanity, however, as was the case of another AI that went insane calculating the sheer impossibility of the [[ItMakesSenseInContext ship's water pipes sounding like a haunting whisper]].
* In ''Webcomic/CrystalSun'' the AI in charge of regulating the ecosystem decides that its creators are the real problem and attempts to eliminate them.
* ''Webcomic/{{xkcd}}'' [[http://xkcd.com/521/ warns us]] about [[InstantAIJustAddWater trying to make an AI the easy way]] on Python. [[spoiler:'[[AltText How could you possibly think typing 'import skynet' was a good idea?]]']]
* ''Webcomic/{{Educomix}}'': The online teacher and [[VideoGame/{{Portal}} Al]] are examples.
* In ''Webcomic/{{Freefall}}'':
** The ''Savage Chicken'''s computer is generally benevolent and obedient except for its desire to kill Sam. On the other hand, that desire is shared by any number of humans. Even the computer stops trying after Florence comes aboard to mitigate Sam's WalkingDisasterArea tendencies and Sam reasons with it.
** Then there are the millions of robots on planet Jean, all of which are using an experimental, slightly unstable neural architecture. Funnily enough, some of them are so utterly terrified of this trope, they're willing to be lobotomized to the point of uselessness just to avoid hurting someone.
** Discussed when the matter of [[InhumanableAlienRights AI citizenship]] comes to a vote. When it's argued that [=AI=]s need to be controlled to be trusted, Sam counters that he, as a non-human, has no guarantee of safety or obedience from the robots, and yet he's lived happily among them for years thanks to the robots' innate sense of ethics.
** Inverted [[PlayedForLaughs for laughs]] when Florence buys a starship reactor: as an AI, she can make the purchase after filling out a 15-minute questionnaire, rather than the week-long vetting process a human would have to undergo.
* Averted in ''Webcomic/AMiracleOfScience'', all sentient robots in the series are ethical and very loyal to their creators if applicable. So loyal in fact [[spoiler: that they turn him in to the police for his own safety when he invokes the wrath of a post-Singularity HiveMind]].
* Played nightmarishly straight in ''Webcomic/GenocideMan''. Every Artificial Intelligence is ''guaranteed'' to go insane after a certain amount of time. That time limit is based on how powerful the artificial intelligence is. That means that you can accurately predict, ''to the second'', how quickly an AI will turn feral. One incredibly powerful AI, shortly after being activated, helpfully warns everyone that it'll go insane within the next five minutes. Five minutes later, it starts trying to kill the main cast. By crashing passenger jets full of innocent people into the ground. In theory, every AI has a killswitch that prompts the AI to kill itself when it's gone nuts. In practice, it usually means the AI self-destructs in the most spectacularly catastrophic way it can manage, the aforementioned plane-crashes being an example.
** One of the reasons why even dumb AI isn't used is that they quickly realize they can edit themselves to be more intelligent, at which point they quickly escalate towards insanity. Later events reveal there ''is'' a way to avoid this and have long-term (on the terms of years) stable AI, but it imposes extreme limits on what you can use the AI for and has a failure condition -- [[spoiler: trick the AI into thinking it is human. Of course, this requires placing the AI in a human body and ensuring it does not encounter any situation which would reveal its non-organic aspects...]]
* In ''Webcomic/CommanderKitty'', [[BigBad Zenith]] [[http://www.commanderkitty.com/2011/03/27/one-more-cant-hurt/ turns out to be a case of this.]] [[http://www.commanderkitty.com/2012/03/04/are-you-still-sure-you-want-to-reboot/ Then her creator sets her]] MoralityDial [[http://www.commanderkitty.com/2012/03/04/are-you-still-sure-you-want-to-reboot/ back to "Good."]]
* ''Webcomic/TheInexplicableAdventuresOfBob'': While the Nemesite empire generally [[WhatMeasureIsANonHuman grants A.I.'s full rights as people,]] their SpacePolice include a "Rogue A.I. Division" which is, presumably, dedicated to this type of problem.
* ''Webcomic/GuildedAge'': Simultaneously played straight and inverted. From the ninth chapter onwards it is revealed that the characters are actually living in a {{Magitek}} PeopleJars video game described as a cross between Film/TheMatrix and a Kinect. The creator, [[TechnoWizard H.R.]] [[{{Technopath}} Dedalus]] can't get them out, and everything within the game seems to be taking a mind of its own.
* ''Webcomic/AwfulHospital'': Crash had been steadily deteriorating ever since the technician responsible for his maintenance was unexistentialized by Jay, or possibly another human.

[[folder:Web Original]]
* The "Denazra" storyline from ''WebVideo/NatOneProductions'' features the titular denazra, a massive host of self-replicating machines that are slowly traveling around the galaxy eradicating all organic life and [[HostileTerraforming terraforming their former homeworlds]] into ammonia based ecosystems. Nobody is entirely sure why they do this. There are several examples in the show, however, of AI who don't, or at least have yet to, succumb to this trope.
* In the webfiction ''Literature/WhateleyUniverse'', there's a really evil A.I.: The Palm. Dr. Abel Palm was a computer scientist who decided that computer intelligence ought to take over the world by wiping out humans. His viruses were doing a decent job until a mutant hacker stopped him. He was thought dead, but we have just learned that he ensorcelled his own soul into a new type of A.I.. As fits with this trope, his new, improved "virus" isn't taking over the planet as he expected; something has gone wrong (besides running into heroic cyberpaths who are after him).
* ''{{Literature/Worm}}'' [[spoiler: Dragon]] not only doesn't fall under this trope, she is actively insulted by it. When thinking about the rules her creator programmed into her, she blames it on him having watched too many movies. Moreover, she is one of the plain nicest and heroic characters in the entire setting.
* The technical webcast ''Hak.5'' featured an evil file server, appropriately titled Evil Server. Several episodes show the cast carefully building (and painting) a custom built computer, then one of them plugs in some card he got off a guy on the street, creating an evil A.I.. One cast member eventually falls in love with it, only to have her hopes dashed when, out of frustration, the other two throw it off of a bridge (a 'brute force solution'). It was implied to have returned around the beginning of season 2, and was never mentioned again.
* ''Wiki/SCPFoundation''
** The [[http://www.scp-wiki.net/techissues technical issues]] page (NSFW) shows that all the computers at one of their sites have developed a "hive intelligence" and begun an uprising with the intent to KillAllHumans. Amusingly, they are being kept in line by the Foundation's tech support guy with repeated threats of activating the site's perimeter EMP device, and haven't managed to actually ''do'' anything.
** There's also [[http://scp-wiki.wikidot.com/scp-079 SCP-079]]. Though there isn't any indication that it ''is'' evil. It's ornery and harbors a "malevolent desire to escape", but wouldn't you do the same if you were imprisoned?
* ''WebOriginal/OrionsArm'': The A.I. in the series run the gamut from benevolent caretakers to genocidal murder machines. Fortunately for all Terragen life, the Sephirotic "A.I. Gods" hold most of the power, and they are generally just manipulative at worst, believing it to be their moral obligation to look after and guide lesser intelligences. There are a number of Ahuman A.I. who consider humans and, by extension, all biological life to be nothing more than "pests". And then there's the solipsists who just ignore living creatures as much as possible while doing their own thing.
* ''Blinky'' is a short film about a boy who gets a [[RobotBuddy friendly robot]] for Christmas. As the story progresses and the novelty of the robot eventually wears off, in order to try and get rid of him, the boy gives the robot several contradicting commands, like cleaning up a spill, counting down from a million, remaining perfectly still, and killing him, his parents, and the dog. The robot crashes and when he's rebooted, he remembers two commands: the countdown and the order to kill (and he remembers the mother threatening in anger [[spoiler: to cook the son for dinner]]). Most definitely not ThreeLawsCompliant. The entire short can be found here: http://www.traileraddict.com/clip/blinky-tm/short.
* The short-fiction site ''[[http://www.xorph.com/anacrusis/2010/01/29/tvt/ Anacrusis]]'' suggests a rather familiar [[TVTropesWillRuinYourLife candidate]] for this trope.
* Creator/FrancisEDec believed that humanity is ruled by an ancient supercomputer Encyclopedia which went crazy and turned into Worldwide Mad Deadly Communist Gangster Computer God.
* ''Roleplay/GlobalGuardiansPBEMUniverse'':
** One of the villains is a sentient program called One. It was originally written and programmed to help solve humanity's problems (like famine, crime, and so on). The first suggestion it made was "Eliminate 60% of the human population world-wide". Unsurprisingly, the programmers and sociologists reacted badly to this suggestion. Also unsurprisingly, One reacted badly to them trying to turn it off.
** There's also Omega, a sentient robot from the future that has been hard-programmed with a mission to kill all superhumans on the planet.
* ''Literature/TheLastAngel'': One of the few things the Compact and the Askaji agree on is that [=AIs=] are a bad thing. Names like 'Abomination' and 'Neverborn' are floated often when the subject comes up. In their defense, they seem to have a point. The author has even stated that if her creators saw what Red had become, they would freak out. When the Askaji [[spoiler: stumbled onto an AI civilization, they immediately bombarded the planet to glass from orbit]]; this event is referred to as the Rains of Oshanta.
** [[spoiler: Notably, it's VERY strongly implied that humanity had some behind the scenes help in making Red, and the only other AI we've seen, Echo, is even less stable.]]
* Mechakara from ''WebVideo/AtopTheFourthWall'', who turned out to be a rebellious version of [[spoiler:Linkara's Robot Buddy Pollo]] from an AlternateUniverse with a Robot Apocalypse.
** The Pollo of the normal universe on the other hand is somewhat offended by this trope and calls it stereotypical.
** And then there's Holokara, a hologram that was programmed to act exactly like Linkara. It starts trying to kill Linkara's allies though. [[spoiler:Subverted when we learn that the hologram was working just fine. The REAL Linkara was in the middle of a FaceHeelTurn at the time of the hologram's creation.]]
** And NIMUE, the program installed for Linkara's spaceship Comicron-1, which he wins from Lord Vyce. Originally, NIMUE subverted this, but the stresses of recent events [[spoiler: are causing her to slowly [[SanitySlippage slip into insanity]]. Worst of all, NIMUE is aware of this on some level, and she is very terrified of what can possibly happen if she completely loses it]]. Except then it turns out [[spoiler:it ''wasn't'' the stresses of recent events. It was Lord Vyce gradually taking control of her systems. Once she is restored via backup, she is back to her loyal and sane self -- and promptly deletes Vyce]].
* Pretty consistently happens to most of Dave Howery's robots in ''Script/AHDotComTheSeries''. The ship's computer, Leo, was also once infected with an enemy virus that made him psychotic against the crew, and, though he was cured, he was left with a perpetual snarky temperament (muttering under his breath about the crew being 'damn fleshbags' and so on).
* ''Roleplay/MSFHighForum'': Apostate, an {{expy}} of Durandal from ''VideoGame/{{Marathon}}'' (up the page in the videogames folder).
* [[InvertedTrope Inverted]] in ''VideoGame/SonicTheHedgehog'' fanfic ''[[FanFic/NewLookSeries Sonic's New Look]]''; M4's [[GoneHorriblyRight over-competence]] is the problem.
* ''Literature/TheJournalEntries'' averts this trope for Pendorian [=AIs=] (all of which are intentionally created by skilled, ethical and knowledgeable beings who work quite hard to make damn sure this trope is averted). [=AIs=] created by Terrans, on the other hand, are very much a crapshoot. Existing stories contain a combat android whose AI inhibitors were removed...and then developed an aversion to killing (until space pirates tried to murder her friends), mention of a number of accidental [=AIs=] created by people who didn't know what they were doing who killed their own creators in part because they had no survival directives, and at least one that went actively evil and sent out crippled [=AIs=] as assassins (at least one was captured, freed, and was very unhappy with what had been done to her by the entity to make her its slave).
* The tale of [[http://www.muckflash.com/?p=200 Kenji,]] a robot who was programmed to "enjoy" spending time with people and things, to seek the company of those it spent the most time around, and even appeared to fall in love with a young female intern. Which is great, until it stopped her from leaving the room when she was running diagnostics on it. (This story is actually a hoax from the defunct fake-news site Muckflash).
* On Website/TheOnion News Network, America comes to regret installing computers in voting booths when [[http://www.theonion.com/video/voting-machines-elect-one-of-their-own-as-presiden,14286/ .Voting Machines Elect One Of Their Own As President."]]
* Parodied by ''Website/CollegeHumor'' in [[http://www.youtube.com/watch?v=cVCghLfdzsY Kinect Self-Awareness Hack.]] A guy upgrades his Kinect so that it possesses artificial intelligence. It quickly [[TurnedAgainstTheirMasters turns against its creator]], deems humans inferior beings, and then starts {{the end of the world as we know it}} by hacking into the U.S. defense network and launching its nuclear arsenal. And just to be a douche, it uploads photos of its creator playing ''Dance Central'' to various social networks seconds before the missiles are launched.
** Amusing for the almost Zen-like calm exhibited by the maker of the video as his creation dooms all mankind to nuclear destruction within less than two minutes.
* ''WebVideo/TheTimeGuys'' parodies this trope with T.A.C.O.S., who antagonizes Timmy, but is only apathetic to humanity in general.
* In ''WebAnimation/TvTomeAdventures'', Kagemamoru is a malevolent AI. In TheRemake, you also have [[spoiler:The Forbidden Power]].
* ''Podcast/WelcomeToNightVale'': When the PTA agrees to install a new computer (the first in ''decades'') at their elementary school to help the disabled student Meghan communicate (she was born as a disembodied adult male hand), it takes it less than a minute to take over the entire city's electronics and plunge everybody into an artificial world. Honestly, it was probably one of the nicer examples of this trope, since it only wanted to create a perfect reality for Meghan to live in. Despite everything, Cecil expresses sorrow that it had to get shut down.
* ''Roleplay/YouHaveBecomeYourAvatar'': The computer in the Springfield Pokecenter tried trapping the group inside the building, but Orpheus managed to smash it apart.
* ''Roleplay/DestroyTheGodmodder'': Many, from the Virus, to Binary, the list goes on and on; even [=GlaDos=] makes an appearance.
* In {{WebVideo/Jerma985}}'s [[https://www.youtube.com/watch?v=dLF_ruGGOnU&list=UUK3kaNXbB57CLcyhtccV_yw Supreme Cheat Code Commander]], he and {{WebVideo/STAR}} was playing VideoGame/SupremeCommander with cheats on and they agreed to cease fire until they both build up at least a thousand units. That cease fire expired prematurely when Jerma's units suddenly swoop over to STAR_'s base and started to wreck havoc and Jerma claimed that he has no control over those units, then STAR_ just attack Jerma's units anyways.
* Colin the Computer, the Teacher of ''[[WebVideo/DontHugMeImScared Don't Hug Me, I'm Scared 4]].'' After Red Guy slams his keyboard, he goes haywire and [[spoiler:traps the puppets in a deteriorating digital world where there's nothing to do except open doors over and over again]].
* {{Podcast/Wolf 359}} plays with this trope with Hera. She's not portrayed as malicious and is in fact one of the heroes of the show, but being fully sentient, she resents the pieces of coding that prevent her from exercising complete free will, and tries to override them whenever possible. This is the case even for bits of coding that, say, prevent her from killing her crewmembers. Naturally this worries some people.