Dynamic Routes can do this, see this thread for background: CID can get to IVR but have to enter PIN or being in whitelist to an certain option on IVR
Use David’s expression as the Asterisk Variable in this form:
$["${CALLERID(name)}"="Potential Spam"]
Which will return a 0 or a 1. Set dynroutes destinations as appropriate.