narvy-cli 1.2.1__tar.gz → 1.3.1__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 (134) hide show
  1. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/CHANGELOG.md +207 -0
  2. narvy_cli-1.3.1/PKG-INFO +631 -0
  3. narvy_cli-1.3.1/README.md +592 -0
  4. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/__init__.py +1 -1
  5. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/auth.py +7 -2
  6. narvy_cli-1.3.1/narvy/cbom.py +430 -0
  7. narvy_cli-1.3.1/narvy/ci_templates/bitbucket.yml +29 -0
  8. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ci_templates/github.yml +29 -1
  9. narvy_cli-1.3.1/narvy/ci_templates/gitlab.yml +53 -0
  10. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/cloud/aws_scan.py +358 -225
  11. narvy_cli-1.3.1/narvy/cloud/gcp_scan.py +470 -0
  12. narvy_cli-1.3.1/narvy/cloud/normalize.py +192 -0
  13. narvy_cli-1.3.1/narvy/cloud/rule_severity.py +533 -0
  14. narvy_cli-1.3.1/narvy/cloud/severity.py +135 -0
  15. narvy_cli-1.3.1/narvy/cloud/upload.py +171 -0
  16. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/decompiler.py +28 -1
  17. narvy_cli-1.3.1/narvy/gitlab_report.py +272 -0
  18. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/binary_analyzer.py +1 -0
  19. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/source_analyzer.py +2 -7
  20. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/main.py +767 -175
  21. narvy_cli-1.3.1/narvy/repo_identity.py +128 -0
  22. narvy_cli-1.3.1/narvy/sbom.py +381 -0
  23. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/sca/android_deps.py +4 -2
  24. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/sca/ios_deps.py +20 -5
  25. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/sca/osv_client.py +175 -7
  26. narvy_cli-1.3.1/narvy/sca/osv_localdb.py +1056 -0
  27. narvy_cli-1.3.1/narvy/sca/osv_semantic.py +892 -0
  28. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/sca/web_deps.py +199 -30
  29. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/secret_presentation.py +225 -21
  30. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/semgrep_engine.py +13 -5
  31. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/__init__.py +1 -1
  32. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/checks.py +321 -0
  33. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/xmlmodel.py +2 -0
  34. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/cli.py +20 -6
  35. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/data/play.py +89 -0
  36. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/uploader.py +32 -2
  37. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/scanner.py +95 -2
  38. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/source_analyzer.py +32 -6
  39. narvy_cli-1.3.1/narvy_cli.egg-info/PKG-INFO +631 -0
  40. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy_cli.egg-info/SOURCES.txt +11 -0
  41. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy_cli.egg-info/requires.txt +4 -0
  42. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/pyproject.toml +7 -2
  43. narvy_cli-1.2.1/PKG-INFO +0 -397
  44. narvy_cli-1.2.1/README.md +0 -364
  45. narvy_cli-1.2.1/narvy/ci_templates/bitbucket.yml +0 -15
  46. narvy_cli-1.2.1/narvy/ci_templates/gitlab.yml +0 -19
  47. narvy_cli-1.2.1/narvy_cli.egg-info/PKG-INFO +0 -397
  48. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/LICENSE +0 -0
  49. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/MANIFEST.in +0 -0
  50. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/SECURITY.md +0 -0
  51. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/__main__.py +0 -0
  52. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/android/__init__.py +0 -0
  53. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/android/source_analyzer.py +0 -0
  54. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/android/split_bundle.py +0 -0
  55. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/android_rule_context.py +0 -0
  56. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/apk_memory_preflight.py +0 -0
  57. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/cloud/__init__.py +0 -0
  58. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/comment_filter.py +0 -0
  59. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/crypto_taint_lite.py +0 -0
  60. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/doctor.py +0 -0
  61. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/__init__.py +0 -0
  62. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/audit.py +0 -0
  63. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/host_knowledge.py +0 -0
  64. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/lynis_bootstrap.py +0 -0
  65. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/lynis_parser.py +0 -0
  66. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/narvy_checks.py +0 -0
  67. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/report.py +0 -0
  68. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/host/ssh_exec.py +0 -0
  69. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/__init__.py +0 -0
  70. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/plist_checks.py +0 -0
  71. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/third_party_filter.py +0 -0
  72. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/ios/trust_all_context.py +0 -0
  73. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/native_hardening.py +0 -0
  74. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/own_reports.py +0 -0
  75. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/pathhint.py +0 -0
  76. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/pathnorm.py +0 -0
  77. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/proc.py +0 -0
  78. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/reporter.py +0 -0
  79. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rule_engine.py +0 -0
  80. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android/config.yml +0 -0
  81. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android/crypto.yml +0 -0
  82. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android/secrets.yml +0 -0
  83. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android/storage.yml +0 -0
  84. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android/webview.yml +0 -0
  85. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/android.yml +0 -0
  86. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios/objc/crypto.yml +0 -0
  87. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios/objc/network.yml +0 -0
  88. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios/objc/secrets.yml +0 -0
  89. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios/objc/storage.yml +0 -0
  90. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios/objc/webview.yml +0 -0
  91. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/ios_swift.yml +0 -0
  92. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/go.yml +0 -0
  93. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/java.yml +0 -0
  94. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/javascript.yml +0 -0
  95. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/kotlin.yml +0 -0
  96. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/php.yml +0 -0
  97. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/python.yml +0 -0
  98. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/ruby.yml +0 -0
  99. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/rust.yml +0 -0
  100. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/secrets.yml +0 -0
  101. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/rules/web/secrets_supplement.yml +0 -0
  102. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/sca/__init__.py +0 -0
  103. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/scope_config.py +0 -0
  104. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/secret_output.py +0 -0
  105. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/secret_value_grade.py +0 -0
  106. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/stack_protector_evidence.py +0 -0
  107. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/__main__.py +0 -0
  108. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/analyze.py +0 -0
  109. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/__init__.py +0 -0
  110. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/arsc.py +0 -0
  111. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/axml.py +0 -0
  112. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/elf.py +0 -0
  113. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/loader.py +0 -0
  114. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/android/protoxml.py +0 -0
  115. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/archive.py +0 -0
  116. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/data/__init__.py +0 -0
  117. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/data/apple.py +0 -0
  118. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/ios/__init__.py +0 -0
  119. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/ios/checks.py +0 -0
  120. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/ios/loader.py +0 -0
  121. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/ios/macho.py +0 -0
  122. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/store_check/model.py +0 -0
  123. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/telemetry.py +0 -0
  124. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/third_party_filter.py +0 -0
  125. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/weak_prng_context.py +0 -0
  126. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/__init__.py +0 -0
  127. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/nuclei_binary.py +0 -0
  128. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/scan_blocklist.py +0 -0
  129. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy/web/ssrf_guard.py +0 -0
  130. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy_cli.egg-info/dependency_links.txt +0 -0
  131. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy_cli.egg-info/entry_points.txt +0 -0
  132. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/narvy_cli.egg-info/top_level.txt +0 -0
  133. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/setup.cfg +0 -0
  134. {narvy_cli-1.2.1 → narvy_cli-1.3.1}/setup.py +0 -0
@@ -5,6 +5,213 @@ 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.1]
9
+
10
+ ### Added
11
+
12
+ - `scan --upload --app NAME_OR_ID`: adds the results to an existing app.
13
+ Without it, the upload sends the git remote (credentials stripped) and
14
+ branch of the scanned folder when it is the root of a checkout, and the
15
+ platform matches the app on the remote, then on the folder name with and
16
+ without an archive suffix (`-main`, `-<sha>`...).
17
+ - `scans`: App ID column.
18
+ - `scan --upload` prints the app ID and how the platform matched it (package
19
+ id, repository, name, cloud account, `--app`, or new app); no qualifier
20
+ when the platform does not say.
21
+ - `scan app.apk|app.aab|app.ipa --upload` sends the package name from the
22
+ decoded manifest, or CFBundleIdentifier from Info.plist, as `package_id`,
23
+ so the server can match the results to an app with the same package id.
24
+ Source scans send no `package_id`.
25
+ - Dependency findings (SCA) carry `version_source`: `lockfile`,
26
+ `declared_exact` (exact pin in a manifest) or `declared_range` (lower bound
27
+ of a range such as `^0.4.0` in package.json, composer.json or Cargo.toml).
28
+ A `declared_range` finding says the installed version may be newer. The
29
+ platform applies the same default view as for its own scans.
30
+ - Source-scan dependency findings name their manifest or lockfile by its
31
+ path relative to the scanned folder (`backend/package.json`, was
32
+ `package.json`), with `/` separators, never absolute.
33
+ - `scan --upload` sends the dependency check status as
34
+ `summary.sca_coverage` (`complete`, `partial`, `degraded` or `none`).
35
+ The platform closes dependency findings missing from an upload only when
36
+ it is `complete`; no earlier CLI sent it.
37
+ - `NARVY_API_TOKEN` is read as an alias of `NARVY_TOKEN` (used when
38
+ `NARVY_TOKEN` is not set).
39
+ - `init-ci` templates (GitHub, GitLab, Bitbucket): the scan adds `--upload`
40
+ when a `NARVY_TOKEN` secret or variable is set. The comments say that
41
+ `--upload` needs a paid plan. The GitLab template installs `narvy-cli>=1.3.1`. The Bitbucket template
42
+ now caches the OSV database.
43
+
44
+ ### Fixed
45
+
46
+ - A package version declared in several manifests is reported once, on the
47
+ manifest the platform's own scan picks: the first one in a top-down walk
48
+ (the root before its subfolders), unless another one has a stronger
49
+ version proof (lockfile, then exact pin, then range). A lockfile drops
50
+ the manifest versions of its directory and the ones below it that it
51
+ locks, and any declared range there (`package.json`, `composer.json`,
52
+ `Gemfile`), as the platform does.
53
+ - SCA coverage is `degraded` (was `partial`) when results came from a
54
+ stale vulnerability database copy.
55
+ - `scan . --upload` sent "." as the app name; it now sends the directory
56
+ name. The SBOM and CBOM component name had the same issue.
57
+ - `scan --upload` from the root of a git checkout with a remote sends the
58
+ repository name (last path segment of the remote, without `.git`) as the
59
+ app name, not the clone directory: Bitbucket (`build`), Azure Pipelines
60
+ (`s`) and CircleCI (`project`) sent the same name for every repository.
61
+ - A local-path remote (`C:/...`, `\\server\...`, `/srv/...`) or a `file://`
62
+ remote is no longer sent as `git_remote`.
63
+ - `scan --upload` checks the token before the scan: a rejected token
64
+ (401), an account the server refuses (403, with the server's reason,
65
+ for example an expired subscription), a missing login or an unreachable
66
+ server exits 4 before scanning instead of after.
67
+ - After a local scan, a logged-in user is told to add `--upload`, not to
68
+ run `narvy login`.
69
+
70
+ - `cloud-scan` (AWS): a WAF error (regional or global), an S3 bucket ACL
71
+ error, an IAM login profile error, a CIS 1.2 MFA error or a CIS 1.3
72
+ credential report error was logged and dropped, and the scan reported
73
+ `coverage: complete, checks_skipped: 0`. Each one now counts in
74
+ `checks_skipped` with its reason in `coverage.errors`, coverage is
75
+ `partial`, and `--fail-on` exits 2 when nothing else breached.
76
+ - Upload "asset limit reached" (402): says which app it looked for and how to
77
+ target one with `--app`.
78
+ - SCA summary: one count, distinct advisories.
79
+
80
+ ### Changed
81
+
82
+ - Vulnerable-dependency findings name CWE-1395 (Dependency on Vulnerable
83
+ Third-Party Component), with CWE-1035 as secondary, as narvy.io does (was
84
+ CWE-1104). An iOS advisory's own CWE (curated list, GitHub) is kept in
85
+ `sca.advisory_cwe`.
86
+ - Code findings use the same severity mapping as narvy.io: a Semgrep rule
87
+ of severity ERROR is reported HIGH (was CRITICAL), WARNING is MEDIUM (was
88
+ HIGH), INFO is LOW (was MEDIUM). A `--fail-on` threshold therefore trips
89
+ on fewer structural findings than in 1.3.0. Pattern rules and SCA keep
90
+ their own severities.
91
+ - `login`, `scans` and the upload line show the plan by its public name
92
+ (`Pro`, not `titan`).
93
+ - SETUP.md: PyPI install (`pipx install narvy-cli`), `narvy-cli[...]`
94
+ extras, Python 3.10+, `scans` documented as available, exit codes 3 and
95
+ 4, `NARVY_TOKEN` for CI. README: `NARVY_TOKEN` and the OSV cache
96
+ directory (`XDG_CACHE_HOME`, `NARVY_OSV_DB_DIR`).
97
+ - Secret masking, same as the platform: a value of 8 to 19 characters shows
98
+ its first 2 and last 2 characters and the description gives its length
99
+ (fully masked before). Below 8 characters the value stays fully masked;
100
+ from 20 characters, first 4 and last 4 as before.
101
+
102
+ ## [1.3.0]
103
+
104
+ 1.2.2 was not published on its own; its changes ship in 1.3.0.
105
+
106
+ ### Added
107
+
108
+ - `cloud-scan --upload`: sends the findings and the scan metadata (provider,
109
+ account or project id, coverage status and count) to your Narvy dashboard.
110
+ Never a credential: the body is built from an allow-list of finding
111
+ fields, and an upload is refused when any of its text carries a secret of
112
+ the credentials the scan used (AWS key id, secret and session token from
113
+ the boto3 chain, profile and SSO included; Google access and refresh
114
+ token), a credential environment variable value, or a credential shape
115
+ (AWS key id, private key, `ya29.`, `GOCSPX-`, `1//`).
116
+ - `cloud-scan --provider gcp`: GCP project posture checks with Application
117
+ Default Credentials (`--project`, else the gcloud project). A check whose
118
+ API answers permission denied, 429, 5xx or nothing is reported as PARTIAL
119
+ coverage, never as clean; a 404 (service not enabled or not in use) is not
120
+ a gap.
121
+ - `cloud-scan --profile`: AWS named profile (SSO and assume-role profiles).
122
+ - `scans --status cancelled`: lists scans their user cancelled on the
123
+ platform; shown dimmed in the table.
124
+
125
+ ### Changed
126
+
127
+ - `cloud-scan` runs the same AWS checks and severities as the Narvy
128
+ platform (one fixed severity per check, with its reference); the JSON
129
+ output adds `provider`, `account_id` and `findings`.
130
+
131
+ - Dependency check (SCA): dependencies are matched locally against the
132
+ public OSV database. No package name or version is sent. For each
133
+ ecosystem a scan needs, the CLI downloads
134
+ `https://osv-vulnerabilities.storage.googleapis.com/<ecosystem>/all.zip`
135
+ (the request names the ecosystem only), checks it (size, md5, zip
136
+ integrity), stores it as SQLite in `~/.cache/narvy/osv/` with a sha256
137
+ checked on each use, and downloads it again when older than 24 hours.
138
+ A failed refresh keeps the previous copy and the scan reports its age; a
139
+ copy older than 7 days is not used and the check is reported INCOMPLETE
140
+ (exit 2 with `--fail-on`). A damaged file is moved aside as
141
+ `<ecosystem>.db.corrupt` and downloaded again. npm is about 220 MB to
142
+ download and 301 MB on disk; a refresh needs about 820 MB free while it
143
+ runs.
144
+ - NuGet and crates.io package names match case-insensitively, as on
145
+ api.osv.dev.
146
+ - An error inside the dependency check reports it INCOMPLETE (exit 2 with
147
+ `--fail-on`) instead of skipping it.
148
+ - The network lookup of earlier releases (Narvy's EU mirror, or
149
+ `OSV_API_URL`) is available with `narvy scan --osv-api`, off by default.
150
+ It prints a warning that dependency names and versions are sent.
151
+ - `init-ci --github` caches `~/.cache/narvy/osv` (one key per UTC day);
152
+ `init-ci --gitlab` caches it in `.narvy-osv/`.
153
+ - `narvy store-check`: the summary line uses real plurals in English and
154
+ French ("1 blocker, 2 warnings", "0 bloquant, 2 avertissements") instead
155
+ of "blocker(s)".
156
+ - The store-check report's `tool_version` is `0.3.0`. Results of the checks
157
+ present in 1.2.1 are unchanged, except `PLAY-PERMISSION-DECLARATION` on
158
+ apps that declare a VpnService.
159
+ - README rewritten (install, quick start with real output, what each
160
+ command sends), store-check demo, PyPI summary and project URLs.
161
+
162
+ ### Added
163
+
164
+ - `narvy scan --offline`: nothing leaves the machine (no database or tool
165
+ download, no usage event, no GitHub advisory lookup; `--upload` is
166
+ refused). An ecosystem with no usable cached copy is reported not checked
167
+ (SCA INCOMPLETE). An APK scan without jadx or Java installed skips the
168
+ code analysis, reported not run (exit 2 with `--fail-on`); `narvy doctor`
169
+ installs them while online.
170
+ - `narvy db update [--ecosystem ...] [--all]` and `narvy db status`.
171
+ - `narvy sbom`: CycloneDX 1.6 SBOM of a source directory, APK/AAB or IPA,
172
+ built offline from the dependencies the dependency check reads. Licenses
173
+ only where recorded locally (package-lock.json, node_modules,
174
+ composer.lock). `--sign-key` signs it with Ed25519 (JSF); unsigned
175
+ otherwise, and said so. Signing needs `pip install 'narvy-cli[sign]'`.
176
+ - `narvy verify-sbom`: checks the signature; `--public-key` also checks the
177
+ signer. Exit 1 when unsigned, modified or signed by another key.
178
+ - `narvy cbom`: CycloneDX 1.6 CBOM, a basic open crypto inventory (source
179
+ call sites, dex string constants, iOS crypto symbols) with a post-quantum
180
+ readiness score per algorithm family. No score when no asymmetric
181
+ algorithm is found. Post-quantum names shipped by a bundled Bouncy Castle
182
+ are listed, not scored.
183
+ - `narvy scan --sbom FILE [--sign-key KEY] --cbom FILE` writes both after
184
+ the scan.
185
+
186
+ - `narvy scan --output gitlab`: GitLab SAST report (`gl-sast-report.json`,
187
+ security report schema 15.2.1) for `artifacts:reports:sast`, read by the
188
+ merge request security widget and the pipeline Security tab. The
189
+ `init-ci --gitlab` template uses it; GitLab ingests a report only from a
190
+ job that succeeds, so the `--fail-on` exit code now fails a second
191
+ `narvy_gate` job.
192
+ - `narvy store-check`: four Google Play policy changes that take effect on
193
+ 2027-01-27, each citing the Play Console Help article it comes from:
194
+ - `PLAY-CONTACTS-PERMISSION`: an app that targets API 37+ and requests
195
+ `READ_CONTACTS` needs a Play Console declaration explaining why the
196
+ Android Contact Picker is not enough.
197
+ - `PLAY-PRECISE-LOCATION`: `ACCESS_FINE_LOCATION` without the
198
+ `onlyForLocationButton` flag needs the precise location declaration;
199
+ from target API 37, one-time precise location must go through the
200
+ location button. The flag passes the check.
201
+ - `PLAY-FGS-GEOFENCING`: geofencing is no longer an approved foreground
202
+ service use. A service of type `location` is reported as not
203
+ determined, since its use is not in the binary.
204
+ - `PLAY-CALL-LOG-VERIFICATION`: `READ_CALL_LOG` is no longer accepted for
205
+ account verification by phone call. Reported as not determined when
206
+ the permission is requested.
207
+ Before 2027-01-27 (or the `--as-of` date) their titles start with
208
+ "Required from 2027-01-27". None of them is ever a blocker: what Google
209
+ requires (an approved declaration, or a use it no longer allows) cannot
210
+ be read from a binary.
211
+ - `PLAY-PERMISSION-DECLARATION` now detects a `VpnService` (a service
212
+ protected by `BIND_VPN_SERVICE` or with an `android.net.VpnService`
213
+ intent filter): Google Play requires the VpnService declaration for it.
214
+
8
215
  ## [1.2.1]
9
216
 
10
217
  ### Fixed