CIS 290 Linux Security Program Authentication Module and Security Enhanced LINUX.

Slides:



Advertisements
Similar presentations
METALOGIC s o f t w a r e © Metalogic Software Corporation DACS Developer Overview DACS – the Distributed Access Control System.
Advertisements

An End-User Perspective On Using NatQuery Extraction From two Files T
Lesson 17: Configuring Security Policies
By: Arpit Pandey SELINUX (SECURITY-ENHANCED LINUX)
SELinux (Security Enhanced Linux) By: Corey McClurg.
6.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Chapter 5: Configuring Users and Groups. Windows Vista User Accounts User accounts are the primary means of authentication Built-in Accounts –Administrator:
Guide To UNIX Using Linux Third Edition
CCNA 2 v3.1 Module 2.
ADVANCED LINUX SECURITY. Abstract : Using mandatory access control greatly increases the security of an operating system. SELinux, which is an implementation.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Working with Workgroups and Domains
SMART Agency Tipsheet Staff List This document focuses on setting up and maintaining program staff. Total Pages: 14 Staff Profile Staff Address Staff Assignment.
1 Group Account Administration Introduction to Groups Planning a Group Strategy Creating Groups Understanding Default Groups Groups for Administrators.
SELinux US/Fedora/13/html/Security-Enhanced_Linux/
Managing Active Directory Domain Services Objects
Managing User Accounts, Passwords and Logon Chapter 5 powered by dj.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 5: Managing File Access.
Copyright 2000 eMation SECURITY - Controlling Data Access with
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
Linux kernel security Professor: Mahmood Ranjbar Authors: mohammad Heydari Mahmood ZafarArjmand Zohre Alihoseyni Maryam Sabaghi.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
FOSS Security through SELinux (Security Enhanced Linux) M.B.G. Suranga De Silva Information Security Specialist TECHCERT c/o Department of Computer Science.
IOS110 Introduction to Operating Systems using Windows Session 8 1.
1 Implementation of Security-Enhanced Linux Yue Cui Xiang Sha Li Song CMSC 691X Project 2—Summer 02.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
Moodle (Course Management Systems). Managing Your class In this Lecture, we’ll cover course management, including understanding and using roles, arranging.
File Permission and Access. Module 6 File Permission and Access ♦ Introduction Linux is a multi-user system where users can assign different access permission.
Oracle Data Integrator Procedures, Advanced Workflows.
Managing Users  Each system has two kinds of users:  Superuser (root)  Regular user  Each user has his own username, password, and permissions that.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 11: Managing Access to File System Resources.
1 Linux Security. 2 Linux is not secure No computer system can ever be "completely secure". –make it increasingly difficult for someone to compromise.
Working with Disks Lesson 4. Skills Matrix Technology SkillObjective DomainObjective # Configuring Data Protection Configure data protection6.4 Using.
SELinux. The need for secure OS Increasing risk to valuable information Dependence on OS protection mechanisms Inadequacy of mainstream operating systems.
Linux-PAM Pluggable Authentication Module Pluggable Authentication Module Collection of libraries (modules) that allow a system administrator to decide.
MA194Using WindowsNT1 Topics for the day… WindowsNT Security WindowsNT File System (NTFS) Viewing/Setting Document and Folder Permissions Access Control.
© 2006 ITT Educational Services Inc. Linux Operating System :: Unit 3 :: Slide 1 Downloading and Installing Software yum pirut Bit Torrent rmp.
CSCI 530 Lab Authorization. Review Authentication: proving the identity of someone Passwords Smart Cards DNA, fingerprint, retina, etc. Authorization:
The SELinux of First Look. Prologue After many discussions with a lot of Linux users, I’ve come to realize that most of them seem to disable SELinux rather.
SCSC 455 Computer Security Chapter 3 User Security.
Working with Users and Groups Lesson 5. Skills Matrix Technology SkillObjective DomainObjective # Introducing User Account Control Configure and troubleshoot.
Privilege Management Chapter 22.
Security-Enhanced Linux Eric Harney CPSC 481. What is SELinux? ● Developed by NSA – Released in 2000 ● Adds additional security capabilities to Linux.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Michael Tinker September 16, 2004
Plugged Authentication Module Enijmax 4/23/2004 8/17/2004 updated.
5/7/2007CoreMcClug/SELinux 1 By: Corey McClurg. Outline A History of SELinux What is SELinux and how do I get it? Getting Started Mandatory Access Control.
Lecture – Authentication Services
LINUX Presented By Parvathy Subramanian. April 23, 2008LINUX, By Parvathy Subramanian2 Agenda ► Introduction ► Standard design for security systems ►
Security-Enhanced Linux Stephanie Stelling Center for Information Security Department of Computer Science University of Tulsa, Tulsa, OK
Configuring the User and Computer Environment Using Group Policy Lesson 8.
How to live with SELinux
SELinux Overview Dan Walsh SELinux for Dummies Dan Walsh
SE Linux Implementation Russell Coker. What is SE Linux? A system for Mandatory Access Control (MAC) based on the Linux Security Modules (LSM) framework.
Chapter 11: Managing Users
Active Directory Administration
SE Linux Implementation
IS3440 Linux Security Unit 3 User Account Management
IS3440 Linux Security Unit 6 Using Layered Security for Access Control
Lesson 16-Windows NT Security Issues
SELinux (Security Enhanced Linux)
PAM Pluggable Autthentication Modules
BACHELOR’S THESIS DEFENSE
BACHELOR’S THESIS DEFENSE
BACHELOR’S THESIS DEFENSE
Presentation transcript:

