narvy-cli 1.3.2__tar.gz → 1.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/CHANGELOG.md +43 -0
  2. {narvy_cli-1.3.2/narvy_cli.egg-info → narvy_cli-1.3.4}/PKG-INFO +3 -2
  3. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/README.md +2 -1
  4. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/__init__.py +1 -1
  5. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/main.py +15 -3
  6. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios/objc/storage.yml +1 -1
  7. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios_swift.yml +4 -1
  8. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/java.yml +75 -28
  9. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/python.yml +5 -5
  10. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/secrets_supplement.yml +2 -0
  11. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/web_deps.py +185 -9
  12. {narvy_cli-1.3.2 → narvy_cli-1.3.4/narvy_cli.egg-info}/PKG-INFO +3 -2
  13. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/LICENSE +0 -0
  14. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/MANIFEST.in +0 -0
  15. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/SECURITY.md +0 -0
  16. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/__main__.py +0 -0
  17. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/android/__init__.py +0 -0
  18. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/android/source_analyzer.py +0 -0
  19. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/android/split_bundle.py +0 -0
  20. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/android_rule_context.py +0 -0
  21. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/apk_memory_preflight.py +0 -0
  22. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/auth.py +0 -0
  23. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cbom.py +0 -0
  24. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ci_templates/bitbucket.yml +0 -0
  25. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ci_templates/github.yml +0 -0
  26. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ci_templates/gitlab.yml +0 -0
  27. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/__init__.py +0 -0
  28. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/aws_scan.py +0 -0
  29. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/gcp_scan.py +0 -0
  30. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/normalize.py +0 -0
  31. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/rule_severity.py +0 -0
  32. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/severity.py +0 -0
  33. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/cloud/upload.py +0 -0
  34. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/comment_filter.py +0 -0
  35. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/crypto_taint_lite.py +0 -0
  36. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/decompiler.py +0 -0
  37. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/doctor.py +0 -0
  38. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/gitlab_report.py +0 -0
  39. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/__init__.py +0 -0
  40. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/audit.py +0 -0
  41. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/host_knowledge.py +0 -0
  42. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/lynis_bootstrap.py +0 -0
  43. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/lynis_parser.py +0 -0
  44. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/narvy_checks.py +0 -0
  45. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/report.py +0 -0
  46. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/host/ssh_exec.py +0 -0
  47. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/__init__.py +0 -0
  48. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/binary_analyzer.py +0 -0
  49. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/plist_checks.py +0 -0
  50. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/source_analyzer.py +0 -0
  51. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/third_party_filter.py +0 -0
  52. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/ios/trust_all_context.py +0 -0
  53. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/native_hardening.py +0 -0
  54. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/own_reports.py +0 -0
  55. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/pathhint.py +0 -0
  56. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/pathnorm.py +0 -0
  57. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/proc.py +0 -0
  58. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/repo_identity.py +0 -0
  59. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/reporter.py +0 -0
  60. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rule_engine.py +0 -0
  61. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android/config.yml +0 -0
  62. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android/crypto.yml +0 -0
  63. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android/secrets.yml +0 -0
  64. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android/storage.yml +0 -0
  65. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android/webview.yml +0 -0
  66. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/android.yml +0 -0
  67. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios/objc/crypto.yml +0 -0
  68. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios/objc/network.yml +0 -0
  69. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios/objc/secrets.yml +0 -0
  70. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/ios/objc/webview.yml +0 -0
  71. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/go.yml +0 -0
  72. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/javascript.yml +0 -0
  73. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/kotlin.yml +0 -0
  74. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/php.yml +0 -0
  75. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/ruby.yml +0 -0
  76. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/rust.yml +0 -0
  77. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/rules/web/secrets.yml +0 -0
  78. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sbom.py +0 -0
  79. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/__init__.py +0 -0
  80. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/android_deps.py +0 -0
  81. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/ios_deps.py +0 -0
  82. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/osv_client.py +0 -0
  83. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/osv_localdb.py +0 -0
  84. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/osv_semantic.py +0 -0
  85. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/sca/severity_calibration.py +0 -0
  86. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/scope_config.py +0 -0
  87. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/secret_output.py +0 -0
  88. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/secret_presentation.py +0 -0
  89. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/secret_value_grade.py +0 -0
  90. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/semgrep_engine.py +0 -0
  91. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/stack_protector_evidence.py +0 -0
  92. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/__init__.py +0 -0
  93. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/__main__.py +0 -0
  94. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/analyze.py +0 -0
  95. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/__init__.py +0 -0
  96. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/arsc.py +0 -0
  97. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/axml.py +0 -0
  98. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/checks.py +0 -0
  99. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/elf.py +0 -0
  100. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/loader.py +0 -0
  101. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/protoxml.py +0 -0
  102. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/android/xmlmodel.py +0 -0
  103. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/archive.py +0 -0
  104. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/cli.py +0 -0
  105. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/data/__init__.py +0 -0
  106. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/data/apple.py +0 -0
  107. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/data/play.py +0 -0
  108. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/ios/__init__.py +0 -0
  109. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/ios/checks.py +0 -0
  110. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/ios/loader.py +0 -0
  111. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/ios/macho.py +0 -0
  112. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/store_check/model.py +0 -0
  113. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/telemetry.py +0 -0
  114. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/third_party_filter.py +0 -0
  115. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/uploader.py +0 -0
  116. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/weak_prng_context.py +0 -0
  117. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/__init__.py +0 -0
  118. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/nuclei_binary.py +0 -0
  119. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/scan_blocklist.py +0 -0
  120. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/scanner.py +0 -0
  121. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/source_analyzer.py +0 -0
  122. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy/web/ssrf_guard.py +0 -0
  123. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy_cli.egg-info/SOURCES.txt +0 -0
  124. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy_cli.egg-info/dependency_links.txt +0 -0
  125. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy_cli.egg-info/entry_points.txt +0 -0
  126. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy_cli.egg-info/requires.txt +0 -0
  127. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/narvy_cli.egg-info/top_level.txt +0 -0
  128. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/pyproject.toml +0 -0
  129. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/setup.cfg +0 -0
  130. {narvy_cli-1.3.2 → narvy_cli-1.3.4}/setup.py +0 -0
