Composting tumblers are generally more secure and less likely to attract pests compared to open compost piles. However, it's still important to follow proper composting practices to minimize the risk. Avoid adding meat, dairy, or oily food waste, and make sure the tumbler is properly sealed and regularly turned to promote a healthy composting environment.