CIS 290 Linux Security Program Authentication Module and Security Enhanced LINUX

PAM A suite of shared libraries/(compiled) program interfaces that enable the local system administrator to choose how applications authenticate users. The ldd command will show the required pam.so libraries for a service. PAM deals with four types of management tasks: authentication management; account management; session management; and password management.

PAM Configuration /etc/pam.d, /etc/pam.conf (ignored if pam.d exists), /etc/security, /etc/login.defs The format of each rule is a space separated collection of tokens, the first three being case-insensitive: service type control module-path module-arguments Each argument is “stacked” on top of each other and executed in sequence. Hence the term, “authentication stack” Service: is the application calling PAM. It is eliminated under pam.d; the filename represents the service. The default service is other. Type: performs non-authentication based account management - restrict/permit access to a service based on the time of day, currently available system resources, maximum number of users or location of the user. Control: determines the behavior of the PAM-API should the module fail to succeed in its authentication task. There are two of syntax for the control field: a single simple keyword or square-bracketed selection of value=action pairs. module-path filename of the PAM module used by the application module-arguments are a space separated list of tokens that can be used to modify the specific behavior of the given PAM.

PAM Type values Account: performs non-authentication based account management. It is typically used to restrict/permit access to a service based on the time of day, currently available system resources (maximum number of users) or perhaps the location of the applicant user -- 'root' login only on the console. Auth: provides two aspects of authenticating the user - it establishes that the user is who they claim to be by password prompt, can grant group membership or other privileges through its credential granting properties. Password: required for updating the authentication token associated with the user; one module for each 'challenge/response' based authentication (auth) type. Session: associated with doing things that need to be done for the user before/after they can be given service -logging of information, mounting directories, etc.

PAM Control values Required: failure of such a PAM will ultimately lead to the PAM-API returning failure but only after the remaining stacked modules (for this service and type) have been invoked. Requisite; like required, however, in the case that such a module returns a failure, control is directly returned to the application or to the superior PAM stack. The return value is that associated with the first required or requisite module to fail Sufficient: a module succeeds and no prior required module has failed the PAM framework returns success to the application or to the superior PAM stack immediately without calling any further modules in the stack. A failure of a sufficient module is ignored and processing of the PAM module stack continues unaffected. Optional: lthe success or failure of this module is only important if it is the only module in the stack associated with this service+type. Include: include all lines of given type from the configuration file specified as an argument to this control. Substack: include all lines of given type from the configuration file specified as an argument to this control. This differs from include in that evaluation of the done and die actions in a substack does not cause skipping the rest of the complete module stack, but only of the substack.

