Skip to content

Commit 04de692

Browse files
committed
Version 1.0.0
1 parent d4d50c6 commit 04de692

File tree

44 files changed

+3127
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3127
-66
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1540"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "42B973F52C57C4380040D9BC"
19+
BuildableName = "SecurityToolkitExample.app"
20+
BlueprintName = "SecurityToolkitExample"
21+
ReferencedContainer = "container:SecurityToolkitExample/SecurityToolkitExample.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "42B973F52C57C4380040D9BC"
48+
BuildableName = "SecurityToolkitExample.app"
49+
BlueprintName = "SecurityToolkitExample"
50+
ReferencedContainer = "container:SecurityToolkitExample/SecurityToolkitExample.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "42B973F52C57C4380040D9BC"
65+
BuildableName = "SecurityToolkitExample.app"
66+
BlueprintName = "SecurityToolkitExample"
67+
ReferencedContainer = "container:SecurityToolkitExample/SecurityToolkitExample.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>

CONTRIBUTING.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Contributing Guidelines
2+
3+
First of all, thank you for considering contributing to the project! Open source
4+
projects like this one grow and thrive thanks to the contributions from people
5+
like you. Whether you're fixing bugs, adding new features, improving the
6+
documentation, or even reporting issues, every contribution is valuable and
7+
appreciated.
8+
9+
This document provides some guidelines to help ensure that your contributions
10+
are as effective as possible. Please take a moment to read through these
11+
guidelines before submitting your contribution.
12+
13+
Remember, everyone contributing to this project is expected to follow our code
14+
of conduct. This helps ensure a positive and inclusive environment for all
15+
contributors.
16+
17+
Thank you again for your contributions, and we look forward to seeing what you
18+
will bring to the project!
19+
20+
## Creating Good Tickets
21+
22+
> [!TIP]
23+
> Before creating a new issue, it's a good practice to search for open tickets
24+
and pull requests to avoid duplicates.
25+
26+
### Bug Reports
27+
28+
When reporting a bug, please include the following information:
29+
30+
1. **Title**: A brief, descriptive title for the bug.
31+
2. **Version**: The version of the package you are using.
32+
3. **iOS Version**: The version of iOS you are using.
33+
4. **Xcode Version**: The version of Xcode you are using.
34+
5. **Steps to Reproduce**: Detailed steps on how to reproduce the bug.
35+
6. **Expected Result**: What you expected to happen.
36+
7. **Actual Result**: What actually happened. Include logs, screenshots, or any
37+
other relevant information.
38+
39+
### Feature Requests
40+
41+
When requesting a new feature, please include the following information:
42+
43+
1. **Title**: A brief, descriptive title for the feature request.
44+
2. **Request Statement**: Describe the problem that you believe the project
45+
could solve but currently doesn't.
46+
3. **Solution Brainstorm**: Share your ideas on how the problem could be solved.
47+
If you don't have a specific solution in mind, that's okay too!
48+
49+
> [!TIP]
50+
> Remember, the more information you provide, the easier it is for us to
51+
understand and address the issue. Thank you for your contributions!
52+
> Please refrain from commenting on old, closed tickets. If an old issue seems
53+
related but doesn't fully address your problem, it's best to open a new ticket
54+
and reference the old one instead.
55+
56+
## Development
57+
58+
This project contains a private code, not available for public reading or
59+
editing. Please unterstand this measurement to prevent security risks.
60+
Developing new features or fixing bugs can be done in both private and public
61+
parts of this project. You are welcome to participate in public part!
62+
63+
64+
### Setup
65+
66+
Please use the latest Xcode Version. Use the provided example project to test
67+
or bug report any existing or new features.
68+
69+
## Submitting changes
70+
71+
Before submitting your changes as a pull request, please make sure to format
72+
and analyze your code.

LICENSE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2024 Exxeta
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the “Software”), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// swift-tools-version: 5.10
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "SecurityToolkit",
7+
platforms: [
8+
.iOS(.v12),
9+
],
10+
products: [
11+
.library(
12+
name: "SecurityToolkit",
13+
targets: ["SecurityToolkit"]
14+
),
15+
],
16+
targets: [
17+
.binaryTarget(
18+
name: "SecurityToolkit",
19+
path: "SecurityToolkit.xcframework"
20+
)
21+
]
22+
)

README.md

Lines changed: 46 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,73 @@
1-
# Mobile Security Suite
1+
# Mobile Security Toolkit
22

3+
<img src="./docs/1.png" width=300 alt="screenshot"/>
34

5+
In a world where mobile devices hold vast amounts of personal and
6+
business-critical data, security is no longer optional — it's essential.
47

