McAfee HISCDE-AB-IA Product Guide - Page 127

Non-Windows custom signatures, Solaris/Linux class UNIX_file

Page 127 highlights

Appendix A - Writing Custom Signatures and Exceptions Non-Windows custom signatures Non-Windows custom signatures This section describes how to write custom signatures for the Solaris and Linux platforms. NOTE: Rules in the Windows class Files use double slashes, while rules in the non-Windows class UNIX_file use a single slash. The class of the signature depends on the nature of the security issue and the protection the signature can offer. For Solaris and Linux, these classes are available: Class UNIX_file UNIX_apache UNIX_Misc UNIX_bo UNIX_map UNIX_GUID When to use For file or directory operations on Solaris and Linux. For http requests on Solaris and Linux. For safeguarding access protection on Solaris and Linux. For buffer overflow. Solaris only. For mapping files or devices into memory. Solaris only. For allowing users to run an executable with the permissions of the executable's owner or group. Solaris only. Solaris/Linux class UNIX_file The following table lists the possible sections and values for the Unix-based class UNIX_file: Section Class Id level time user_name Executable files source file new zone directives Values UNIX_file See Common sections. Notes File or folder involved in the operation One of the required parameters. Files to look for. See Note 1. Target file names One of the required parameters. See Note 1. List of permissions of source file Solaris Only. Optional. See Note 2. names Permission mode of newly created file or modified permission Solaris Only. Optional. See Note 2. Name of the zone to which the Solaris 10 or later. See Note 5. signature applies unixfile:chdir Changes the working directory. unixfile:chmod Changes the permissions on a directory or file. unixfile:chown Changes the ownership of a directory or file. unixfile:create Creates a file. McAfee Host Intrusion Prevention 8.0 Product Guide for ePolicy Orchestrator 4.5 127

  • 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

Non-Windows custom signatures
This section describes how to write custom signatures for the Solaris and Linux platforms.
NOTE:
Rules in the Windows class Files use double slashes, while rules in the non-Windows
class UNIX_file use a single slash.
The class of the signature depends on the nature of the security issue and the protection the
signature can offer. For Solaris and Linux, these classes are available:
When to use
Class
For file or directory operations on Solaris and Linux.
UNIX_file
For http requests on Solaris and Linux.
UNIX_apache
For safeguarding access protection on Solaris and Linux.
UNIX_Misc
For buffer overflow. Solaris only.
UNIX_bo
For mapping files or devices into memory. Solaris only.
UNIX_map
For allowing users to run an executable with the
permissions of the executable's owner or group. Solaris
only.
UNIX_GUID
Solaris/Linux class UNIX_file
The following table lists the possible sections and values for the Unix-based class UNIX_file:
Notes
Values
Section
UNIX_file
Class
See
Common sections
.
Id
level
time
user_name
Executable
One of the required parameters. Files to look for.
See Note 1.
File or folder involved in the
operation
files
One of the required parameters. See Note 1.
Target file names
source
Solaris Only
. Optional. See Note 2.
List of permissions of source file
names
file
Solaris Only
. Optional. See Note 2.
Permission mode of newly
created file or modified
permission
new
Solaris 10 or later. See Note 5.
Name of the zone to which the
signature applies
zone
Changes the working directory.
unixfile:chdir
directives
Changes the permissions on a directory or file.
unixfile:chmod
Changes the ownership of a directory or file.
unixfile:chown
Creates a file.
unixfile:create
Appendix A — Writing Custom Signatures and Exceptions
Non-Windows custom signatures
127
McAfee Host Intrusion Prevention 8.0 Product Guide for ePolicy Orchestrator 4.5