Protecting the logs
Make it harder for the hacker to cover
their tracks
Holding real-time/one-way copy of log
Keep log file different, protected server
Sanitizing log files
Avoid being hacked while logging attacks,
such as log spoofing attacks and format string attacks
Sanitize user input before log insertion - block attacks trying to erase logs by sending special characters (like the ASCII value of
backspaces)
Remove other special characters
e.g. % used to run format string
attack on logging utility such as syslogs
functions