-
-
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
Port MASTG-TEST-0082 (by @appknox) #3097
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,24 @@ | ||||||
--- | ||||||
platform: ios | ||||||
title: Testing Whether the App is Debuggable | ||||||
id: MASTG-TEST-0x82 | ||||||
type: [static, dynamic] | ||||||
weakness: MASWE-0101 | ||||||
--- | ||||||
|
||||||
## Overview | ||||||
|
||||||
The test evaluates whether an iOS application is configured to allow debugging. If an app is debuggable, attackers can leverage debugging tools to reverse-engineer the application, analyse its runtime behaviour, and potentially compromise sensitive data or functionality. | ||||||
|
||||||
## Steps | ||||||
|
||||||
1. Run a static analysis using @MASTG-TOOL-0111 to extract entitlements from the binary to check the value of the `get-task-allow` key and is set to `true`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer to use the technique instead of specific tools in TESTS https://mas.owasp.org/MASTG/techniques/ios/MASTG-TECH-0111/ Also, let's do the evaluation (check for true, in this case) later.
Suggested change
|
||||||
2. Run a [dynamic analysis](../../../techniques/ios/MASTG-TECH-0084.md) using @MASTG-TOOL-0057. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The static analysis step should be enough. However, you still can refer to this TECH. See overview |
||||||
|
||||||
## Observation | ||||||
|
||||||
The entitlement get-task-allow is false, and anti-reverse engineering measures prevent debugger attachment attempts. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
## Evaluation | ||||||
|
||||||
The test fails as the entitlement get-task-allow is true, allowing debugger attachment. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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.