Skip to content
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"