HP Host Intrusion Detection System (HIDS) manual Forwarding Information, 196

Models: Host Intrusion Detection System (HIDS)

1 270
Download 270 pages 6.58 Kb
Page 208
Image 208

Automated Response

Sample Response Programs

Forwarding Information

Sending an E-mailHP-UX HIDS logs alerts to a file on the local system and sends the alert information to the HP-UX HIDS System Manager. Alert information can also be sent via e-mail, as demonstrated in this script.

#!/usr/bin/sh

#

#Sample HP-UX HIDS alert response script

#Send an email to root if a severity 1 alert is received

#Replace this with the target email address RECIPIENT=”root”

#If we have a severity 1 alert then send the details in email if [ $3 = “1” ]

then

echo “$8” /usr/bin/mailx -s “$7” ${RECIPIENT}

fi

196

Appendix B

Page 208
Image 208
HP Host Intrusion Detection System (HIDS) manual Forwarding Information, 196