PAM Control Value results Control FlagSuccess ResultFailure Result requisiteStack continues to execute Stack immediately terminates in failure requiredStack continues to execute Stack continues to execute, but terminates in failure sufficient Stack immediately terminates in success, unless a prior requiredmodule has failed Stack continues to execute optionalStack continues to execute Stack continues to execute, and fails only if other modules are missing or give inconclusive results

PAM Control values More complicated syntax valid control values: [value1=action1 value2=action2...] the full list of PAM error values is listed in /usr/include/security/_pam_types.h. The actions are: ignore: when used with a stack of modules, the module's return status will not contribute to the return code the application obtains. bad:this action indicates that the return code should be thought of as indicative of the module failing. If this module is the first in the stack to fail, its status value will be used for that of the whole stack. die: equivalent to bad with the side effect of terminating the module stack and PAM immediately returning to the application. ok:this tells PAM that the administrator thinks this return code should contribute directly to the return code of the full stack of modules. In other words, if the former state of the stack would lead to a return of PAM_SUCCESS, the module's return code will override this value. done: equivalent to ok with the side effect of terminating the module stack and PAM immediately returning to the application. N : quivalent to ok with the side effect of jumping over the next N modules in the stack. Note that N equal to 0 is not allowed (and it would be identical to ok in such case). Reset: clear all memory of the state of the module stack and start again with the next stacked module.

PAM Control value equivalents required: [success=ok new_authtok_reqd=ok ignore=ignore default=bad] requisite: [success=ok new_authtok_reqd=ok ignore=ignore default=die] sufficient: success=done new_authtok_reqd=done default=ignore] optional: [success=ok new_authtok_reqd=ok default=ignore]

PAM Modules There are over 70 PAM modules, each with their own options and return codes. The most common: pam_access (login), pam_cracklib (password)m pam_deny, pam_exec, pam_env, pam_limits Listed in /lib/security

Security Enhanced LINUX Kernel level security included since 2.60 kernel Not an application interface. But sends access return codes to applications. Can be combined with ACLs /etc/selinux directory Old gui system-config-selinux, new gui: policycureutils-gui BE CAREFUL with changes. Especially deleting files. See “enforcing=0” or “selinux=0” on Grub edit menu Protects, files, processes, applications Based on security “context” An SE Linux security context is comprised of three parts: an "identity", a "role", and a "type" for users and files or "domain" for processes. Default context for root, the role is sysadm_r, and the domain is sysadm_t. Configuration directory: /etc/selinux directory

SELINUX Modes/Types Enforcing: enable and enforce the SELinux security policy on the system, denying access and logging actions in /var/log/audit/audit.log Permissive: enabled but will not enforce the security policy, only warn and log actions. Used for troubleshooting SELinux issues Disabled: SELinux is turned off Targeted: Specific processes MLS: VERY secure - systemwide

SELINUX Policy Policy: a set of rules the SELinux security engine that defines types for file objects and domains for processes, and user defined (identities) roles to limit the domains that can be entered. Strict - minimum access Targeted – specific processes Unconfined – not under SELINUX control, outside SELINUX context

SELINUX Access Control Type Enforcement (TE): Type Enforcement is the primary mechanism of access control used in the targeted policy Role-Based Access Control (RBAC): Based around SELinux users (not necessarily the same as the Linux user), but not used in the default targeted policy Multi-Level Security (MLS): Not commonly used and often hidden in the default targeted policy. Shown with –Z option (ls –Z, ps –Z etc)

SELINUX Commands sestatus: show SELINUX status getenforce: show SELINIX status setenforce: set SELINUX status semanage: command line policy management chcon: change SELINUX context restorecon: restore default SELINIX context audit2allow: Generate SELINUX policy from /var/log/audit/audit.log sealert: troubleshooting tool ls –Z, ps –Z: show SELINUX context for files, processes id: show the current user id context.