The paper proposes an Anonymity and Trust Management Scheme (ATMC) for clustered wireless sensor networks to enhance security by concealing sensor node identities during trust value calculations. It leverages the concept of identity anonymity to prevent adversaries from performing traffic analysis and maintains trust relationships among nodes. Simulation results indicate that ATMC outperforms existing trust management approaches by improving the overall security and communication stability in the network.