Accidental Public Confession

Not necessarily confined to a villain confessing a crime, sometimes it's just information someone had wanted to keep secret, or information that someone wasn't ready to share yet.

Type 1: The villain has the goody-goody face on, but someone has provoked him into a moment of rage, at which point the anger does the talking and the confession of the dastardly deeds spills out along with all the vitriol. Different from an Engineered Public Confession because the villain's mental state has rendered him/her temporarily unaware/uncaring that there's an audience. The audience may or may not have any idea there's going to be a confession.

Type 2: The most unfortunate kind of Accidental Public Confession comes from someone blithely blurting out something they thought the other party already knows.

Type 3: "Is This Thing Still On?" Somebody doesn't realize there's a live microphone to pick up their confession. See also some examples in Did I Just Say That Out Loud?.

See also You Just Told Me for when the confessor is tricked into believing the other person already knows, and Engineered Public Confession for when the hero secretly arranges and records/broadcasts the confession. I'll Never Tell You What I'm Telling You is a variation of this.

Type 1:
 * Monsters, Inc. - the Corrupt Corporate Executive reveals his plan to capture all human children and scare them shitless for a lifetime to solve the city's power issues. Fortunately, a protagonist has the whole thing on record and reveals it to the authorities. This is also an example of Type 3.
 * Sideshow Bob from The Simpsons does this, most notably when he reveals in open court how he rigged the mayoral election after Lisa implies he was just the face and the Rush Limbaugh expy was the real Man Behind the Man. But Bart and Lisa are pretty good at getting him to do this almost every time.
 * There's a bit in The Order of the Stick where Vaarsuvius, faced with Elan and his evil twin Nale and no way to tell them apart, gives a little speech that culminates in a flat assumption that Nale just isn't smart enough to pull off a good con—at which point Nale blurts out "Oh, yeah? So, what, you think you could have come up with something more clever than Nale did?" Vaarsuvius blasts him with lightning and replies, "Apparently."
 * In Bob and George, the Helmeted Author disguises himself as George, and blows up Proto Man's weapons cache, with Proto Man still inside. Still acting as George, he's questioned by Dr. Light, who doesn't seem shocked or even at all concerned with what's happened, prompting Helmut to scream, "BUT I JUST (BLEEP)ING VAPORIZED HIM!!!" Cover blown.
 * Yet Another Fantasy Gamer Comic: "How dare you accuse me of petty theft?! What my daughters and I have planned is nothing less than high treason!"
 * "A Few Good Men": Col. Nathan R. Jessup angrily admits to ordering the code red in this famous speech.
 * Counts as 1 and Type 3. This is how Darla gets her comeuppence in Cats Don't Dance when after all her attempts to ruin the animals final number fail (if anything, they just make the show more spectacular). She rants to Danny how she sabotaged a earlier scene in the movie by flooding the stage with water, not knowing there a stage mic on her person and she just blurted it out to the whole audience. It doesn't help that said flood also destroyed most of the studio. By the end of the film, she's been demoted to a janitor.
 * A minor version occurs in Scrubs when Turk does this to Marco. Marco knows what Turk is trying to do, and Turk knows that he knows it, and yet Marco reveals his secret in a moment of blind rage regardless.
 * In Legally Blonde, Elle starts out 's interrogation rather comically as she has no idea what she's doing. That quickly changes when she finds an inconsistency in the story. She catches   off guard and   reacts with an unintentional confession.
 * In the Gummi Bears episode, "Princess Problems", after Calla and her snobbish rival Princess Marie get into an argument in the midst of a war between their two kingdoms that was caused by a misunderstanding, whilst in the midst of it, Marie then starts ranting to Calla about how if she tricked King Gregor and King Jean-Claude (Marie's father) into thinking that Calla ripped her dress, which Marie actually did herself, then Calla would be forced to give Sunni (pretending to be a doll at that time) to Marie. However, once Marie realized that she said this out loud in front of the entire kingdom, her father becomes outraged, telling his daughter that he does not abide anyone telling him lies in his kingdom.
 * At the end of Big Fat Liar, Jason Shepherd has teamed up with all of the people Marty Wolf has either mistreated or abused in order to Wolf through the wringer. At the end, Jason confronts Wolf and demands he admit to plagerizing Jason's essay for his movie, and Wolf, at the end of his rope, screams YES, he did it. He finds out too late that the whole confrontation was being filmed and shown live to the rest of Hollywood's bigwigs.

Type 2: "Sebastian: I tried to stop her, sir! She wouldn't listen! I told her humans were bad! They are bad, they are... Triton: Humans? What about humans?! Sebastian: Humans? [chuckles] Who said anything about humans?"
 * From Kinky Boots: Lauren, who has been falling in love with Charlie but makes nice with his wife anyway mentions with sincere appreciation that he put his house up for mortgage in order to save the factory. Nicola didn't know, and is less than pleased he kept it from her. Lauren is mortified; she had no idea Charlie hadn't discussed it with Nicola first.
 * The Little Mermaid: Triton calls Sebastian about Ariel being in love. Sebastian thinks he knows that she is in love with a human, and blurts it out.

"Lt. Maria Laguerta: I know everything. Dexter's mind: I'm going to choose not to misinterpret that."
 * Happens in Real Life all the time. Don't tell me I'm the only person who ever does this...
 * It can be exploited, with a little skill, too. If you just pretend to know something a person won't tell you, they will feel compelled to talk about it. If you pretend you're in the know long enough, bam! You know everything.
 * Fooling the other person this way on purpose falls under the You Just Told Me trope.
 * Done in Life Unexpected:
 * Buffy the Vampire Slayer: Happens to Buffy in the episode "Angel" where she accidentally reveals what she's been writing in her diary when she thinks Angel has read it.
 * Fullmetal Alchemist: This is how Ed finds out that.
 * Bones: Dr. Goodman reveals to the rest of the squints that Booth has a kid in the episode "The Man in the Fallout Shelter", thinking that they, who work with Booth every day, would already know this. They, of course, do not.
 * In Paper Mario:
 * Lampshaded several times on Dexter.

"Mook: What do we do now, Frank?
 * Deep Space Nine. Unaware that the Alien Invasion scare on Earth is just part of a Day of the Jackboot scheme, Captain Sisko calls a colleague about an irregularity in the security system. To his surprise the colleague thanks him and promises to cover things up so no-one else would find it.
 * A chilling version occurs at the beginning of Once Upon a Time in the West. Frank and his men have just finished massacring a family, only to exit the house and find a small boy staring at them.

Frank: You mean, now that you've told him my name?"

Type 3:
 * In A Face in the Crowd (1957) the down fall of Larry 'Lonesome' Rhodes is caused by an opened mike and the TV public learns of his evil nature.
 * Also from Kinky Boots: Charlie's wife Nicola confronts Charlie when she discovers that Charlie has mortgaged the house rather than sell the ailing shoe factory he inherited from his father. When Nicola screams and kicks out Lola the Drag Queen, Lola scampers, and drops the prototype boot. Purely by accident, the dropped boot lands on the factory's PA system switch. So the entire staff hears Charlie's impassioned speech, wherein he tells Nicola that he can't just abandon the factory because he grew up knowing these people. Charlie shouts that he doesn't actually enjoy making people redundant, and that he has to try saving the factory. He tells her that if she can't get that, then she may never get Charlie Price. This has the result of the entire factory gaining new respect for the kid they scoffed at for trying to help the factory with no idea how to make shoes.
 * This troper got the impression that Lola did it intentionally as a way of discreetly getting the workers' waning support back.
 * The famous "coming out" episode of Ellen: the title character accidentally whispers "I'm gay" into the microphone of the airport PA system.
 * In one scene in Chalk, Suzy Travis walks into a classroom and confesses to headmaster Eric Slatt that she had an erotic dream about him. Eric Slatt stares at her with a shocked expression on his face, and slowly moves aside to reveal the (switched on) microphone of the school's PA system.
 * An example from Yes Prime Minister. When the Sir Humphrey (the original The Humphrey) gives a standard (that is, vague and uninformative) radio interview to the BBC about unemployment, he has a conversation with the interviewer afterwards, and confesses that the government could probably reduce unemployment by eliminating welfare, unaware that the conversation is still being recorded. Not a standard example, since the broadcast wasn't live, and the BBC apparently wanted to blackmail Humphrey with the tape. When Jim Hacker finds out, he berates Humphrey with "Always treat every microphone as though it were on!"
 * South Park has the boys engineering confessions this way, including having a totally not Mickey Mouse boss explain how he exploits the Jonas Brothers into selling sex to preteen girls.
 * In the origin story of Mr. Crocker, Timmy goes back in time to try and stop little Denzel from accidentally saying to a large crowd his secret of godparents.
 * Subverted in The West Wing where President Bartlett makes a rather snarky comment about his opponent on a camera that was still live - of course, he knew it was live when the did it. As CJ says admiringly, "That was old-school."
 * In the Gossip Girl episode "Enough about Eve", Vanessa has a hidden microphone and gets Blair to confess to her machinations to be the one giving the freshman toast.
 * Stargate Universe: in "Space", "There is nothing sexier than a widower."
 * Leverage
 * "The Homecoming Job".
 * Also, in "The Studio Job", the villain is savvy enough to make sure none of the live mics right in front of him can pick up his whispered confession/threat to Elliot. Unfortunately for him, he whispered it directly into Elliot's ear (and thus his tiny two-way ear-piece communication device), so Hardison is able to record it and play it over the sound system for everyone to hear.
 * Happens at the end of The Adventures of Ford Fairlane.
 * "I even pissed in the punch bowl!"
 * In an episode of Spongebob Squarepants, Plankton says that his customers are "Doo-Doo Dunderheads" and "The dumbest of the dumb" on he microphone he used to transmit the sounds of his cash register.
 * Max Keeble's Big Move: A rather hilarious example happened shortly after Jindrake finished his first telerecorder school announcement: When doing the announcement that requires all of the student body and faculty/staff meet at the auditorium for a special, mandatory announcement, he is dressed like either the President of the United States or probably the Governor of California with the Capitol Building seen behind him from the window. Shortly after Jindrake apparently cuts the transmission, he then takes off the suit, revealing that it was actually a fake, velcro-strapped bodysuit while bragging about himself in a manner similar to a Movie reviewer in a editorial column in the local newspaper, and revealing that even the background was actually fake, a makeshift curtain, all of which was caught on-feed to the students and to their uproar, up until Mrs. Rangoon, his secretary, revealed that the camera's red light was still operating. Max uses this to expose his plan on using most of the school budget to build a football field to make himself superintendent.
 * Metal Gear Solid 2: Sons of Liberty had a variation: Raiden, after learning from Otacon in an optional codec call, that the rumors about the Big Shell being a big cover up are all true, and especially that Solid Snake said that Raiden was a weak, simple-minded, stubborn fool, exploded about it and insulted Snake, not realizing that Snake was right next to Otacon while angrily insulting Snake until Otacon told him. Also counts under Engineered Public Confession.
 * My fellow Americans, I'm pleased to tell you today that I've signed legislation that will outlaw Russia forever. We begin bombing in five minutes.
 * In Doug, Roger Klotz is dealt this combined with a Hoist by His Own Petard moment. After he successfully frames Doug for stealing Assistant Principal Bone's yodeling trophy, he goes to gloat about it to Doug, only to unwittingly activate the intercom while he was talking! To his credit, Doug did try to warn him.
 * This was also used in the Garfield and Friends episode "Supermarket Mania". When Jon confronts Corrupt Corporate Executive Mr. Baggit about why the prices of his Food Monster supermarket are high, Mr. Baggit then proceeds to explain to Jon about his true intentions, which are to put Gramps' Supermarket out of business so that he could charge the customers a lot more than they normally pay. However, he didn't count on Garfield holding the microphone directly in front of him while he was explaining this, resulting in hundreds of angry customers immediately leaving the Food Monster afterwards once they've learned the actual truth.
 * In an episode of American Dad, the school's announcement readers have a tendency to get Drunk with Power and go nuts, eventually getting taken down by Engineered Public Confession. After going through four such changes in as many days, the Principal grumbles about "stupid kids" and about how it was so much easier being a drug dealer in South America, where you got money, drugs, and girls -- "Not women, GIRLS!". After he's said all this, a teacher enters the room to point out that the intercom mike has been on the whole time. The principal's reaction? "Aw, motherfucker."
 * One episode of Combo Ninos featured Diadoro accidentally insulting potential voters while his assistant was working on the microphone wiring.