All of lore.kernel.org
 help / color / mirror / Atom feed
* SELinux security in the face of single bit errors
@ 2004-04-15 23:16 tdbrown
  2004-04-16 12:44 ` Ed Street
  0 siblings, 1 reply; 7+ messages in thread
From: tdbrown @ 2004-04-15 23:16 UTC (permalink / raw)
  To: SELinux; +Cc: Michael Ihde

I'm taking a graduate level Fault Tolerant Computing course.  My partner 
and I intend on injecting single bit faults into the data and text 
sections of SELinux to see if such faults can compromise system 
security. While it is obvious that a single bit error in some 
structures, such as the AVC allowed field or the selinux_enforcing, can 
open an SELinux system for a period of time.  We want to look for less 
obvious holes which may be realized by a single bit flip (also called 
soft-errors). Our plan is to run a User-mode SELinux kernel and use the 
ptrace interface to inject errors in the SELinux text section and/or 
data section. The kernel will execute a test program as init which will 
attempt to violate the SELinux policy by writing to a protected file 
with mod=777 and then shutdown the system.  Given more time we would 
like to violate other  things than simple file permissions.

We are aware that the impact of a transient single bit errors depends on 
how long the bit-error lasts.  In the case of an bit error in the AVC it 
may only last a short time (when the avc entry is overwritten) or a long 
time.  Bit errors in the text segment may last longer depending on the 
particulars of the OS. We are not planning to measure the time that a 
particular bits creates a vulnerability, we have limited time to get 
results and the parameter is heavily dependant on the enviroment.  We
will include this cavot in our report.

Our project was inspired by the following papers:

   * "An Experimental Study of Security Vulnerabilities Caused by 
Errors"
     Jun Xu, Shuo Chen, Abigniew Kalbarczyk, Ravishankar K. Iyer

   * "Using Memory Errors to Attack a Virtual Machine", Sudhakar
     Govindavajhala, Andrew W. Appel

   * "Framework for Testing the Fault-Tolerance of Systems Including OS
     and Network Aspects", Kerstin Buchacker, Volkmar Sieh (HASE '01)

If you have any comments or suggestions we would love to hear them.  To 
save traffic on the mailing list you can add your comments to
 
http://www.randomwalking.com/cgi-bin/kwiki/index.cgi?ECE442OutsideComments

~Michael Ihde & Tom Brown


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: SELinux security in the face of single bit errors
  2004-04-15 23:16 SELinux security in the face of single bit errors tdbrown
@ 2004-04-16 12:44 ` Ed Street
  2004-04-16 18:45   ` Tom Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ed Street @ 2004-04-16 12:44 UTC (permalink / raw)
  To: tdbrown, SELinux; +Cc: 'Michael Ihde'

Hello,

Here are a few quick observation notes to ask.

Are you planning on sharing the info you collect on this list?

Will you be testing it with execshield and pax?

It would seem to me that running it as init would be incorrect. A more
realistic approach would be to run it as user_r:user_t because in the real
world that's where your penetrations will likely happen at.

If a file is 'protected' then why is it 777?

Ed

-----Original Message-----
From: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov] On
Behalf Of tdbrown@uiuc.edu
Sent: Thursday, April 15, 2004 7:17 PM
To: SELinux@tycho.nsa.gov
Cc: Michael Ihde
Subject: SELinux security in the face of single bit errors

I'm taking a graduate level Fault Tolerant Computing course.  My partner 
and I intend on injecting single bit faults into the data and text 
sections of SELinux to see if such faults can compromise system 
security. While it is obvious that a single bit error in some 
structures, such as the AVC allowed field or the selinux_enforcing, can 
open an SELinux system for a period of time.  We want to look for less 
obvious holes which may be realized by a single bit flip (also called 
soft-errors). Our plan is to run a User-mode SELinux kernel and use the 
ptrace interface to inject errors in the SELinux text section and/or 
data section. The kernel will execute a test program as init which will 
attempt to violate the SELinux policy by writing to a protected file 
with mod=777 and then shutdown the system.  Given more time we would 
like to violate other  things than simple file permissions.

We are aware that the impact of a transient single bit errors depends on 
how long the bit-error lasts.  In the case of an bit error in the AVC it 
may only last a short time (when the avc entry is overwritten) or a long 
time.  Bit errors in the text segment may last longer depending on the 
particulars of the OS. We are not planning to measure the time that a 
particular bits creates a vulnerability, we have limited time to get 
results and the parameter is heavily dependant on the enviroment.  We
will include this cavot in our report.

Our project was inspired by the following papers:

   * "An Experimental Study of Security Vulnerabilities Caused by 
Errors"
     Jun Xu, Shuo Chen, Abigniew Kalbarczyk, Ravishankar K. Iyer

   * "Using Memory Errors to Attack a Virtual Machine", Sudhakar
     Govindavajhala, Andrew W. Appel

   * "Framework for Testing the Fault-Tolerance of Systems Including OS
     and Network Aspects", Kerstin Buchacker, Volkmar Sieh (HASE '01)

If you have any comments or suggestions we would love to hear them.  To 
save traffic on the mailing list you can add your comments to
 
http://www.randomwalking.com/cgi-bin/kwiki/index.cgi?ECE442OutsideComments

~Michael Ihde & Tom Brown



---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 4/9/2004
 


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SELinux security in the face of single bit errors
  2004-04-16 12:44 ` Ed Street
