Slide 1 Replacing TripWire with SNMPv3 Matthew G. Marsh Chief Scientist of the NEbraskaCERT.

Slides:



Advertisements
Similar presentations
Management Information Base for Version 2 of the Simple Network Management Protocol Presented by Zhou Ji (MIB for SNMPv2) By SNMPv2 Working Group.
Advertisements

External User Security Model (EUSM) for SNMPv3 draft-kaushik-snmp-external-usm-00.txt November, 2004.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Monitoring the Network Connecting Networks.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 24 Network Management: SNMP.
1 ITC242 – Introduction to Data Communications Week 12 Topic 18 Chapter 19 Network Management.
TCP/IP Protocol Suite 1 Chapter 21 Upon completion you will be able to: Network Management: SNMP Understand the SNMP manager and the SNMP agent Understand.
CSEE W4140 Networking Laboratory Lecture 11: SNMP Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 11: SNMP Jong Yul Kim
1 SNMP Simple Network Management Protocol. 2 SNMP Overview Define mechanism for remote management of network devices (routers, bridges, etc.) Fundamental.
Network Management Definition "...deploying and coordinating resources in order to plan, operate, administer, analyze, evaluate, design and expand communication.
COMP4690, by Dr Xiaowen Chu, HKBU
1 Network Management and SNMP  What is Network Management?  ISO Network Management Model (FCAPS)  Network Management Architecture  SNMPv1 and SNMPv2.
SNMP & MIME Rizwan Rehman, CCS, DU. Basic tasks that fall under this category are: What is Network Management? Fault Management Dealing with problems.
SNMP Simple Network Management Protocol
Guide to TCP/IP, Third Edition Chapter 11: Monitoring and Managing IP Networks.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
1 Kyung Hee University Prof. Choong Seon HONG SNMP Management Information.
SNMP (Simple Network Management Protocol) Jon Sevy Geometric and Intelligent Computing Laboratory Department of Mathematics and Computer Science Drexel.
ENS 1 SNMP M Clements. ENS 2 Simple Network Management Protocol Manages elements in networks – E.g. routers, switches, IP phones, printers etc. Uses manager.
1 Network Management Computer Networks. 2 OSI Network Management Model Performance Management e.g. utilization Fault Management e.g. SNMP traps Configuration.
Chapter 6 Overview Simple Network Management Protocol
McGraw-Hill The McGraw-Hill Companies, Inc., 2000 SNMP Simple Network Management Protocol.
Chapter 2  Overview of Network Management 1 Chapter 2 Overview  Why is network mgmt necessary?  Network managers job  Network management vocabulary.
Network Management Concepts and Practice Author: J. Richard Burke Presentation by Shu-Ping Lin.
Emanuele Pasqualucci Extending AppManager Monitoring with the SNMP Toolkit.
Network Protocols UNIT IV – NETWORK MANAGEMENT FUNDAMENTALS.
SNMP ( Simple Network Management Protocol ) based Network Management.
Title: HP OpenView Network Node Manager SPI for SNMPv3 Session #: 326 Speakers: Jeff Scheaffer, HP OpenView NSM David Reid, SNMP Research.
SNMP Simple Network Management Protocol Team: Matrix CMPE-208 Fall 2006.
1 Introduction to Internet Network Management Mi-Jung Choi Dept. of Computer Science KNU
Slide 1 Replacing TripWire with SNMPv3 Matthew G. Marsh Chief Scientist of the NEbraskaCERT.
Network Management8-1 Chapter 8: Network Management Chapter goals: r introduction to network management m motivation m major components r Internet network.
1 © 1999 BMC SOFTWARE, INC. 2/10/00 SNMP Simple Network Management Protocol.
ECE Prof. John A. Copeland Office: Klaus or call.
SNMP ITL. ITL: © Hans Kruse, Shawn Ostermann, Carl Bruggeman2 Objectives Overview of SNMP SNMP Tools SNMP Monitoring Infrastructure.
Communication and Functional Models
BAI513 - PROTOCOLS SNMP BAIST – Network Management.
CS 453 Computer Networks Lecture 22 Network Management.
Lec 3: Infrastructure of Network Management Part2 Organized by: Nada Alhirabi NET 311.
Slide 1 SNMPv3, SSH & Cisco Matthew G. Marsh Chief Scientist of the NEbraskaCERT.
Internet Standard Management Framework
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008 Introduction to SNMP.
Management Information Base for Version 2 of the Simple Network Management Protocol (MIB for SNMPv2)
Network Management Security
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
Ch 9. Network Management Myungchul Kim
 Introduction  Structure of Management Information  Practical Issues  Summary 2.
