The document proposes a scheme to identify packet droppers and modifiers in wireless sensor networks. It involves establishing a routing tree with the sink at the root. Each packet sender or forwarder adds a small number of packet marks. Based on these marks, the sink can determine the dropping ratio for each node and identify for sure or suspicious droppers/modifiers. Over time as node behaviors are observed in different scenarios, the sink uses ranking algorithms to gradually identify the most likely bad nodes with small false positives. The proposed scheme is effective at identifying droppers and modifiers with low overhead and works with existing filtering schemes.