@@ -5,6 +5,49 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.4]
9
+
10
+ ### Fixed
11
+
12
+ - Secrets: a high-entropy value whose name ends in `PUBKEY` / `PUB_KEY` (a
13
+ public key) is no longer reported. Names like `SIGNING_SECRET_KEY` still are.
14
+ - Java zip-slip: the rule needs a real zip or jar entry (`getNextEntry()`,
15
+ `getNextJarEntry()`, a `ZipEntry`/`JarEntry` variable, loop or parameter) and
16
+ accepts a braceless `if (...) throw` check. A plain `File` is no longer
17
+ reported.
18
+ - iOS UserDefaults (Swift and Objective-C): setting names such as
19
+ `passwordMinLength` or `tokenExpiryInterval` are no longer reported as
20
+ sensitive data.
21
+ - Python deserialization (pickle, marshal, jsonpickle, shelve, zipfile
22
+ extractall): `request` counts only as request input (`body`, `data`, `GET`,
23
+ `POST`, `files`, `args`, `form`, `json`...). `request.session`,
24
+ `request.user` and `request.META` are no longer reported;
25
+ `self.request.POST` now is.
26
+
27
+ ## [1.3.3]
28
+
29
+ ### Fixed
30
+
31
+ - Dependency check: `packages/` folders are read again. JS workspaces (npm,
32
+ yarn, pnpm, Lerna, Nx, Turborepo) lost the dependencies of their members.
33
+ The members declared in `package.json` `workspaces`, `pnpm-workspace.yaml`,
34
+ `lerna.json`, Cargo `[workspace] members` and `go.work` are read even in a
35
+ folder the walk skips. A package@version found in the root lockfile and in
36
+ member manifests is one dependency; a finding lists every manifest that
37
+ declares it (`sca.manifests`). A NuGet restore folder named `packages/` is
38
+ still skipped.
39
+ - `package-lock.json`: the lock entry of a workspace member (`packages/a`) is
40
+ no longer read as a dependency named `packages/a`.
41
+
42
+ ### Changed
43
+
44
+ - `--fail-on`: an Info finding never fails the build, `any` means Low and
45
+ above (the narvy.io gate rule). Low findings fail `--fail-on low`.
46
+ - `scan --upload`: the upload line says `reactivated` when the scan brought
47
+ back an app removed in Narvy, and how it was matched.
48
+ - Info findings stay in the upload (narvy.io keeps them out of the default
49
+ view). Locked by a test; 1.3.2 already sent them.
50
+
8
51
  ## [1.3.2]
9
52
 
10
53
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: narvy-cli
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Local static security scanner for Android and iOS apps and source code, with offline Google Play and App Store upload checks.
5
5
  Author: Narvy
6
6
  License: Apache-2.0
@@ -369,7 +369,8 @@ scan starts: a rejected token or an unreachable server exits 4 right away.
369
369
  With `--upload`, `--fail-on` leaves out the findings your team dismissed in
370
370
  Narvy (false positive, accepted risk, won't fix), as listed in the upload
371
371
  response, and says how many. Without `--upload`, or when the server does
372
- not return that list, every local finding counts.
372
+ not return that list, every local finding counts. An Info finding never
373
+ fails the gate; `--fail-on any` means Low and above.
373
374
 
374
375
  `narvy doctor` exits 0 when every required check passes and 1 when one fails.
375
376
  Missing optional tools are shown as INFO and do not change its exit code.
@@ -330,7 +330,8 @@ scan starts: a rejected token or an unreachable server exits 4 right away.
330
330
  With `--upload`, `--fail-on` leaves out the findings your team dismissed in
331
331
  Narvy (false positive, accepted risk, won't fix), as listed in the upload
332
332
  response, and says how many. Without `--upload`, or when the server does
333
- not return that list, every local finding counts.
333
+ not return that list, every local finding counts. An Info finding never
334
+ fails the gate; `--fail-on any` means Low and above.
334
335
 
335
336
  `narvy doctor` exits 0 when every required check passes and 1 when one fails.
336
337
  Missing optional tools are shown as INFO and do not change its exit code.
@@ -1,3 +1,3 @@
1
1
  """Narvy CLI - free, local SAST for Android, iOS and polyglot source."""
2
2
 
3
- __version__ = "1.3.2"
3
+ __version__ = "1.3.4"
@@ -199,8 +199,9 @@ EXIT_CODES_HELP = (
199
199
 
200
200
 
201
201
  FAIL_ON_HELP = (
202
- "CI gate: exit 1 if any finding is at or above this severity ('any' = any "
203
- "finding). If nothing reaches it but part of the scan did not run, exit 2 "
202
+ "CI gate: exit 1 if any finding is at or above this severity ('any' = Low "
203
+ "and above; an Info finding never fails the gate, as on narvy.io). If "
204
+ "nothing reaches it but part of the scan did not run, exit 2 "
204
205
  "instead of 0, because the result cannot be certified clean. Without "
205
206
  "--fail-on the exit code is 0 whatever is found."
206
207
  )
@@ -1638,6 +1639,8 @@ _APP_MATCH_LABELS = {
1638
1639
  "normalized_name": "matched by repository name",
1639
1640
  "name": "matched by name",
1640
1641
  "cloud_account": "matched by cloud account",
1642
+ "package_upgrade": "matched by package id",
1643
+ "reactivated": "reactivated",
1641
1644
  }
1642
1645
 
1643
1646
 
@@ -1747,6 +1750,12 @@ def _submit_results_ingest(all_findings, scan_mode, target_path, app=None, packa
1747
1750
  console.print(f"[bold green]Results uploaded.[/bold green] scan_id={scan_id}")
1748
1751
  if data.get("app_id") is not None:
1749
1752
  _label = _app_match_label(data.get("app_matched_by"))
1753
+ if str(data.get("app_matched_by") or "").strip().lower() == "reactivated":
1754
+ # The App had been removed in Narvy and this scan brought it
1755
+ # back; app_matched_on says how it was found.
1756
+ _on = _app_match_label(data.get("app_matched_on"))
1757
+ if _on and _on != _label and _on != "new app":
1758
+ _label = f"{_label}, {_on}"
1750
1759
  console.print(f"[dim]App ID {data.get('app_id')}{f' ({_label})' if _label else ''}.[/dim]")
1751
1760
  console.print(
1752
1761
  f"[dim]CLI detected {received} -> Narvy cloud curated: {total_detected} distinct "
@@ -2832,7 +2841,10 @@ def _exit_on_fail_on(findings, fail_on, get_severity=lambda f: f.get("severity",
2832
2841
  telemetry.note(findings=findings, get_severity=get_severity)
2833
2842
  if not fail_on:
2834
2843
  return
2835
- threshold = _SEVERITY_LEVEL.get(fail_on, 0) if fail_on != "any" else 1
2844
+ # Same rule as the platform gate (tier_view.blocking_findings): 'any' is
2845
+ # Low and above, and an Info finding never fails the gate.
2846
+ threshold = max(_SEVERITY_LEVEL.get(fail_on, 0) if fail_on != "any" else _SEVERITY_LEVEL["low"],
2847
+ _SEVERITY_LEVEL["low"])
2836
2848
  # Severities arrive in mixed case across the scan paths, so normalise before
2837
2849
  # ranking. One the map cannot rank fails the gate closed.
2838
2850
  breaching = []
@@ -2,7 +2,7 @@
2
2
 
3
3
  - id: IOS-OBJC-STORAGE-001
4
4
  name: "Sensitive Data Stored in NSUserDefaults"
5
- pattern: '(?i)\[[\w\s.\[\]]*userdefaults[\w\s.\]]*\s+setObject\s*:[^;]*forKey\s*:\s*@"[^"]*(password|token|secret|api[_-]?key)[^"]*"'
5
+ pattern: '(?i)\[[\w\s.\[\]]*userdefaults[\w\s.\]]*\s+setObject\s*:[^;]*forKey\s*:\s*@"[^"]*(password|token|secret|api[_-]?key)(?!\w*(?:type|kind|config|configuration|params|parameters|settings|options|policy|length|count|attempts|enabled|disabled|timeout|mode|style|format|visible|hidden|shown|hint|label|placeholder|interval|delay|requirement|rules|strength|expir|lifetime|generator|keyboard|prompt))[^"]*"'
6
6
  severity: "HIGH"
7
7
  confidence: "MEDIUM"
8
8
  details:
@@ -354,7 +354,10 @@ rules:
354
354
  category: storage
355
355
  patterns:
356
356
  - pattern: '$UD.set($VALUE, forKey: $KEY)'
357
+ # A setting ABOUT the secret (passwordGeneratorConfig, tokenExpiryInterval,
358
+ # passwordMinLength) is not the secret: the sensitive word must not be
359
+ # followed, in the same identifier, by a setting noun.
357
360
  - metavariable-pattern:
358
361
  metavariable: $KEY
359
362
  patterns:
360
- - pattern-regex: '(?i)"[^"]*(password|token|secret|api[_-]?key)[^"]*"'
363
+ - pattern-regex: '(?i)"[^"]*(password|token|secret|api[_-]?key)(?!\w*(?:type|kind|config|configuration|params|parameters|settings|options|policy|length|count|attempts|enabled|disabled|timeout|mode|style|format|visible|hidden|shown|hint|label|placeholder|interval|delay|requirement|rules|strength|expir|lifetime|generator|keyboard|prompt))[^"]*"'
@@ -516,39 +516,86 @@ rules:
516
516
  confidence: MEDIUM
517
517
  technology:
518
518
  - java
519
+ # The finding is the File built from the entry name. $ENTRY must be a zip
520
+ # entry (getNextEntry / getNextJarEntry / ZipEntry / JarEntry):
521
+ # `name = file.getName(); new File(dir, name)` on a java.io.File is not Zip Slip.
522
+ # A canonical-path (or normalized-path) containment check on the File, braced
523
+ # or `if (...) throw ...;`, clears it.
519
524
  patterns:
520
- - pattern-either:
521
- - pattern: '$ENTRY = $ZIS.getNextEntry();
522
-
525
+ - pattern-either:
526
+ - patterns:
527
+ - pattern: $OUT = new File($DESTDIR, $ENTRY.getName());
528
+ - pattern-either:
529
+ - pattern-inside: |
530
+ $ENTRY = $ZIS.getNextEntry();
531
+ ...
532
+ - pattern-inside: |
533
+ while (($ENTRY = $ZIS.getNextEntry()) != null) { ... }
534
+ - pattern-inside: |
535
+ ZipEntry $ENTRY = ...;
536
+ ...
537
+ - pattern-inside: |
538
+ for (ZipEntry $ENTRY : $COLL) { ... }
539
+ - pattern-inside: |
540
+ $T $M(..., ZipEntry $ENTRY, ...) { ... }
541
+ - pattern-inside: |
542
+ $ENTRY = $ZIS.getNextJarEntry();
543
+ ...
544
+ - pattern-inside: |
545
+ while (($ENTRY = $ZIS.getNextJarEntry()) != null) { ... }
546
+ - pattern-inside: |
547
+ JarEntry $ENTRY = ...;
548
+ ...
549
+ - pattern-inside: |
550
+ for (JarEntry $ENTRY : $COLL) { ... }
551
+ - pattern-inside: |
552
+ $T $M(..., JarEntry $ENTRY, ...) { ... }
553
+ - patterns:
554
+ - pattern: $OUT = new File($DESTDIR, $NAME);
555
+ - pattern-inside: |
556
+ $NAME = $ENTRY.getName();
557
+ ...
558
+ - pattern-either:
559
+ - pattern-inside: |
560
+ $ENTRY = $ZIS.getNextEntry();
561
+ ...
562
+ - pattern-inside: |
563
+ while (($ENTRY = $ZIS.getNextEntry()) != null) { ... }
564
+ - pattern-inside: |
565
+ ZipEntry $ENTRY = ...;
566
+ ...
567
+ - pattern-inside: |
568
+ for (ZipEntry $ENTRY : $COLL) { ... }
569
+ - pattern-inside: |
570
+ $T $M(..., ZipEntry $ENTRY, ...) { ... }
571
+ - pattern-inside: |
572
+ $ENTRY = $ZIS.getNextJarEntry();
573
+ ...
574
+ - pattern-inside: |
575
+ while (($ENTRY = $ZIS.getNextJarEntry()) != null) { ... }
576
+ - pattern-inside: |
577
+ JarEntry $ENTRY = ...;
578
+ ...
579
+ - pattern-inside: |
580
+ for (JarEntry $ENTRY : $COLL) { ... }
581
+ - pattern-inside: |
582
+ $T $M(..., JarEntry $ENTRY, ...) { ... }
583
+ - pattern-not-inside: |
584
+ $OUT = new File(...);
523
585
  ...
524
-
525
- $OUT = new File($DESTDIR, $ENTRY.getName());
526
-
586
+ if (!$OUT.getCanonicalPath().startsWith(...)) { ... }
587
+ - pattern-not-inside: |
588
+ $OUT = new File(...);
527
589
  ...
528
-
529
- '
530
- - pattern: '$NAME = $ENTRY.getName();
531
-
590
+ if (!$OUT.getCanonicalPath().startsWith(...)) throw $EX;
591
+ - pattern-not-inside: |
592
+ $OUT = new File(...);
532
593
  ...
533
-
534
- $OUT = new File($DESTDIR, $NAME);
535
-
594
+ if (!$OUT.toPath().normalize().startsWith(...)) { ... }
595
+ - pattern-not-inside: |
596
+ $OUT = new File(...);
536
597
  ...
537
-
538
- '
539
- - pattern-not: '$ENTRY = $ZIS.getNextEntry();
540
-
541
- ...
542
-
543
- $OUT = new File($DESTDIR, $ENTRY.getName());
544
-
545
- ...
546
-
547
- if (!$OUT.getCanonicalPath().startsWith(...)) { ... }
548
-
549
- ...
550
-
551
- '
598
+ if (!$OUT.toPath().normalize().startsWith(...)) throw $EX;
552
599
  - id: narvy.java.crypto.plaintext-socket-construction.plaintext-socket-construction
553
600
  message: A plain `java.net.Socket`/`java.net.ServerSocket` is constructed directly. Everything sent or received on it travels
554
601
  unencrypted, so anyone who can observe the network path can read or tamper with the traffic (CWE-319). This is an audit-level
@@ -1684,7 +1684,7 @@ rules:
1684
1684
  '
1685
1685
  - metavariable-regex:
1686
1686
  metavariable: $SRC
1687
- regex: (?i)(request|upload|response|download)
1687
+ regex: (?i)((self\.)?request(?!\.(?!(?-i:body|data|GET|POST|COOKIES|FILES|headers|args|form|json|get_json|values|get_data|read|files|cookies|stream|text|content|environ|params|json_body|matchdict|query_params|path_params)\b))|upload|response|download)
1688
1688
  - id: narvy.python.pyramid.csrf-disabled-globally.csrf-disabled-globally
1689
1689
  message: Pyramid's default CSRF check is turned off application-wide via `set_default_csrf_options(require_csrf=False)`.
1690
1690
  Every unsafe-method view (POST/PUT/PATCH/DELETE) in the app loses its automatic CSRF token check unless
@@ -2746,7 +2746,7 @@ rules:
2746
2746
  - pattern: jsonpickle.decode($DATA)
2747
2747
  - metavariable-regex:
2748
2748
  metavariable: $DATA
2749
- regex: (?i)(request|upload|response|body|payload)
2749
+ regex: (?i)((self\.)?request(?!\.(?!(?-i:body|data|GET|POST|COOKIES|FILES|headers|args|form|json|get_json|values|get_data|read|files|cookies|stream|text|content|environ|params|json_body|matchdict|query_params|path_params)\b))|upload|response|body|payload)
2750
2750
  - id: narvy.python.deserialization.marshal-loads-untrusted.marshal-loads-untrusted
2751
2751
  message: '`marshal.loads()` deserializes data that is not a fixed local trusted source. `marshal` is
2752
2752
  the format used for compiled Python bytecode - loading crafted marshal data from an untrusted source
@@ -2774,7 +2774,7 @@ rules:
2774
2774
  - pattern: marshal.loads($DATA)
2775
2775
  - metavariable-regex:
2776
2776
  metavariable: $DATA
2777
- regex: (?i)(request|upload|response|body|payload|socket|message|msg)
2777
+ regex: (?i)((self\.)?request(?!\.(?!(?-i:body|data|GET|POST|COOKIES|FILES|headers|args|form|json|get_json|values|get_data|read|files|cookies|stream|text|content|environ|params|json_body|matchdict|query_params|path_params)\b))|upload|response|body|payload|socket|message|msg)
2778
2778
  - id: narvy.python.deserialization.pickle-loads-untrusted.pickle-loads-untrusted
2779
2779
  message: '`pickle.load()`/`pickle.loads()` deserializes data that is not a fixed local trusted file
2780
2780
  - a request body, an uploaded file, a cache/queue payload, or a network socket read. Unpickling is
@@ -2807,7 +2807,7 @@ rules:
2807
2807
  - pattern: cPickle.loads($DATA)
2808
2808
  - metavariable-regex:
2809
2809
  metavariable: $DATA
2810
- regex: (?i)(request|upload|response|body|payload|socket|redis|celery|queue|message|msg)
2810
+ regex: (?i)((self\.)?request(?!\.(?!(?-i:body|data|GET|POST|COOKIES|FILES|headers|args|form|json|get_json|values|get_data|read|files|cookies|stream|text|content|environ|params|json_body|matchdict|query_params|path_params)\b))|upload|response|body|payload|socket|redis|celery|queue|message|msg)
2811
2811
  - id: narvy.python.deserialization.shelve-open-untrusted-path.shelve-open-untrusted-path
2812
2812
  message: '`shelve.open()` is backed by `pickle` under the hood - reading a shelve database an attacker
2813
2813
  can influence the path or contents of is the same RCE risk as calling `pickle.load()` directly (CWE-502).
@@ -2834,7 +2834,7 @@ rules:
2834
2834
  - pattern: shelve.open($PATH)
2835
2835
  - metavariable-regex:
2836
2836
  metavariable: $PATH
2837
- regex: (?i)(request|upload|user|param)
2837
+ regex: (?i)((self\.)?request(?!\.(?!(?-i:body|data|GET|POST|COOKIES|FILES|headers|args|form|json|get_json|values|get_data|read|files|cookies|stream|text|content|environ|params|json_body|matchdict|query_params|path_params)\b))|upload|user|param)
2838
2838
  - id: narvy.python.code-injection.importlib-module-name-tainted.importlib-module-name-tainted
2839
2839
  message: A module name passed to `importlib.import_module()` / `__import__()` is derived from request data. Importing a
2840
2840
  module executes its top-level code, so an attacker who can choose the name can load and run any importable module on the
@@ -342,6 +342,8 @@ rules:
342
342
  - pattern-not-regex: '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
343
343
  - pattern-not-regex: '[=:]\s*["''`][A-Z][A-Z0-9]*(?:_[A-Za-z0-9]+)+["''`]'
344
344
  - pattern-not-regex: (?i)public[_-]?key\s*[=:]
345
+ # The PUBKEY / PUB_KEY spelling of a public key (nostr, ed25519 identity keys).
346
+ - pattern-not-regex: (?i)pub[_-]?key\s*[=:]
345
347
  - pattern-not-regex: '[=:]\s*["''`]/[A-Za-z0-9_.\-]+/[A-Za-z0-9_./\-]+["''`]'
346
348
  - metavariable-analysis:
347
349
  analyzer: entropy
@@ -37,6 +37,9 @@ class _WebDep:
37
37
  # the file states ("runtime", "dev", or "unknown" when it does not say).
38
38
  declared_spec: str = ""
39
39
  scope: str = "unknown"
40
+ # Other manifests that carry the same package@version (a workspace
41
+ # member next to the root lockfile): set by _dedupe on the kept entry.
42
+ also_in: Tuple[str, ...] = ()
40
43
 
41
44
 
42
45
  # version_source, as the Narvy platform's lockfile parser tags a dependency:
@@ -125,6 +128,10 @@ def _parse_package_lock(path: str) -> List[_WebDep]:
125
128
  for key, meta in packages.items():
126
129
  if not key or not isinstance(meta, dict):
127
130
  continue
131
+ # A workspace member's own entry ("packages/a") is the project,
132
+ # not an installed package (the platform skips it too).
133
+ if "node_modules/" not in key:
134
+ continue
128
135
  version = meta.get("version")
129
136
  if not version:
130
137
  continue
@@ -698,8 +705,41 @@ _MANIFEST_SKIP_DIR_NAMES = frozenset({
698
705
  ".git", ".gradle", ".idea", ".vscode", ".vs",
699
706
  "build", "dist", "target", "out", "bin", "obj",
700
707
  ".next", ".nuxt", ".cache", "coverage", ".pytest_cache",
701
- "packages",
702
708
  })
709
+ # `packages/` is walked: it holds the members of JS workspaces (npm, yarn,
710
+ # pnpm, Lerna, Nx, Turborepo), Python and Go monorepos. Only the classic NuGet
711
+ # restore folder of that name (one <Id>.<Version>/ folder per .nupkg) is pruned.
712
+
713
+
714
+ def _is_nuget_restore_dir(path: str) -> bool:
715
+ """A NuGet packages.config restore folder: repositories.config, or
716
+ sub-folders that hold a .nupkg (checks the first few only)."""
717
+ try:
718
+ entries = sorted(os.listdir(path))
719
+ except OSError:
720
+ return False
721
+ if "repositories.config" in entries:
722
+ return True
723
+ checked = 0
724
+ for name in entries:
725
+ sub = os.path.join(path, name)
726
+ if not os.path.isdir(sub):
727
+ continue
728
+ checked += 1
729
+ try:
730
+ if any(f.endswith(".nupkg") for f in os.listdir(sub)):
731
+ return True
732
+ except OSError:
733
+ pass
734
+ if checked >= 5:
735
+ break
736
+ return False
737
+
738
+
739
+ def _prune_dirs(cur_root: str, dirs: List[str]) -> List[str]:
740
+ return [d for d in dirs
741
+ if d not in _MANIFEST_SKIP_DIR_NAMES and not d.startswith(".")
742
+ and not (d == "packages" and _is_nuget_restore_dir(os.path.join(cur_root, d)))]
703
743
 
704
744
 
705
745
  def _walk_manifests(root_path: str, matcher) -> List[str]:
@@ -711,8 +751,7 @@ def _walk_manifests(root_path: str, matcher) -> List[str]:
711
751
  if depth >= _MANIFEST_WALK_MAX_DEPTH:
712
752
  dirs[:] = []
713
753
  continue
714
- dirs[:] = [d for d in dirs
715
- if d not in _MANIFEST_SKIP_DIR_NAMES and not d.startswith(".")]
754
+ dirs[:] = _prune_dirs(cur_root, dirs)
716
755
  for f in files:
717
756
  if matcher(f):
718
757
  found.append(os.path.join(cur_root, f))
@@ -1180,14 +1219,17 @@ def _dedupe(deps: List[_WebDep]) -> List[_WebDep]:
1180
1219
  # Same package@version from two manifests: the stronger version proof
1181
1220
  # is kept (an exact pin over a range floor); on a tie, the first one.
1182
1221
  # The broadest scope seen wins (a runtime copy is never dev-only).
1222
+ # Every manifest that carried it is listed (also_in), never counted twice.
1183
1223
  prev = best.get(key)
1184
1224
  if prev is None or (_VERSION_SOURCE_RANK.get(version_source_for(dep.source, dep.version_source), 0)
1185
1225
  > _VERSION_SOURCE_RANK.get(version_source_for(prev.source, prev.version_source), 0)):
1186
1226
  best[key] = dep
1187
1227
  if prev is not None:
1188
1228
  scope = max((prev.scope, dep.scope), key=lambda sc: _SCOPE_RANK.get(sc, 2))
1189
- if best[key].scope != scope:
1190
- best[key] = replace(best[key], scope=scope)
1229
+ sources = [s for s in (prev.source, *prev.also_in, dep.source, *dep.also_in)
1230
+ if s != best[key].source]
1231
+ also_in = tuple(dict.fromkeys(sources))
1232
+ best[key] = replace(best[key], scope=scope, also_in=also_in)
1191
1233
  return list(best.values())
1192
1234
 
1193
1235
 
@@ -1245,6 +1287,7 @@ def _finding_from_osv(dep: _WebDep, osv_finding_dict: Dict[str, Any]) -> Dict[st
1245
1287
  "package": dep.name,
1246
1288
  "version": dep.version,
1247
1289
  "detected_via": dep.source,
1290
+ **({"manifests": [dep.source, *dep.also_in]} if dep.also_in else {}),
1248
1291
  "fixed_version": fixed_version,
1249
1292
  "references": osv_finding_dict.get("references", []),
1250
1293
  "ecosystem": dep.ecosystem,
@@ -1347,11 +1390,16 @@ def _rule_def_from_finding(finding: Dict[str, Any]) -> Dict[str, Any]:
1347
1390
 
1348
1391
  # Run a collector once per manifest-bearing directory, so monorepos and subdir
1349
1392
  # backends are covered (scan()'s _dedupe collapses overlap).
1350
- def _collect_recursive(root_path: str, filenames, collector) -> List[_WebDep]:
1393
+ def _collect_recursive(root_path: str, filenames, collector, members=None) -> List[_WebDep]:
1351
1394
  dirs = set()
1352
1395
  for fn in filenames:
1353
1396
  for p in _walk_manifests(root_path, lambda f, _fn=fn: f == _fn):
1354
1397
  dirs.add(os.path.dirname(p))
1398
+ # Workspace members the root declares are read even where the walk does
1399
+ # not go (a skipped folder name, deeper than the walk).
1400
+ for d in (members(root_path) if members else ()):
1401
+ if any(os.path.isfile(os.path.join(d, fn)) for fn in filenames):
1402
+ dirs.add(d)
1355
1403
  if root_path not in dirs and any(
1356
1404
  os.path.isfile(os.path.join(root_path, fn)) for fn in filenames
1357
1405
  ):
@@ -1422,14 +1470,142 @@ def _coverage_gaps(source_dir: str, deps: List[_WebDep]) -> List[str]:
1422
1470
  return gaps
1423
1471
 
1424
1472
 
1473
+ def _expand_member_globs(root_path: str, patterns) -> List[str]:
1474
+ """Directories under root_path matched by workspace globs ('packages/*',
1475
+ 'apps/**', '!packages/legacy'); never outside the root, never node_modules."""
1476
+ import glob as _glob
1477
+ root = os.path.realpath(root_path)
1478
+ include: Set[str] = set()
1479
+ exclude: Set[str] = set()
1480
+ for pat in patterns or ():
1481
+ if not isinstance(pat, str) or not pat.strip():
1482
+ continue
1483
+ pat = pat.strip()
1484
+ neg = pat.startswith("!")
1485
+ pat = pat.lstrip("!").strip().rstrip("/")
1486
+ while pat.startswith("./"):
1487
+ pat = pat[2:]
1488
+ if not pat or os.path.isabs(pat) or ".." in pat.split("/"):
1489
+ continue
1490
+ hits = _glob.glob(os.path.join(root, pat), recursive=True)
1491
+ if len(hits) > _MAX_MANIFEST_FILES:
1492
+ hits = sorted(hits)[:_MAX_MANIFEST_FILES]
1493
+ for h in hits:
1494
+ real = os.path.realpath(h)
1495
+ if not os.path.isdir(real) or not (real == root or real.startswith(root + os.sep)):
1496
+ continue
1497
+ if "node_modules" in os.path.relpath(real, root).split(os.sep):
1498
+ continue
1499
+ (exclude if neg else include).add(real)
1500
+ return sorted(include - exclude)
1501
+
1502
+
1503
+ def _read_json(path: str) -> Any:
1504
+ try:
1505
+ with open(path, "r", encoding="utf-8", errors="ignore") as f:
1506
+ return json.load(f)
1507
+ except (OSError, ValueError):
1508
+ return None
1509
+
1510
+
1511
+ def _pnpm_workspace_globs(path: str) -> List[str]:
1512
+ try:
1513
+ with open(path, "r", encoding="utf-8", errors="ignore") as f:
1514
+ text = f.read()
1515
+ except OSError:
1516
+ return []
1517
+ try:
1518
+ import yaml
1519
+ data = yaml.safe_load(text)
1520
+ pk = data.get("packages") if isinstance(data, dict) else None
1521
+ return [p for p in pk if isinstance(p, str)] if isinstance(pk, list) else []
1522
+ except Exception: # noqa: BLE001 - no PyYAML, or a file it rejects: line read
1523
+ out, in_pk = [], False
1524
+ for line in text.splitlines():
1525
+ if not line.strip() or line.lstrip().startswith("#"):
1526
+ continue
1527
+ if not line[0].isspace():
1528
+ in_pk = line.split("#", 1)[0].strip() == "packages:"
1529
+ continue
1530
+ m = re.match(r'^\s+-\s*["\']?([^"\'#]+?)["\']?\s*(?:#.*)?$', line)
1531
+ if in_pk and m:
1532
+ out.append(m.group(1))
1533
+ return out
1534
+
1535
+
1536
+ def _npm_workspace_members(root_path: str) -> List[str]:
1537
+ """Member dirs declared by package.json `workspaces` (npm, yarn, Nx,
1538
+ Turborepo), pnpm-workspace.yaml `packages` and lerna.json `packages`."""
1539
+ globs: List[str] = []
1540
+ pkg = _read_json(os.path.join(root_path, "package.json"))
1541
+ if isinstance(pkg, dict):
1542
+ ws = pkg.get("workspaces")
1543
+ if isinstance(ws, dict):
1544
+ ws = ws.get("packages")
1545
+ if isinstance(ws, list):
1546
+ globs.extend(p for p in ws if isinstance(p, str))
1547
+ pnpm_ws = os.path.join(root_path, "pnpm-workspace.yaml")
1548
+ if os.path.isfile(pnpm_ws):
1549
+ globs.extend(_pnpm_workspace_globs(pnpm_ws))
1550
+ lerna = _read_json(os.path.join(root_path, "lerna.json"))
1551
+ if isinstance(lerna, dict) and isinstance(lerna.get("packages"), list):
1552
+ globs.extend(p for p in lerna["packages"] if isinstance(p, str))
1553
+ return _expand_member_globs(root_path, globs)
1554
+
1555
+
1556
+ _CARGO_MEMBERS_RE = re.compile(r'^\s*members\s*=\s*\[(.*?)\]', re.MULTILINE | re.DOTALL)
1557
+
1558
+
1559
+ def _cargo_workspace_members(root_path: str) -> List[str]:
1560
+ """Cargo.toml `[workspace] members = [...]` dirs."""
1561
+ try:
1562
+ with open(os.path.join(root_path, "Cargo.toml"), "r", encoding="utf-8", errors="ignore") as f:
1563
+ text = f.read()
1564
+ except OSError:
1565
+ return []
1566
+ m = re.search(r'^\[workspace\]\s*$(.*?)(?=^\[|\Z)', text, re.MULTILINE | re.DOTALL)
1567
+ if not m:
1568
+ return []
1569
+ mm = _CARGO_MEMBERS_RE.search(m.group(1))
1570
+ if not mm:
1571
+ return []
1572
+ body = "\n".join(l.split("#", 1)[0] for l in mm.group(1).splitlines())
1573
+ return _expand_member_globs(root_path, re.findall(r'"([^"]+)"', body))
1574
+
1575
+
1576
+ def _go_work_members(root_path: str) -> List[str]:
1577
+ """go.work `use` dirs (single line or block)."""
1578
+ try:
1579
+ with open(os.path.join(root_path, "go.work"), "r", encoding="utf-8", errors="ignore") as f:
1580
+ lines = f.read().splitlines()
1581
+ except OSError:
1582
+ return []
1583
+ uses, in_block = [], False
1584
+ for raw in lines:
1585
+ line = raw.split("//", 1)[0].strip()
1586
+ if line.startswith("use ("):
1587
+ in_block = True
1588
+ continue
1589
+ if in_block and line == ")":
1590
+ in_block = False
1591
+ continue
1592
+ if line.startswith("use "):
1593
+ uses.append(line[4:].strip())
1594
+ elif in_block and line:
1595
+ uses.append(line)
1596
+ return _expand_member_globs(root_path, [u.strip('"') for u in uses])
1597
+
1598
+
1425
1599
  def collect_dependencies(source_dir: str) -> List[_WebDep]:
1426
1600
  deps: List[_WebDep] = []
1427
- deps.extend(_collect_recursive(source_dir, ("pnpm-lock.yaml", "yarn.lock", "package-lock.json", "package.json"), _collect_npm_deps))
1601
+ deps.extend(_collect_recursive(source_dir, ("pnpm-lock.yaml", "yarn.lock", "package-lock.json", "package.json"), _collect_npm_deps,
1602
+ members=_npm_workspace_members))
1428
1603
  deps.extend(_collect_recursive(source_dir, ("poetry.lock", "requirements.txt"), _collect_pypi_deps))
1429
1604
  deps.extend(_collect_recursive(source_dir, ("composer.lock", "composer.json"), _collect_packagist_deps))
1430
- deps.extend(_collect_recursive(source_dir, ("go.mod",), _collect_go_deps))
1605
+ deps.extend(_collect_recursive(source_dir, ("go.mod",), _collect_go_deps, members=_go_work_members))
1431
1606
  deps.extend(_collect_recursive(source_dir, ("Gemfile.lock", "Gemfile"), _collect_rubygems_deps))
1432
- deps.extend(_collect_recursive(source_dir, ("Cargo.lock", "Cargo.toml"), _collect_crates_deps))
1607
+ deps.extend(_collect_recursive(source_dir, ("Cargo.lock", "Cargo.toml"), _collect_crates_deps,
1608
+ members=_cargo_workspace_members))
1433
1609
  deps.extend(_collect_maven_deps(source_dir))
1434
1610
  deps.extend(_collect_nuget_deps(source_dir))
1435
1611
  return [replace(d, source=_safe_rel_source(d.source)) for d in deps]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: narvy-cli
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Local static security scanner for Android and iOS apps and source code, with offline Google Play and App Store upload checks.
5
5
  Author: Narvy
6
6
  License: Apache-2.0
@@ -369,7 +369,8 @@ scan starts: a rejected token or an unreachable server exits 4 right away.
369
369
  With `--upload`, `--fail-on` leaves out the findings your team dismissed in
370
370
  Narvy (false positive, accepted risk, won't fix), as listed in the upload
371
371
  response, and says how many. Without `--upload`, or when the server does
372
- not return that list, every local finding counts.
372
+ not return that list, every local finding counts. An Info finding never
373
+ fails the gate; `--fail-on any` means Low and above.
373
374
 
374
375
  `narvy doctor` exits 0 when every required check passes and 1 when one fails.
375
376
  Missing optional tools are shown as INFO and do not change its exit code.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes