The document presents a sanitization algorithm for protecting sensitive data in structured frequent patterns, focusing on tree structures to block inference attacks effectively. The proposed rank-based structured-pattern sanitization (RSS) algorithm aims to minimize computational complexity and information loss while facilitating safe data sharing. Experimental results indicate that the RSS algorithm demonstrates superior performance in terms of low dissimilarity and execution time compared to other existing methods.