What information should I log if I detect that my site is under attack?

Posted by Abe Miessler on Stack Overflow See other posts from Stack Overflow or by Abe Miessler
Published on 2010-03-24T14:59:36Z Indexed on 2010/03/30 17:53 UTC
Read the original article Hit count: 330

Filed under:
|
|

In the code below if I get into the if statement I can safely say my site is under attack. What information is it a good idea to log?
Any recommendations on actions that can be taken to minimize the damage at this point?

protected void btn_Search_Click(object sender, EventArgs e)
{
   if(tb_SearchBox.Text.Length > tb_SearchBox.MaxLength)
   {
      //What should i log?
      //What actions should I take?
   }
   //Otherwise search
}

© Stack Overflow or respective owner

Related posts about security

Related posts about logging