Skip to contentSkip to conversation

SELinux security in the face of single bit errors

DISCUSSION [email protected] 3 participants 7 messages Apr 15, 2004 – Apr 27, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw

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: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Thursday, April 15, 2004 7:17 PM
To: [email protected]
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

author
#2 lore raw
Quoted 1 line · Ed Street

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.

Quoted 1 line

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.

Quoted 3 lines

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.

Quoted 1 line

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

Quoted 59 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Thursday, April 15, 2004 7:17 PM
To: [email protected]
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

Signature · 8 lines
28 70 20 71 2C 65 29 61 9C B1 36 3D D4 69 CE 62 4A 22 8B 0E DC 3E
mailto:[email protected]
http://thecap.org/

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 4 lines · Tom Brown

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?

Signature · 12 lines
------------------------------------------------------
   Dale Amon     [email protected]    +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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#4 lore raw
Quoted 8 lines · Dale Amon
Quoted 4 lines · Tom Brown

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

Signature · 8 lines
28 70 20 71 2C 65 29 61 9C B1 36 3D D4 69 CE 62 4A 22 8B 0E DC 3E
mailto:[email protected]
http://thecap.org/

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw
Quoted 4 lines · Tom Brown

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.

Signature · 12 lines
------------------------------------------------------
   Dale Amon     [email protected]    +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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#6 lore raw
In reply to Tom Brown

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:[email protected]] On Behalf Of Tom Brown
Sent: Friday, April 16, 2004 2:45 PM
To: Ed Street
Cc: [email protected]; 'Michael Ihde'
Subject: Re: SELinux security in the face of single bit errors

Quoted 1 line

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.