Install the input policy
Set the blackhole flag on routes carrying 65535:666, then reject every other route from this session.
/routing/filter/rule
add chain=BOTNET-CL-BGP-IN rule="if (bgp-communities includes 65535:666) { set blackhole yes; accept; }"
add chain=BOTNET-CL-BGP-IN rule="reject;"