blob: be3662b1a5b09c1481c37a71db4e40ca52d8a6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
SIP Keywords
============
The SIP keywords are implemented as sticky buffers and can be used to match on fields in SIP messages.
============================== ==================
Keyword Direction
============================== ==================
sip.method Request
sip.uri Request
sip.request_line Request
sip.stat_code Response
sip.stat_msg Response
sip.response_line Response
sip.protocol Both
============================== ==================
sip.method
----------
This keyword matches on the method found in a SIP request.
Syntax
~~~~~~
::
sip.method; content:<method>;
Examples of methods are:
* INVITE
* BYE
* REGISTER
* CANCEL
* ACK
* OPTIONS
Examples
~~~~~~~~
::
sip.method; content:"INVITE";
sip.uri
-------
This keyword matches on the uri found in a SIP request.
Syntax
~~~~~~
::
sip.uri; content:<uri>;
Where <uri> is an uri that follows the SIP URI scheme.
Examples
~~~~~~~~
::
sip.uri; content:"sip:sip.url.org";
sip.request_line
----------------
This keyword forces the whole SIP request line to be inspected.
Syntax
~~~~~~
::
sip.request_line; content:<request_line>;
Where <request_line> is a partial or full line.
Examples
~~~~~~~~
::
sip.request_line; content:"REGISTER sip:sip.url.org SIP/2.0"
sip.stat_code
-------------
This keyword matches on the status code found in a SIP response.
Syntax
~~~~~~
::
sip.stat_code; content:<stat_code>
Where <status_code> belongs to one of the following groups of codes:
* 1xx - Provisional Responses
* 2xx - Successful Responses
* 3xx - Redirection Responses
* 4xx - Client Failure Responses
* 5xx - Server Failure Responses
* 6xx - Global Failure Responses
Examples
~~~~~~~~
::
sip.stat_code; content:"100";
sip.stat_msg
------------
This keyword matches on the status message found in a SIP response.
Syntax
~~~~~~
::
sip.stat_msg; content:<stat_msg>
Where <stat_msg> is a reason phrase associated to a status code.
Examples
~~~~~~~~
::
sip.stat_msg; content:"Trying";
sip.response_line
-----------------
This keyword forces the whole SIP response line to be inspected.
Syntax
~~~~~~
::
sip.response_line; content:<response_line>;
Where <response_line> is a partial or full line.
Examples
~~~~~~~~
::
sip.response_line; content:"SIP/2.0 100 OK"
sip.protocol
------------
This keyword matches the protocol field from a SIP request or response line.
If the response line is 'SIP/2.0 100 OK', then this buffer will contain 'SIP/2.0'
Syntax
~~~~~~
::
sip.protocol; content:<protocol>
Where <protocol> is the SIP protocol version.
Example
~~~~~~~
::
sip.protocol; content:"SIP/2.0"
|