Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting suspicious behaviour in a web application - what to look for?

I would like to ask the proactive (or paranoid;) among us: What are you looking for, and how?

I'm thinking mainly about things that can be watched for programmatically, rather than manually inspecting logs.

For example:

  • Manual/automated hack attempts.
  • Data skimming.
  • Bot registrations (that have evaded captcha etc.).
  • Other unwanted behaviour.

Just wondering what most people would consider practical and effective.

Preventative stuff (like user input sanitation) is of course crucial, but in the case of this question I'm more interested in detecting a potential threat. In this case I'm interested in the Burglar alarm, rather than the locks.

An example of the kind of thing I'm talking about exists here on SO. If you make too many modifications to a question in a short period of time, it brings up a captcha to make sure you're not a bot.

like image 923
UpTheCreek Avatar asked May 08 '10 17:05

UpTheCreek


People also ask

How do you test for suspicious behavior?

Leaving packages, bags or other items behind. Exhibiting unusual mental or physical symptoms. Unusual noises like screaming, yelling, gunshots or glass breaking. Individuals in a heated argument, yelling or cursing at each other.

What is a suspicious activity?

Suspicious activity is any observed behavior that could indicate a person may be involved in a crime or about to commit a crime.


1 Answers

Three pointers for you:

  1. Sanitize user input
  2. Sanitize user input
  3. Sanitize user input

Remeber it, and remember it good.

like image 173
LukeN Avatar answered Jun 03 '23 10:06

LukeN