z/vm Security Essentials

Similar documents
RACF/VM: Protecting your z/vm system from vandals and other cyberspace miscreants

Virtual Security Zones on z/vm

Virtual Security Zones

The z/vm Virtual Switch Advancing the Art of Virtual Networking

Session zse4187 Virtual Security Zones on z/vm

High Availability and Automatic Network Failover of the z/vm VSWITCH

z/vm Virtual Switch: The Basics

RACF Advanced Configuration and Auditing on z/vm Bruce Hayden IBM Advanced Technical Skills Endicott, NY

Advanced Configuration and Auditing with RACF on z/vm

z/vm Security and Integrity

z/vm 6.3 Installation or Migration or Upgrade Hands-on Lab Sessions

RACF Advanced Configuration and Auditing on z/vm

1. Logging in to VM - Regular Login - Disconnected Login - Stealing the session - Logging off - Disconnected log off

Introduction to RACF on z/vm

z/vm Live Guest Relocation - Planning and Use

IBM z/vm Single System Image and Live Guest Relocation Planning and Use

z/vm TCP/IP Configuration Miguel Delapaz z/vm TCP/IP Development Sunday, 20 April 2008

CA VM:Secure Single System Image Support. Brian Jagos VM Workshop

Planning and Migrating to z/vm Single System Image (SSI)

Program Directory for RACF Security Server for z/vm. function level 620. Program Number 5741-A07. for Use with z/vm version 6 release 2

IBM z/vm Single System Image and Live Guest Relocation - Planning and Use

COMP 3400 Mainframe Administration 1

CSE For High Availability and System Management

z/vm Single System Image and Guest Mobility Preview

z/vm Service Critical Issues

CSE For High Availability and System Management

The z/vm Control Program Useful Things to Know

Session 9112 z/vm TCP/IP Stack Configuration

z/vm Live Guest Relocation Planning and Use

Using z/vm DirMaint in an SSI Cluster

Session 9361 / 9381 VM TCP/IP. Advanced Configuration. Alan Altmark IBM Corporation Endicott, New York. Copyright IBM Corporation, 1998, 2000 Page 1

How to Automate Common z/vm and Linux on System z Tasks Session 10049

IBM Virtualization Engine TS7700 Series Best Practices. Usage with Linux on System z 1.0

Program Directory for RACF Security Server for z/vm. function level 630. Program Number 5741-A07. for Use with z/vm version 6 release 3

CA MIA Tape Sharing for z/vm

Session V61. Systems Management on z/vm Christine Casey z/vm Development - IBM Endicott, NY. IBM System z Expo September 17-21, 2007 San Antonio, TX

ZVM20: z/vm PAV and HyperPAV Support

Using CMS-based SSL Support for z/vm 6.1

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

Program Directory for Directory Maintenance Facility for z/vm. function level 630. Program Number 5741-A07. for Use with z/vm version 6 release 3

Everything You Need to Know About Cloning z/vm 6.2 and 6.3 Systems

Managing I/O Configuration from z/vm

z/vm Single System Image and Live Guest Relocation Overview

System z Virtualization and Linux Workshop Bootcamp System z Hardware / Architecture

ztpf_zdt_readme.txt IBM z/tpf Limited License for Development and Test readme Copyright IBM Corporation 2016

Planning and Migrating to z/vm Single System Image (SSI)

CA VM:Secure for z/vm

SUSE Linux Enterprise Server Starter System for System z Installation Guide

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

Ensemble Enabling z/vm V6.2 and Linux for System z

Virtual Security Zones on z/vm

z/vm 6.4 Upgrade Installation Richard Lewis IBM Washington System Center Company

IBM Systems. z/vm Platform Update: Advancing the Art of Virtualization. zseries SIG. IBM System z

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

New z/vm Systems and Storage Management Products from IBM Part 2

Reference manual Integrated database authentication

ZVM17: z/vm Device Support Overview

