Download Models - Computer Security - Lecture Slides | ECS 153 and more Study notes Computer Science in PDF only on Docsity!
May 12, 2005 ECS 153, Introduction to Computer Slide # 1
Models
• Extreme programming
– Rapid prototyping and “best practices”
– Project driven by business decisions
– Requirements open until project complete
– Programmers work in teams
– Components tested, integrated several times a day
– Objective is to get system into production as quickly as
possible, then enhance it
– Evidence adduced after development needed for
assurance
May 12, 2005 ECS 153, Introduction to Computer Slide # 2
Security: Built In or Add On?
• Think of security as you do performance
– You don’t build a system, then add in
performance later
• Can “tweak” system to improve performance a little
• Much more effective to change fundamental
algorithms, design
• You need to design it in
– Otherwise, system lacks fundamental and
structural concepts for high assurance
May 12, 2005 ECS 153, Introduction to Computer Slide # 4
Examples
• Security kernel combines hardware and
software to implement reference monitor
• Trusted computing base ( TCB ) is all
protection mechanisms within a system
responsible for enforcing security policy
– Includes hardware and software
– Generalizes notion of security kernel
May 12, 2005 ECS 153, Introduction to Computer Slide # 5
Adding On Security
• Key to problem: analysis and testing
• Designing in mechanisms allow assurance at all
levels
– Too many features adds complexity, complicates
analysis
• Adding in mechanisms makes assurance hard
– Gap in abstraction from requirements to design may
prevent complete requirements testing
– May be spread throughout system (analysis hard)
– Assurance may be limited to test results
May 12, 2005 ECS 153, Introduction to Computer Slide # 7
Comparison
• Architecting of System
– SV/MLS: used existing kernel modular
structure; no implementation of least privilege
– SVR4.1ES: restructured kernel to make it
highly modular and incorporated least privilege
May 12, 2005 ECS 153, Introduction to Computer Slide # 8
Comparison
• File Attributes ( inodes )
- SV/MLS added separate table for MAC labels, DAC permissions
- UNIX inodes have no space for labels; pointer to table added
- Problem: 2 accesses needed to check permissions
- Problem: possible inconsistency when permissions changed
- Corrupted table causes corrupted permissions
- SVR4.1ES defined new inode structure
- Included MAC labels
- Only 1 access needed to check permissions
May 12, 2005 ECS 153, Introduction to Computer Slide # 10
Malcious Logic Overview
• Defining malicious logic
• Types
– Trojan horses
– Computer viruses and worms
– Other types
• Defenses
– Properties of malicious logic
– Trust
May 12, 2005 ECS 153, Introduction to Computer Slide # 11
Malicious Logic
• Set of instructions that cause site security
policy to be violated
May 12, 2005 ECS 153, Introduction to Computer Slide # 13
Trojan Horse
• Program with an overt purpose (known to
user) and a covert purpose (unknown to
user)
– Often called a Trojan
– Named by Dan Edwards in Anderson Report
• Example: previous script is Trojan horse
– Overt purpose: list files in directory
– Covert purpose: create setuid shell
May 12, 2005 ECS 153, Introduction to Computer Slide # 14
Example: NetBus
• Designed for Windows NT system
• Victim uploads and installs this
– Usually disguised as a game program, or in one
• Acts as a server, accepting and executing
commands for remote administrator
– This includes intercepting keystrokes and
mouse motions and sending them to attacker
– Also allows attacker to upload, download files
May 12, 2005 ECS 153, Introduction to Computer Slide # 16
Thompson's Compiler
• Modify the compiler so that when it compiles login , login
accepts the user's correct password or a fixed password
(the same one for all users)
• Then modify the compiler again, so when it compiles a
new version of the compiler, the extra code to do the first
step is automatically inserted
• Recompile the compiler
• Delete the source containing the modification and put the
undoctored source back
May 12, 2005 ECS 153, Introduction to Computer Slide # 17
login source correct compiler login executable
user password
login source doctored compiler login executable
magic password
user password or
logged in
logged in
The Login Program
May 12, 2005 ECS 153, Introduction to Computer Slide # 19
Comments
- Great pains taken to ensure second version of compiler never released
- Finally deleted when a new compiler executable from a different system
overwrote the doctored compiler
- The point: no amount of source-level verification or scrutiny will protect you from using untrusted code - Also: having source code helps, but does not ensure you’re safe
May 12, 2005 ECS 153, Introduction to Computer Slide # 20
Computer Virus
- Program that inserts itself into one or more files and performs some action - Insertion phase is inserting itself into file - Execution phase is performing some (possibly null) action
- Insertion phase must be present
- Need not always be executed
- Lehigh virus inserted itself into boot file only if boot file not infected