16 Commits
master ... main

Author SHA1 Message Date
f59632a6b1 Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 45s
2026-02-18 20:00:21 +00:00
3f8f13050e Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 45s
2026-02-18 19:57:15 +00:00
0ba5f7b31e Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 46s
2026-02-18 19:39:22 +00:00
09979172dc Update .gitea/workflows/mobsf.yml
Some checks failed
MobSF Security Scan / mobsf-analysis (push) Failing after 36s
2026-02-18 19:37:03 +00:00
a45c74ffd6 Update .gitea/workflows/mobsf.yml
Some checks failed
MobSF Security Scan / mobsf-analysis (push) Failing after 10s
2026-02-18 19:30:26 +00:00
f730aed93a Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 13s
2026-02-18 19:26:16 +00:00
a5eb6b557d Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 12s
2026-02-18 19:21:37 +00:00
c022ea54ce Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 13s
2026-02-18 19:19:32 +00:00
01430414cb Update app/src/main/java/com/vinay/compose_test/MainActivity.kt
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 12s
2026-02-18 19:16:43 +00:00
d06491213c Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 13s
2026-02-18 19:12:15 +00:00
a57a1446ca Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 13s
2026-02-18 19:06:34 +00:00
9bda5e34bc Update securitytest.js
All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 11s
2026-02-18 18:58:10 +00:00
6b46ec8b45 Add securitytest.js
All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 13s
2026-02-18 18:55:32 +00:00
c960a6d56b Update .gitea/workflows/mobsf.yml
All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 13s
2026-02-18 18:48:23 +00:00
822649ac8a Update .gitea/workflows/mobsf.yml
Some checks failed
MobSF Container Scan / mobsf-scan (push) Failing after 27s
2026-02-18 18:44:47 +00:00
32f18e6f13 Add .gitea/workflows/mobsf.yml
Some checks failed
MobSF Security Scanning / mobsf-analysis (push) Failing after 37s
2026-02-18 18:32:46 +00:00
3 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
name: MobSF Security Scan
on: [push]
jobs:
mobsf-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: https://github.com/actions/checkout@v4
- name: Run MobSF Scan
run: |
# Setup environment
python3 -m venv .mobsf_venv
source .mobsf_venv/bin/activate
python3 -m pip install mobsfscan --quiet
# ---------------------------------------------------------
# ENFORCEMENT STRENGTH (Uncomment only ONE line)
# ---------------------------------------------------------
# STRENGTH: LOG ONLY (Always green build, artifact if bugs found)
mobsfscan --html --output report.html app/src/main || true
# STRENGTH: STRICT (Red build if ANY Warning/Error found)
# mobsfscan --html --output report.html app/src/main
# STRENGTH: CRITICAL ONLY (Red build only on High/Error severity)
# mobsfscan --html --output report.html --error-level ERROR app/src/main
# ---------------------------------------------------------
- name: Upload Report to Gitea
# if-no-files-found: ignore ensures NO artifact is created if scan is clean
uses: https://gitea.com/actions/upload-artifact@v3
with:
name: MobSF-Security-Report
path: report.html
if-no-files-found: ignore
# THE SETTING BELOW CONTROLS DELETION
retention-days: 7

View File

@@ -1,3 +1,8 @@
// Add these inside your MainActivity class
val google_api_key = "AIzaSyA1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6"
val s3_bucket = "http://my-private-data.s3.amazonaws.com"
package com.vinay.compose_test
import android.os.Bundle

31
securitytest.js Normal file
View File

@@ -0,0 +1,31 @@
import React from 'react';
import { Text, View } from 'react-native';
const SecurityTest = () => {
// VULNERABILITY: Hardcoded sensitive AWS Key
const AWS_SECRET = "AKIAIMNO7YBXQDWS7BAR";
const loginUser = (username, password) => {
// VULNERABILITY: Logging sensitive information to console
console.log("Attempting login for: " + username + " with password: " + password);
};
return (
<View>
<Text>MobSF Test File</Text>
</View>
);
};
export default SecurityTest;
// mobsf_test.js
// VULNERABILITY: Hardcoded Google API Key (Regex match)
const google_key = "AIzaSyA1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6";
// VULNERABILITY: Hardcoded AWS Secret (Entropy match)
const aws_secret = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY";
// VULNERABILITY: Insecure Connection
const api_url = "http://insecure-api.com/v1/login";
console.log("Keys loaded successfully");