Yota
Very Senior Member
Asuswrt and Merlin usually have more frequent security updates than any soho routers on the market, but I have found that many forum members have reported malware in the past few years. some are in the form of scripts and some are binary files. because of the persistent jffs , malware and viruses are easier to survive after restarting. but I also doubt the necessity of this project, because these malwares are not widespread on properly configured routers.
I have some ideas about this anti-malware program:
Listen, this is just an idea, and it doesn't mean I might do it, no promise here. I just want to discuss this idea with the community.
Merry Christmas to everyone!
I have some ideas about this anti-malware program:
- To build a trust chain and database, calculate the hash of all executable files in the firmware and match it with the known hash on the database to ensure that the firmware comes from stocks, Merlin and any trusted forks.
- Try to build the same trust chain for any executable files and scripts in the writable partition, and warn about unknown executable files.
- Maybe even a scan of the CFE? But there is no idea about this, because it involves decrypting CFE, and because CFE is different on each device, it is obvious that hash matching cannot be used.
- Download the hash database of known malware and safe files for scanning.
- Ask the user to submit the hash and file copy of the unknown executable file to the server for further analysis and understanding of trends.
- Monitor all ports opened on the WAN.
- Monitor abnormal traffic, It may be necessary to create a 7-day or 30-day network behavior data model locally on the router to ensure that the user is notified when the behavior exceeds the expected behavior
- Scan for any hooks in the nvram.
- Support sending alerts via email.
- Open source, free, use shell to achieve (because I don't know much about other computer languages, I don't think I have the ability to use C to complete it ), and figure out how to prevent shell scripts from being maliciously tampered with.
- Cooperate with any interested and capable developers ❤
- Because this requires building a huge database to ensure that any new version of the firmware will not be marked as "unknown", this requires a long-term support. This makes me feel a headache. and involves interaction with the server, such long-term investment may not be very realistic for this small-scale free software, but maybe there are any interactive hosting services similar to Github?
- Privacy, privacy, privacy, I am very concerned about privacy, and I hope that most of the anti-malware functions can be completed without uploading. Only when encountering a potential threat, ask the user for the hash or even the copy of the threat to minimize data collection.
- Cross-platform support? when the database is complete, may consider supporting other platforms, such as OpenWRT, Tomato, and other third-party firmware. Of course, this will be new world and may require many, many years of hard work.
Listen, this is just an idea, and it doesn't mean I might do it, no promise here. I just want to discuss this idea with the community.
Merry Christmas to everyone!
Last edited: