At least three candidates for state attorney general said Friday they support the goal of a commission to investigate prosecutorial misconduct, but acknowledge a bill creating one may need changes to meet the approval of Gov. Andrew Cuomo.

The bill has faced increased scrutiny in recent days from prosecutors who are mounting a legal challenge, which has been fueled by a memo from Attorney General Barbara Underwood’s counsel warning the legislation may not survive judicial review.