# US 2019/0294760 A1 · Protecting an application via an intra-application firewall

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0294760 A1
- Document ID: US20190294760A1
- Status: Published application
- Kind: A1
- Application number: 16/436,498
- Filed: 2019-06-10
- Published: 2019-09-26
- Earliest claimed: 2016-02-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Roee Hay; David N. Kaplan; Sagi Kedmi; Omer Tripp
- Web page: https://patentgrep.com/patent/US20190294760A1

## CPC

- G06F 21/12: Protecting executable software
- G06F 21/629: {to features or functions of an application}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One or more communication interfaces of a first application may be scanned. In response to the scanning, it may be determined that at least a first component of the first application is subject to public access from any application. One or more public access features associated with the first component may be removed, wherein the first component is no longer subject to public access from any application. A first module may be added to the first application to control access to data to or from the first component via one or more security rules.

## Claims

### Claim 1

A computer-implemented method for building a secure computing device application, the method comprising:
scanning one or more communication interfaces of a first application;
determining, in response to the scanning, that at least a first component of the first application is subject to public access from any application;
removing one or more public access features associated with the first component, wherein the first component is no longer subject to public access from any application; and
adding, to the first application, a first module to control access to data to or from the first component via one or more security rules, wherein the scanning, the determining, the removing, and the adding are performed by a first computing device at compile time.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first application is executed on a mobile device and the first application receives a first invocation message from a second application executing on the mobile device, the first invocation message requesting to write a first set of data to the first component, the first module causes the first application to:
obtain a first set of details associated with the write;
compare the first set of details with the one or more security rules to determine whether the write may occur; and
restrict, based on at least the one or more security rules, the first invocation message by blocking the write of the first set of data to the first component.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first module causes the first application to further determine that the first invocation message from the second application is associated with an unauthorized injection attack, wherein the restricting is further based on the determining.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first application includes a list of particular applications that are allowed to call the first application, and wherein a first rule of the one or more security rules is based on the list of particular applications that are allowed to call the first application.

### Claim 5 (depends on 1)

The method of claim 1, wherein a first rule of the one or more security rules permits a first set of data to be injected to the first component, the one or more security rules including a second rule to block a second set of data to be injected to the first component.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first application is managed by an Android operating system.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more security rules includes a first rule to permit a second application to read the data from the first component, the one or more security rules including a second rule to block the second application from writing any of the data to the first component.

### Claim 8

A system for building a secure computing device application, the system comprising:
a computing device having a processor; and
a computer readable storage medium having program instructions embodied therewith, the program instructions executable by the processor to cause the system to:
scan one or more communication interfaces of a first application;
determine, in response to the scanning, that at least a first component of the first application is subject to public access from any application;
remove one or more public access features associated with the first component, wherein the first component is no longer subject to public access from any application; and
add, to the first application, a first module to control access to data to or from the first component via one or more security rules.

### Claim 9 (depends on 8)

The system of claim 8, wherein the first application is executed on a mobile device and the first application receives a first invocation message from a second application executing on the mobile device, the first invocation message requesting to read a first set of data from the first component, the first module causes the first application to:
obtain a first set of details associated with the read;
compare the first set of details with the one or more security rules to determine whether the read may occur; and
restrict, based on at least the one or more security rules, the first invocation message by blocking the read of the first set of data from the first component.

### Claim 10 (depends on 8)

The system of claim 8, wherein a first rule of the one or more security rules permits any explicit invocations to be sent from the first application, the first rule not permitting any implicit invocations to be sent from the first application, the explicit invocations identifying a specific recipient application by name, the implicit invocations identifying a particular action to be executed without identifying a particular recipient application by name.

### Claim 11 (depends on 8)

The system of claim 8, wherein a first rule of the one or more security rules permits a first set of data to be read from the first component, the one or more security rules including a second rule to block a second set of data to be read from the first component.

### Claim 12 (depends on 8)

The system of claim 8, wherein the one or more security rules includes a first rule that only particular application types are permitted to read from the first component or write to the first component.

### Claim 13 (depends on 8)

The system of claim 8, wherein the one or more security rules includes a first rule to permit a second application to write a first set of data to the first component, the one or more security rules including a second rule to block the second application from writing a second set of data to the first component.

### Claim 14 (depends on 8)

The system of claim 8, wherein the first application includes a plurality of components, the one or more security rules includes a first rule to permit the first component to invoke a second component only after the first component invokes a third component, the plurality of components including: the first component, the second component, and the third component.

### Claim 15

A computer program product for building a secure computing device application, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code comprising computer readable program code configured for:
scanning one or more communication interfaces of a first application;
determining, in response to the scanning, that at least a first component of the first application is subject to public access from any application;
removing one or more public access features associated with the first component, wherein the first component is no longer subject to public access from any application; and
adding, to the first application, a first module to control access to data to or from the first component via one or more security rules.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the first application is executed on a mobile device and the first application receives a first invocation message from a second application, the first invocation message requesting to write a first set of data to the first component, the first module causes the first application to:
obtain a first set of details associated with the write;
compare the first set of details with the one or more security rules to determine whether the write may occur; and
restrict, based on at least the one or more security rules, the first invocation message by blocking the write of the first set of data to the first component.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein the first application includes a list of particular applications that are allowed to call the first application only at a particular time of day or night, and wherein a first rule of the one or more security rules is based on the list of particular applications that are allowed to call the first application only at a particular time of day or night.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the first application includes a second component, the one or more security rules including a first rule that permits a write to the first component, the first rule not permitting a write to the second component.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the one or more security rules includes a first rule that only a first set of data may be read from the first component, the security rules including a second rule that a second set of data may not be read from the first component.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein a first rule of the one or more security rules permits any explicit invocations to be sent from the first application, the first rule not permitting any implicit invocations to be sent from the first application, the explicit invocations identifying a specific recipient application by name, the implicit invocations identifying a particular action to be executed without identifying a particular recipient application by name.
