Follow up: How to write a Linux virus
Follow up: How to write a Linux virus
Posted Feb 13, 2009 11:42 UTC (Fri) by etienne_lorrain@yahoo.fr (guest, #38022)In reply to: Follow up: How to write a Linux virus by dkite
Parent article: Follow up: How to write a Linux virus
If you are talking of ELF executable file, then there is absolutely no problem: create some ELF section with standard names like:
- "icon"
- "icon_file_path"
- "icon_title"
- "file_extensions_handled"
- "menu_category"
ELF sections are easy to manage, i.e. you can add and remove them from every executable in an installed distribution, without risks about execution of the modified software.
Note that I still do not understand the general problem, if the .desktop file is executed under the "internet" user in the "internet" group, the virus can only modify "internet" files.
In fact the problem is not downloading a random file from Internet, it is that doing so will silently change the ownership to the user - and so be trusted like any other file the user owns.
Maybe all files downloaded from Internet should be owned by "internet" username until their signature is verified, then they would change ownership to "fedora" or "debian" if it is a verified package, or some smart management based on the username/group.