@ 2004-04-16 18:45   ` Tom Brown
  2004-04-17 11:22     ` Dale Amon
  2004-04-17 19:19     ` Ed Street
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Brown @ 2004-04-16 18:45 UTC (permalink / raw)
  To: Ed Street; +Cc: SELinux, 'Michael Ihde'

On Fri, Apr 16, 2004 at 08:44:22AM -0400, Ed Street wrote:
> Are you planning on sharing the info you collect on this list?
I'll interpret that as a request. Yes, we will post a URL pointing to
our semester report when it is finished.

> Will you be testing it with execshield and pax?
No and no.
We are most interested in how single-bit errors affect security software
in general, rather than the protection of some specific software. If
we continue the project beyond this semester (likely if initial results
offer some hope) we may branch out to look at more than basic SELinux.

> A more realistic approach would be to run it as user_r:user_t because
> in the real world that's where your penetrations will likely happen
> at.
True. We can change the current role but as far as I know the difference
between user_r:user_t and sysadm_r:sysadm_t is only a bit offset so any
given fault is equally likely to affect their restrictions. Note that
for now we are only testing SELinux's ability to restrict one specific
access.

> If a file is 'protected' then why is it 777?
Because we want to measure SELinux's robustness when faced with
faults.


Thank you for your comments Ed,
Tom


> -----Original Message-----
> From: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov] On
> Behalf Of tdbrown@uiuc.edu
> Sent: Thursday, April 15, 2004 7:17 PM
> To: SELinux@tycho.nsa.gov
> Cc: Michael Ihde
> Subject: SELinux security in the face of single bit errors
> 
> I'm taking a graduate level Fault Tolerant Computing course.  My partner 
> and I intend on injecting single bit faults into the data and text 
> sections of SELinux to see if such faults can compromise system 
> security. While it is obvious that a single bit error in some 
> structures, such as the AVC allowed field or the selinux_enforcing, can 
> open an SELinux system for a period of time.  We want to look for less 
> obvious holes which may be realized by a single bit flip (also called 
> soft-errors). Our plan is to run a User-mode SELinux kernel and use the 
> ptrace interface to inject errors in the SELinux text section and/or 
> data section. The kernel will execute a test program as init which will 
> attempt to violate the SELinux policy by writing to a protected file 
> with mod=777 and then shutdown the system.  Given more time we would 
> like to violate other  things than simple file permissions.
> 
> We are aware that the impact of a transient single bit errors depends on 
> how long the bit-error lasts.  In the case of an bit error in the AVC it 
> may only last a short time (when the avc entry is overwritten) or a long 
> time.  Bit errors in the text segment may last longer depending on the 
> particulars of the OS. We are not planning to measure the time that a 
> particular bits creates a vulnerability, we have limited time to get 
> results and the parameter is heavily dependant on the enviroment.  We
> will include this cavot in our report.
> 
> Our project was inspired by the following papers:
> 
>    * "An Experimental Study of Security Vulnerabilities Caused by 
> Errors"
>      Jun Xu, Shuo Chen, Abigniew Kalbarczyk, Ravishankar K. Iyer
> 
>    * "Using Memory Errors to Attack a Virtual Machine", Sudhakar
>      Govindavajhala, Andrew W. Appel
> 
>    * "Framework for Testing the Fault-Tolerance of Systems Including OS
>      and Network Aspects", Kerstin Buchacker, Volkmar Sieh (HASE '01)
> 
> If you have any comments or suggestions we would love to hear them.  To 
> save traffic on the mailing list you can add your comments to
>  
> http://www.randomwalking.com/cgi-bin/kwiki/index.cgi?ECE442OutsideComments
> 
> ~Michael Ihde & Tom Brown
> 
> 
> 
> ---
> 
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.656 / Virus Database: 421 - Release Date: 4/9/2004
>  
> 
> 
-- 
28 70 20 71 2C 65 29 61 9C B1 36 3D D4 69 CE 62 4A 22 8B 0E DC 3E
mailto:tdbrown@uiuc.edu
http://thecap.org/

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SELinux security in the face of single bit errors
  2004-04-16 18:45   ` Tom Brown
