LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-28-2006, 09:00 AM   #1
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Could this be a virus? (gyachi)


Hi all, first of all this comes from another thread I started in the Software section of the forum on how to build my own .rpm (http://www.linuxquestions.org/questi....php?t=420119), but since it went offtopic and I haven't got more replies concerning a -what seems to me- security issue I discovered, I thought opening a new thread in the security section would be more usefull.
Ok, a few days ago I downloaded the source of gyachi from http://gyachi.sourceforge.net/. Then I decided to build my own .rpm with the source package and did it using checkinstall. Then I opened the resulting .rpm package with fille-roller to verify its contents. It had two directories to be extracted in '/': 'usr' (containing 'local/share/gyachi' and 'local/bin/gyach'), and 'selinux' (containing a binary file named 'context'). Gyachi is suppposed to be a messaging app for yahoo, so why should it write something in the '/selinux' directory during installation? Sounds like some sort of virus to me.
As a side note, I reinstalled gyachi from the source yesterday in the afternoon and after I discovered this '/selinux/context' file in the .rpm package I issued the command 'ls -la /selinux' and this is what I got:

Code:
$ ls -la /selinux
total 8
drwxr-xr-x   1 root root    0 feb 27 03:30 .
drwxr-xr-x  23 root root 4096 feb 27 07:30 ..
-rw-rw-rw-   1 root root    0 feb 27 03:30 access
dr-xr-xr-x   1 root root    0 feb 27 03:30 avc
dr-xr-xr-x   1 root root    0 feb 27 03:30 booleans
-rw-r--r--   1 root root    0 feb 27 03:30 checkreqprot
--w-------   1 root root    0 feb 27 03:30 commit_pending_bools
-rw-rw-rw-   1 root root    0 feb 27 03:30 context
-rw-rw-rw-   1 root root    0 feb 27 03:30 create
--w-------   1 root root    0 feb 27 03:30 disable
-rw-r--r--   1 root root    0 feb 27 03:30 enforce
-rw-------   1 root root    0 feb 27 03:30 load
-rw-rw-rw-   1 root root    0 feb 27 03:30 member
-r--r--r--   1 root root    0 feb 27 03:30 mls
crw-rw-rw-   1 root root 1, 3 feb 27 03:30 null
-r--r--r--   1 root root    0 feb 27 03:30 policyvers
-rw-rw-rw-   1 root root    0 feb 27 03:30 relabel
-rw-rw-rw-   1 root root    0 feb 27 03:30 user
As you can see, all the contents of the directory seem to have been cretaed yesterday afternoon (however, the contents of '/usr/local/share/gyachi' where created yesterday at 18:30. I'm not sure the precise time when I reinstalled gyachi).
So, what do you think about this? What to do now?
BTW, I already submitted the 'context' file to clamav's website to see wether it's a virus or not.
 
Old 03-01-2006, 04:24 PM   #2
narmida
Member
 
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Rep: Reputation: 15
isnt this selinux itself that checks.

Are u sure can u reproduce that the programm overwrites the selinux dir ?

i think that the installer helps the users to NOT let them give SElinux enabled systems an error.
many dont so great.
 
Old 03-02-2006, 07:11 AM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
As I said before, I opened the .rpm with file-roller and there's a '/selinux/context' file there, which is really weird in a messaging app. I haven't installed the .rpm because I don't want to overwrite the contents of my /selinux directory (anyway, I already installed the program from the source). Maybe I'm being paranoid, but other thing that comes to my mind is that, perhaps, the version of checkinstall I downloaded/installed is not the real one (it's the first time I use this program), and it's meant to make .rpm's that overwrite the /selinux directory. BTW, I dowwnloaded it from: http://asic-linux.com.mx/~izto/checkinstall/ Is that the right site of checkinstall??
 
Old 03-02-2006, 10:34 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I opened the .rpm with file-roller and there's a '/selinux/context' file there / isnt this selinux itself that checks.
Changing SELinux context isn't part of the Gyachi code I tested (make -n install). Even though checkinstall could be subverted it's more likely checkinstall erroniously picked up changes to /selinux/context as part of it's install check. You could take it up with the checkinstall developers or maintainers.

If unsure where to get rpm's from first check if it's part of your distro's repo, then check repo's like DAG etc. If there's no package available check Freshmeat, Sourceforge, etc etc for sources. Regardless of origin you should minimally check a package using the provided MD5sum or GPG sig. If none is provided harass developers, maintainers or repo admins to provide any. If paranoid you could download an apps code and diff it with a copy from a different repo, mirror or site or a copy of an older version. If unsure do not hesitate to check with us, developers or maintainers.


Is that the right site of checkinstall??
asic-linux.com.mx has same IP as checkinstall.izto.org, the host that is promoted on Freshmeat.net. Note it being "the right site" doesn't affect the code, OK. If unsure: check.
 
Old 03-03-2006, 08:40 AM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Ok, after some research on google for this /selinux/context file when using checkinstall, I found this:

http://www.cs.johncabot.edu/~min/linux/fc4.html#check

Anyway, I don't get why checkinstall has to create this /selinux/context file in the packages it builds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Virus Removal... (Virus Live CD) Nathan1993 Linux - Distributions 7 04-06-2011 06:55 PM
virus phoenix7 Linux - Security 4 02-22-2005 05:07 AM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM
trend chipway virus detected boot virus rafc Linux - Security 1 05-13-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration