The attackers in the horrific Jersey City shooting that left three civilians and a cop dead are the “prime suspects” in a previous murder of a livery driver in Bayonne, New Jersey, Attorney General Gurbir Grewal said Wednesday.

Grewal did not provide any other details on the connection between Tuesday’s shooters — David Anderson and Francine Graham — and the Bayonne slaying of 34-year-old Michael Rumberger, who was found dead in the trunk of a Lincoln Town Car on Dec. 7.

According to the Hudson County Prosecutor’s Office, members of the Bayonne Police Department responded to the area of 17th Street and John F. Kennedy Boulevard at around 10 p.m. on Dec. 7 for a report of possible criminal activity.

There they found Rumberger of Jersey City unresponsive in the trunk of the vehicle with trauma to his head. He was pronounced dead at the scene.

Grewal described Rumberger as an Uber driver during a press conference on Wednesday. However, a spokeswoman for the company said later the slain man has never worked for the ride-hailing service.

Rumberger last drove for Lyft in 2016, according to the company.

The New Jersey Attorney General’s Office did not return calls for comment.

On Tuesday, veteran Jersey City Detective Joseph Seals spotted Anderson and Graham in a stolen U-Haul van that was linked to the killing of an Uber driver in Bayonne — and was fatally shot in the head by when he tried to question the pair, law enforcement sources have told The Post.

Later that afternoon, Anderson and Graham went to the Jersey City Kosher Supermarket Tuesday in a U-Haul van and opened fire, killing three civilians inside the store.

The duo was shot dead by police.