@ 2004-04-17 11:22     ` Dale Amon
  2004-04-22  3:56       ` Tom Brown
  2004-04-17 19:19     ` Ed Street
  1 sibling, 1 reply; 7+ messages in thread
From: Dale Amon @ 2004-04-17 11:22 UTC (permalink / raw)
  To: Tom Brown; +Cc: Ed Street, SELinux, 'Michael Ihde'

On Fri, Apr 16, 2004 at 01:45:16PM -0500, Tom Brown wrote:
> We are most interested in how single-bit errors affect security software
> in general, rather than the protection of some specific software. If
> we continue the project beyond this semester (likely if initial results
> offer some hope) we may branch out to look at more than basic SELinux.

Just curious. Is this a study of the effect of SEU's 
in spacecraft hardware? 

-- 
------------------------------------------------------
   Dale Amon     amon@islandone.org    +44-7802-188325
       International linux systems consultancy
     Hardware & software system design, security
    and networking, systems programming and Admin
	      "Have Laptop, Will Travel"
------------------------------------------------------

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: SELinux security in the face of single bit errors
  2004-04-16 18:45   ` Tom Brown
  2004-04-17 11:22     ` Dale Amon
@ 2004-04-17 19:19     ` Ed Street
  1 sibling, 0 replies; 7+ messages in thread
From: Ed Street @ 2004-04-17 19:19 UTC (permalink / raw)
  To: 'Tom Brown'; +Cc: SELinux, 'Michael Ihde'

Hello,

The reason I ask about pax and/or execshield is because they are designed to
protect from this type of issue.  Besides I see a great need for
pax/execshield to go hand in hand with selinux.

Ed

-----Original Message-----
From: Tom Brown [mailto:thecap@peach.ece.utexas.edu] On Behalf Of Tom Brown
Sent: Friday, April 16, 2004 2:45 PM
To: Ed Street
Cc: SELinux@tycho.nsa.gov; 'Michael Ihde'
Subject: Re: SELinux security in the face of single bit errors

> Will you be testing it with execshield and pax?
No and no.
We are most interested in how single-bit errors affect security software
in general, rather than the protection of some specific software. If
we continue the project beyond this semester (likely if initial results
offer some hope) we may branch out to look at more than basic SELinux.


---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004
 


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SELinux security in the face of single bit errors
  2004-04-17 11:22     ` Dale Amon
@ 2004-04-22  3:56       ` Tom Brown
  2004-04-27 12:14         ` Dale Amon
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Brown @ 2004-04-22  3:56 UTC (permalink / raw)
  To: Dale Amon; +Cc: Ed Street, SELinux, 'Michael Ihde'

On Sat, Apr 17, 2004 at 12:22:13PM +0100, Dale Amon wrote:
> On Fri, Apr 16, 2004 at 01:45:16PM -0500, Tom Brown wrote:
> > We are most interested in how single-bit errors affect security software
> > in general, rather than the protection of some specific software. If
> > we continue the project beyond this semester (likely if initial results
> > offer some hope) we may branch out to look at more than basic SELinux.
> 
> Just curious. Is this a study of the effect of SEU's 
> in spacecraft hardware? 

Not specifically. SEU's are more likely in space but they do occur in
terrestrial systems. I believe SEU's can be encouraged by a solar
radiation storm or simple heat[1]. We want to see at what rate they
might create security problems.

Tom

[1] "Using Memory Errors to Attack a Virtual Machine", Sudhakar
Govindavajhala, Andrew W. Appel

-- 
28 70 20 71 2C 65 29 61 9C B1 36 3D D4 69 CE 62 4A 22 8B 0E DC 3E
mailto:tdbrown@uiuc.edu
http://thecap.org/

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SELinux security in the face of single bit errors
  2004-04-22  3:56       ` Tom Brown
@ 2004-04-27 12:14         ` Dale Amon
  0 siblings, 0 replies; 7+ messages in thread
From: Dale Amon @ 2004-04-27 12:14 UTC (permalink / raw)
  To: Tom Brown; +Cc: Ed Street, SELinux, 'Michael Ihde'

On Wed, Apr 21, 2004 at 10:56:59PM -0500, Tom Brown wrote:
> Not specifically. SEU's are more likely in space but they do occur in
> terrestrial systems. I believe SEU's can be encouraged by a solar
> radiation storm or simple heat[1]. We want to see at what rate they
> might create security problems.

Yes, and like random decays from the material in ceramic
pack IC's if I remember correctly. Interesting idea. 

-- 
------------------------------------------------------
   Dale Amon     amon@islandone.org    +44-7802-188325
       International linux systems consultancy
     Hardware & software system design, security
    and networking, systems programming and Admin
	      "Have Laptop, Will Travel"
------------------------------------------------------

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-04-27 12:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 23:16 SELinux security in the face of single bit errors tdbrown
2004-04-16 12:44 ` Ed Street
2004-04-16 18:45   ` Tom Brown
2004-04-17 11:22     ` Dale Amon
2004-04-22  3:56       ` Tom Brown
2004-04-27 12:14         ` Dale Amon
2004-04-17 19:19     ` Ed Street

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.