By hiding the criminals she became an accessory "of" the robbery.

Answer: 
to
By hiding the criminals she became an accessory "of" the robbery.