Skip to content

Commit f37910b

Browse files
authored
Merge pull request #1 from EXXETA/develop
Release 1.0.1
2 parents 526b896 + 027985a commit f37910b

21 files changed

+947
-58
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
.idea/
5+
.DS_Store
6+
/build
7+
/captures
8+
.externalNativeBuild
9+
.cxx
10+
local.properties
11+
secring.gpg

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. **Android Version**: The version of iOS you are using.
33+
4. **Android Toolkit Version**: The version of Android Toolkit (Android Studio)
34+
you are using.
35+
5. **Steps to Reproduce**: Detailed steps on how to reproduce the bug.
36+
6. **Expected Result**: What you expected to happen.
37+
7. **Actual Result**: What actually happened. Include logs, screenshots, or any
38+
other relevant information.
39+
40+
### Feature Requests
41+
42+
When requesting a new feature, please include the following information:
43+
44+
1. **Title**: A brief, descriptive title for the feature request.
45+
2. **Request Statement**: Describe the problem that you believe the project
46+
could solve but currently doesn't.
47+
3. **Solution Brainstorm**: Share your ideas on how the problem could be solved.
48+
If you don't have a specific solution in mind, that's okay too!
49+
50+
> [!TIP]
51+
> Remember, the more information you provide, the easier it is for us to
52+
> understand and address the issue. Thank you for your contributions!
53+
> Please refrain from commenting on old, closed tickets. If an old issue seems
54+
> related but doesn't fully address your problem, it's best to open a new ticket
55+
> and reference the old one instead.
56+
57+
## Development
58+
59+
This project contains a private code, not available for public reading or
60+
editing. Please unterstand this measurement to prevent security risks.
61+
Developing new features or fixing bugs can be done in both private and public
62+
parts of this project. You are welcome to participate in public part!
63+
64+
### Setup
65+
66+
Please use the latest Android Studio Version. Use the provided example project
67+
to test 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.

README.md

Lines changed: 68 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,103 @@
1-
# Android Security Framework
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:
1015

11-
## Add your files
16+
- [x] Jailbreak or Root Detection
17+
- [x] Hooks Detection
18+
- [x] Simulator Detection
1219

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:
20+
You can see them in action with the [Example App](./app)
21+
we've provided
1522

16-
```
17-
cd existing_repo
18-
git remote add origin https://gitlabci.exxeta.info/mobile-security/android/android-security-framework.git
19-
git branch -M main
20-
git push -uf origin main
21-
```
23+
## Installation
24+
25+
You can use the Mobile Security Toolkit in your project by importing it from
26+
Maven Central
2227

23-
## Integrate with your tools
28+
### Maven Central
2429

25-
- [ ] [Set up project integrations](https://gitlabci.exxeta.info/mobile-security/android/android-security-framework/-/settings/integrations)
30+
```
31+
dependencies {
32+
implementation 'com.exxeta:security-toolkit:1.0.0'
33+
}
34+
```
2635

27-
## Collaborate with your team
36+
## Usage
2837

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)
38+
### Variable API
3439

35-
## Test and Deploy
40+
Use the gettable variables to get current status of the device:
3641

37-
Use the built-in continuous integration in GitLab.
42+
- `Boolean get ThreatDetectionCenter.areRootPrivelegesDetected`
43+
- `Boolean get ThreatDetectionCenter.areHooksDetected`
44+
- `Boolean get ThreatDetectionCenter.isSimulatorDetected`
3845

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)
46+
### Async Stream API
4447

45-
***
48+
Use Async Stream API to get detected threats asynchronously:
4649

47-
# Editing this README
50+
```kotlin
51+
// Create state
52+
val reportedThreats = remember {
53+
mutableStateListOf<ThreatDetectionCenter.Threat>()
54+
}
4855

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.
56+
// Collect stream
57+
LaunchedEffect(Unit) {
58+
detectionCenter.threats.collect {
59+
reportedThreats.add(it)
60+
}
61+
}
5062

51-
## Suggestions for a good README
63+
// Read the threats:
64+
reportedThreats.contains(ThreatDetectionCenter.Threat.ROOT_PRIVILEGES)
65+
reportedThreats.contains(ThreatDetectionCenter.Threat.HOOKS)
66+
reportedThreats.contains(ThreatDetectionCenter.Threat.SIMULATOR)
5267

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.
68+
```
5469

