×

Fine-grained analysis and prevention of invalid privilege transitions

  • US 10,402,564 B2
  • Filed: 06/15/2017
  • Issued: 09/03/2019
  • Est. Priority Date: 08/16/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method executed on a processor for analyzing operations of privilege changes, the method comprising:

  • inputting source code of a program from a computing device;

    performing, via the processor, source code analysis on the program by;

    generating a privilege control flow graph (PCFG);

    generating a privilege data flow graph (PDFG) defined as a graph where a node is a privilege state of the program and an edge is a transition between source and destination privilege states, the edge having properties regarding parameters for privilege change operations, metadata of the parameters including three properties, the first property indicating whether a parameter of the parameters is a constant or a variable, the second property shows possible values either as a list of values or a range of values with start and end values, and the third property represents a list of source code locations which define and manipulate the values; and

    generating a privilege call context graph (PCCG);

    based on the source code analysis results, instrumenting the source code of the program to insert an inspection code to check for proper transitions of privileges and to prevent potential invalid privilege transitions;

    rebuilding the program by employing revised code including information from the PCFG, the PDFG, and the PCCG;

    at runtime inspection, deploying the rebuilt program to the computing device to perform runtime inspection to determine potential abnormal usages of the privilege change operations.

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