This paper presents a novel signature-based traffic classification engine designed to reduce false alarms in intrusion detection systems (IDS). It details the architecture of a pattern matching engine that optimizes algorithmic procedures to categorize incoming packets based on traffic characteristics and behavior, improving detection accuracy. The study utilizes an open-source IDS, Snort, to evaluate the performance of this classification engine, demonstrating its efficacy in reducing false positives during network traffic analysis.