
7-37
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 5.0
78-16527-01
Chapter 7 Defining Signatures
Creating Custom Signatures
–
max-outstanding-requests-overrun
—Inspects for large number of outstanding HTTP
requests
–
msg-body-pattern
—Message body pattern
–
request-methods
—Signature types that deal with request methods
–
transfer-encodings
—Signature types that deal with transfer encodings
To define a MIME-type policy signature, follow these steps:
Step 1
Log in to the CLI using an account with administrator or operator privileges.
Step 2
Enter application policy enforcement submode:
sensor#
configure terminal
sensor(config)#
service signature-definition sig0
sensor(config-sig)#
signatures 60001 0
sensor(config-sig-sig)#
engine application-policy-enforcement-http
Step 3
Specify the event action:
sensor(config-sig-sig-app)#
event-action produce-alert|log-pair-packets
Step 4
Define the signature type:
sensor(config-sig-sig-app)#
signature-type content-type define-content-type
Step 5
Define the content type:
sensor(config-sig-sig-app-def)#
name MyContent
Step 6
Verify your settings:
sensor(config-sig-sig-app-def)#
show settings
-> define-content-type
-----------------------------------------------
name: MyContent
*---> content-type-details
-----------------------------------------------
-----------------------------------------------
-----------------------------------------------
sensor(config-sig-sig-app-def)#
Step 7
Exit signatures submode:
sensor(config-sig-sig-app-def)#
exit
sensor(config-sig-sig-app)#
exit
sensor(config-sig-sig)#
exit
sensor(config-sig)#
exit
Apply Changes:?[yes]:
Step 8
Press
Enter
to apply the changes or type
no
to discard them.