Sie sind auf Seite 1von 40

Introduction to the new mainframe

Chapter 11 Security on z/OS

Copyright
py g IBM Corp.,
p , 2006. All rights
g
reserved.

Introduction to the new mainframe

Objectives
In this chapter you will learn to:

Explain security and integrity concepts


Explain RACF and its interface with the operating system
Authorize a program
Discuss integrity
g y concepts
p
Explain the importance of change control
Explain the concept of risk assessment

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Key terms
authorized
th i d lib
libraries
i
authorized program facility
(APF)
encryption
SAF
SVC
PASSWORD
firewall

h
hacker
k
page protection bit
Resource Access Control
Facility (RACF)
security policy
separation of duties
system integrity
user ID

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Introduction
A
An iinstallations
ll i data
d
and
d programs are among its
i most valuable
l bl
assets and must be protected
At one time data was secure because no one knew how to
access it
As more people become computer literate and able to use simple
tools unprotected data is becoming more accessible
Data security is now more important than ever including the
prevention of inadvertent destruction

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Why security?
A
Any system security
i must allow
ll
authorized
h i d users the
h access
they need and prevent unauthorized access.
Many
y companies
p
critical data is now on computer
p
and is easily
y
stolen if not protected
z/OS Security Server provides a framework of services to protect
data

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

RACF
RACF (part
(
off Security
S
i Server)
S
) and
d the
h other
h available
il bl packages
k
are add-on products which provide the basic security framework
on a z/OS mainframe
Identify and authenticate users
Authorize users to access protected resources
Log
L
and
d reportt attempted
tt
t d unauthorized
th i d access
Control means of access to resources

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

RACF functions overview

Security
administration

RACF
RACF
RACF
database

User identification
and authorization

Audit and integrity reports


violation alerts

Resource
authorization
checking
and system
control

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Identification and verification of users


RACF uses a userid
id and
d system encrypted
d password
d to perform
f
its user identification and verification
The userid identified the p
person to the system
y
The password verifies the users identity
Passwords should not be trivial and exits can be used to enforce
policies.
li i

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Protection Levels
RACF works on a hierarchical structure

ALLOC allows data set creation and destruction


CONTROL allows VSAM repro
WRITE allows update of data
READ allows read of data
NONE no access

A higher permission implies all those below

Copyright IBM Corp., 2006. All rights reserved.

Introduction to the new mainframe

Protecting a dataset

A data
d
set profile
fil is
i created
d and
d stored
d in
i the
h database
d b
It will give users or groups an access level
A universal access level will also be set
The profile can be specific or generic, with or without wild cards

Copyright IBM Corp., 2006. All rights reserved.

10

Introduction to the new mainframe

RACF typical display


INFORMATION FOR DATASET SYS1.*.** (G)
LEVEL
----00

OWNER
UNIVERSAL ACCESS
-------- -----------------------------SYS1
READ

WARNING
------NO

ERASE
----NO

AUDITING
-------FAILURES(READ)
NOTIFY
-------NO USER TO BE NOTIFIED
YOUR ACCESS
----------------------ALTER

CREATION GROUP
-------------------------SYS1

DATASET TYPE
-----------------NON-VSAM

Copyright IBM Corp., 2006. All rights reserved.

11

Introduction to the new mainframe

RACF access list for SYS1.*.**


ID
-------SYS1
KARRAS
WANDRER
SCHUBER
KURTKR
KURTKR2
KURTKR3
CICSRS1
CICSRS2
HEISIG
JUSTO
GERALD

ACCESS
------ALTER
ALTER
ALTER
ALTER
UPDATE
UPDATE
NONE
ALTER
ALTER
UPDATE
UPDATE
READ
Copyright IBM Corp., 2006. All rights reserved.

12

Introduction to the new mainframe

Protecting general resources


Many system resources can be protected

DASD volumes
Tapes
CICS or IMS transactions
JES spool
p
datasets
System commands
Application resources and many more

RACF is flexible and more can be added

Copyright IBM Corp., 2006. All rights reserved.

13

Introduction to the new mainframe

Operating system and RACF


Operating
System
RACF
Databases
1

Resource
manager

RACF
4

SAF

5
or
storage
data

Copyright IBM Corp., 2006. All rights reserved.

14

Introduction to the new mainframe

Concepts of RACF profile checking


.

RESOURCE MANAGER

SECURITY PRODUCT

RACROUTE

Optional exits
Exit
Check

Exit RC

SAF CALLABLE
SERVICE
S
C

S
AA
FF

databases

RACF call
RACF
Check
RACF RC

Yes / no
.

Copyright IBM Corp., 2006. All rights reserved.

15

Introduction to the new mainframe

System Authorization Facility

SAF is
i part off z/OS
/OS
Uses RACF if it is present
Can also use an optional exit routine
SAF is a system service and is a common focal point for all
products providing resource control.
SAF is invoked at control points within the code of the resource
manager

Copyright IBM Corp., 2006. All rights reserved.

16

Introduction to the new mainframe

RACF Structure
Userid
U
id
Group
o Every userid belongs to at least one group
o Group structures are often used for access to resources

Resource
Resource classes
Class descriptor table used to customize

Copyright IBM Corp., 2006. All rights reserved.

17

Introduction to the new mainframe

RACF structure overview

RACF ADMINISTRATION

RESOURCE
RESOURCE
CLASSES
CLASSES
SYSTEM OPTIONS
OPTIONS
SYSTEM

DATASET AND
DATASET
AND GENERAL
GENERAL
RESOURCEPROFILES
PROFILES
RESOURCE

GROUP
GROUP
PROFILES
PROFILES

USER
USER
PROFILES
PROFILES

Copyright IBM Corp., 2006. All rights reserved.

18

Introduction to the new mainframe

RACF Functions

Security
administration

RACF
RACF
RACF
database

User identification
and authorization

Audit and integrity reports


violation alerts

Resource
authorization
checking
and system
control

Copyright IBM Corp., 2006. All rights reserved.

19

Introduction to the new mainframe

User Identification

RACF identifies
id ifi you when
h you logon
l
Userid and password are required
Each RACF userid has a unique password
Password is one way encrypted so no one else can get your
password not even the administrator
Userid is revoked after a preset number of invalid password
attempts

Copyright IBM Corp., 2006. All rights reserved.

20

Introduction to the new mainframe

RACF profile checking

Protected
Resource?

Yes

Valid user
&
group?

Yes

Access
authority?

Yes
granted

No

No

No

denied (*)

denied

denied

(*) if Protect All


option is in effect
Copyright IBM Corp., 2006. All rights reserved.

21

Introduction to the new mainframe

Logging and reporting


RACF maintains statistical information
RACF writes a security log when it detects:
Unauthorized attempts to enter the system
Access to resources
o This depends on the settings for the resource
o For example AUDIT(ALL(UPDATE) will record all updates to a resource

Issuing of commands

Copyright IBM Corp., 2006. All rights reserved.

22

Introduction to the new mainframe

Security Administration
Interpret the security policy to:

Determine which RACF functions to use


Identify the level of RACF protection
Identify which data to protect
Identify
y administrative structures and users

Copyright IBM Corp., 2006. All rights reserved.

23

Introduction to the new mainframe

RACF sysplex data sharing and RRSF


If many systems share
h
a RACF database
d b
there
h
can be
b contention
i
problems
RACF will p
propagate
p g
commands throughout
g
a sysplex
y p
RACF can use a coupling facility in a parallel sysplex to improve
performance
RRSF can be
b used
d to
t keep
k
distributed
di t ib t d RACF databases
d t b
in
i line
li

Copyright IBM Corp., 2006. All rights reserved.

24

Introduction to the new mainframe

Authorized programs
A
Authorized
h i d tasks
k running
i
authorized
h i d programs are allowed
ll
d to
access sensitive system functions
Unauthorized p
programs
g
may
y only
y use standard functions to
avoid integrity problems

Copyright IBM Corp., 2006. All rights reserved.

25

Introduction to the new mainframe

Authorized Program Facility


Authorized libraries
SYS1.LINKLIB
SYS1
LINKLIB
SYS1.LPALIB
SYS1.SVCLIB

APF

+
List of installation defined
libraries

Copyright IBM Corp., 2006. All rights reserved.

26

Introduction to the new mainframe

Authorized Libraries
A task is authorized when the executing program has the
following characteristics:

It runs in supervisor state


It runs in PSW key 0 to 7
All p
previous programs
p g
in the same task were APF programs
p g
The module was loaded from an APF library

Copyright IBM Corp., 2006. All rights reserved.

27

Introduction to the new mainframe

Problem Programs
N
Normall programs are known
k
as problem
bl
programs as they
h run in
i
problem state (as opposed to supervisor state)
They
y run in the p
problem key
y8
They may or may not be in an APF library

Copyright IBM Corp., 2006. All rights reserved.

28

Introduction to the new mainframe

APF Libraries
A
Authorized
h i d libraries
lib i are d
defined
fi d by
b the
h APF list
li in
i
SYS1.PARMLIB
SYS1.LINKLIB,, SYS1.SVCLIB and SYS1.LPALIB are
automatically authorized
Installation libraries are defined in PROGxx
By
B d
default
f lt all
ll libraries
lib i iin th
the linklist
li kli t are authorized
th i d but
b t many
installations set LNKAUTH=APFTAB, often prompted by
auditors, so that this is no longer the case and only those in the
list are authorized

Copyright IBM Corp., 2006. All rights reserved.

29

Introduction to the new mainframe

Authorizing a program
Th
The first,
fi
and
d only
l the
h first,
fi
load
l d module
d l off the
h program must be
b
linked with the authorization code AC=1
It and all subsequent
q
modules must be loaded from an
authorized library
APF libraries must be protected so that only authorized users
can store programs there

Copyright IBM Corp., 2006. All rights reserved.

30

Introduction to the new mainframe

Authorizing libraries
A th i d lib
Authorized
libraries:
i

S t
System
programs usually:
ll

SYS1.LINKLIB
SYS1.LPALIB
SYS1.SVCLIB
List of installation
defined libraries

reside in APF-authorized
libraries
execute in supervisor state
use storage key 0 to through 7

APF
authorized
p g
programs

Unauthorized
ibraries.

non-authorized
programs

Application programs usually:


reside in non-authorized libraries
execute in problem state
use storage key 8

Copyright IBM Corp., 2006. All rights reserved.

31

Introduction to the new mainframe

Authorizing libraries
Th
The APF list
li is
i built
b il during
d i IPL using
i those
h
libraries
lib i listed
li d in
i the
h
PROGxx parmlib member
If a dynamic
y
list is specified
p
then it may
y be updated
p
by
y operator
p
command

Copyright IBM Corp., 2006. All rights reserved.

32

Introduction to the new mainframe

An example APF list


BROWSE SYS1.PARMLIB(PROGTT) 01.01
Line 00000000 Col 001 080
Command ===>
Scroll ===> PAGE
*************************** Top of Data ********************************
APF FORMAT(DYNAMIC)
APF ADD
DSNAME(SYS1.VTAMLIB)
VOLUME(******)
APF ADD
DSNAME(SYS1.SICELINK)
VOLUME(******)
APF ADD
DSNAME(SYS1.LOCAL.VTAMLIB)
VOLUME(TOTCAT)
APF ADD
DSNAME(ISP.SISPLOAD)
VOLUME( MCAT )
VOLUME(*MCAT*)
*************************** Bottom of Data *****************************

Copyright IBM Corp., 2006. All rights reserved.

33

Introduction to the new mainframe

Dynamic APF
U
Update
d
a PROG
PROGxx member
b and
d then
h activate
i
it
i with
i h operator
command
SET PROG=xx
Use the SETPROG APF command
DISPLAY PROG,APF command will display the current list

Copyright IBM Corp., 2006. All rights reserved.

34

Introduction to the new mainframe

D PROG,APF
D PROG
PROG,APF
APF
CSV450I 12.46.27 PROG,APF
FORMAT=DYNAMIC
ENTRY
VOLUME
1
Z04RE1
2
Z04RE1
3
Z04RE1
4
Z04RE2
5
Z04RE1
6
Z04RE1
7
Z04RE1
8
TOTDBZ
9
TOTDBZ
10
TOTDBZ
11
TOTPT1
12
TOTPT1

DISPLAY 027
DSNAME
SYS1.LINKLIB
SYS1.SVCLIB
ANF.SANFLOAD
ANF SANFLOAD
AOP.SAOPLOAD
AOP.SAOPLOAD
ARTURO
ARTURO.BFSLMOD
BFSLMOD
ASMA.V1R2M0.SASMMOD1
ASN.V7R1M0.SASNALNK
ASN.V7R1M0.SASNLLNK
ASN.V8R1M0.SASNLOAD
ASNA.V5R1M0.SASNALNK
ASNL.V5R1M0.SASNLLNK

Copyright IBM Corp., 2006. All rights reserved.

35

Introduction to the new mainframe

Operator Console Security


Consoles are assigned authority levels in CONSOLxx
parmlib member
C
Commands
d are grouped:
d

INFO informational commands


SYS system control commands
IO I/O commands
CONS console control commands
MASTER master console commands

Each console may have one or more levels

Copyright IBM Corp., 2006. All rights reserved.

36

Introduction to the new mainframe

Consoles

At lleast one console


A
l must have
h
master authority
h i
In a sysplex consoles are shared
It is possible to require logon to consoles using RACF
All extended MCS consoles should require a logon

Copyright IBM Corp., 2006. All rights reserved.

37

Introduction to the new mainframe

Security Roles

Systems programmer sets up RACF


S
Systems administrator implements the policies
Security Manager sets the policies
Separation of duties is required to prevent uncontrolled access

Copyright IBM Corp., 2006. All rights reserved.

38

Introduction to the new mainframe

Summary

z/OS
/OS Security
S
i Server
S
RACF
SAF
Authorized Programs
APF list
Console security

Copyright IBM Corp., 2006. All rights reserved.

39

Introduction to the new mainframe

Backup
Node E

Node D
System D2

System D1

System E

RACF
database

RACF
database

Node C
Node B
Node A

System C
System B

System A

RACF
database

RACF
database

Copyright IBM Corp., 2006. All rights reserved.

RACF
database

40

Das könnte Ihnen auch gefallen