主权项 |
1. A processor-implemented method for updating one or more scanning rules for scanning contents to detect security risks, the method comprising:
obtaining, using one or more data processors, one or more first operation records to extract scanning information related to contents being scanned to detect security risks, the first operation records including one or more user selected operations related to the contents being scanned; obtaining, using the one or more data processors, one or more recommended operations corresponding to the scanning information based on at least information associated with one or more scanning rules; determining whether predetermined validation information corresponding to the scanning information exists; in response to the predetermined validation information existing, determining whether the scanning information and the predetermined validation information matches; wherein the obtaining one or more recommended operations includes:
in response to the scanning information matching with the predetermined validation information, obtaining a removal operation as the recommended operations; andin response to the scanning information not matching with the predetermined validation information, obtaining a trust operation as the recommended operations; in response to the predetermined validation information not existing,
determining one or more first users selecting the trust operation;determining one or more second users selecting the removal operation; andobtaining the recommended operations based at least in part on the first users and the second users; wherein the obtaining the recommended operations based at least in part on the first users and the second users includes:
obtaining one or more third users associated with a user type related to the first operation records;obtaining one or more fourth users among the third users, second operation records related to the event users corresponding to the scanning information;calculating a first ratio between a first number of the first users and a fourth number of the fourth users;calculating a second ratio between a second number of the second users and the fourth number;applying one or more first weights to the first ratio to generate a first weight ratio;applying one or more second weights to the second ratio to generate a second weight ratio;calculating a difference between the first weight ratio and the second weight ratio; anddetermining the recommended operations based at least in part on the difference between the first weight ratio and the second weight ratio; and calculating, using the one or more data processors, a matching degree between the first operation records and the recommended operations based at least in part on a comparison between the user selected operations and the recommended operations; and updating, using the one or more data processors, the scanning rules based on information associated with the matching degree. |