Abstract This paper discusses the reason of the security weakness of generalized state-space observers-based approaches for secure communication, using chaotic masking and chaotic nodulation of a Lorenz system and proposes a method to solve this problem. Theoretical analysis and simulation show this improvement realized chaotic masking. By comparison with the original system,this method improves the performance of secure communication system based on chaotic masking.