A non-transitory, tangible computer-readable media which has stored in it instructions, which when executed by a computer that participates in protection of a web application that is installed on a protected device and to which clients send hypertext transfer protocol (HTTP) requests, cause the computer to perform the steps of:
- responsive to a sensor collecting from HTTP requests sent by the clients to the web application installed on the protected device, automatically creating for the web application a profile with discrete parts that will represent normal behavior so that deviations from the profile can be considered anomalous;
- automatically determining that a first of the discrete parts of the profile has become stable;
- responsive to the automatically determining, automatically deploying by the computer the first discrete part of the profile to the sensor that now will compare with the first discrete part of the profile subsequent HTTP requests sent by the clients to the web application to detect deviations from the normal behavior represented by the first discrete part.