VM File Systems Overview

z/vm Evaluation Edition

Planning and Migrating to z/vm Single System Image (SSI)

IBM UrbanCode Cloud Services Security Version 3.0 Revised 12/16/2016. IBM UrbanCode Cloud Services Security

Application and Database Protection in a VMware vsphere Environment

Managing IBM Db2 Analytics Accelerator by using IBM Data Server Manager 1

IBM z/os Management Facility V2R1 Solution Guide IBM Redbooks Solution Guide

A New Parents Guide to zvm: Bringing Your System Up Right. A VM Community Trust Publication. Draft Working Outline

Installing Watson Content Analytics 3.5 Fix Pack 1 on WebSphere Application Server Network Deployment 8.5.5

IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Tivoli OMEGAMON XE on z/vm and Linux

VM Parallel Access Volume (PAV) and HyperPAV Support

Program Directory for Open Systems Adapter Support Facility for VM. function level 440. Program Number 5741-A07. for Use with z/vm version 6 release 2

z/vm Service Critical Issues Operating System Software Red Alerts

Customer Experiences:

New 8.5 Notes Shared Login "Gotchas"

IBM Copy Services Manager Version 6 Release 1. Release Notes August 2016 IBM

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

Herding Clones. Mike Kershaw August 17, urmk/

IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Wave

CA Top Secret for z/vm

Program Directory for RACF Security Server for z/vm. function level 530. Program Number 5741-A05. for Use with z/vm version 5 release 3

CA Teleview Session Management for z/os r4.4

Redpaper. Security Zones on IBM System z: Defining and Enforcing Multiple Security Zones. Introduction. Alan Altmark

This new microcode release supports only the DS8800.

General-Purpose SFS Server for Large File Transfer. Sine Nomine Associates Blacksmith Square Ashburn, VA 20147

The Basics of Using z/vm

IBM Security Identity Manager Version Administration Topics

IBM System Storage - DS8870 Disk Storage Microcode Bundle Release Note Information v1

Best practices with SUSE Linux Enterprise Server Starter System and extentions Ihno Krumreich

Best practices. IBMr. Managing resources in an IMSplex with OM, type-2 commands, and SPOC IBM IMS. Janna Mansker IMS Development

IBM Software. IBM z/vm Management Software. Introduction. Tracy Dean, IBM April IBM Corporation

CA ARCserve Backup for Windows

Performing a z/os Vulnerability Assessment. Part 2 - Data Analysis. Presented by Vanguard Integrity Professionals

Operating systems and security - Overview

Operating systems and security - Overview

z/vm 6.3 Upgrade Installation Richard F. Lewis Executive I/T Specialist IBM Washington System Center

New Offering MainView Console Management for zenterprise

Tivoli Access Manager for Enterprise Single Sign-On

Introduction to Virtualization: z/vm Basic Concepts and Terminology

Vanguard Advisor TM Your Way: Enhanced Masking, Report Formatting and Exception Criteria. Presented by Vanguard Integrity Professionals

Version 1.2 Tivoli Integrated Portal 2.2. Tivoli Integrated Portal Customization guide

Software Update C.09.xx Release Notes for the HP Procurve Switches 1600M, 2400M, 2424M, 4000M, and 8000M

IBM Systems and Technology Group. Abstract

Transcription:

z/vm Security Essentials Session 15746 Alan Altmark IBM Senior Managing z/vm Consultant

2 Notes References to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM product, program, or service is not intended to state or imply that only IBM's product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe on any of the intellectual property rights of IBM may be used instead. The evaluation and verification of operation in conjunction with other products, except those expressly designed by IBM, are the responsibility of the user. The information contained in this document is for illustrative purposes only. It is not intended to define a complete security policy and implementation. IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

3 Topics Basic Assumptions Roles Authentication Authorization Security-sensitive commands and interfaces Audit Protecting the integrity of the CP kernel Centralized security management

4 Basic Assumptions The z/vm system must generally conform to company and applicable regulatory policies Evidence: SYSTEM CONFIG, USER DIRECT, audit trail A set of roles will be established All virtual machines will have an assigned role An external security manager (ESM) will be used Every person accessing the system has their own user ID

5 Basic Assumptions System Programmers have the ability and the system-level authority to disable or bypass security controls System Programmers can access any data in the system System Programmers are trustworthy Will obey security policy Violation of security policy has consequences to individuals

6 Roles Every virtual machine has a role to play Security administrator System programmer System operations Network administrator Storage administrator Service Virtual Machine Workload (non-adminstrative) Linux, CMS, z/os, etc.

7 Roles If it has no purpose, it does not belong. NOLOG it. Administrators, system programmers, operations staff, and SVMs are trusted All others (workload) are untrusted

8 Roles: Delegation and Separation Some people have multiple roles Their user ID is authorized to perform all needed tasks Authority often delegated E.g. DIRMAINT can be configured and authorized to issue privileged RACF command (the Connector) Separation of Duties may limit delegation Separation Of Duties Security administration and system programming are handled by different people Configuration does not implicitly create authorization Driven by policy Strict separation prohibits fully automated provisioning

9 Role: Security Administrator Assign each new virtual machine its proper role Establish and maintain effective password controls Establish and maintain security alerting procedures Ensure audit data is collected and archived as required by corporate policy Establish internal audit schedule Delegate any ESM rule definition to system programmers, as required Manage and monitor the ESM database Remain educated

10 Role: Security Administrator Privilege class G No provisioning authority Read access to ESM database No global data access rights Allowed to LOGON BY to ESM server(s) Shall have console monitored and recorded Can FORCE any user Shall have use of LINK command monitored

11 Role: System Programmer Responsible for the general well-being of the z/vm system Provisioning of real and virtual resources Monitoring and alerting Performance Disaster recovery and high availability Automation Security and integrity enablement May delegate some aspects to self-service applications Has complete access to all data

12 Role: System Programmer Privilege class: All Can add/delete/change resources in the ESM Full global data access rights Allowed to LOGON BY to any virtual machine except those designated as personal Shall have console monitored and recorded Shall have use of LINK command monitored

13 Authentication Access to system requires user ID and password or password phrase Password is 1-8 characters, upper case, no special characters Phrase is 9 or more characters, mixed case, any character Longer passwords mean fewer rules are needed Only people have passwords or phrases Exceptions for automated processes Use XAUTOLOG or LOGON BY for others

14 Authentication Password and phrases must be Non-trivial Changed on a regular basis The more powerful the user, the more often the password is changed. Changed immediately after reset or new deployment Encrypted At rest: ESM encryption In flight: z/vm SSL

15 Authentication: Fallback When ESM is down, only a small subset of users are allowed to login Enables repair of the ESM For them, the password in the CP directory (USER DIRECT) is used Rules vary by ESM. RACF allows Primary system operator (OPERATOR) The RACF servers (RACFVM, RACMAINT) The users identified by ALTERNATE_SYSTEM_OPERATORS in SYSTEM CONFIG

16 Authentication: Fallback Restrict access to USER DIRECT, as it contains sensitive data, even when an ESM is installed

17 Authorization Which CP commands or functions can a virtual machine use? Privilege class OPTIONS in the user directory Those that can be controlled by the ESM COUPLE, FOR, LINK, MDISK, STORE HOST, TAG, TRANSFER, TRSOURCE Diagnose 0x88, 0xA0, 0xD4, 0xE4, 0x280, 0x290 Restricted DCSS/NSS

18 Authorization: Escalation of Privilege Escalation of privilege: Performing functions that your user ID is not duly authorized to perform SET PRIVCLASS Service Virtual Machines (SVMs)

19 Escalation of Privilege: SET PRIVCLASS Used to add or delete privileges Only class C user can add privileges that are not in the target user's directory entry Very useful to confirm intent Change SHUTDOWN to class S COMMAND SET PRIVCLASS * -S in OPERATOR's directory entry Requires SET PRIVCLASS * +S before issuing SHUTDOWN Not accidental

20 Escalation of Privilege: SET PRIVCLASS Do not use this command to escalate a user's privilege unless there is an accompanying update to USER DIRECT Only if needed to avoid painful logoff/logon (e.g. lost T- disk)

21 Escalation of Privilege: Service Virtual Machines Service Virtual Machines (SVMs) run programs that are used to help manage the activities of the system RACFVM DIRMAINT TCPIP PERFSVM FTPSERVE They are privileged, so they should only run code from a trusted source

22 Escalation of Privilege: Service Virtual Machines Some SVMs accept arbitrary CP or other sensitive commands from an SVM-authorized user NETSTAT CP, SMSG RSCS CP, DIRM CP, SSLADMIN SYSTEM DIRM CMS RAC SETROPTS or PERMIT (!!) Automation tools Accountability may be lost or blurred Requires SVM audit log May be able to use exits to control

23 Escalation of Privilege: Service Virtual Machines Do not artificially force administrators to use SVMs Not any safer than giving them the privilege they need Promotes privilege escalation for convenience "Attractive nuisance" However.

24 Escalation of Privilege: Service Virtual Machines Every rule has an exception (except this one?) Escalation of privilege is allowed with management permission If time is of the essence and permission cannot be reasonably obtained, management must be notified afterwards. After the crisis is past, privileges are returned to normal Repeated escalation indicates a problem with privilege assignments

25 Authorization: Access Rights Virtual machines with the same role need access to the same resources To simplify, use a group structure. Authorize group Add users to the group

26 Security-Sensitive Commands and Interfaces STORE HOST Class C Alters CP memory, data or code Turn off the fences Only use it when directed by Support Center SET SYSOPER Class A Can by used to effectively bypass OPERATOR confirmation or to hide notifications

27 Security-Sensitive Commands and Interfaces SET SECUSER Class A, C, G Take the virtual console from a user (A, C) Give the virtual console to another user (G) Issue commands and see output SET OBSERVER Class A, C, G See output of another virtual machine Works while other virtual machine logged on, too

28 Security-Sensitive Commands and Interfaces SEND Class C, G Send command or replies to virtual machine console Guest or CP Class G requires SECUSER Class C can send to any disconnected user XAUTOLOG ON. Class A, B Place virtual console on OSA-ICC or TN3270 session Can give access to virtual machines you do not have LOGON BY or SECUSER access to

29 Security-Sensitive Commands and Interfaces FOR Class C, G Synchronously issue CP commands on another user ID Class G requires LOGON BY or SECUSER Class C can issue to anyone

30 Security-Sensitive Commands and Interfaces DEFINE MDISK Class A Must also be current system operator (SYSOPER) or Must have OPTION DEVMAINT in the directory Creates minidisk on any volume attached to SYSTEM No ESM controls, so can DEFINE MDISK to create a minidisk overlay on a disk the issuer is not permitted to LINK Diagnose 0x04 Class C, E Programming equivalent of DISPLAY HOST Treat them the same from an auditing perspective

31 Security-Sensitive Commands and Interfaces Diagnose 0x84 Class B Updates the active user directory without running DIRECTXA OPTION D84NOPAS allows issuer to avoid the need to have the target user's password. Only give to directory manager. Diagnose 0x88 Class G (ESM control) Validate passwords, verify LOGON BY authority, LINK to minidisks If ESM defers, OPTION DIAG88 required.

32 Security-Sensitive Commands and Interfaces Diagnose 0xA0 Class G (ESM control) Perform privileged ESM-specific functions Diagnose 0xD4 Class B (ESM control) Allows issuer to change its identity for purpose of linking to minidisks, making IUCV or APPC connections, or creating spool files

33 Security-Sensitive Commands and Interfaces Diagnose 0xE4 Class ANY (ESM control) Obtain information about minidisks Limited to own minidisks unless issuer has OPTION DEVMAINT or OPTION DEVINFO in the directory With OPTION DEVMAINT, can also create fullpack minidisk overlays (similar to DEFINE MDISK)

34 Security-Sensitive Commands and Interfaces Diagnose 0x2C4 Class B or OPTION LXAPP Used to transfer data to/from Support Element Used by FTP server Can be used to transfer data outside of traffic monitors All of the preceding commands and functions need to be audited to ensure that they are not being misused

35 System Events Events recorded by ESM that indicate "something happened" DIRECTRY_CMD event Generated when COMMAND statement is processed during LOGON Issue any command, even those guest cannot itself issue SNIFFER_MODE event Tells you when a guest that has promiscuous authorization on a VSWITCH enters/exits sniffer mode

36 Audit The audit trail is how you demonstrate conformance to the security policy You must define Access restrictions How often it will be collected How often it will be reviewed Where it will be archived and for how long

37 Audit With RACF, these are SMF records that can be sent to z/os for processing or processed directly on z/vm RACF Report Writer zsecure for RACF Vanguard Other ESMs have their own procedures

38 Audit If audit record cannot be written, then authorization must be denied "If there is no record of it, then it NEVER HAPPENED!" For RACF, specify SEVER YES in the SMF CONTROL file

39 Protecting the integrity of the CP kernel In addition to commands like STORE HOST, the CP kernel can be affected by other configuration items CPXLOAD Loads code or data into the CP kernel CP_ADDON_INITIALIZE_ROUTINES Run code in the CP kernel at IPL

40 Protecting the integrity of the CP kernel DEFINE COMMAND and ASSOCIATE EXIT Add new commands or exits to the system MODIFY COMMAND, MODIFY DIAGNOSE Alter the privilege class of commands and diagnose instructions

41 Protecting the integrity of the CP kernel QUERY IPLPARMS to find out what IPL parameters were used QUERY CPLOAD to find The name and location of the CP load module Location of PARM disk Reason for system start IPL SHUTDOWN REIPL System error QUERY CPLEVEL Level of CP running When system was IPLed When CP load module was created

42 Protecting the integrity of the CP kernel Duplicate Volume Labels When there are duplicate volumes with the same label, CP chooses the volume with the lowest device number with the matching label (default behavior) Traditionally controlled using OFFLINE_AT_IPL 0000-FFFF ONLINE_AT_IPL and subsequently ATTACH others to SYSTEM in AUTOLOG1 In z/vm 6.3, use the RDEV option on CP_OWNED statement CP_OWNED SLOT 1 630RES RDEV 11F0

43 Centralized Access Controls It's not just for CP! Applications (SVMs) can access ESM by using the RACROUTE macro It is part of the formal z/vm interface specification CSL routine available from IBM Lab Services Each SVM must be configured separately DIRMAINT Operations Manager Backup and Restore Manager Tape Manager DFSMS Can eliminate separate authorization and audit files

44 Summary Your z/vm system needs to be bound by a cogent security policy Roles Authentication Authorization Accountability Audit What is the point of securing the guests if you don't have demonstrable security of the hypervisor? It doesn't matter whether you have one system programmer or a dozen!

45 Contact Information Alan C. Altmark Senior Managing IT Consultant IBM Systems Lab Services and Training z/vm & Linux on System z IBM 1701 North Street Endicott, NY 13760 Mobile 607 321 7556 Fax 607 429 3323 Email: alan_altmark@us.ibm.com Mailing lists: IBMTCP-L@vm.marist.edu IBMVM@listserv.uark.edu LINUX-390@vm.marist.edu Session 15746 See http://ibm.com/vm/techinfo/listserv.html for details.