The novel opens in the present day before plunging twenty years into the past. Alex Cross, a criminal psychologist and homicide detective with the Washington, DC, Metropolitan Police, is playing Gershwin on his sunporch piano when his partner, John Sampson, calls: The Alphonso brothers, armed bank robbers who killed six people, have surfaced in District Heights. Cross retrieves his body armor, reassures his wife, Bree, and joins a Special Weapons and Tactics (SWAT) operation that ends when snipers kill both brothers after they open fire.
Cross and Sampson are then summoned to a cabin in the Pine Barrens of New Jersey, where Federal Bureau of Investigation (FBI) agent Ned Mahoney and state police captain Alexander Barthalis explain that a new owner discovered a hidden room in the basement. A title search traced the property to Gary Murphy. Cross identifies Murphy as his "first spider," his term for the first major killer he pursued: a man also known as Gary Soneji, a killer with dissociative identity disorder obsessed with fame, serial murder, and kidnapping. Soneji was caught and imprisoned; he contracted HIV, escaped, committed a mass murder in a DC Metro station, and died in a train tunnel shoot-out.
Inside the secret room, Cross finds labeled weapons, photographs of victims, jewelry, locks of hair, and storage bins marked with the initials of famous serial killers: Son of Sam, the Boston Strangler, the Night Stalker, the Zodiac Killer, the Green River Killer, and John Wayne Gacy. Cross realizes these are murder kits Soneji assembled to practice each killer's methods. He finds a black leather notebook titled "Profiles in Homicidal Genius, by Gary Soneji." Doubt grows as he recalls a man in prison proclaiming his innocence before dying.
The narrative shifts twenty years earlier. Soneji, disguised as a substitute teacher at the Charles School, a private academy in Alexandria, Virginia, overhears seventeen-year-old lacrosse captain Conrad Talbot persuading his girlfriend, Abby Howard, to visit a secluded spot on Bear Island that evening. Having previously kidnapped and killed a Princeton freshman at the Pine Barrens cabin, Soneji feels the craving return and decides to model his next crime on David Berkowitz, the Son of Sam.
Meanwhile, rookie detective Alex Cross attends the funeral of fourteen-year-old Tony Miller, found stabbed and floating in the Potomac. Recently recruited for his doctoral expertise in criminal profiling, Cross struggles with the emotional toll of his first case, leaning on his grandmother, Nana Mama, and Sampson for support.
That night, Soneji follows Conrad and Abby to Bear Island in a white utility van and fires a .44-caliber Charter Arms Bulldog pistol, the model Berkowitz used, through the driver's-side window, killing Conrad. Abby survives, gravely wounded. A bicyclist spots the van and scrawls a threatening note on it; Soneji runs him down. Cross and Sampson investigate the next morning, but chief of detectives George Pittman reassigns the lead to senior Detectives Corina Straub Diehl and Edgar Kurtz. Sampson believes Pittman does not want two Black junior detectives getting credit.
Cross's wife, Maria Simpson, a social worker, is six months pregnant with their second child, and their toddler son, Damon, anchors the family.
Cross develops a theory that the shooter is imitating Berkowitz: The autopsy reveals the same rare ammunition Berkowitz used, and the killer's methods closely parallel the original's. Cross presents the theory prematurely and is rebuffed. When a second shooting in Beltsville, Maryland, kills two young medical technicians, Selena DeMille and Alice Ways, and ballistics confirm the same weapon, Cross's copycat theory is validated. Pittman supports it publicly, though Diehl and Kurtz warn Cross that the chief will let him take the blame if things go wrong.
Soneji escalates, studying different serial killers and applying their methods. He strangles real estate agent Brenda Miles during an open house, mimicking Albert DeSalvo, the Boston Strangler. He kidnaps exotic dancer Bunny Maddox and takes her to the Pine Barrens cabin, but Bunny recognizes him and escapes into the woods; Soneji tracks her with a hunting rifle and kills her. Throughout, he meticulously frames two convicted sex offenders, Eamon Diggs and Harold Beech, for his crimes. He stores the white van at Diggs's inherited farm and plants the murder weapon, bloody evidence, and spent shell casings inside it.
In parallel, Cross and Sampson investigate gang killings linked to Tony Miller and sixteen-year-old Shay Mansion, a murdered gang recruit whose beaten body was found in a DC park. Undercover officer Nancy Donovan identifies two rival gangs: Los Lobos Rojos, led by ex-Marine Guillermo Costa, and LMC 51, a Haitian gang led by Patrice Prince. A drive-by shooting outside St. Anthony's Church during Sunday Mass kills Father Nathan Barry, a family friend, and wounds parishioners. Cross shields Nana Mama and Damon with his body and suspects Prince ordered the attack in retaliation.
When Donovan goes missing, Cross and Sampson stake out Prince's fortified compound near Davidsonville, Maryland, and witness Prince and his cousin Valentine Rodolpho arrive with the bound officer. Before reinforcements arrive, Costa's fighters assault the compound. Cross and Sampson enter to rescue Donovan but are disarmed by Rodolpho. Costa emerges, wounds Prince, and forces a confession: Rodolpho orchestrated the murders of both Tony Miller and Shay Mansion. Costa executes Rodolpho and Prince, then surrenders.
Soneji sabotages the brakes on the minivan of Sandy Ravisky, the teacher he has been substituting for, killing Sandy, her husband, and their newborn in a Beltway pileup. He secures the permanent teaching position, bringing him closer to his real target: Cheryl Lynn Wise, the daughter of the president's chief of staff.
Cross and Sampson trace the white van to Diggs's farm, where they trigger a booby-trap bomb planted by Soneji but escape injury. Forensic technicians find the planted murder weapon, blood evidence linking the deaths of Brenda Miles and Alice Ways, and hair consistent with Bunny Maddox. They arrest Diggs and Beech, who deny everything, but the evidence appears overwhelming. Both men are charged with multiple capital murders.
Cross's daughter Janelle "Jannie" Cross is born on December 23. The family celebrates Christmas. Soneji deepens his cover with a lavish Christmas Eve wedding to his bride, Missy, giving her a ring stolen from Bunny Maddox. On New Year's Eve, at the cabin to build his secret room, he strangles a woman who wanders up his driveway. He declares himself "his own monster," no longer needing to study the masters.
The narrative returns to the present. Cross emerges from the secret room and tells Sampson and Mahoney that the diary proves Soneji, not Diggs and Beech, committed all the murders, framing both men by planting every piece of evidence. Cross says he and Sampson must recuse themselves because their work helped lead to the wrongful conviction of Diggs, who spent nearly 20 years on death row before being killed in a prison fight.
Cross reflects on the years since. The investigation of a killer named Michael Sullivan led one of Sullivan's associates to the Cross home, where the associate shot and killed Maria. Cross's children moved in with Nana Mama, and Cross spiraled into obsessive work and emotional numbness.
Nana Mama tells him to stop wallowing and play his piano. While playing Gershwin, Cross determines his course of action. He and Sampson drive to Red Onion State Prison with attorney Ryan Davis, Beech's original public defender, to tell Harold Beech that new evidence exonerates him. They promise to testify, and Davis will sue for reparations. Beech, stunned and tearful, asks how he will survive outside prison. Davis assures him the lawsuits will yield millions. They also plan to visit Diggs's family.
Nana Mama tells Cross that freeing Beech is a start but not enough: He must keep doing good in Beech's name and in Diggs's memory. She tells him he was born to right wrongs, especially his own. Cross embraces her, feeling renewed purpose.