With the commercialization of the fifth generation mobile networks, researchers are now focusing on discovering the potential key techniques of the next generation mobile networks, which are expected to provide more accurate perception, lower latency, and higher network capacity. As the communication equipments increase exponentially, wireless transmission environment becomes more complex, leveraging wireless security challenges more and more severe, such as computationally powerful interception, intelligent malicious jamming, communication behavior monitoring. The physical layer security (PLS) techniques have been widely explored as a complement to traditional encryption schemes by exploiting the randomness characteristics of wireless channels to achieve the security from the physical layer. Additionally, reconfigurable intelligent surface (RIS) is considered as a key enabling technology for the six generation (6G) mobile networks, due to its ability to achieve the reconstruction of wireless channel, which is also regarded as a good match with PLS techniques for improving communication security. This paper presents a comprehensive review of the latest research on the integration of RIS and PLS. First, we introduce the principles of PLS from the development of secure communications and the basics of RIS based on the generalized Snell's law. Then, we categorize RIS according to different hardware architectures, of which the corresponding scenarios are also presented. Subsequently, we review recent works on RIS-assisted PLS in different communication networks, and classify the security scenarios in which RIS is integrated with various advanced communication technologies. Finally, we discuss the potential future research directions and challenges of RIS-aided PLS communications.INDEX TERMS Reconfigurable intelligent surfaces, physical layer security, secure communications, 6G.