TO UNSUBSCRIBE: email "unsubscribe issforum" in the body of your message to
[EMAIL PROTECTED] Contact [EMAIL PROTECTED] for help with any problems!
----------------------------------------------------------------------------
Ashish,
Whatever information is available in the NT Audit Log is available to
SecureLogic. For instance, on the NT Event 560 (Object Access) created when
an audited file is access, one of the values in the Event Log entry is
"Primary User Name." By determining the correct "STRING" value (see RS
documentation) for this audit log entry, you can get the username of the
user who accessed the file. Comparing this against a list of valid users
will give you the desired results.
For instance:
Set username with the RS "Information" button using the correct STRING
value.
set authorizedUsers {jdoe dsmith webmaster}
if {[file-is-changed] && ![lsearch $authorizedUsers $username]} {
return 1
} else {
return 0
}
Only under the condition where the file is changed AND where the change was
NOT done by an authorized username will the script return a "1." If it was
changed, but by an authorized user, it will return a 0. And of course if it
wasn't changed at all, it will return a 0. The key is in getting the
correct username from the NT Event Log entry and this is best accomplished
with a little reading and mostly rial and error.
Randy Bartels
Senior Security Consultant
Internet Security Systems
X-Force Professional Services
9601 W. Tonopah Drive
Peoria, AZ 85382
Desk/VM/Cell: 623-566-3543
Fax: 253-323-9172
ISS: The Power to Protect
-----Original Message-----
From: Kumar, Ashish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:49 AM
To: Fitch, Brian (ISS Atlanta); [EMAIL PROTECTED]
Subject: Secure logic scripting for web defacement!!
Importance: High
TO UNSUBSCRIBE: email "unsubscribe issforum" in the body of your message to
[EMAIL PROTECTED] Contact [EMAIL PROTECTED] for help with any
problems!
----------------------------------------------------------------------------
Hi! Brian/Forum members,
Can you help us in writing a "Secure Logic" validation script for "Web
Defacement" restore file... The example given in the book does the
restoration but doesn't validate user authorization.... By saying so
what I mean is: it should only restore web page when defaced by
unauthorized users, not in all circumstances, for example webmaster
might need some changes and do a copy of web page but since user defined
secure logic signature doesn't look for the user name it will restore
the backed-up copy. It could be very cumbersome for web master if used
same way.
I'd also like to know how can you add two "if " (or go to command in TCL
scripts) conditions in writing validation scripts....
For example: I want to right something like.....
If [file is changed] then goto A
Else
Return 0
A if [user is authorized] then return 0
Else
Return 1
Any help is highly appreciated!!!
Any body else has done so or implemented Secure logic....appreciate if
you could share your knowledge base with us...
Thanks!!! very much in advance....
-Ashish-