-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Risk - Sensitive Data Stored Unencrypted in Internal Locations [d…
…ata-unencrypted-internal] Fixes #2544
- Loading branch information
1 parent
9dfa13f
commit 69290d8
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...nsitive-data-securely/data-unencrypted-internal/android-data-in-sandbox/test.md
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
platform: android | ||
title: Sensitive Data Written to Private Data Directory (Sandbox) Unencrypted. | ||
type: [dynamic, filesystem] | ||
mitigations: | ||
- android-use-keystore | ||
- android-use-androidx-security | ||
prerequisites: | ||
- identify-sensitive-data | ||
--- | ||
|
||
## Prerequisites | ||
|
||
- [Identify your sensitive data](MASTG-KNOW-0001) | ||
|
||
## Steps | ||
|
||
1. Start the device. | ||
|
||
2. Launch and use the app going through the various workflows while inputting sensitive data wherever you can. Taking note of the data you input can help identify it later using tools to search for it. | ||
|
||
3. Take a copy of the app's private data directory for offline analysis. Using tar will preserve the filesystem structure and permissions. | ||
|
||
4. Search the extracted data for items such as keys, passwords and any sensitive data inputted into the app. | ||
|
||
5. Check files for sensitive data that has been encoded with algorithms such as base64 which obscures but does not protect sensitive data. | ||
|
||
## Observation | ||
|
||
Files within the private data directory contain sensitive data. | ||
|
||
## Evaluation | ||
|
||
The test case fails if you find sensitive data in the app's private data directory which has not been encrypted with strong cryptography. This includes plaintext data as well as encoding such as base64 or obfuscation such as xoring. |
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