Commit 2cccc5c
feat: debugger detection added
* add DebuggerDetection.swift
* add DebuggerDetection to ThreatDetectionCenter
* add debugger detection view to SecurityToolkitExample
* add documentation for isDebuggerAttached
* fix typo: isDebuggerAttached -> isDebuggerDetected
* Comment made even more clear
* hasTracerFlagSet() additionally made private
* No explicit Darwin import needed and therefore rmd
no explicit Darwin import needed and therefore removed
* Use of optional bool for isDebuggerDetected return
Use of optional bool for public function isDebuggerDetected.
This decision is the result of a joint discussion that took place in the associated PR #10 :
#10
Motivation:
No exception should be thrown.
It should be communicated that something went wrong in the decision-making process and that no clear statement can be made.
Decision:
We now return nil in an unclear case.
nil: The detection process did not produce a definitive result. This could happen due to system limitations, lack of required permissions, or other undefined conditions.1 parent 8dc8ac8 commit 2cccc5c
File tree
4 files changed
+52
-0
lines changed- SecurityToolkitExample/SecurityToolkitExample
- Resources/en.lproj
- Sources
- Sources
4 files changed
+52
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
17 | 32 | | |
18 | 33 | | |
19 | 34 | | |
| |||
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| 40 | + | |
25 | 41 | | |
26 | 42 | | |
27 | 43 | | |
| |||
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
43 | 63 | | |
44 | 64 | | |
45 | 65 | | |
| |||
0 commit comments