An upcoming episode of ABC's Castle is set to center on Hayley (Toks Olagundoye) getting involved in a cyber crime.

The plot synopsis for this season's 18th episode, titled "Backstabber," has been released by ABC (via SpoilerTV), and reads as follows:

"When Hayley finds herself being implicated in a cyber-terror attack after doing an old friend a favor, Castle [Nathan Fillion] and Beckett [Stana Katic] rush to clear her name."

This episode is expected to air on Monday, April 18. In the mean time, two new episodes of Castle will air before this—one tonight and the other next Monday. Tonight's episode, titled "Heartbreaker," will center on Esposito (Jon Huertas) dealing with someone from his past.

"A clue at the scene of the death of an armored-car driver leads Beckett and Castle back to an old case solved by Esposito. But complications arise when they learn that Esposito might not have been telling them everything about his past with the culprit," the episode synopsis reads.

Guest star Angelica Celaya plays Sonia Ruiz, the culprit in question. The promo for this episode features Ryan (Seamus Dever) asking Esposito, "You're a cop, how can you get involved with a criminal?" Castle quips that it's a "workplace romance." We then see a clip with Eposito and Sonia leaning in for a kiss, though it remains to be seen if this is a flashback or a present-day scene.

Then, Episode 17, titled "Death Wish", will center on the legend of Aladdin.

"The murder of a man connected to smuggling Turkish relics sends Castle, Beckett and the 12th Precinct on a search for a stolen antique believed to be Aladdin's lamp, in hopes that it can lead them to the killer."

Castle airs Mondays at 10 p.m. ET/PT on ABC.

Watch a promo for the next episode of Castle here: