Docsity

Security Architecture - Introduction to Database Security - Lecture Slides, Slides of Network security

Partial preview of the text

Download Security Architecture - Introduction to Database Security - Lecture Slides and more Slides Network security in PDF only on Docsity!

1

Security Architecture

2

Security Architecture

  • Application security
    • Planning
    • Development
    • Testing
    • Deployment
    • Maintenance
  • Trusted DBMS architecture
  • Woods Hole architecture
  • Distributed architecture

4

Application Security

  • Planning
    • Existing skills base for employees is important
    • Interoperability with existing applications
    • Choose parameterized API for interaction with other applications for security reason
    • Administrators and develops must be knowledgeable about application vulnerabilities
    • E.g., In SMTP, if the body of the message contains a period followed by MAIL FROM or RCPT TO, etc, then it violates SMTP security

5

Application Security

  • Planning
    • Develop schedule for code review involving
      • Appropriate personnel
      • Frequency of review
      • Lead-time for enhancements
      • Expected outcome
    • Coding
      • Input validation
      • Credential handling
      • encryption

7

Development

  • Best practices
    • Test thoroughly
    • Validate input
    • Check string lengths
    • Audit code changes
    • In .NET using SQLCommand object to pass parameters enhances security
    • See example on page 211 of SQL Server security book

8

Development

  • Validate data
    • E.g., name must contain only alphabets, spaces, hyphens and periods
    • Delimited strings should not contain any additional delimiters
    • When data is encoded verify that the decoded data is acceptable

10

Testing

  • Common testing involves use of long

strings, strings with โ€œ%nโ€ embedded in the

string

  • Attempt source code disclosure by

reinterpretation of file extension

  • Characters such as %20, %00, %7f, %ff, %0a in URL bleed information
  • Try traversing parent paths
  • Test for โ€œ../../../..โ€

11

Testing

  • Enter overly long parameters
    • In GET command place at least 66000 characters (usually 65536 is the limit and the rest would cause buffer overflow)
  • Submit many meta characters
    • Meta characters are: โ€˜, !, *, ., >, #, @, .., ^, &, $, ~, |, <%, <!--, --, ;, (, ), [, ], $$
  • Attempt SQL pass-through to a database using strings like: - โ€˜ or true โ€“ - โ€˜# having 1; select foo from foo--

13

Maintenance

  • Development should not have access to production environment
  • Backup and restore procedures should be tested prior to installation
  • Routine monitoring should be in place
    • Helpful in identifying:
      • Bandwidth
      • Storage
      • Hardware
      • Attackers
      • Tuning database queries

14

Trusted DBMS Architecture

  • Consists of a Trusted Computing Base

(TCB) that is external to the DBMS

  • TCB could be either a trusted operating

system or a trusted network

  • TCB architecture types are:
    • Centralized
    • Distributed
  • A multilevel database is stored as single

level objects (files) of the operating system

16

Trusted DBMS Architecture

  • Different types of architectures available

are:

  • Trusted Subject Architecture
  • Woods Hole Architectures
    • Integrity lock architecture
    • Kernelized architecture
    • Replicated architecture

17

Trusted Subject Architecture

  • Users with different clearance levels access the database through untrusted front-ends
  • Untrusted front-end users are assumed to have clearances Low (U and C) and High (S and TS)
  • High level dominates Low level
  • Trusted DBMS is a trusted subject with respect to the OS
  • DBMS is responsible for multilevel protection of database objects

19

Trusted Subject Architecture

Untrusted front end (^) Untrusted front end

Trusted DBMS

Trusted OS

DBMS

High user Low user

20

Woods Hole Architectures

  • Developed in 1982 by the National

Research Council

  • Architectures are:
    • Integrity Lock Architecture
    • Kernelized Architecture
    • Replicated Architecture