Text Overview of SNMP, FTP, Telnet. Text Overview of SNMP.
IP Security (IPSec) Matt Hermanson. What is IPSec? It is an extension to the Internet Protocol (IP) suite that creates an encrypted and secure conversation.
Topic 11 Network Management. SNMPv1 This information is specific to SNMPv1. When using SNMPv1, the snmpd agent uses a simple authentication scheme to.
Chapter 27 Network Management Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ITL Getting Information: Packet Sniffing Cisco Router Commands SNMP.
Network Management Workshop June 2009 Papeete, French Polynesia
Network Management Security in distributed and remote network management protocols.
or call for office visit, or call Kathy Cheek,
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008
SNMP M Clements ENS.
Network Management Workshop November 2009 Nadi, Fiji
SNMP M Clements ENS.
Network Management Workshop June 2009 Papeete, French Polynesia
Network Management Computer Networks.
System and Network Management
SNMP M Clements ENS.
Chapter 8: Monitoring the Network
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008
SNMP (Simple Network Management Protocol) based Network Management
Chapter 5 SNMP Management
Chapter 5 SNMP Management
Simple Network Management Protocol
Standards, Models and Language
Presentation transcript:

Slide 1 Replacing TripWire with SNMPv3 Matthew G. Marsh Chief Scientist of the NEbraskaCERT

Slide 1 Scope Very Quick Overview & History of SNMP Some Definitions & Terminology If you want to read all about it see the presentation on the DCX CD Highlights - why use v3 Net-SNMP PakDefConX MIB PakDefConX Source Code Why Tripwire? No NMS Scripting What Next? Demo/Discussion SUMMARY: SNMP is a Message Passing Protocol.

Slide 1 History SNMP is defined by four features: A data definition language Management Information definition A protocol definition Security and Administration definition Standard 15 defines the protocol (SNMP) Standard 16 defines the structure of management information Standard 17 defines MIB-II All SNMP information and organization is specified using Abstract Syntax Notation One (ASN.1) (ISO Standard) SNMPv1 came into being and use in the late 1980's. By 1990 most equipment capable of speaking TCP/IP used SNMPv1 for management capabilities. Some vendors, most notably WellFleet, used SNMP as the basis for all interaction with the equipment. SNMPv1 was defined by three modes of operation Read - a mode of obtaining information from a device based on a query/response Write - a mode of setting parameters within a device based on query/response Trap - a mode for a device to send information about itself without a query These first two modes used basic single passwords as the authentication and security measures SNMPv1 was designed for and used UDP as the main transport mode Contrary to popular belief v1 did provide a framework for authentication, privacy, and authorization; however there were no actual protocol structures, designs, or implementations done within this framework. SNMPv2 came in several incarnations as it was developed. One of the primary original design goals for v2 was to structure and design authentication, privacy, and authorization. However this was not realized although much of the structure formality was completed. SNMPv2 added better data types and efficiency along with the first use of TCP for data transport confirmation SNMPv2 essentially came in three major flavours: v2c, v2u, v2*(v2p) V2c was "officially endorsed" but v2u/v2p had security structures (authentication, privacy, authorization)

Slide 1 Definitions and Terminology Abstract Syntax Notation One (ASN.1) (ISO Standard) =.iso.org.dod.internet This is the tree from whence all MIB things come... ;-} OID - Object ID is the reference to the ASN.1 code which defines an object is the OID assigned to Paktronix Systems LLC Paktronix Systems MIBs would begin from this OID and branch outward and downward is the settable string of the file to be hashed and is fully decoded as:.iso.org.dod.internet.private.enterprises.Paktronix.PakDC.PakSETFiles.PakTestFileString Structure of Management Information - SMI defines the structure of the data (data definition language) SMIv1 is the format used in SNMPv1/v2 SMIv2 is the new extended improved format Community - the password used in v1 and v2c Read was by popular default = public Write was by popular default = private Agent - the device about which information is desired Hub, router, coffee machine ^H^H Java Dispenser... Manager - the device which "manages" an agent NetView, OpenView, Tivoli, Unicenter, etal are Managers Managers typically query many remote agents but you can have a device that is both manager and agent in one. MIB - Management Information Base Think of a database tree with all of the relevant information for a particular device Generic MIB is called MIB-II (as opposed to MIB-I...) and is defined in RFC 1213 Authentication - proving you are who you say you are (password/community/...) Privacy - encryption of the data in transport Authorization - Access Control applied to MIBs Authorization is typically done by specifying subsets or even individual OIDs Trap - an Agent initiated data transfer Go read the Network Management Best Practices PDF on the DCX CD

