Practical Security Event Auditing with FreeBSD



Similar documents
FreeBSD Developer Summit TrustedBSD: Audit + priv(9)

CAPP-Compliant Security Event Audit System for Mac OS X and FreeBSD

Auditing NFS Events. Efstratios Karatzas

Example of Standard API

Audit Trail Administration

Ahsay Replication Server v5.5. Administrator s Guide. Ahsay TM Online Backup - Development Department

Computer Security DD2395

Using Snare Agents for File Integrity Monitoring (FIM)

Red Condor Syslog Server Configurations

Linux Audit Quick Start SUSE Linux Enterprise 10 SP1

Snare System Version Release Notes

Managing Auditing in Oracle Solaris 11.3

Dante a BSD licensed SOCKS implementation. Inferno Nettverk A/S. Bergen Linux User Group

Snare System Version Release Notes

Features. The Samhain HIDS. Overview of available features. Rainer Wichmann

owncloud Architecture Overview

GL550 - Enterprise Linux Security Administration

ENTERPRISE LINUX SECURITY ADMINISTRATION

How To Fix A Snare Server On A Linux Server On An Ubuntu (Amd64) (Amd86) (For Ubuntu) (Orchestra) (Uniden) (Powerpoint) (Networking

Status of Open Source and commercial IPv6 firewall implementations

Snare System Version Release Notes

How To Write A Windows Operating System (Windows) (For Linux) (Windows 2) (Programming) (Operating System) (Permanent) (Powerbook) (Unix) (Amd64) (Win2) (X

Using Mac OS X 10.7 Filevault with Centrify DirectControl

Zend Server 4.0 Beta 2 Release Announcement What s new in Zend Server 4.0 Beta 2 Updates and Improvements Resolved Issues Installation Issues

ENTERPRISE LINUX SECURITY ADMINISTRATION

GL-550: Red Hat Linux Security Administration. Course Outline. Course Length: 5 days

Better Safe Than Sorry

Information Security Measures and Monitoring System at BARC. - R.S.Mundada Computer Division B.A.R.C., Mumbai-85

BF2CC Daemon Linux Installation Guide

Kernel comparison of OpenSolaris, Windows Vista and. Linux 2.6

Secure computing: SELinux

VPNSCAN: Extending the Audit and Compliance Perimeter. Rob VandenBrink

Setting Up the Site Licenses

Wolfr am Lightweight Grid M TM anager USER GUIDE

Linux OS-Level Security Nikitas Angelinas MSST 2015

owncloud Architecture Overview

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu (Amd66) On Ubuntu 4.5 On A Windows Box

Chapter 2 System Structures

Firewalling and Network Security I -Linux. Jeff Muday Academic Computing Specialist Wake Forest University

Installation Guide. Qlik Sense 1.1 Copyright QlikTech International AB. All rights reserved.

An Open Source SCADA Toolkit

Continuous Integration in the Cloud with Hudson

Digital Forensics. Module 7 CS 996

How to use PDFlib products with PHP

Security Correlation Server Quick Installation Guide

Release Notes for Open Grid Scheduler/Grid Engine. Version: Grid Engine

Tunnel Client FAQ. Table of Contents. Version 0v5, November 2014 Revised: Kate Lance Author: Karl Auer

Running Hadoop On Ubuntu Linux (Multi-Node Cluster) - Michael G...

Security Enhanced Linux and the Path Forward

Operating System Structures

Mapping EventTracker Reports and Alerts To FISMA Requirements NIST SP Revision 3 Prism Microsystems, August 2009

Everything You Always Wanted to Know About Log Management But Were Afraid to Ask. August 21, 2013

xvm Server and xvm VirtualBox Christopher Beal Principal Engineer

Linux Boot Camp. Our Lady of the Lake University Computer Information Systems & Security Department Kevin Barton Artair Burnett

The syslog-ng Store Box 3 F2

Firewall Setup. Contents. Getting Started 2. Running A Firewall On A Mac Server 2. Configuring The OS X Firewall 3. Remote Rumpus Administration 4

PATROL Console Server and RTserver Getting Started

Host-based Intrusion Prevention on Windows and UNIX. Dr. Rich Murphey White Oak Labs

Firewalls. Chien-Chung Shen

Unless otherwise noted, all references to STRM refer to STRM, STRM Log Manager, and STRM Network Anomaly Detection.

PAW Web Filter Version 0.30 (release) This Software is Open Source. project.sourceforge.net

SoftNAS Application Guide: In-Flight Encryption 12/7/2015 SOFTNAS LLC

Kernel Types System Calls. Operating Systems. Autumn 2013 CS4023

Job Scheduler Daemon Configuration Guide

IT6203 Systems & Network Administration. (Optional)

Nixu SNS Security White Paper May 2007 Version 1.2

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

Securing your Linux Server: Racing against the attacker. Nigel Edwards Hewlett-Packard

Sun xvm VirtualBox Product Overview

ZFS Backup Platform. ZFS Backup Platform. Senior Systems Analyst TalkTalk Group. Robert Milkowski.

Computer Science Master s Project. Host-Based Intrusion Detection Using User Signatures

Introduction to Computer Administration. System Administration

The Art of Virtualization with Free Software

Volume SYNAMETRICS TECHNOLOGIES. A Division of IndusSoft Technologies, Inc. DeltaCopy User s Guide

FreeBSD Firewalls SS- E Kevin Chege ISOC

System Administration Guide

Host Hardening. OS Vulnerability test. CERT Report on systems vulnerabilities. (March 21, 2011)

Incremental Backup Script. Jason Healy, Director of Networks and Systems

PowerPanel for Linux Software

Monitoring System Status

UPSentry Smart User s Manual. Shutdown Management Software. for Mac OS X 10.1

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder.

Whitepaper. Business Service monitoring approach

Rsync Internet Backup Whitepaper

Mandatory Access Control in Linux

Transcription:

Practical Security Event Auditing with FreeBSD Christian Brüffer brueffer@freebsd.org NYCBSDCon New York City, USA November 14, 2010

Outline 1. What / What for / Why 2. Format 3. Configuration and Operation 4. Processing Tools and Audit Pipes 5. Demonstration 6. Considerations and Caveats 7. Summary NYCBSDCon 2010 2

What is Security Event Auditing Logging of security-relevant system events Secure Reliable Fine-grained Configurable Resulting logs are called trail files NYCBSDCon 2010 3

Straightforward Uses Post-mortem analysis Intrusion Detection Live system monitoring Debugging NYCBSDCon 2010 4

Creative Uses Audit and rsync as a poor man's cluster file system From a German blog entry: http://blog.elitecoderz.net/de/cluster -filesystem-for-freebsd-gfs-ocfs2/2010/06/ Watching audit trail for file system activity Syncing changes via rsync NYCBSDCon 2010 5

Why? Detection is much more important than prevention - Bruce Schneier No system is 100% secure Accountability Mandatory for some security evaluations NYCBSDCon 2010 6

Common Criteria and CAPP CAPP = Controlled Access Protection Profile Defines functional requirements Security evaluation needed for certain uses and users (e.g. US DoD) Audit implementation required for CAPP compliance NYCBSDCon 2010 7

FreeBSD Audit History Originally by McAfee for Apple's Mac OS X Relicensed to 3-clause BSD license Ported to FreeBSD by TrustedBSD project Experimental feature in FreeBSD 6.2 Production feature in FreeBSD 6.3 NYCBSDCon 2010 8

BSM Basic Security Module Defined by Sun Microsystems Standard audit file format: Solaris / OpenSolaris Mac OS X FreeBSD Binary format Token-based record stream NYCBSDCon 2010 9

BSM Record Format Header token 0..n Argument tokens Subject token Return token Trailer token header,98,11,openssh login,0,sat Nov 06 09:50:52 2010, + 559 msec subject_ex,chris,chris,chris,chris,chris,1 083,1083,53331,192.168.56.1 test,successful login chris return,success,0 trailer,98 header,121,11,execve(2),0,sat Nov 06 06:50:52 2010, + 588 msec exec arg,-tcsh path,/bin/tcsh attribute,555,root,wheel,61,30026,122312 subject,chris,chris,chris,chris,chris,1087,1083,53331,192.168.56.1 return,success,0 trailer,121 see audit.log(5) for token documentation NYCBSDCon 2010 10

Configuration Files /etc/security/audit_event Event definitions and mapping to classes /etc/security/audit_class Class definitions /etc/security/audit_control Global configuration /etc/security/audit_user Per-user configuration /etc/security/audit_warn Script with handlers for audit warnings NYCBSDCon 2010 11

Config Files Demonstration NYCBSDCon 2010 12

Handling the Daemon No kernel re-compile necessary since 7.0 # echo 'auditd_enable= YES ' >> /etc/rc.conf # /etc/rc.d/auditd start Shutdown # /etc/rc.d/auditd stop or # audit -t Config changes: # audit -s NYCBSDCon 2010 13

Audit Trail Files Standard location /var/audit Group audit allows trail access delegation File name format: starttime.endtime (time in UTC) 20101013181949.20101013183539 In some cases starttime.not_terminated File active, or auditd shut down improperly current symlink to currently active trail NYCBSDCon 2010 14

OpenBSM User space part of FreeBSD audit Open source implementation of BSM API file format basic tools BSD license Portable http://www.openbsm.org NYCBSDCon 2010 15

OpenBSM Tools audit(8) Control utility for auditd auditd(8) Manages trail files Communicates with kernel by /dev/audit auditreduce(1) Returns selected records from a trail file praudit(1) Prints a trail file in human-readable form NYCBSDCon 2010 16

Audit Pipes tee(1) for audit stream /dev/auditpipe clonable special device Live system monitoring # praudit /dev/auditpipe Reliability not guaranteed As opposed the trail files Applications can select which events they're interested in NYCBSDCon 2010 17

Demonstration NYCBSDCon 2010 18

Considerations Performance overhead more auditing higher penalty essentially no overhead when disabled Space requirements dependent on configuration system activity can be terabytes on a busy system NYCBSDCon 2010 19

Caveats Some subsystems do not generate audit records yet (NFS, Packet Filters, ) No per-jail audit trails Audit records go straight to the host system trail file zonename token not utilized yet No open source distributed log daemon NYCBSDCon 2010 20

Documentation Handbook http://www.freebsd.org/doc/en_us.iso885 9-1/books/handbook/audit.html Manpages: auditreduce(1), praudit(1), libbsm(3), audit(4), auditpipe(4), audit_class(5), audit_control(5), audit_event(5), audit_user(5), audit.log(5), audit(8), auditd(8),... NYCBSDCon 2010 21

3 rd Party Software bsmgui (http://bsmgui.sf.net/) BSM Analyzer (http://bsma.sf.net) BSMTrace (ports/security/bsmtrace) Splunk + BSM Audit log loader Snare + Snare Agent for Solaris all other BSM compatible software NYCBSDCon 2010 22

Google Summer of Code (1) Projects in 2007 and 2008: Distributed Audit Daemon (2007) by Alexey Mikhailov, mentor: bz@ Audit Log Analysis Tool (2007) by Dongmei Lui, mentor: rwatson@ Auditing System Testing (2008) by Vincenzo Iozzo, mentor: attilio@ Audit Firewall Events from Kernel (2008) by Diego Giagio, mentor csjp@ NYCBSDCon 2010 23

Google Summer of Code (2) Projects in 2009 and 2010 Application-Specific Audit Trails (2009) by Ilias Marinos, mentor rwatson@ Log Conversion Tools to/from Linux (2009) by Satish Srinivasan, mentor sson@ Audit Kernel Events (2010) by Efstratios Karatzas, mentor rwatson Distributed Audit Daemon (2010) by Sergio Ligregni, mentor sson@ NYCBSDCon 2010 24

Summary Audit can be an important piece in a security infrastructure API / file format compatible with Solaris BSM format compatibility with existing tools for free Tradeoff log detail performance and space requirements NYCBSDCon 2010 25

Questions? NYCBSDCon 2010 26

Thanks......for your attention...and to Robert Watson for lots of material for this talk NYCBSDCon 2010 27