On an upcoming episode of ABC's Castle, Beckett (Stana Katic) might put herself in grave danger when an operation goes wrong.

Beckett Witnesses 'Real-Life Carrie' in Episode 15

In an upcoming episode, Beckett will be going undercover, but things take a turn when complications arise in the operation.

"Beckett thinks she's pretending to be one person, but discovers that [the criminals] think that she's somebody else completely," Castle creator Andrew W. Marlowe told TV Guide in a Tuesday report. "She has to navigate those waters and figure out who she's supposed to be, and any misstep could get her killed."

Castle-Beckett Wedding Details

While the operation starts to fall apart, Beckett will also have to deal with some familiar faces involved in the murder of her mother Johanna. While the publication does not say which episode in which these events will occur, it is suggested that it will be for the episode Room 147.

The upcoming episode Room 147 will feature Beckett and Castle (Nathan Fillion) receiving a confession from a young woman admitting that she murdered a struggling actor.

The catch is that Castle and Beckett discover proof that she could not have possibly killed him. A second person then confesses to the murder, who is absolutely convinced of their guilt. This makes Castle and Beckett realize that the case is much more mysterious than previous assumed.

This episode is set to air on Monday, Feb. 24, a week after the show tackles a "real-life Carrie" case in Smells Like Teen Spirit.

Castle season 6 airs Mondays at 10 p.m. on ABC.

Watch a sneak peek for the next episode of Castle here: