forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
191 changed files
with
4,250 additions
and
926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ organization for the purposes of conducting machine learning and deep neural | |
networks research. The system is general enough to be applicable in a wide | ||
variety of other domains, as well. | ||
|
||
Keep up to date with release announcements and security updates by | ||
subscribing to | ||
[[email protected]](https://groups.google.com/a/tensorflow.org/forum/#!forum/announce). | ||
|
||
## Installation | ||
*See [Installing TensorFlow](https://www.tensorflow.org/get_started/os_setup.html) for instructions on how to install our release binaries or how to build from source.* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ report vulnerabilities in TensorFlow. | |
|
||
## TensorFlow models are programs | ||
|
||
TensorFlow's runtime system interprets and executes programs. What machine | ||
TensorFlow's runtime system interprets and executes programs. What machine | ||
learning practitioners term | ||
[**models**](https://developers.google.com/machine-learning/glossary/#model) are | ||
expressed as programs that TensorFlow executes. TensorFlow programs are encoded | ||
|
@@ -28,12 +28,12 @@ data you supply to TensorFlow to train a model, or to use a model to run | |
inference on the data. | ||
|
||
**TensorFlow models are programs, and need to be treated as such from a security | ||
perspective.** | ||
perspective.** | ||
|
||
## Running untrusted models | ||
|
||
As a general rule: **Always** execute untrusted models inside a sandbox (e.g., | ||
[nsjail](https://github.com/google/nsjail)). | ||
[nsjail](https://github.com/google/nsjail)). | ||
|
||
There are several ways in which a model could become untrusted. Obviously, if an | ||
untrusted party supplies TensorFlow kernels, arbitrary code may be executed. | ||
|
@@ -109,11 +109,11 @@ graphs known to the `ModelServer`. This means that an attacker may run | |
graphs using untrusted inputs as described above, but they would not be able to | ||
execute arbitrary graphs. It is possible to safely expose a `ModelServer` | ||
directly to an untrusted network, **but only if the graphs it is configured to | ||
use have been carefully audited to be safe**. | ||
use have been carefully audited to be safe**. | ||
|
||
Similar to best practices for other servers, we recommend running any | ||
`ModelServer` with appropriate privileges (i.e., using a separate user with | ||
reduced permisisons). In the spirit of defense in depth, we recommend | ||
reduced permissions). In the spirit of defense in depth, we recommend | ||
authenticating requests to any TensorFlow server connected to an untrusted | ||
network, as well as sandboxing the server to minimize the adverse effects of | ||
any breach. | ||
|
@@ -133,7 +133,7 @@ which exhibit unexpected or unwanted behaviors. The fact that TensorFlow models | |
can perform arbitrary computations means that they may read and write files, | ||
communicate via the network, produce deadlocks and infinite loops, or run out | ||
of memory. It is only when these behaviors are outside the specifications of the | ||
operations involved that such behavior is a vulnerability. | ||
operations involved that such behavior is a vulnerability. | ||
|
||
A `FileWriter` writing a file is not unexpected behavior and therefore is not a | ||
vulnerability in TensorFlow. A `MatMul` allowing arbitrary binary code execution | ||
|
@@ -168,7 +168,7 @@ below). | |
|
||
Please use a descriptive subject line for your report email. After the initial | ||
reply to your report, the security team will endeavor to keep you informed of | ||
the progress being made towards a fix and announcement. | ||
the progress being made towards a fix and announcement. | ||
|
||
If you believe that an existing (public) issue is security-related, please send | ||
an email to `[email protected]`. The email should include the issue ID and | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.