store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 19, 2013 7:26 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 1 post ] 
Author Message
 Post subject: Experimental real time malware prevention module available
Unread postPosted: Thu Oct 01, 2009 4:29 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3242
Location: Chantilly, VA
RTMDS is available now for testing. At the moment, installation will need to be done manually. To install, run these commands (if you dont know what these mean, I recommend you wait for an installer and not do this manually):

yum --enablerepo=asl-2.0-testing install kmod-dazuko

This should install the dazuko and redirfs modules. You will then need to add in these modules to your system. If you have kernel protection mode set, you will need to reboot to load the modules.

Add these lines to /etc/init.d/asl-mod:

modprobe redirfs
modprobe dazuko

Then you will need to reboot or load these modules. Once they are loaded, check to make sure you have this device:
/dev/dazuko

It should look like this:
crw------- 1 root root 247, 0 Oct 1 11:57 /dev/dazuko

Finally, modify clamd to tie into the kernel to check files for bad things by adding this to clamd:
ClamukoScanOnAccess yes

# Set access mask for Clamuko.
# Default: no
ClamukoScanOnOpen yes
ClamukoScanOnClose yes
ClamukoScanOnExec yes

# Set the include paths (all files inside them will be scanned). You can have
# multiple ClamukoIncludePath directives but each directory must be added
# in a seperate line.
# Default: disabled
ClamukoIncludePath /var/www
ClamukoIncludePath /tmp
ClamukoIncludePath /var/tmp
ClamukoIncludePath /home
ClamukoIncludePath /var/spool/samba
ClamukoIncludePath /var/lib/vmware/
ClamukoIncludePath /var/cache/coolkey
ClamukoIncludePath /dev/shm
ClamukoIncludePath /usr/local/psa/tmp
ClamukoIncludePath /var/asl/data/suspicious

And if you need to exclude anything, add in the full path to the exclusions like this:
ClamukoExcludePath /some/path

Check to make sure these directories exist for your system - if they do not, remove them from the list. Otherwise dazuko wont initialize properly.

And comment out this:

User clamav

clamd has to run as root to be able to see all the files on the system. If this gives you pause thats understandable, however keep in mind that an ASL kernel is immune to buffer and heap overflows so an attack on clamd of that nature is not likely to work. We're also going to be putting out RBAC policies in the very near future for things like clamd, apache and other apps.

Also, you can tell clamd to watch the entire filesystem - but you will add additional, and possibly un-needed load to the system. From a security perspective, its definitely the right thing to do, but if your users can change files in /bin, for example, watch /bin for malware is a bit of a waste. If root can write to /bin, root can also disable clamd or exclude /bin. So the included directories above were put together based on an assumption of the directories that users can write to - and therefore likely places for malware. If we missed a standard directory, let us know.

Also, the kernel hook works on read and execute, not on write. So malware can be written to a location, it can not be read or executed. This is partially a limitation of dazuko, and also by design. dazuko doesnt hook writes, but we chose that because it lets your users files remain on the system - in a locked state if you will - until you can figure out what to do with it. This is sort of a quarantine in place, if you will.

This is test software, so please use them at your own risk. We are using them on our production boxes, but this is still testing software and is not part of ASL yet. If it breaks, we want to know, but its not supported yet.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 1 post ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group