Release 1.0.0: Semgrep Kotlin/Swift migration, new rules, reporting, and reliability fixes - #121
Merged
Conversation
Add mixed-content detection for Java/Kotlin and tighten SharedPreferences world mode matching from MobSF. Co-authored-by: Cursor <cursoragent@cursor.com>
Use descriptive rule names plus security-severity, tags, help text, and defaultConfiguration so GitLab/GitHub/SonarQube show meaningful findings. Fixes #116 Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce --gitlab-sast to emit GitLab's SAST JSON directly, with CWE/OWASP/MASVS mapping and README CI examples. Fixes #115 Co-authored-by: Cursor <cursoragent@cursor.com>
Emit separate rules and issues arrays with Clean Code attributes and SECURITY impacts so imports no longer warn about the deprecated format. Fixes #114 Co-authored-by: Cursor <cursoragent@cursor.com>
print writes to stdout, not the system console like NSLog/os_log. Fixes #112 Co-authored-by: Cursor <cursoragent@cursor.com>
Require a bare key= or common secret-key names instead of any identifier ending in key (e.g. APP_VERSION_KEY / languageKey). Fixes #111 Co-authored-by: Cursor <cursoragent@cursor.com>
Allow projects to bump or lower rule severity (INFO/WARNING/ERROR) before severity-filter, exit codes, and report formatters run. Fixes #108 Co-authored-by: Cursor <cursoragent@cursor.com>
Pull in the Semgrep argv batching fix so large trees no longer fail with "Argument list too long" (mobsfscan#98). Co-authored-by: Cursor <cursoragent@cursor.com>
Kotlin/iOS regex rules capped values at 100 chars, so long hex keys and similar secrets were false negatives while Java Semgrep was not. Fixes #88 Co-authored-by: Cursor <cursoragent@cursor.com>
xmltodict returns a list for sibling domain-config nodes; iterate configs (including nested) instead of calling .get on the list. Fixes #87 Co-authored-by: Cursor <cursoragent@cursor.com>
Port MobSF ATS analysis so NSAllowsArbitraryLoads and exception-domain misconfigurations are reported from Info.plist during iOS/auto scans. Co-authored-by: Cursor <cursoragent@cursor.com>
…rep. Clean-room Semgrep, Kotlin, and layout XML checks cover biometric crypto binding, weak TLS, sensitive input caching, custom XOR crypto, and sensitive notifications without importing GPL rule text. Also refresh README CI action versions. Fixes #68. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace Android Kotlin and iOS Swift regex patterns with Semgrep rules, move Java Semgrep under java/, keep Objective-C on libsast, and preserve best-practice missing-control inversion per language. Co-authored-by: Cursor <cursoragent@cursor.com>
Mark setuptools development status as Production/Stable and drive formatter tests from __version__ instead of hardcoded strings. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the GitHub Action dependency freeze aligned with the locked libsast 3.1.8 hashes and current package name normalization. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Stop forcing absolute paths in Android XML and iOS Info.plist results so they match Semgrep/source reporting and reduce ASOC duplicates (#109). Co-authored-by: Cursor <cursoragent@cursor.com>
Member
Author
|
Also landed path normalization for Android XML and Info.plist findings (inspired by #109): results now prefer cwd-relative |
Avoid an empty except in security_severity_score so CodeQL py/empty-except is satisfied while keeping the severity fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
Invert presence hits for both dialects under a platform (Java∪Kotlin, Swift∪ObjC) so Semgrep BP rules cannot leak, while only reporting missing controls for languages actually present in the scan paths. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 10, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch prepares mobsfscan 1.0.0 with a major rules-engine cleanup, new mobile security coverage, CI/reporting improvements, and a set of long-standing bug fixes.
Rules engine (Semgrep-first)
semgrep/{java,kotlin,swift}/andbest_practices/{java,kotlin,swift}/.New / expanded security coverage
Reporting & CI
--gitlab-sast).actions/checkout@v5,setup-python@v6, SARIF upload).Reliability / false-positive fixes
network_security_configcrash with multipledomain-configsiblings.mobsf-ignoreapplies correctly per match across files..mobsfseverity-overrides for per-rule severity.print()fromios_log('print' in swift rules #112).Packaging
Pipfile.lock/requirements.txt(used by the composite GitHub Action).Validation
Test plan
tox/ unit tests / Semgrep validate+test)pip install -e .thenmobsfscan -vshows1.0.0.java+.kt) and confirm Semgrep findings + language-appropriate missing controlsios_*Semgrep findings;printalone does not triggerios_logios_*findings still work--sarif,--sonarqube,--gitlab-sast, and--jsonoutputs.mobsfignore-rules,severity-overrides, and// mobsf-ignore:commentsrequirements.txtand runs successfullyMade with Cursor