From ffef54a02cbf054ebab8ea72d504f2653e697196 Mon Sep 17 00:00:00 2001 From: Abir Majumdar Date: Fri, 15 Oct 2021 08:37:05 -0400 Subject: [PATCH 1/4] Adding MobSF starter workflow --- code-scanning/mobsf.yml | 36 ++++++ .../properties/mobsf.properties.json | 14 +++ icons/mobsf.svg | 114 ++++++++++++++++++ 3 files changed, 164 insertions(+) create mode 100644 code-scanning/mobsf.yml create mode 100644 code-scanning/properties/mobsf.properties.json create mode 100644 icons/mobsf.svg diff --git a/code-scanning/mobsf.yml b/code-scanning/mobsf.yml new file mode 100644 index 0000000..1bd737b --- /dev/null +++ b/code-scanning/mobsf.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: MobSF + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + workflow_dispatch: + +jobs: + mobile-security: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: mobsfscan + uses: MobSF/mobsfscan@main + with: + args: . --sarif --output results.sarif || true + + - name: Upload mobsfscan report + uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: results.sarif \ No newline at end of file diff --git a/code-scanning/properties/mobsf.properties.json b/code-scanning/properties/mobsf.properties.json new file mode 100644 index 0000000..6bca14e --- /dev/null +++ b/code-scanning/properties/mobsf.properties.json @@ -0,0 +1,14 @@ +{ + "name": "mobsf", + "creator": "mobsf", + "description": "Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.", + "iconName": "mobsf", + "categories": [ + "Code Scanning", + "Java", + "Swift", + "Objective-C", + "Kotlin", + "Mobile" + ] +} \ No newline at end of file diff --git a/icons/mobsf.svg b/icons/mobsf.svg new file mode 100644 index 0000000..46dd154 --- /dev/null +++ b/icons/mobsf.svg @@ -0,0 +1,114 @@ + + + + From 6e44c89176192da113b52f836a4c538a30ba2656 Mon Sep 17 00:00:00 2001 From: Abir Majumdar Date: Fri, 15 Oct 2021 08:55:34 -0400 Subject: [PATCH 2/4] Adhering to pull request guidelines --- code-scanning/mobsf.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code-scanning/mobsf.yml b/code-scanning/mobsf.yml index 1bd737b..1da2611 100644 --- a/code-scanning/mobsf.yml +++ b/code-scanning/mobsf.yml @@ -7,11 +7,11 @@ name: MobSF on: push: - branches: [ master ] + branches: [ $default-branch, $protected-branches ] pull_request: - branches: [ master ] - - workflow_dispatch: + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly jobs: mobile-security: @@ -25,7 +25,7 @@ jobs: with: python-version: 3.8 - - name: mobsfscan + - name: Run mobsfscan uses: MobSF/mobsfscan@main with: args: . --sarif --output results.sarif || true From 09b078fd769d655b44b5d6ce530d085d6b93cf13 Mon Sep 17 00:00:00 2001 From: Abir Majumdar <83433840+abirismyname@users.noreply.github.com> Date: Mon, 25 Oct 2021 21:40:31 -0400 Subject: [PATCH 3/4] Update code-scanning/mobsf.yml Co-authored-by: Nick Fyson --- code-scanning/mobsf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/mobsf.yml b/code-scanning/mobsf.yml index 1da2611..689a1a0 100644 --- a/code-scanning/mobsf.yml +++ b/code-scanning/mobsf.yml @@ -26,7 +26,7 @@ jobs: python-version: 3.8 - name: Run mobsfscan - uses: MobSF/mobsfscan@main + uses: MobSF/mobsfscan@a60d10a83af68e23e0b30611c6515da604f06f65 with: args: . --sarif --output results.sarif || true From ed8c87df74c93fb5c021586db8653c55e7d99e00 Mon Sep 17 00:00:00 2001 From: Abir Majumdar <83433840+abirismyname@users.noreply.github.com> Date: Mon, 25 Oct 2021 21:40:48 -0400 Subject: [PATCH 4/4] Update code-scanning/properties/mobsf.properties.json Co-authored-by: Nick Fyson --- code-scanning/properties/mobsf.properties.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code-scanning/properties/mobsf.properties.json b/code-scanning/properties/mobsf.properties.json index 6bca14e..a6afbfa 100644 --- a/code-scanning/properties/mobsf.properties.json +++ b/code-scanning/properties/mobsf.properties.json @@ -8,7 +8,6 @@ "Java", "Swift", "Objective-C", - "Kotlin", - "Mobile" + "Kotlin" ] } \ No newline at end of file