55-
## Name
56-
Choose a self-explaining name for your project.
70+
## Roadmap
5771

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.
72+
Next features to be implemented:
6073

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.
74+
- [ ] App Signature Check
75+
- [ ] Debugger Detection
76+
- [ ] Device Passcode Check
77+
- [ ] Integrity Check
78+
- [ ] Hardware Security Check
6379

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.
80+
## Contributing
6681

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.
82+
See [CONTRIBUTING](./CONTRIBUTING.md)
6983

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.
84+
## Authors and acknowledgment
7285

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.
86+
Authors:
7587

76-
## Roadmap
77-
If you have ideas for releases in the future, it is a good idea to list them in the README.
88+
- Yessine Choura
89+
- Denis Dobanda
7890

79-
## Contributing
80-
State if you are open to contributions and what your requirements are for accepting them.
91+
Special Thanks:
8192

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.
93+
- Sabrina Geiger
94+
- Dennis Gill
95+
- Jonas Rottmann
8396

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.
97+
Used Libraries:
8598

86-
## Authors and acknowledgment
87-
Show your appreciation to those who have contributed to the project.
99+
- [RootBeer](https://github.com/scottyab/rootbeer)
88100

89101
## License
90-
For open source projects, say how it is licensed.
91102

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.
103+
See [LICENSE](./LICENSE.md)

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
alias(libs.plugins.android.application) apply false
4+
alias(libs.plugins.jetbrains.kotlin.android) apply false
5+
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
6+
alias(libs.plugins.android.library) apply false
7+
alias(libs.plugins.detekt) apply true
8+
}
9+
10+
allprojects {
11+
version = findProperty("VERSION_NAME").toString()
12+
group = findProperty("GROUP").toString()
13+
}

docs/1.png

158 KB
Loading

gradle.properties

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. For more details, visit
12+
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
13+
# org.gradle.parallel=true
14+
# AndroidX package structure to make it clearer which packages are bundled with the
15+
# Android operating system, and which are packaged with your app's APK
16+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
17+
android.useAndroidX=true
18+
# Kotlin code style for this project: "official" or "obsolete":
19+
kotlin.code.style=official
20+
# Enables namespacing of each library's R class so that its R class includes only the
21+
# resources declared in the library itself and none from the library's dependencies,
22+
# thereby reducing the size of the R class for that library
23+
android.nonTransitiveRClass=true
24+
# Maven Central properties
25+
VERSION_NAME=1.0.1
26+
VERSION_CODE=2
27+
GROUP=com.exxeta
28+
POM_DESCRIPTION=An Android Mobile Security Toolkit providing easy API to check device status (Root, Hooks, Simulator, etc)
29+
POM_URL=https://github.com/EXXETA/Android-Security-Toolkit.git
30+
POM_SCM_URL=https://github.com/EXXETA/Android-Security-Toolkit.git
31+
POM_SCM_CONNECTION=scm:[email protected]:EXXETA/Android-Security-Toolkit.git
32+
POM_SCM_DEV_CONNECTION=scm:[email protected]:EXXETA/Android-Security-Toolkit.git
33+
POM_LICENCE_NAME=MIT
34+
POM_LICENCE_URL=https://github.com/EXXETA/Android-Security-Toolkit/blob/main/LICENSE
35+
POM_LICENCE_DIST=repo
36+
POM_DEVELOPER_ID=exxeta
37+
POM_DEVELOPER_NAME=Exxeta AG
38+
RELEASE_REPOSITORY_URL=https://jitpack.io
39+
SNAPSHOT_REPOSITORY_URL=https://jitpack.io

gradle/libs.versions.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[versions]
2+
android-compile-sdk = "35"
3+
android-min-sdk = "28"
4+
android-build-tools = "35.0.0"
5+
android-ndk = "27.0.12077973"
6+
agp = "8.2.0"
7+
kotlin = "1.9.0"
8+
jetbrainsKotlinJvm = "1.9.0"
9+
kotlinxCoroutinesCore = "1.8.1"
10+
rootbeerLib = "0.1.0"
11+
detekt = "1.23.3"
12+
13+
[libraries]
14+
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
15+
rootbeer-lib = { module = "com.scottyab:rootbeer-lib", version.ref = "rootbeerLib" }
16+
17+
[plugins]
18+
android-application = { id = "com.android.application", version.ref = "agp" }
19+
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
20+
jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "jetbrainsKotlinJvm" }
21+
android-library = { id = "com.android.library", version.ref = "agp" }
22+
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }

gradle/wrapper/gradle-wrapper.jar

57.8 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue Jul 30 14:14:30 CEST 2024
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)