RE: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interfaceforon access scanning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Press, Jonathan <Jonathan.Press@...>
Cc: Greg KH <greg@...>, <linux-kernel@...>, <malware-list@...>, <linux-security-module@...>
Date: Tuesday, August 5, 2008 - 1:19 pm

On Tue, 2008-08-05 at 12:37 -0400, Press, Jonathan wrote:

With the current implementation there are 2 ways to be excluded.  Both
require root and I plan on both requiring the access to pass a
newfangled LSM hook or maybe just require CAP_RAWIO.  LSM people have
thoughts?

Method #1)  Become a client listening for access decisions, basically
just open /security/talpa/client/talpa-client and you are free of
open/close scans.  We have to make the scanner itself not cause its own
opens and closes to need scanned, think infinite recursion.

Method #2) Exclude yourself.  This involves
opening /security/talpa/exclude/talpa-exclude and writing "1" into it.
this file is owned by root and is 600.  Regular user processes cannot
exclude themselves willy nilly nor can any configuration exclude them.
It might be possible to do exclusions in userspace using the pid and
non-caching results for things other than the scanning clients
themselves.

If you can outline the design of a better method that meets your needs
I'd be glad to try to code it.  In your mind how do you see programs
being able to exclude others while not being a security risk?  I assume
your answer is that the program "giving out the exclusions" must be
root, which we already satisfy.  There is (or could be, I don't remember
offhand) the option to disable thread exclusions in kernel (except for
those threads that act as userspace clients, they MUST be excluded
somehow).  But really as it stands any root process could just enable
them again.  In the non-LSM case root processes already won so, they can
just disable the whole infrastructure send kill -9 to all your clients
and have at it.....

-Eric

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interf..., Eric Paris, (Tue Aug 5, 1:19 pm)
Sidebar to [malware-list] [RFC 0/5] [TALPA] Intro to a linux..., David Collier-Brown, (Wed Aug 6, 7:40 am)
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linuxinterfa..., David Collier-Brown, (Mon Aug 11, 12:11 pm)
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linuxinterfa..., Arjan van de Ven, (Wed Aug 13, 10:28 am)
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interf..., David Collier-Brown, (Wed Aug 6, 7:31 am)