Linux Virus
Saw this a while back on Programmer Humor on Why Is Linux Safer Than Other OS.
- Downloaded a virus for Linux lately and unpacked it. Tried to run it as root, didn’t work.
- Googled for 2 hours, found out that instead of
/us/local/binthe virus unpacked to/usr/binfor which the user malware doesn’t have any write permissions, therefore the virus couldn’t create a process file. - Found patched
.configureand.makefiles on some Chinese forum, recompiled and rerun it. - The virus said it needs the library
cmalw-lib-2.0. Turns outcmalw-lib-2.0is shipped with CentOs but not with Ubuntu. Googled for hours again and found an instruction to build a.debpackage from source. - The virus finally started, wrote some logs, made a core dump and crashed.
- After an hour of going through the logs, discovered the virus assumed it was running on ext4 and called into its disk encryption API. Under
birfsthis API is deprecated. The kernel noticed and made this partition read-only. - Opened the sources, grep’ed the Bitcoin wallet and sent $5 out of pity.