Skip to content

More accurate MSTG-STORAGE-11 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions rules/storage/mstg-storage-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ rules:
- xml
metadata:
authors:
- Riccardo Cardelli @gand3lf (IMQ Minded Security)
- Sparrrgh
owasp-mobile: M1
category: security
area: storage
verification-level:
- L2
references:
- https://github.com/OWASP/owasp-mastg/blob/v1.5.0/Document/0x05d-Testing-Data-Storage.md#testing-the-device-access-security-policy-mstg-storage-11
message: The application allows to use Android versions earlier than 23.
message: The application does not implement a Device-Access-Security policy.
patterns:
- pattern: <uses-sdk android:minSdkVersion="$X" />
- metavariable-comparison:
comparison: int($X)<23
- pattern-regex: |
(?s)(.*)
- pattern-not-regex: (<action\s+android:name="android\.app\.action\.DEVICE_ADMIN_ENABLED"\/>)
paths:
include:
- "**/AndroidManifest.xml"