This morning, I received an email from my Synology DiskStation informing that a malware had been detected during a security scan. It caused a slight panic. Luckily, it was because I had accidentally modified a couple of files when I was investigating the Python pip3 issue yesterday. In a way, it is good to know that there is built in security feature to detect such tampering.
The only problem then is how do I go about restoring the tampered files; as I do not have backup copies of the files. I am not sure if it detected the change in timestamp, size or content of the files, further complicating the restoration process. Luckily, I found an official Synology site which has all the releases of DSM 5.2-5592. From there, I was able to locate the correct package for my DiskStation, and extract the files that I had accidentally modified. I restored the original files, and a quick security scan showed that all is well again.