Protocol scrubbing uses a sophisticated statistical mechanism to thoroughly check incoming SIP signaling messages for various types of protocol-specific events and anomalies. The protocol scrubber verifies certain message characteristics such as proper message formatting, message sequence, field length, and content against templates received from Avaya. Messages that violate the security rules dictated by the scrubber templates are dropped while messages that violate syntax rules are repaired. Messages are repaired by rewriting, truncating, rejecting, or dropping, depending on the processing rules imposed by the templates. Protocol scrubbing rule templates are prepared by Avaya and the user can edit the templates minimally.