PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10831898

Detecting privilege escalations in code including cross-service calls

Granted 2020-11-10 · Filed 2018-02-05 · Application 15/888,894 · Utility · Kind B1

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Timothy Allen Wagner, Seattle, WA (US)
CPC, current
G06F21/577; G06F9/547; G06F21/52; G06F2221/033

Abstract

Systems and methods are described for conducting static analysis of code invoking network-based services to identify, without requiring execution of the code, security issues that may be introduced due to the invocations of the network-based services. A system is provided that may analyze code to detect both direct invocations of services, as well as indirect invocations caused by the direct invocations. The system can compare permissions information for the code to both directly or indirectly invoked services to identify instances in which the code calls services not permitted by the permissions information. In some instances, the system can traverse a “call graph” of all services invoked by code either directly or indirectly to identify permissions errors through multiple levels of indirection.

Claims

21 claims · independent 1, 5 and 12

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A system to analyze code executable on an on-demand code execution system to detect potential privilege escalation vulnerabilities, the system comprising:

  1. Claim 1, element e1a physical data store storing executable code submitted to the on-demand code execution system by a user device, the executable code including a code portion invoking a first network-accessible service; 158–359
  2. Claim 1, element e2a computing device in communication with the physical data store and configured, independent of execution of the executable code, to: 361–493
  3. Claim 1, element e3obtain security information for the executable code, the security information including criteria for identifying invocations of one or more network-accessible services that are permissible during execution of the executable code; 495–723
  4. Claim 1, element e4identify the code portion within the executable code invoking the first network-accessible service; 725–823
  5. Claim 1, element e5determine an expected output of the first network-accessible service, the expected output including an expected invocation of one or more second network-accessible services not referenced within the executable code; 825–1039
  6. Claim 1, element e6compare the expected output to the security information for the executable code to determine that the expected invocation of the one or more second network-accessible services e is not permissible under the security information; and 1041–1268
  7. Claim 1, element e7transmit an indication that the expected invocation of the one or more second network-accessible services is not permissible under the security information.1274–1429
3 dependent claims: 2 to 4 (2, 3, 4 on claim 1)

Claim 2

Depends on claim 1.

2. The system of claim 1 , wherein

  1. Claim 2, element e1the invocation within the executable code of the first network-accessible service is an application programming interface (API) call.35–167

Claim 3

Depends on claim 1.

3. The system of claim 1 , wherein

  1. Claim 3, element e1determining that the invocation of the one or more second network-accessible services is not permissible under the security information comprises determining that the executable code is not permitted to invoke the one or more second network-accessible services.35–295

Claim 4

Depends on claim 1.

4. The system of claim 1 , wherein

  1. Claim 4, element e1the expected output includes an expected parameter to be passed to the one or more second network-accessible services, and wherein determining that the invocation of the one or more second network-accessible services is not permissible under the security information comprises determining that the executable code is not permitted to invoke the one or more second network-accessible services with the expected parameter.35–454

Claim 5

Independent claim.

5. A computer-implemented method comprising:

  1. Claim 5, element e1obtaining executable code from a user device; and 45–89
  2. Claim 5, element e2independent of execution of the executable code: 95–142
  3. Claim 5, element e3obtaining security information for the executable code, the security information including criteria for identifying invocations of one or more network-accessible services that are permissible during execution of the executable code; 144–375
  4. Claim 5, element e4identifying a code portion within the executable code invoking a first network-accessible service; 377–474
  5. Claim 5, element e5determining that an expected output of the first network-accessible service corresponds to an expected invocation of one or more second network-accessible services; 476–639
  6. Claim 5, element e6determining that the expected invocation of the one or more second network-accessible services is not permissible under the security information; and 641–785
  7. Claim 5, element e7transmitting an indication that the expected invocation of the one or more second network-accessible services is not permissible under the security information.791–950
6 dependent claims: 6 to 11 (6, 7, 8, 9, 10, 11 on claim 5)

Claim 6

Depends on claim 5.

6. The computer-implemented method of claim 5 , wherein

  1. Claim 6, element e1the one or more second network-accessible services are not referenced within the executable code.56–152

Claim 7

Depends on claim 5.

7. The computer-implemented method of claim 5 , wherein

  1. Claim 7, element e1identifying the code portion within the executable code comprises referencing information mapping the code portion to the first network-accessible service.56–210

Claim 8

Depends on claim 5.

8. The computer-implemented method of claim 5 , wherein

  1. Claim 8, element e1determining that the expected output of the first network-accessible service corresponds to the invocation of the one or more second network-accessible services comprises determining that the expected output of the first network-accessible service is the invocation of the one or more second network-accessible services.56–375

Claim 9

Depends on claim 5.

9. The computer-implemented method of claim 5 , wherein

  1. Claim 9, element e1at least one of the one or more second network-accessible services is implemented as an execution of second executable code on an on-demand code execution system, and wherein determining that the expected output of the first network-accessible service corresponds to the invocation of the one or more second network-accessible services comprises determining that the expected output of the first network-accessible service satisfies criteria maintained at the on-demand code execution system for execution of the second executable code.56–591

Claim 10

Depends on claim 5.

10. The computer-implemented method of claim 5 further comprising:

  1. Claim 10, element e1determining that an expected output of the one or more second network-accessible services corresponds to an invocation of a third network-accessible service; 67–223
  2. Claim 10, element e2determining that the invocation of the third network-accessible service is not permissible under the security information; and 225–346
  3. Claim 10, element e3transmitting an indication that the invocation of the third network-accessible service is not permissible under the security information.352–488

