LinuxQuestions.org
Review your favorite Linux distribution.
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 03-05-2014, 03:52 AM   #1
prabhurajreddy
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Rep: Reputation: Disabled
system call table attack . How to defense ?


Hi guys , we are working on developing a defense for system call table modification attack root kit by writing a new Linux security module . Any ideas of what can be our security policy? How can we protect system call table from changing ?
 
Old 03-07-2014, 01:27 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by prabhurajreddy View Post
Any ideas of what can be our security policy?
Uh? Aren't you the one starting this project? I mean, shouldn't you then be the one to define your projects parameters in the first place?..


Quote:
Originally Posted by prabhurajreddy View Post
How can we protect system call table from changing ?
- What were the methods to subvert the SCT in kernel 2.4?
- What were the methods to curb the same in kernel 2.6?
- What were the methods to subvert the same in kernel 2.6 found after?
- What has changed to that respect in kernel 3.n?
 
Old 03-12-2014, 12:11 AM   #3
prabhurajreddy
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks unspawn.

ya I checked , in 2.4 kernel the SCT was exported and later to 2.6 Linux , its no more exported.
So to attack it they are directly modifying the system call function pointer to the malicious user written function.
To achieve this they need to make the page containing system call table writable. So i was thinking if i could intercept the system call which makes the page writable, we can stop this.
sample code used to make page writable.
int set_addr_rw(long unsigned int _addr)
{
unsigned int level;
pte_t *pte = lookup_address(_addr, &level);

if (pte->pte &~ _PAGE_RW) pte->pte |= _PAGE_RW;
}

Questions :

1. By intercepting any system call , can we achieve the above ?
2. If the page containing the system call table has some other dynamic content of kernel ,by making it not writable it can affect some other functionality ?

Regards,
Prabhuraj

Quote:
Originally Posted by unSpawn View Post
Uh? Aren't you the one starting this project? I mean, shouldn't you then be the one to define your projects parameters in the first place?..



- What were the methods to subvert the SCT in kernel 2.4?
- What were the methods to curb the same in kernel 2.6?
- What were the methods to subvert the same in kernel 2.6 found after?
- What has changed to that respect in kernel 3.n?
 
  


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
LXer: To build the best defense, know which attack is which LXer Syndicated Linux News 0 03-02-2014 10:50 PM
may i know details about system call how to use system call and definition for virtua mahi rajee Programming 1 05-02-2012 07:45 AM
how to write a system call which returns current system time using call by reference mukul2kul4 Debian 2 09-25-2011 11:17 PM
NSA on Computer Network Attack & Defense win32sux Linux - Security 1 05-03-2010 06:23 PM
system call table problem unkown_30386 Programming 1 10-08-2008 06:02 PM

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

All times are GMT -5. The time now is 02:15 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