AUTHORIZING APPLICATION ACCESS VIA CUSTOM UWP SID
20230026040 · 2023-01-26
Assignee
Inventors
Cpc classification
G06F2221/2141
PHYSICS
G06F21/606
PHYSICS
G06F21/6281
PHYSICS
International classification
G06F21/62
PHYSICS
Abstract
An information handling system may include at least one processor and a non-transitory, computer-reading medium having instructions thereon that are executable by the at least one processor for: providing access to one or more objects via a plurality of application programming interface (API) endpoints; receiving a call to a particular API endpoint from an app; and determining, based on a security identifier (SID) of the app, whether the call should be allowed; wherein the SID of the app is based on one or more custom capabilities defined in a manifest of the app.
Claims
1. An information handling system comprising: at least one processor; and a non-transitory, computer-reading medium having instructions thereon that are executable by the at least one processor for: providing access to one or more objects via a plurality of application programming interface (API) endpoints; receiving a call to a particular API endpoint from an app; and determining, based on a security identifier (SID) of the app, whether the call should be allowed; wherein the SID of the app is based on one or more custom capabilities defined in a manifest of the app.
2. The information handling system of claim 1, wherein the app is a Universal Windows Programming (UWP) app.
3. The information handling system of claim 1, wherein the app executes on the information handling system.
4. The information handling system of claim 1, wherein the object is a Win32 service.
5. The information handling system of claim 1, wherein the one or more objects are configured to provide access to a hardware device of the information handling system, the hardware device including a camera and/or a microphone.
6. The information handling system of claim 1, wherein determining whether the call should be allowed further comprises querying a process associated with the app to determine an access control list associated with the app.
7. A method comprising: an information handling system providing access to one or more objects via a plurality of application programming interface (API) endpoints; the information handling system receiving a call to a particular API endpoint from an app; and the information handling system determining, based on a security identifier (SID) of the app, whether the call should be allowed; wherein the SID of the app is based on one or more custom capabilities defined in a manifest of the app.
8. The method of claim 7, wherein the app is a Universal Windows Programming (UWP) app.
9. The method of claim 7, wherein the app executes on the information handling system.
10. The method of claim 7, wherein the object is a Win32 service.
11. The method of claim 7, wherein the one or more objects are configured to provide access to a hardware device of the information handling system, the hardware device including a camera and/or a microphone.
12. The method of claim 7, wherein determining whether the call should be allowed further comprises querying a process associated with the app to determine an access control list associated with the app.
13. An article of manufacture comprising a non-transitory, computer-readable medium having computer-executable code thereon that is executable by a processor of an information handling system for: providing access to one or more objects via a plurality of application programming interface (API) endpoints; receiving a call to a particular API endpoint from an app; and determining, based on a security identifier (SID) of the app, whether the call should be allowed; wherein the SID of the app is based on one or more custom capabilities defined in a manifest of the app.
14. The article of claim 13, wherein the app is a Universal Windows Programming (UWP) app.
15. The article of claim 13, wherein the app executes on the information handling system.
16. The article of claim 13, wherein the object is a Win32 service.
17. The article of claim 13, wherein the one or more objects are configured to provide access to a hardware device of the information handling system, the hardware device including a camera and/or a microphone.
18. The article of claim 13, wherein determining whether the call should be allowed further comprises querying a process associated with the app to determine an access control list associated with the app.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0018] A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
[0019]
[0020]
[0021]
DETAILED DESCRIPTION
[0022] Preferred embodiments and their advantages are best understood by reference to
[0023] For purposes of this disclosure, when two or more elements are referred to as “coupled” to one another, such term indicates that such two or more elements are in electronic communication or mechanical communication, as applicable, whether connected directly or indirectly, with or without intervening elements.
[0024] When two or more elements are referred to as “coupleable” to one another, such term indicates that they are capable of being coupled together.
[0025] For the purposes of this disclosure, the term “computer-readable medium” (e.g., transitory or non-transitory computer-readable medium) may include any instrumentality or aggregation of instrumentalities that may retain data and/or instructions for a period of time. Computer-readable media may include, without limitation, storage media such as a direct access storage device (e.g., a hard disk drive or floppy disk), a sequential access storage device (e.g., a tape disk drive), compact disk, CD-ROM, DVD, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and/or flash memory; communications media such as wires, optical fibers, microwaves, radio waves, and other electromagnetic and/or optical carriers; and/or any combination of the foregoing.
[0026] For the purposes of this disclosure, the term “information handling resource” may broadly refer to any component system, device, or apparatus of an information handling system, including without limitation processors, service processors, basic input/output systems, buses, memories, I/O devices and/or interfaces, storage resources, network interfaces, motherboards, and/or any other components and/or elements of an information handling system.
[0027]
[0028] Processor 103 may include any system, device, or apparatus configured to interpret and/or execute program instructions and/or process data, and may include, without limitation, a microprocessor, microcontroller, digital signal processor (DSP), application specific integrated circuit (ASIC), or any other digital or analog circuitry configured to interpret and/or execute program instructions and/or process data. In some embodiments, processor 103 may interpret and/or execute program instructions and/or process data stored in memory 104 and/or another component of information handling system 102.
[0029] Memory 104 may be communicatively coupled to processor 103 and may include any system, device, or apparatus configured to retain program instructions and/or data for a period of time (e.g., computer-readable media). Memory 104 may include RAM, EEPROM, a PCMCIA card, flash memory, magnetic storage, opto-magnetic storage, or any suitable selection and/or array of volatile and/or non-volatile memory that retains data after power to information handling system 102 is turned off.
[0030] As shown in
[0031] Network interface 108 may comprise one or more suitable systems, apparatuses, or devices operable to serve as an interface between information handling system 102 and one or more other information handling systems via an in-band network. Network interface 108 may enable information handling system 102 to communicate using any suitable transmission protocol and/or standard. In these and other embodiments, network interface 108 may comprise a network interface card, or “NIC.” In these and other embodiments, network interface 108 may be enabled as a local area network (LAN)-on-motherboard (LOM) card.
[0032] As discussed above, difficulties exist in controlling access to service endpoints by UWP apps.
[0033] Various UWP apps 202 need some level of access to resource 204. Apps A and B are not fully trusted, and so even though they only need limited access, they are denied access. App C is fully trusted and requests full access, which is granted.
[0034] At a high level, embodiments of this disclosure may operate by generating a SID for an app, and the RPC service may determine based on that SID what permissions the app should be granted. The SID may be the same for all instances of the app, and it may be generated based on the custom capability/capabilities defined for that app. In general, custom capabilities may be created, cryptographically signed, and added to the app's manifest via the use of a signed custom capability descriptor (SCCD) file. A SID may then be generated by the OS that is based on the custom capabilities in the app's manifest.
[0035] Embodiments of this disclosure may allow for a mapping between API endpoints and SIDs. A service may thus implement permission functionality based on the app's SID. For example, a service might grant permissions X and Z to a particular SID, permissions Y and Z to a different SID, etc. This is in contrast to the current situation in which, once an app has been granted access to a particular service, it necessarily has access to all functionality of that service.
[0036] In general, all Windows objects (e.g., files, Named Pipes, RPCs, etc.) may have ACLs associated with them. If an object has the UWP_CC_SID (UWP Custom Capability Security Identifier) in the ACL list, then this can be leveraged to allow or restrict access to and from those objects. For example, a UWP process may connect to a Win32 service via a Hardware Support App RPC (HSA-RPC) interface. The HSA-RPC is an OS-provided method to communicate between a pure UWP process and a Win32 process (e.g., a Win32 Windows Service). This technique may be used to access hardware resources such as cameras, microphones, etc. in some embodiments.
[0037] On an RPC connection to a Windows service, the Windows service may need to inspect the calling process's ACL list to query the list of UWP_CC_SIDs. The SIDs in the ACL list must match the ones that the Windows service may calculate using the DeriveCapabilitySidsFromName( ) API. This allows the Windows service to grant specific access to respective RPC endpoint APIs based on a predefined authorization mapping of APIs to SIDs.
[0038] In particular, the HSA-RPC Server may apply the UWP_CC_SIDs as per OS requirements. A mapping table of UWP_CC_SIDs to RPC APIs may be created based on authorization levels, which may be tuned based on a risk analysis of the feature requirements. On RPC API calls, the service may query the calling process's ACL with SIDs to verify if the API being invoked is mapped to a SID that is listed in the queried list from the UWP process. If not, then the API invocation may be rejected.
[0039] Turning now to
[0040] At step 302, the OS may take various actions when the UWP app starts up. The OS may load (e.g., from a local disk) custom capabilities for the app from the app's UWP manifest. The OS may then convert the custom capability into a SID and add the UWP SID to the process's ACL. App startup may then continue.
[0041] Meanwhile, the Windows service (RPC server) may be initialized as well. A configuration file may specify a mapping of APIs to authorized SIDs, and this may be loaded (e.g., from a local disk). The RPC server may derive an ACL from the name of the UWP app and apply all authorized UWP SIDs to the RPC endpoints. The RPC server may then continue startup.
[0042] When the app attempts to interact with the RPC server by calling an RPC API at step 306, the server may query the client's process ID (PID) at step 308. The RPC server may open the calling client process at step 310 and query its ACL at step 312. If the API being invoked maps to an authorized SID at step 314, then the call may be allowed at step 316. If not, the call may fail. The RPC server may then respond successfully to the UWP app at step 318.
[0043] One of ordinary skill in the art with the benefit of this disclosure will understand that the preferred initialization point for the method depicted in
[0044] Although various possible advantages with respect to embodiments of this disclosure have been described, one of ordinary skill in the art with the benefit of this disclosure will understand that in any particular embodiment, not all of such advantages may be applicable. In any particular embodiment, some, all, or even none of the listed advantages may apply.
[0045] This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the exemplary embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the exemplary embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.
[0046] Unless otherwise specifically noted, articles depicted in the drawings are not necessarily drawn to scale. However, in some embodiments, articles depicted in the drawings may be to scale.
[0047] Further, reciting in the appended claims that a structure is “configured to” or “operable to” perform one or more tasks is expressly intended not to invoke 35 U.S.C. § 112(f) for that claim element. Accordingly, none of the claims in this application as filed are intended to be interpreted as having means-plus-function elements. Should Applicant wish to invoke § 112(f) during prosecution, Applicant will recite claim elements using the “means for [performing a function]” construct.
[0048] All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present inventions have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.