OWASP / phpsec

OWASP PHP Security Project - THIS PROJECT IS INACTIVE AND MAY CONTAIN SECURITY FLAWS
197 stars 103 forks source link

Flag 'suspicious' activity, with configurable threshold for reaction #103

Closed MysterAitch closed 8 years ago

MysterAitch commented 10 years ago

What I see as a cool feature would be to create a set of flags of 'potentially undesirable behaviour'. Each time something 'unusual' occurs, a flag on that session is set. The user of the library can then define a threshold on which they will act.

Examples of 'potentially undesirable behaviour' include:

Each change, in isolation, is typically insufficient to trigger any significant reaction if the session ID is intact, though cumulatively reach a (configurable) threshold that a dev is not comfortable with.

An example of this in action is Amazon: when inactive for a period of time, your session remains active. To do anything of consequence while in this 'logged in but not authenticated' state (eg make a purchase / edit account settings) requires (re)authentication.

In summary, I suggest that we implement a set of flags of suspicious behaviour on which users of the library can define thresholds on which the dev is comfortable with / take action on.