Automatically generating models for botnet detection