- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Audit logging (key stroke capturing) in x windows
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:25 PM
10-09-2005 04:25 PM
Audit logging (key stroke capturing) in x windows
Would you suggest a way to enable auditing (key stroke logging) for x windows in HP Unix.Any built in Hpux function or products available
thanks
wip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:38 PM
10-09-2005 04:38 PM
Re: Audit logging (key stroke capturing) in x windows
[HP-UX 11i Security Containment Administrator's Guide] should help you..
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:40 PM
10-09-2005 04:40 PM
Re: Audit logging (key stroke capturing) in x windows
Do want to look at commands used by user, then you can look at history file(ususally .sh_history in home directory)
You can also look at script command. But this is very space consuming and these files gro very quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:45 PM
10-09-2005 04:45 PM
Re: Audit logging (key stroke capturing) in x windows
thanks for the initial response.
My intention is to capture the key strokes(commands executed) by the users ,from admins to normal users for security auditing
thanks
Wip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:54 PM
10-09-2005 04:54 PM
Re: Audit logging (key stroke capturing) in x windows
If window$, then there are fre/paid keyboard loggers....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 04:58 PM
10-09-2005 04:58 PM
Re: Audit logging (key stroke capturing) in x windows
(Assign points if replies are useful)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 08:05 PM
10-10-2005 08:05 PM
Re: Audit logging (key stroke capturing) in x windows
adapt your /etc/syslog.conf and ad:
local5.info @loging_server
the loging_server receives all interactive command-logging (UDP)
check the bash source-code (.../lib/readline/history.c, function "add_history()"
As such when the logging-server is properly hardened: that history cannot be tampered (as the local .history can)
Note: if the user performs shell-escapes or uses another shell: the commands in this new shell won't be logged
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 09:46 PM
10-10-2005 09:46 PM
Re: Audit logging (key stroke capturing) in x windows
man script
You can start it up in your .nnnrc file or .profile like this:
trap "echo 'logout' ; cd /work/logs; gzip -S .$$.gz myLOG; exit" 0
script /work/logs/myLOG
exit
It will not help you trap passwords, graphics or mouse actions, I don't condone that sort of nefarious activity anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 11:04 PM
10-10-2005 11:04 PM
Re: Audit logging (key stroke capturing) in x windows
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 12:01 AM
10-11-2005 12:01 AM
Re: Audit logging (key stroke capturing) in x windows
The graphical environment makes it difficult. You must capture the user event streams separately for each application/window, otherwise your log is not going to be very reliable. Remember that the user can use the mouse to switch between applications at any time.
(If you capture the keystrokes for all the windows in one stream, it is easy to trick you: just type "rm -f", switch to another window, type four backspaces and "ls -l", switch back to the first window and add a filename. The log will show you executed "ls -l filename" when you actually did a "rm -f filename".)
If you need auditability, you can get more meaningful results with application-level logging. Analyzing an OS-level log will often be major detective work with uncertain results. With a GUI application, you'd need to figure out what was written into which field and whether the thing under the mouse when the user clicked was "OK", "Cancel" or something else entirely.
A properly-designed logging function in an application might produce a log event "at time T, userid A placed in the system an order for X units of product P for client C"... which would be exactly the kind of information you need.
Keystroke logging is useful if the user interface is simple and strict enough so that the actual event can reliably be reconstructed from the logs. With a GUI environment, this is not necessarily true.
Consider what you're collecting the logs for: is it just to satisfy an abstract bullet point or is it so you can provide a 100% conclusive answer when some authority (big boss, police, government official...) requires it from you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 01:12 AM
10-11-2005 01:12 AM
Re: Audit logging (key stroke capturing) in x windows
http://www.deter.com/unix/software/xkey.c
This page has a lot of useful tools an information.
You can also check out this article from the SANS Reading Room:
X Windows Security: How to Protect your Display
http://www.sans.org/rr/whitepapers/unix/328.php
.sh_history files are your best bet.
SysAdmin Magazine has an article on capturing root's history, there are a few scripts associated. You could modify them to cover every user if you wanted:
The article is called in the "Intrusion Detection" section and is called:
Root Access Intrusion -- A Suite of Tools
http://www.samag.com/documents/s=9389/sam0208c/
Good luck.
Don