-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[MASWE-0001, MASWE-0027, MASWE-0108] MAS Risks and Tests (PREVIEW DRAFT) #2518
Merged
+1,254
−9
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
b65abc8
first draft
cpholguera 2eb330e
add mitigation
cpholguera db1b5df
update mitigations and risks
cpholguera 87693b9
fixes for Sensitive Data in Network Traffic
cpholguera 844af15
add new sample tests
cpholguera 93b3555
new structure for risks and tests
cpholguera 79c2d4d
Add content to all risk.md files and delete unused risk files
cpholguera c6c9b12
remove tests folders
cpholguera 7232276
rename mitigation files
cpholguera f12dcb7
remove mappings/owasp-masvs for all risks. It will be automatically g…
cpholguera 0fdb602
remove mappings/owasp-masvs for all risks. It will be automatically g…
cpholguera 30967a4
First draft - Risk and Test update for Android logging
sushi2k 452a1a4
fix test aliases and add missing
cpholguera 6a5af6b
Add secure random number generation and update insecure random usage …
cpholguera 8ffffd0
Merge branch 'mastg-risks-and-tests' of https://github.com/OWASP/owas…
cpholguera a5fa9c8
Remove "Modes of Introduction" section from risk.md files
cpholguera 25d9660
Update method tracing in Android techniques
cpholguera 42c6b3a
Fix method trace link in test.md
cpholguera 65348aa
Update CWE mappings in risk.md files to be a list of IDs
cpholguera f30bc9c
Update test type to be a list. Updated platform specific mitigations …
cpholguera d133445
Add prerequisites folder with 2 examples
cpholguera ca13fb0
Refactor insecure random API test case. Link to existing prerequisite…
cpholguera d93ccfd
Add content to the static analysis technique for Android apps
cpholguera 7c1fc10
Update insecure random API link and method trace links to techniques
cpholguera 4226549
Update insecure random number generator rule in MASVS-CRYPTO
cpholguera b7e5084
Update content in insecure random test examples and add SARIF. Add su…
cpholguera 086d0b9
update with example
sushi2k a638776
Merge branch 'mastg-risks-and-tests' of https://github.com/OWASP/owas…
sushi2k 40be282
Update test case
sushi2k 6c4abef
update frida-trace
sushi2k c8a0a62
add example for frida-trace
sushi2k 1263af8
updated tests according to the latest guidelines
cpholguera 80c2d88
delete empty risk files
cpholguera 03d4e96
fix for android-data-in-logs-semgrep
cpholguera ae25710
remove mstg- rules
cpholguera e9366b7
delete empty test files
cpholguera 7034415
Move the test android-data-in-traffic-capture from NETWORK-1 to PRIVA…
cpholguera ab8ecd0
update insecure network comm risk
cpholguera 9e95276
update current example risks
cpholguera 3e5a694
fix other risks metadata
cpholguera 4b03f0e
leave only 3 example risks
cpholguera 0fe2c5c
rm initial tests
cpholguera c3e48f5
add privacy risk
cpholguera 8ceb0b6
remove initial examples
cpholguera 186d731
update privacy example
cpholguera 9b2e9cd
update privacy example
cpholguera 0a04b97
update example and technique
cpholguera 689d06d
Merge branch 'master' of https://github.com/OWASP/owasp-mastg into ma…
cpholguera 6d80dc7
Update android-data-in-logs-frida/example-1
cpholguera 374b9ab
rm -q option
cpholguera 05f2112
Merge branch 'master' of https://github.com/OWASP/owasp-mastg into ma…
cpholguera 96dd1c5
add test overviews
cpholguera 8a239b3
Update .vscode/settings.json to disable GitHub code scanning
cpholguera 74ec6e8
Remove example-2 for logging APIs
cpholguera d62ff0a
fix 400 link
cpholguera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update privacy example
commit 186d731f93340a7fac9eea1c3847346e70505a4a
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
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
22 changes: 12 additions & 10 deletions
22
...tive-data-in-network-traffic/android-data-in-traffic-capture/example-1/sensitive_data.log
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 |
---|---|---|
@@ -1,28 +1,30 @@ | ||
REQUEST URL: https://httpbin.org/post | ||
Request Headers: Headers[(b'Content-Type', b'application/x-www-form-urlencoded'), (b'User-Agent', b'Dalvik/2.1.0 (Linux; U; Android 13; sdk_gphone64_arm64 Build/TE1A.220922.021)'), (b'Host', b'httpbin.org'), (b'Connection', b'Keep-Alive'), (b'Accept-Encoding', b'gzip'), (b'Content-Length', b'42')] | ||
Request Body: username=sampleUser&password=dummyPassword | ||
Request Headers: Headers[(b'Content-Type', b'application/x-www-form-urlencoded'), (b'User-Agent', b'Dalvik/2.1.0 (Linux; U; Android 13; sdk_gphone64_arm64 Build/TE1A.220922.021)'), (b'Host', b'httpbin.org'), (b'Connection', b'Keep-Alive'), (b'Accept-Encoding', b'gzip'), (b'Content-Length', b'188')] | ||
Request Body: precise_location_latitude=37.7749&precise_location_longitude=-122.4194&name=John+Doe&email_address=john.doe%40example.com&phone_number=%2B11234567890&credit_card_number=1234+5678+9012+3456 | ||
|
||
RESPONSE URL: https://httpbin.org/post | ||
Response Headers: Headers[(b'Date', b'Tue, 16 Jan 2024 09:08:08 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'548'), (b'Connection', b'keep-alive'), (b'Server', b'gunicorn/19.9.0'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Allow-Credentials', b'true')] | ||
Response Headers: Headers[(b'Date', b'Fri, 19 Jan 2024 10:17:44 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'735'), (b'Connection', b'keep-alive'), (b'Server', b'gunicorn/19.9.0'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Allow-Credentials', b'true')] | ||
Response Body: { | ||
"args": {}, | ||
"data": "", | ||
"files": {}, | ||
"form": { | ||
"password": "dummyPassword", | ||
"username": "sampleUser" | ||
"credit_card_number": "1234 5678 9012 3456", | ||
"email_address": "john.doe@example.com", | ||
"name": "John Doe", | ||
"phone_number": "+11234567890", | ||
"precise_location_latitude": "37.7749", | ||
"precise_location_longitude": "-122.4194" | ||
}, | ||
"headers": { | ||
"Accept-Encoding": "gzip", | ||
"Content-Length": "42", | ||
"Content-Length": "188", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"Host": "httpbin.org", | ||
"User-Agent": "Dalvik/2.1.0 (Linux; U; Android 13; sdk_gphone64_arm64 Build/TE1A.220922.021)", | ||
"X-Amzn-Trace-Id": "Root=1-65a64778-78495e9f5d742c9b0c7a75d8" | ||
"X-Amzn-Trace-Id": "Root=1-65aa4c48-45514c0e3782665063b14397" | ||
}, | ||
"json": null, | ||
"origin": "148.141.65.87", | ||
"url": "https://httpbin.org/post" | ||
} | ||
|
||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll provide a very simple skeleton app with, say, a button and placeholders to copy and paste the samples so that everyone can test the apps with the exact same configuration.