McAfee HISCDE-AB-IA Product Guide - Page 131

Solaris/Linux class UNIX_Misc, Note 2

Page 131 highlights

Appendix A - Writing Custom Signatures and Exceptions Non-Windows custom signatures Note 2 Before matching is done, sections "url" and "query" are decoded and normalized so that requests cannot be filled with encoding or escape sequences. Note 3 A maximum length restriction can be defined for the sections "url" and "query". By adding ";number-of-chars" to the value of these sections, the rule can only match if the {url} or {query} have more characters than "number-of-chars". For example, the following rule matches if the url part of the request contains "abc" and the url part of the request has over 500 characters: Rule { Class UNIX_apache Id 4001 level 1 url { Include "*abc*;500" } time { Include "*" } application { Include "*"} user_name { Include "*" } directives apache:request} } Note 4 A rule needs to contain at least one of the optional sections url, query, method. Note 5 By default, all zones are protected by the signature. To restrict protection to a particular zone, add a zone section in the signature and include the name of the zone. For example, if you have a zone named "app_zone" whose root is /zones/app, then the rule: Rule { ... file { Include "/tmp/test.log" } zone { Include "app_zone" } ... } would apply only to the file in the zone "app_zone" and not in the global zone. Note that in this release, web server protection cannot be restricted to a particular zone. Solaris/Linux class UNIX_Misc The following table lists the possible sections and values for the Solaris or Linux class UNIX_misc: Section Class Id Values UNIX_misc See Common sections. Notes A miscellaneous class that safeguards access protection. McAfee Host Intrusion Prevention 8.0 Product Guide for ePolicy Orchestrator 4.5 131

  • 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

Note 2
Before matching is done, sections “url” and “query” are decoded and normalized so that requests
cannot be filled with encoding or escape sequences.
Note 3
A maximum length restriction can be defined for the sections “url” and “query”. By adding
“;number-of-chars” to the value of these sections, the rule can only match if the {url} or {query}
have more characters than “number-of-chars”. For example, the following rule matches if the
url part of the request contains “abc” and the url part of the request has over 500 characters:
Rule {
Class UNIX_apache
Id 4001
level 1
url { Include “*abc*;500” }
time { Include “*” }
application { Include “*”}
user_name { Include “*” }
directives apache:request}
}
Note 4
A rule needs to contain at least one of the optional sections url, query, method.
Note 5
By default, all zones are protected by the signature. To restrict protection to a particular zone,
add a zone section in the signature and include the name of the zone.
For example, if you have a zone named "app_zone" whose root is /zones/app, then the rule:
Rule {
...
file { Include "/tmp/test.log" }
zone { Include "app_zone" }
... }
would apply only to the file in the zone "app_zone" and not in the global zone.
Note that in this release, web server protection cannot be restricted to a particular zone.
Solaris/Linux class UNIX_Misc
The following table lists the possible sections and values for the Solaris or Linux class UNIX_misc:
Notes
Values
Section
A miscellaneous class that safeguards access
protection.
UNIX_misc
Class
See
Common sections
.
Id
Appendix A — Writing Custom Signatures and Exceptions
Non-Windows custom signatures
131
McAfee Host Intrusion Prevention 8.0 Product Guide for ePolicy Orchestrator 4.5