Templates and Alerts

 

 

 

 

 

Race Condition Template

Table A-8

 

Setuid Script Executed Alert Properties (Continued)

 

 

 

 

 

 

 

Response

 

 

Alert

 

 

Program

 

Alert Field

Field

Alert Value/Format

Description

Argument

 

 

Type

 

 

 

 

 

 

 

argv[8]

Details

String

“User with <uid> running as

Detailed alert

 

 

 

 

process with pid<pid> and with

description

 

 

 

 

parent pid <ppid> is executing the

 

 

 

 

 

privileged setuid script <full

 

 

 

 

 

pathname>(type=<type>,

 

 

 

 

 

inode=<inode>, device=<device),

 

 

 

 

 

invoked as follows: <argv[0]

 

 

 

 

 

argv[1]...,[*perhaps*] via a symbolic

 

 

 

 

 

link. Privileged setuid script owned

 

 

 

 

 

by user with uid <uid>. A privileged

 

 

 

 

 

setuid script is vulnerable to a race

 

 

 

 

 

condition attack.”

 

 

 

 

 

 

argv[9]

Local Time

Integer

<secs>

Local time in

 

 

 

 

 

number of seconds

 

 

 

 

 

since epoch when a

 

 

 

 

 

privileged setuid

 

 

 

 

 

script is executed.

 

 

 

 

 

 

 

 

Refer to Table B-1 in Appendix B for the definition of argv[10] through argv[32] and to

NOTE

 

 

 

Table B-2 for the definition of argv[33] through argv[41] that can be used to access

 

 

specific alert information (ie., pid, ppid) without having to parse the string alert fields

 

 

above.

 

 

 

 

 

• This template can be CPU intensive because it is monitoring all file references on the

Limitations

 

 

 

system.

 

 

 

Appendix A

145

Page 157
Image 157
HP Host Intrusion Detection System (HIDS) manual Appendix a 145