Slide 1 SNMPv3 Highlights Authentication Authentication passphrase hashes Passphrase must be greater than 8 characters including spaces Privacy Packet data may now be encrypted (DES Default - future use allows additional encryptions) Passphrase defaults to authentication passphrase Allows for unique Privacy passphrase Inform Traps Old style trap was "throw-n-pray" over UDP v2 Inform trap is over TCP and requires a response Traps may also have Authentication and Privacy passphrases Security Structures User / Scope / ACL all may have independent AuthPriv structures SNMP Version 3 - Important Points

Slide 1 General Usage Notes Use multiple Users One for each action (get, set, trap) Different Authentication passphrases Always use Privacy - authPriv Make sure Priv passphrases are different from the Auth passphrases For custom applications consider defining and using your own authentication and privacy encryption methods PakSecured extensions use mhash libraries thus allowing use of any of the mechanisms they contain (see sourcecode) Easily extensible to use mcrypt (or libraries of choice) Always set up your initial security in a secure environment before exposing the system to the elements. SUMMARY: SNMP is a Message Passing Protocol.

Slide 1 Net-SNMP Net-SNMP has had v3 since _the_ reference application for SNMP Originally based on the Carnegie Mellon University and University of California at Davis SNMP implementations. Includes various tools relating to SNMP including: An extensible agent An SNMP library Tools to request or set information from SNMP agents Tools to generate and handle SNMP traps Can use multiple transports IPv4 UDP/TCP IPv6 UDP/TCP IPX on Linux !!!

Slide 1 PakDefConX MIB PakDefConX::= { enterprises 9248 } PakDCOBJECT IDENTIFIER ::= { PakDefConX 1 } -- The OBJECT IDENTIFIER for all PakDefConX tricks PakSETFiles OBJECT IDENTIFIER ::= { PakDC 1 } PakTestFileString OBJECT-TYPE SYNTAXOCTET STRING (SIZE( )) MAX-ACCESSread-write STATUScurrent DESCRIPTION "A publicly settable string that can be set for testing snmpsets. This value will eventually be used as the file name for the PakHash function. ::= { PakSETFiles 1 } PakTestFileHash OBJECT-TYPE SYNTAXString MAX-ACCESSread-only STATUScurrent DESCRIPTION "This object returns the md5sum of the file name set into PakFileTestString. Only the md5sum is returned." ::= { PakSETFiles 2 }

Slide 1 PakDefConX Source Source is provided as a patch against Net-SNMP v5.x Tested on all versions up to as of 7/28/ pre1 is on DCX CD Get Net-SNMP version 5.x is current. Apply the patch (patch -p1 < {patch file location} If you used there are two rejects - ignore them. Edit the PakConfigure file in the source root dir Run the PakConfigure file (bash PakConfigure) make; make install Play Requires that mhash library or greater be installed. Included on DCX CD

Slide 1 Why TripWire? Many security overviews state that you need to ensure file integrity. File integrity means "did this change" Common file integrity programs use hashes combined with databases Network Management Systems are database connected correlation engines They also have extensive automation capabilities Importing a MIB into a NMS extends the NMS Importing the PakDefConX MIB into a standard NMS allows you to use the power of the NMS engine to automate your remote hash gathering. You can also set up escalation and alarms based on changes in the data. Thus you can integrate Tripwire type file integrity into your NOC easily.

Slide 1 No NMS? - Script it... Net-SNMP has binaries, PERL, and C interfaces. Shell Script Example: #!/bin/bash for hf in `cat file.list`; do /usr/local/bin/snmpset -v 3 -u defconx -l authPriv -a MD5 -A defconxv3 -x DES -X defconxencrypt myserver.myplace.com s "$hf" echo -n "$hf " >> output.file /usr/local/bin/snmpget -v 3 -u defconx -l authPriv -a MD5 -A defconxv3 -x DES -X defconxencrypt -Oq -Ov -Oe myserver.myplace.com >> output.file done Assuming that you have appropriate entries in file.list {DEMO}

Slide 1 Additional Scripting You can easily write up a PERL script that would accept other inputs If you have many hosts and multiple different files you wish to check your best bet is a C program that can read and use configuration files The fastest interface is C, followed by PERL, and then binaries. Both the C and PERL interfaces use the Net-SNMP library calls

Slide 1 What Next? If you take a look at the source provided on the DefConX CD you will see that extending the code is simple. The point is that this code runs on the managed system (agent) SNMP is a wonderful messaging protocol What do you want it to do? BTW - Net-SNMP will compile and run on Windows...

Slide 1 Comments, Critiques, CIA These are words that begin with a 'c'

Slide 1 Replacing TripWire with SNMPv3 Matthew G. Marsh Chief Scientist of the NEbraskaCERT