
7-35
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 5.0
78-16527-01
Chapter 7 Defining Signatures
Creating Custom Signatures
To create a MEG signature based on the META engine, follow these steps:
Step 1
Log in to the CLI using an account with administrator or operator privileges.
Step 2
Enter signature definition submode:
sensor#
configure terminal
sensor(config)#
service signature-definition sig0
Step 3
Specify a signature ID and a subsignature ID for the signature:
sensor(config-sig)#
signatures 64000 0
Custom signatures are in the range of 60000 to 65000.
Step 4
Specify the signature engine:
sensor(config-sig-sig)#
engine meta
Step 5
Insert a MEG signature (named c1) at the beginning of the list:
sensor(config-sig-sig-met)#
component-list insert c1 begin
Step 6
Specify the signature ID of the signature on which to match this component:
sensor(config-sig-sig-met-com)#
component-sig-id 2000
Step 7
Exit component list submode:
sensor(config-sig-sig-met-com)#
exit
Step 8
Insert another MEG signature (named c2) at the end of the list:
sensor(config-sig-sig-met)#
component-list insert c2 end
Step 9
Specify the signature ID of the signature on which to match this component
sensor(config-sig-sig-met-com)#
component-sig-id 3000
Step 10
Verify the settings:
sensor(config-sig-sig-met-com)#
exit
sensor(config-sig-sig-met)#
show settings
meta
-----------------------------------------------
event-action: produce-alert <defaulted>
meta-reset-interval: 60 <defaulted>
component-list (min: 1, max: 8, current: 2 - 2 active, 0 inactive)
-----------------------------------------------
ACTIVE list-contents
-----------------------------------------------
NAME: c1
-----------------------------------------------
component-sig-id: 2000
component-subsig-id: 0 <defaulted>
component-count: 1 <defaulted>
-----------------------------------------------
-----------------------------------------------
NAME: c2
-----------------------------------------------
component-sig-id: 3000
component-subsig-id: 0 <defaulted>
component-count: 1 <defaulted>
-----------------------------------------------
-----------------------------------------------
-----------------------------------------------