×

Automated mechanism to analyze elevated authority usage and capability

  • US 10,346,625 B2
  • Filed: 10/31/2016
  • Issued: 07/09/2019
  • Est. Priority Date: 10/31/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for an operating system kernel to secure file access by automatically identifying and removing non-essential privileges to files, the computer-implemented method comprising, by operation of one or more computer processors:

  • monitoring, by the operating system kernel, a set of file access requests to a file from a first application to obtain permission, identity, and call information related to the monitored requests, wherein monitoring the set of file access requests includes obtaining a runtime stack from the first application based on a predefined call selected from a system object call and a microcode call, wherein the runtime stack has associated environment information specifying;

    (i) the system object call;

    (ii) programs on the runtime stack;

    (iii) program statement numbers of calling and called subroutines;

    (iv) names of calling and called subroutines;

    (v) an order in which applications are called;

    (vi) whether each called application invoked any owner privileges;

    (vii) thread and job information pertaining to the first application; and

    (viii) a runtime context of the first application;

    determining a set of user privileges available to a user, wherein the set of user privileges is available to the first application when the user causes execution of the first application, the first application having an owner other than the user;

    determining a set of owner privileges of the owner and available to the user only for conditional use as a fallback when the set of user privileges is insufficient for accessing the file when executing the first application, wherein the fallback is greater, lesser, or equal in scope relative to the set of user privileges;

    upon determining, by the operating system kernel, that the fallback is not used to access the file because the set of user privileges is sufficient to access the file and that the fallback is also sufficient to access the file, causing the fallback to be used in subsequently accessing the file, by automatically removing, from the set of user privileges, at least one existing user privilege to the file as being non-essential;

    wherein the operating system kernel is configured such that;

    upon a determination that the fallback is not used to access the file because the set of user privileges is sufficient to access the file and that the fallback is actually insufficient to access the file, at least one existing user privilege to the file is preserved in the set of user privileges, as being essential; and

    upon a determination that the fallback is used to access the file because the set of user privileges is insufficient to access the file, one or more existing user privileges to the file are removed altogether from the set of user privileges, as being non-essential;

    storing the call information as first call information in the data file;

    receiving, from a second application different from the first application, a request for access to the file;

    obtaining second call information from a runtime stack from the second application;

    determining the request for access is an abnormal request, based on comparing the first and second call information, wherein the comparing is based on at least the programs on the runtime stack and the program statement numbers of the calls, wherein the determining the request is abnormal comprises determining that the second application has owner privileges that are elevated relative to the set of owner privileges of the first application; and

    upon determining that the request for access is an abnormal request, automatically taking a predefined action comprising;

    (i) logging information related to the abnormal request and (ii) denying the request for access.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×