Claim 11

Depends on claim 5.

11. The computer-implemented method of claim 5 , wherein

  1. Claim 11, element e1the indication that the invocation of the second network-accessible service is not permissible under the security information comprises at least one of an identification of the invocation of the first network-accessible service within the executable code and an identification of the expected output of the first network-accessible service.57–396

Claim 12

Independent claim.

12. Non-transitory computer-readable media comprising

  1. Claim 12, element e1executable instructions that, when executed on a computing system, cause the computing system to: 54–150
  2. Claim 12, element e2obtain executable code from a user device; and 152–193
  3. Claim 12, element e3independent of execution of the executable code: 199–246
  4. Claim 12, element e4obtain security information for the executable code, the security information including criteria for identifying invocations of one or more network-accessible services that are permissible during execution of the executable code; 248–476
  5. Claim 12, element e5identify a code portion within the executable code invoking a first network-accessible service; 478–572
  6. Claim 12, element e6determine that an expected output of the first network-accessible service corresponds to an expected invocation of one or more second network-accessible services; 574–735
  7. Claim 12, element e7determine that the expected invocation of the one or more second network-accessible services is not permissible under the security information; and 737–879
  8. Claim 12, element e8transmit an indication that the expected invocation of the one or more second network-accessible services is not permissible under the security information.885–1040
9 dependent claims: 13 to 21 (13, 14, 15, 16 on claim 12; 20 on 14; 17 on 16; 18, 19 on 17; 21 on 20)

Claim 13

Depends on claim 12.

13. The non-transitory computer-readable media of claim 12 , wherein

  1. Claim 13, element e1the executable instructions further cause the computing system to determine that at least one of the first network-accessible service and the one or more second network-accessible services includes execution of a function pre-designated as potentially insecure, and to transmit to the user device an indication of use of the potentially insecure function.69–423

Claim 14

Depends on claim 12.

14. The non-transitory computer-readable media of claim 12 , wherein

  1. Claim 14, element e1the executable instructions further cause the computing system to: 69–134
  2. Claim 14, element e2obtain permissions information for the first network-accessible service indicating whether the executable code is permitted to invoke the first network-accessible service; 136–306
  3. Claim 14, element e3determine from the permissions information that the executable code is not permitted to invoke the first network-accessible service; and 308–439
  4. Claim 14, element e4transmit an indication that the executable code is not permitted to invoke the first network-accessible service.445–556

Claim 15

Depends on claim 12.

15. The non-transitory computer-readable media of claim 12 , wherein

  1. Claim 15, element e1the executable instructions further cause the computing system to: 69–134
  2. Claim 15, element e2obtain permissions information for the one or more second network-accessible services indicating whether the first network-accessible service is permitted to invoke the one or more second network-accessible services; 136–351
  3. Claim 15, element e3determine from the permissions information that the first network-accessible service is not permitted to invoke the one or more second network-accessible services; and 353–515
  4. Claim 15, element e4transmit an indication that the first network-accessible service is not permitted to invoke the one or more second network-accessible services.521–663

Claim 16

Depends on claim 12.

16. The non-transitory computer-readable media of claim 12 , wherein

  1. Claim 16, element e1the expected output includes an expected parameter to be passed to the one or more second network-accessible services, and wherein determining that the expected invocation of the one or more second network-accessible services is not permissible under the security information comprises determining that the executable code is not permitted to invoke the one or more second network-accessible services with the expected parameter.69–497

Claim 17

Depends on claim 16.

17. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 17, element e1the executable instructions further cause the computing system to: 69–134
  2. Claim 17, element e2obtain service information for the first network-accessible service, the service information including a transformation of an input parameter to an output of the first network-accessible service; and 136–330
  3. Claim 17, element e3determine the expected parameter to be passed to the second network-accessible service based at least partly on applying the transformation to a parameter to be passed to the first network-accessible service by the executable code.336–566

Claim 18

Depends on claim 17.

18. The non-transitory computer-readable media of claim 17 , wherein

  1. Claim 18, element e1the executable instructions further cause the computing system to: 69–134
  2. Claim 18, element e2determine the transformation based on a record of one or more prior input parameters to the first network-accessible service and one or more prior outputs of the first network-accessible service corresponding to the one or more prior input parameters.136–386

Claim 19

Depends on claim 17.

19. The non-transitory computer-readable media of claim 17 , wherein

  1. Claim 19, element e1the service information is obtained at the computing system in response to transmission of a query to an application programming interface of the first network-accessible service.69–247

Claim 20

Depends on claim 14.

20. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 20, element e1the indication includes a suggestion to make a modification to the security information for the executable code to permit the expected invocation of the one or more second network-accessible services.69–268

Claim 21

Depends on claim 20.

21. The non-transitory computer-readable media of claim 20 , wherein

  1. Claim 21, element e1the suggestion is selectable to cause the modification to the security information.69–151

Status

active

As of 2026-11-17, the USPTO record for US 10831898 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2038-08-30 (20 years from filing, plus 206 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:206 (20 years from filing, plus 206 days of patent term adjustment)
Term end
2038-08-30 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 162 US patent documents · Cited by: 70 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10831898/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10831898",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:206"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2038-08-30",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10831898?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10831898?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10831898/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10831898",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10831898?v=20261117.2

Data 20261117.2 · as of 2026-11-17