A method for performing a task on a computing device based on access rights determined from a danger level of the task, the method comprising: gathering data characterizing the task for control of the computing device; generating one or more task templates based on the gathered data, wherein each of the one or more task templates comprises one or more tasks characterized by parameters and attributes in specified ranges, and wherein the parameters and attributes comprise characteristics which can be used to compare tasks with one another and determine a degree of similarity between tasks, wherein the comparison of tasks comprises, determining elementary actions for each task, generating a bytecode for each elementary action of each task, determining the degrees of similarities among the generated bytecodes of each task; determining a task danger level using a model for determining the task danger level based on the generated one or more task templates, wherein the task danger level characterizes a threat level of the task to an information security of the computing device if the task is performed, and wherein the task danger level is determined based on the determined degrees of similarity between tasks; generating an automated test to determine whether the task is has been requested by a human user of the computing device or by a machine, wherein the automated test depends on the determined task danger level and is based on test generating rules and wherein the automated test is generated based on at least one of: the task being performed by the user and information being requested by the user; receiving a result of the automated test having being performed by the user, analyzing the received results, and determining access rights for the task in accordance with the analysis; and performing the task in accordance with the determined access rights. gathering data characterizing the task for control of the computing device; generating one or more task templates based on the gathered data, wherein each of the one or more task templates comprises one or more tasks characterized by parameters and attributes in specified ranges, and wherein the parameters and attributes comprise characteristics which can be used to compare tasks with one another and determine a degree of similarity between tasks, wherein the comparison of tasks comprises, determining elementary actions for each task, generating a bytecode for each elementary action of each task, determining the degrees of similarities among the generated bytecodes of each task; determining a task danger level using a model for determining the task danger level based on the generated one or more task templates, wherein the task danger level characterizes a threat level of the task to an information security of the computing device if the task is performed, and wherein the task danger level is determined based on the determined degrees of similarity between tasks; generating an automated test to determine whether the task is has been requested by a human user of the computing device or by a machine, wherein the automated test depends on the determined task danger level and is based on test generating rules and wherein the automated test is generated based on at least one of: the task being performed by the user and information being requested by the user; receiving a result of the automated test having being performed by the user, analyzing the received results, and determining access rights for the task in accordance with the analysis; and performing the task in accordance with the determined access rights.