5-
## Getting started
8+
Security Suite is an open-source project designed to work on mobile security by
9+
providing a developer-friendly, all-in-one repository for developers and
10+
security experts.
611

7-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
12+
## Features
813

9-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
14+
Already implemented Features are:
15+
- [x] Jailbreak or Root Detection
16+
- [x] Hooks Detection
17+
- [x] Simulator Detection
1018

11-
## Add your files
19+
You can see them in action with the [Example App](./SecurityToolkitExample) we've provided
1220

13-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15-
16-
```
17-
cd existing_repo
18-
git remote add origin https://gitlabci.exxeta.info/mobile-security/ios/mobile-security-suite.git
19-
git branch -M main
20-
git push -uf origin main
21-
```
22-
23-
## Integrate with your tools
24-
25-
- [ ] [Set up project integrations](https://gitlabci.exxeta.info/mobile-security/ios/mobile-security-suite/-/settings/integrations)
26-
27-
## Collaborate with your team
28-
29-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34-
35-
## Test and Deploy
36-
37-
Use the built-in continuous integration in GitLab.
38-
39-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44-
45-
***
21+
## Installation
4622

47-
# Editing this README
23+
You can use the Mobile Security Toolkit in your project by importing it with
24+
Swift Package Manager
4825

49-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
26+
### SPM
5027

51-
## Suggestions for a good README
28+
`.package(url: "https://github.com/EXXETA/iOS-Security-Toolkit.git", from:
29+
"1.0.0")`
5230

53-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
31+
## Usage
5432

55-
## Name
56-
Choose a self-explaining name for your project.
33+
### Variable API
5734

58-
## Description
59-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
35+
Use the gettable variables to get current status of the device:
6036

61-
## Badges
62-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
37+
- `ThreatDetectionCenter.areRootPrivilegesDetected: Bool`
38+
- `ThreatDetectionCenter.areHooksDetected: Bool`
39+
- `ThreatDetectionCenter.isSimulatorDetected: Bool`
6340

64-
## Visuals
65-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
41+
### Async Stream API
6642

67-
## Installation
68-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69-
70-
## Usage
71-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
43+
Use Async Stream API to get detected threats asynchronously:
7244

73-
## Support
74-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
45+
- `ThreatDetectionCenter.threats: AsyncStream<Threat>`
7546

7647
## Roadmap
77-
If you have ideas for releases in the future, it is a good idea to list them in the README.
7848

79-
## Contributing
80-
State if you are open to contributions and what your requirements are for accepting them.
49+
Next features to be implemented:
50+
- [ ] App Signature Check
51+
- [ ] Debugger Detection
52+
- [ ] Device Passcode Check
53+
- [ ] Integrity Check
54+
- [ ] Hardware Security Check
8155

82-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
56+
## Contributing
8357

84-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
58+
See [CONTRIBUTING](./CONTRIBUTING.md)
8559

8660
## Authors and acknowledgment
87-
Show your appreciation to those who have contributed to the project.
61+
62+
Authors:
63+
- Yessine Choura
64+
- Denis Dobanda
65+
66+
Special Thanks:
67+
- Sabrina Geiger
68+
- Dennis Gill
69+
- Jonas Rottmann
8870

8971
## License
90-
For open source projects, say how it is licensed.
9172

92-
## Project status
93-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
73+
See [LICENSE](./LICENSE.md)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>BinaryPath</key>
9+
<string>SecurityToolkit.framework/SecurityToolkit</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64</string>
12+
<key>LibraryPath</key>
13+
<string>SecurityToolkit.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
</array>
18+
<key>SupportedPlatform</key>
19+
<string>ios</string>
20+
</dict>
21+
<dict>
22+
<key>BinaryPath</key>
23+
<string>SecurityToolkit.framework/SecurityToolkit</string>
24+
<key>LibraryIdentifier</key>
25+
<string>ios-arm64_x86_64-simulator</string>
26+
<key>LibraryPath</key>
27+
<string>SecurityToolkit.framework</string>
28+
<key>SupportedArchitectures</key>
29+
<array>
30+
<string>arm64</string>
31+
<string>x86_64</string>
32+
</array>
33+
<key>SupportedPlatform</key>
34+
<string>ios</string>
35+
<key>SupportedPlatformVariant</key>
36+
<string>simulator</string>
37+
</dict>
38+
</array>
39+
<key>CFBundlePackageType</key>
40+
<string>XFWK</string>
41+
<key>XCFrameworkFormatVersion</key>
42+
<string>1.0</string>
43+
</dict>
44+
</plist>
Binary file not shown.

0 commit comments

Comments
 (0)