narvy-cli 1.0.0__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.
- narvy_cli-1.0.0/CHANGELOG.md +44 -0
- narvy_cli-1.0.0/LICENSE +202 -0
- narvy_cli-1.0.0/MANIFEST.in +10 -0
- narvy_cli-1.0.0/PKG-INFO +165 -0
- narvy_cli-1.0.0/README.md +132 -0
- narvy_cli-1.0.0/SECURITY.md +79 -0
- narvy_cli-1.0.0/narvy/__init__.py +3 -0
- narvy_cli-1.0.0/narvy/android/__init__.py +0 -0
- narvy_cli-1.0.0/narvy/android/source_analyzer.py +268 -0
- narvy_cli-1.0.0/narvy/android/split_bundle.py +475 -0
- narvy_cli-1.0.0/narvy/android_rule_context.py +196 -0
- narvy_cli-1.0.0/narvy/apk_memory_preflight.py +248 -0
- narvy_cli-1.0.0/narvy/auth.py +40 -0
- narvy_cli-1.0.0/narvy/ci_templates/bitbucket.yml +25 -0
- narvy_cli-1.0.0/narvy/ci_templates/github.yml +60 -0
- narvy_cli-1.0.0/narvy/ci_templates/gitlab.yml +32 -0
- narvy_cli-1.0.0/narvy/cloud/__init__.py +0 -0
- narvy_cli-1.0.0/narvy/cloud/aws_scan.py +1188 -0
- narvy_cli-1.0.0/narvy/comment_filter.py +134 -0
- narvy_cli-1.0.0/narvy/crypto_taint_lite.py +82 -0
- narvy_cli-1.0.0/narvy/decompiler.py +337 -0
- narvy_cli-1.0.0/narvy/doctor.py +244 -0
- narvy_cli-1.0.0/narvy/host/__init__.py +0 -0
- narvy_cli-1.0.0/narvy/host/audit.py +157 -0
- narvy_cli-1.0.0/narvy/host/host_knowledge.py +982 -0
- narvy_cli-1.0.0/narvy/host/lynis_bootstrap.py +400 -0
- narvy_cli-1.0.0/narvy/host/lynis_parser.py +358 -0
- narvy_cli-1.0.0/narvy/host/narvy_checks.py +789 -0
- narvy_cli-1.0.0/narvy/host/report.py +69 -0
- narvy_cli-1.0.0/narvy/host/ssh_exec.py +219 -0
- narvy_cli-1.0.0/narvy/ios/__init__.py +0 -0
- narvy_cli-1.0.0/narvy/ios/binary_analyzer.py +1201 -0
- narvy_cli-1.0.0/narvy/ios/plist_checks.py +249 -0
- narvy_cli-1.0.0/narvy/ios/source_analyzer.py +301 -0
- narvy_cli-1.0.0/narvy/ios/third_party_filter.py +242 -0
- narvy_cli-1.0.0/narvy/ios/trust_all_context.py +66 -0
- narvy_cli-1.0.0/narvy/main.py +1983 -0
- narvy_cli-1.0.0/narvy/native_hardening.py +503 -0
- narvy_cli-1.0.0/narvy/reporter.py +151 -0
- narvy_cli-1.0.0/narvy/rule_engine.py +57 -0
- narvy_cli-1.0.0/narvy/rules/android/config.yml +77 -0
- narvy_cli-1.0.0/narvy/rules/android/crypto.yml +34 -0
- narvy_cli-1.0.0/narvy/rules/android/secrets.yml +161 -0
- narvy_cli-1.0.0/narvy/rules/android/storage.yml +24 -0
- narvy_cli-1.0.0/narvy/rules/android/webview.yml +23 -0
- narvy_cli-1.0.0/narvy/rules/android.yml +219 -0
- narvy_cli-1.0.0/narvy/rules/ios/objc/crypto.yml +56 -0
- narvy_cli-1.0.0/narvy/rules/ios/objc/network.yml +67 -0
- narvy_cli-1.0.0/narvy/rules/ios/objc/secrets.yml +79 -0
- narvy_cli-1.0.0/narvy/rules/ios/objc/storage.yml +45 -0
- narvy_cli-1.0.0/narvy/rules/ios/objc/webview.yml +45 -0
- narvy_cli-1.0.0/narvy/rules/ios_swift.yml +327 -0
- narvy_cli-1.0.0/narvy/rules/web/go.yml +2837 -0
- narvy_cli-1.0.0/narvy/rules/web/java.yml +1576 -0
- narvy_cli-1.0.0/narvy/rules/web/javascript.yml +3683 -0
- narvy_cli-1.0.0/narvy/rules/web/kotlin.yml +413 -0
- narvy_cli-1.0.0/narvy/rules/web/local/csharp_narvy/config.yml +61 -0
- narvy_cli-1.0.0/narvy/rules/web/local/csharp_narvy/crypto.yml +64 -0
- narvy_cli-1.0.0/narvy/rules/web/local/csharp_narvy/deserialization.yml +59 -0
- narvy_cli-1.0.0/narvy/rules/web/local/csharp_narvy/injection.yml +122 -0
- narvy_cli-1.0.0/narvy/rules/web/local/csharp_narvy/xxe.yml +48 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/auth_jwt.yml +134 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/deserialization.yml +108 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/mybatis.yml +39 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/snakeyaml.yml +34 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/spring_authz.yml +32 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/spring_config.yml +67 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/spring_hardening.yml +291 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/sqli.yml +235 -0
- narvy_cli-1.0.0/narvy/rules/web/local/java_narvy/xxe.yml +212 -0
- narvy_cli-1.0.0/narvy/rules/web/php.yml +1644 -0
- narvy_cli-1.0.0/narvy/rules/web/python.yml +3967 -0
- narvy_cli-1.0.0/narvy/rules/web/ruby.yml +703 -0
- narvy_cli-1.0.0/narvy/rules/web/rust.yml +258 -0
- narvy_cli-1.0.0/narvy/rules/web/secrets.yml +1420 -0
- narvy_cli-1.0.0/narvy/rules/web/secrets_supplement.yml +383 -0
- narvy_cli-1.0.0/narvy/sca/__init__.py +1 -0
- narvy_cli-1.0.0/narvy/sca/android_deps.py +349 -0
- narvy_cli-1.0.0/narvy/sca/ios_deps.py +578 -0
- narvy_cli-1.0.0/narvy/sca/osv_client.py +617 -0
- narvy_cli-1.0.0/narvy/sca/web_deps.py +955 -0
- narvy_cli-1.0.0/narvy/scope_config.py +195 -0
- narvy_cli-1.0.0/narvy/semgrep_engine.py +219 -0
- narvy_cli-1.0.0/narvy/stack_protector_evidence.py +96 -0
- narvy_cli-1.0.0/narvy/third_party_filter.py +211 -0
- narvy_cli-1.0.0/narvy/uploader.py +92 -0
- narvy_cli-1.0.0/narvy/weak_prng_context.py +270 -0
- narvy_cli-1.0.0/narvy/web/__init__.py +0 -0
- narvy_cli-1.0.0/narvy/web/nuclei_binary.py +105 -0
- narvy_cli-1.0.0/narvy/web/scan_blocklist.py +96 -0
- narvy_cli-1.0.0/narvy/web/scanner.py +842 -0
- narvy_cli-1.0.0/narvy/web/source_analyzer.py +714 -0
- narvy_cli-1.0.0/narvy/web/ssrf_guard.py +374 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/PKG-INFO +165 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/SOURCES.txt +100 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/dependency_links.txt +1 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/entry_points.txt +2 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/requires.txt +12 -0
- narvy_cli-1.0.0/narvy_cli.egg-info/top_level.txt +1 -0
- narvy_cli-1.0.0/pyproject.toml +71 -0
- narvy_cli-1.0.0/setup.cfg +4 -0
- narvy_cli-1.0.0/setup.py +7 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.9.0]
|
|
9
|
+
|
|
10
|
+
First public release. A free, local security scanner that runs entirely on your
|
|
11
|
+
machine and never uploads source code unless you explicitly ask it to.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Android SAST** - static analysis of APK/AAB binaries and Android source
|
|
16
|
+
trees (Java/Kotlin), with third-party-code filtering to keep findings focused
|
|
17
|
+
on first-party code.
|
|
18
|
+
- **iOS SAST** - static analysis of IPA/Mach-O binaries and iOS source trees
|
|
19
|
+
(Swift/Objective-C), including symbol-table and Obj-C introspection.
|
|
20
|
+
- **Web and backend source SAST** - polyglot scanning of web/backend source
|
|
21
|
+
directories (JavaScript/TypeScript, Python, PHP, Go, Ruby, Rust, Java,
|
|
22
|
+
Kotlin) using Narvy-authored rule packs.
|
|
23
|
+
- **Software Composition Analysis (SCA)** - dependency scanning to surface known
|
|
24
|
+
vulnerable components.
|
|
25
|
+
- **Passive web scanner** (`web-scan`) - Nuclei-based passive vulnerability
|
|
26
|
+
scan of a URL with SSRF-guarded redirect resolution; no account required.
|
|
27
|
+
- **Host/infra audit** (`host-audit`) - agentless Lynis audit over your own SSH
|
|
28
|
+
access; no credentials are sent anywhere.
|
|
29
|
+
- **Cloud posture scan** (`cloud-scan`) - cloud configuration checks using your
|
|
30
|
+
own ambient credentials, with zero credential custody.
|
|
31
|
+
- **Semgrep detection engine** (pinned `semgrep==1.152.0`) driving
|
|
32
|
+
independently-authored Narvy rule packs for mobile and web/backend
|
|
33
|
+
source, shipped with the package.
|
|
34
|
+
- **`doctor`** - preflight environment check (Java, jadx, network, iOS tooling)
|
|
35
|
+
before scanning.
|
|
36
|
+
- **`init-ci`** - drop-in CI templates for GitHub, GitLab, and Bitbucket.
|
|
37
|
+
- **`scan` / `upload-all` / `scans`** - scan a single artifact or a whole
|
|
38
|
+
directory, optionally submitting results to a Narvy account, and list
|
|
39
|
+
recent scans.
|
|
40
|
+
- **`login` / `logout`** - link a machine to a Narvy account using an API
|
|
41
|
+
token stored locally.
|
|
42
|
+
- False-positive precision tuning across the Android, iOS, and web analyzers.
|
|
43
|
+
|
|
44
|
+
[0.9.0]: https://narvy.io
|
narvy_cli-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2025-2026 Narvy
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
narvy_cli-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: narvy-cli
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Free, local SAST scanner for Android, iOS, and polyglot web/backend source - plus passive web, host-audit, and cloud-posture scanning.
|
|
5
|
+
Author: Narvy
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://narvy.io
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Security
|
|
18
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: pyaxmlparser
|
|
23
|
+
Requires-Dist: pyyaml
|
|
24
|
+
Requires-Dist: rich
|
|
25
|
+
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: semgrep==1.152.0
|
|
27
|
+
Requires-Dist: lief
|
|
28
|
+
Provides-Extra: ios-full
|
|
29
|
+
Requires-Dist: icdump; extra == "ios-full"
|
|
30
|
+
Provides-Extra: cloud
|
|
31
|
+
Requires-Dist: boto3; extra == "cloud"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# Narvy CLI
|
|
35
|
+
|
|
36
|
+
[](https://badge.fury.io/py/narvy-cli)
|
|
37
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
38
|
+
|
|
39
|
+
A free, local static application security testing (SAST) scanner. It runs
|
|
40
|
+
entirely on your machine, needs no account, and finds real, high-signal
|
|
41
|
+
vulnerabilities - hardcoded secrets, insecure configuration, weak
|
|
42
|
+
cryptography, SSRF, injection, and more - in:
|
|
43
|
+
|
|
44
|
+
- **Android**: `.apk` / `.aab`, split-APK bundles (`.apkm` / `.xapk` /
|
|
45
|
+
`.apks`), or a raw Gradle/Kotlin source checkout
|
|
46
|
+
- **iOS**: an unencrypted `.ipa`, or a raw Xcode/Swift source checkout
|
|
47
|
+
- **Web/backend source**: JavaScript/TypeScript, Python, PHP, Go, Ruby,
|
|
48
|
+
Rust, Java/Kotlin, C#/.NET
|
|
49
|
+
|
|
50
|
+
It also ships three standalone scanners that need nothing but network
|
|
51
|
+
access or your own existing credentials:
|
|
52
|
+
|
|
53
|
+
- `web-scan` - passive Nuclei-based scan of a live URL
|
|
54
|
+
- `host-audit` - agentless host audit over your own SSH access (Narvy's own
|
|
55
|
+
host checks plus Lynis (GPL-3.0) as the hardening baseline)
|
|
56
|
+
- `cloud-scan` - AWS account posture check using your own ambient AWS
|
|
57
|
+
credentials
|
|
58
|
+
|
|
59
|
+
Nothing is uploaded anywhere unless you explicitly pass `--upload`.
|
|
60
|
+
|
|
61
|
+
## Install
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pip install narvy-cli
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Requires a Java 11+ JRE on your `PATH` for Android scanning (jadx itself is
|
|
68
|
+
auto-downloaded on first scan into `~/.narvy/tools`). Everything else
|
|
69
|
+
is pure Python plus a couple of optional extras:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install 'narvy-cli[ios-full]' # full Obj-C introspection for iOS binary scans
|
|
73
|
+
pip install 'narvy-cli[cloud]' # boto3, needed for cloud-scan
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Usage
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Android APK/AAB, split bundle, or a Gradle/Kotlin source checkout
|
|
80
|
+
narvy scan app-release.apk
|
|
81
|
+
narvy scan app.apkm
|
|
82
|
+
narvy scan ./my-android-app/
|
|
83
|
+
|
|
84
|
+
# iOS: unencrypted IPA, or a Swift/Xcode source checkout
|
|
85
|
+
narvy scan MyApp.ipa
|
|
86
|
+
narvy scan ./my-ios-app/
|
|
87
|
+
|
|
88
|
+
# Web/backend source (Node, Python, PHP, Go, Ruby, Rust, Java/Kotlin, C#/.NET)
|
|
89
|
+
narvy scan ./my-api-repo/
|
|
90
|
+
|
|
91
|
+
# SARIF output, for CI or GitHub/GitLab code scanning
|
|
92
|
+
narvy scan app-release.apk --output sarif --file results.sarif
|
|
93
|
+
|
|
94
|
+
# Passive web scan of a live URL - no active injection payloads, ever
|
|
95
|
+
narvy web-scan https://example.com
|
|
96
|
+
|
|
97
|
+
# Agentless host hardening audit over your own SSH access
|
|
98
|
+
narvy host-audit example.com --user deploy
|
|
99
|
+
|
|
100
|
+
# AWS account posture check using your own aws configure / env vars / IAM role
|
|
101
|
+
narvy cloud-scan
|
|
102
|
+
|
|
103
|
+
# List recent scans on your Narvy account (requires `narvy login`)
|
|
104
|
+
narvy scans
|
|
105
|
+
|
|
106
|
+
# Scan + upload every .apk/.aab/.apkm/.xapk/.ipa found in a folder, in one command
|
|
107
|
+
narvy upload-all ./my-apps-folder/
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Run `narvy doctor` before your first scan to check your Java/jadx/iOS
|
|
111
|
+
tooling setup, and `narvy <command> --help` for the full flag list of
|
|
112
|
+
any subcommand.
|
|
113
|
+
|
|
114
|
+
### Very large Android apps
|
|
115
|
+
|
|
116
|
+
Decompiling is memory-hungry, and file size is a poor predictor of how much
|
|
117
|
+
you need. Before decompiling, the CLI reads the DEX headers to estimate the
|
|
118
|
+
Java heap the app needs and checks it against `--max-mem` and your
|
|
119
|
+
machine's free memory, so an app that won't fit fails in about a second
|
|
120
|
+
instead of after several minutes of doomed work. The estimate is a
|
|
121
|
+
heuristic, not a hard limit - `--force` runs the decompile regardless.
|
|
122
|
+
|
|
123
|
+
### Optional Narvy Cloud scan
|
|
124
|
+
|
|
125
|
+
`narvy login` links the CLI to a Narvy account. Add `--upload`
|
|
126
|
+
to a scan to also submit it for a deeper cloud pass (full taint
|
|
127
|
+
analysis, compliance mapping, dashboard history) - not required for local
|
|
128
|
+
scanning, and not on by default. `narvy upload-all <directory>` does
|
|
129
|
+
the same for every binary target found in a folder in one command.
|
|
130
|
+
`narvy scans` lists recent scans on your account from the terminal.
|
|
131
|
+
|
|
132
|
+
## Known limitations
|
|
133
|
+
|
|
134
|
+
- Encrypted iOS binaries (the normal App Store distribution state) are
|
|
135
|
+
detected but not decrypted; only the local, static checks that don't need
|
|
136
|
+
the decrypted binary run.
|
|
137
|
+
- Web-source coverage depth isn't uniform across all eight languages - Rust
|
|
138
|
+
and C#/.NET have a smaller rule set than the others, and the CLI says so
|
|
139
|
+
in its own output when it applies.
|
|
140
|
+
- Only one architecture's native libraries are checked in a multi-ABI
|
|
141
|
+
APK/split bundle.
|
|
142
|
+
|
|
143
|
+
See [SETUP.md](SETUP.md) for detailed install/troubleshooting steps and the
|
|
144
|
+
exact commands this README's examples were run against.
|
|
145
|
+
|
|
146
|
+
## License
|
|
147
|
+
|
|
148
|
+
Apache License 2.0 - see [LICENSE](LICENSE).
|
|
149
|
+
|
|
150
|
+
Rule packs under `narvy/rules/` are authored by Narvy
|
|
151
|
+
(Apache 2.0, same as the rest of this package) and contain no third-party
|
|
152
|
+
rule text.
|
|
153
|
+
`host-audit` runs Narvy's own host checks (secrets exposed on disk,
|
|
154
|
+
unauthenticated data services, cloud metadata exposure, container/daemon
|
|
155
|
+
posture, exposed VCS/artifacts in web roots) and, as the hardening baseline,
|
|
156
|
+
shells out to [Lynis](https://cisofy.com/lynis/) (GPL-3.0), auto-fetched at
|
|
157
|
+
run time over your SSH access, run arm's-length, never bundled. Lynis is
|
|
158
|
+
attributed as the engine in the audit output; its controls are not presented
|
|
159
|
+
as Narvy's own.
|
|
160
|
+
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
Issues and pull requests welcome, especially new or improved detection
|
|
164
|
+
rules. Rule packs live under `narvy/rules/`: Android/iOS
|
|
165
|
+
(`rules/android`, `rules/ios`) and web/backend (`rules/web`, Semgrep-based).
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Narvy CLI
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/py/narvy-cli)
|
|
4
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
|
+
|
|
6
|
+
A free, local static application security testing (SAST) scanner. It runs
|
|
7
|
+
entirely on your machine, needs no account, and finds real, high-signal
|
|
8
|
+
vulnerabilities - hardcoded secrets, insecure configuration, weak
|
|
9
|
+
cryptography, SSRF, injection, and more - in:
|
|
10
|
+
|
|
11
|
+
- **Android**: `.apk` / `.aab`, split-APK bundles (`.apkm` / `.xapk` /
|
|
12
|
+
`.apks`), or a raw Gradle/Kotlin source checkout
|
|
13
|
+
- **iOS**: an unencrypted `.ipa`, or a raw Xcode/Swift source checkout
|
|
14
|
+
- **Web/backend source**: JavaScript/TypeScript, Python, PHP, Go, Ruby,
|
|
15
|
+
Rust, Java/Kotlin, C#/.NET
|
|
16
|
+
|
|
17
|
+
It also ships three standalone scanners that need nothing but network
|
|
18
|
+
access or your own existing credentials:
|
|
19
|
+
|
|
20
|
+
- `web-scan` - passive Nuclei-based scan of a live URL
|
|
21
|
+
- `host-audit` - agentless host audit over your own SSH access (Narvy's own
|
|
22
|
+
host checks plus Lynis (GPL-3.0) as the hardening baseline)
|
|
23
|
+
- `cloud-scan` - AWS account posture check using your own ambient AWS
|
|
24
|
+
credentials
|
|
25
|
+
|
|
26
|
+
Nothing is uploaded anywhere unless you explicitly pass `--upload`.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install narvy-cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Requires a Java 11+ JRE on your `PATH` for Android scanning (jadx itself is
|
|
35
|
+
auto-downloaded on first scan into `~/.narvy/tools`). Everything else
|
|
36
|
+
is pure Python plus a couple of optional extras:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install 'narvy-cli[ios-full]' # full Obj-C introspection for iOS binary scans
|
|
40
|
+
pip install 'narvy-cli[cloud]' # boto3, needed for cloud-scan
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Android APK/AAB, split bundle, or a Gradle/Kotlin source checkout
|
|
47
|
+
narvy scan app-release.apk
|
|
48
|
+
narvy scan app.apkm
|
|
49
|
+
narvy scan ./my-android-app/
|
|
50
|
+
|
|
51
|
+
# iOS: unencrypted IPA, or a Swift/Xcode source checkout
|
|
52
|
+
narvy scan MyApp.ipa
|
|
53
|
+
narvy scan ./my-ios-app/
|
|
54
|
+
|
|
55
|
+
# Web/backend source (Node, Python, PHP, Go, Ruby, Rust, Java/Kotlin, C#/.NET)
|
|
56
|
+
narvy scan ./my-api-repo/
|
|
57
|
+
|
|
58
|
+
# SARIF output, for CI or GitHub/GitLab code scanning
|
|
59
|
+
narvy scan app-release.apk --output sarif --file results.sarif
|
|
60
|
+
|
|
61
|
+
# Passive web scan of a live URL - no active injection payloads, ever
|
|
62
|
+
narvy web-scan https://example.com
|
|
63
|
+
|
|
64
|
+
# Agentless host hardening audit over your own SSH access
|
|
65
|
+
narvy host-audit example.com --user deploy
|
|
66
|
+
|
|
67
|
+
# AWS account posture check using your own aws configure / env vars / IAM role
|
|
68
|
+
narvy cloud-scan
|
|
69
|
+
|
|
70
|
+
# List recent scans on your Narvy account (requires `narvy login`)
|
|
71
|
+
narvy scans
|
|
72
|
+
|
|
73
|
+
# Scan + upload every .apk/.aab/.apkm/.xapk/.ipa found in a folder, in one command
|
|
74
|
+
narvy upload-all ./my-apps-folder/
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Run `narvy doctor` before your first scan to check your Java/jadx/iOS
|
|
78
|
+
tooling setup, and `narvy <command> --help` for the full flag list of
|
|
79
|
+
any subcommand.
|
|
80
|
+
|
|
81
|
+
### Very large Android apps
|
|
82
|
+
|
|
83
|
+
Decompiling is memory-hungry, and file size is a poor predictor of how much
|
|
84
|
+
you need. Before decompiling, the CLI reads the DEX headers to estimate the
|
|
85
|
+
Java heap the app needs and checks it against `--max-mem` and your
|
|
86
|
+
machine's free memory, so an app that won't fit fails in about a second
|
|
87
|
+
instead of after several minutes of doomed work. The estimate is a
|
|
88
|
+
heuristic, not a hard limit - `--force` runs the decompile regardless.
|
|
89
|
+
|
|
90
|
+
### Optional Narvy Cloud scan
|
|
91
|
+
|
|
92
|
+
`narvy login` links the CLI to a Narvy account. Add `--upload`
|
|
93
|
+
to a scan to also submit it for a deeper cloud pass (full taint
|
|
94
|
+
analysis, compliance mapping, dashboard history) - not required for local
|
|
95
|
+
scanning, and not on by default. `narvy upload-all <directory>` does
|
|
96
|
+
the same for every binary target found in a folder in one command.
|
|
97
|
+
`narvy scans` lists recent scans on your account from the terminal.
|
|
98
|
+
|
|
99
|
+
## Known limitations
|
|
100
|
+
|
|
101
|
+
- Encrypted iOS binaries (the normal App Store distribution state) are
|
|
102
|
+
detected but not decrypted; only the local, static checks that don't need
|
|
103
|
+
the decrypted binary run.
|
|
104
|
+
- Web-source coverage depth isn't uniform across all eight languages - Rust
|
|
105
|
+
and C#/.NET have a smaller rule set than the others, and the CLI says so
|
|
106
|
+
in its own output when it applies.
|
|
107
|
+
- Only one architecture's native libraries are checked in a multi-ABI
|
|
108
|
+
APK/split bundle.
|
|
109
|
+
|
|
110
|
+
See [SETUP.md](SETUP.md) for detailed install/troubleshooting steps and the
|
|
111
|
+
exact commands this README's examples were run against.
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
Apache License 2.0 - see [LICENSE](LICENSE).
|
|
116
|
+
|
|
117
|
+
Rule packs under `narvy/rules/` are authored by Narvy
|
|
118
|
+
(Apache 2.0, same as the rest of this package) and contain no third-party
|
|
119
|
+
rule text.
|
|
120
|
+
`host-audit` runs Narvy's own host checks (secrets exposed on disk,
|
|
121
|
+
unauthenticated data services, cloud metadata exposure, container/daemon
|
|
122
|
+
posture, exposed VCS/artifacts in web roots) and, as the hardening baseline,
|
|
123
|
+
shells out to [Lynis](https://cisofy.com/lynis/) (GPL-3.0), auto-fetched at
|
|
124
|
+
run time over your SSH access, run arm's-length, never bundled. Lynis is
|
|
125
|
+
attributed as the engine in the audit output; its controls are not presented
|
|
126
|
+
as Narvy's own.
|
|
127
|
+
|
|
128
|
+
## Contributing
|
|
129
|
+
|
|
130
|
+
Issues and pull requests welcome, especially new or improved detection
|
|
131
|
+
rules. Rule packs live under `narvy/rules/`: Android/iOS
|
|
132
|
+
(`rules/android`, `rules/ios`) and web/backend (`rules/web`, Semgrep-based).
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
Narvy (LIMITLESS KNOWLEDGE, SIREN 994 833 143) takes the security of the
|
|
4
|
+
Narvy CLI seriously. This document explains how to report a vulnerability
|
|
5
|
+
and what you can expect from us.
|
|
6
|
+
|
|
7
|
+
## Reporting a vulnerability
|
|
8
|
+
|
|
9
|
+
**Email: security@narvy.io**
|
|
10
|
+
|
|
11
|
+
Please include:
|
|
12
|
+
|
|
13
|
+
- the CLI version (`narvy --version`) and your OS/architecture,
|
|
14
|
+
- what the vulnerability is and where,
|
|
15
|
+
- steps to reproduce, ideally a minimal proof of concept,
|
|
16
|
+
- the impact you believe it has.
|
|
17
|
+
|
|
18
|
+
Do **not** open a public GitHub issue for a security vulnerability. Use the
|
|
19
|
+
email above (or GitHub's private "Report a vulnerability" advisory flow if
|
|
20
|
+
enabled on the repository).
|
|
21
|
+
|
|
22
|
+
If you need to send sensitive details encrypted, email us first with no
|
|
23
|
+
sensitive content and we will agree an encrypted channel. We do not currently
|
|
24
|
+
publish a PGP key and would rather say so than list one we do not use.
|
|
25
|
+
|
|
26
|
+
## Our commitments
|
|
27
|
+
|
|
28
|
+
- We **acknowledge** every good-faith report within **72 hours (3 business days)**.
|
|
29
|
+
- We give a first assessment (reproduced / severity) within **10 business days**.
|
|
30
|
+
- We keep you updated at least every **14 days** until resolution.
|
|
31
|
+
- We practise **coordinated disclosure**: we agree a public disclosure date with
|
|
32
|
+
you, default **90 days**, sooner if a fix ships sooner. We will credit you if
|
|
33
|
+
you want it, or keep you anonymous.
|
|
34
|
+
- Where warranted, we request a **CVE** so users can track the fix.
|
|
35
|
+
|
|
36
|
+
We do not run a paid bug-bounty programme today, and we will not imply one we
|
|
37
|
+
cannot fund. We intend to introduce one as we grow.
|
|
38
|
+
|
|
39
|
+
## Safe harbour
|
|
40
|
+
|
|
41
|
+
We will not pursue or support legal action against you for security research
|
|
42
|
+
conducted in good faith that respects this policy: stay in scope, avoid harm to
|
|
43
|
+
people, data and availability, only access data that is your own, and give us a
|
|
44
|
+
reasonable chance to fix before disclosing. Full terms, including the platform
|
|
45
|
+
scope, are on our disclosure page: https://narvy.io/security
|
|
46
|
+
|
|
47
|
+
## Supported versions
|
|
48
|
+
|
|
49
|
+
Security fixes are provided for the **latest released minor version** of the
|
|
50
|
+
CLI. Users on older versions should upgrade to receive fixes.
|
|
51
|
+
|
|
52
|
+
| Version | Supported |
|
|
53
|
+
|---|---|
|
|
54
|
+
| Latest release | Yes |
|
|
55
|
+
| Previous minor | Best effort |
|
|
56
|
+
| Older | No, please upgrade |
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## Regulated reporting (Cyber Resilience Act)
|
|
60
|
+
|
|
61
|
+
As the manufacturer of a product with digital elements placed on the EU market,
|
|
62
|
+
LIMITLESS KNOWLEDGE is subject to the reporting obligations of Article 14 of the
|
|
63
|
+
EU Cyber Resilience Act (Regulation (EU) 2024/2847), which apply from
|
|
64
|
+
**11 September 2026**. If a vulnerability in a shipped CLI release is found to be
|
|
65
|
+
**actively exploited**, we are required to notify ENISA and our national CSIRT
|
|
66
|
+
(CERT-FR / ANSSI, France) on a 24-hour early-warning, 72-hour notification, and
|
|
67
|
+
14-day final-report cadence. This runs in parallel with the coordinated
|
|
68
|
+
disclosure process above.
|
|
69
|
+
|
|
70
|
+
## Software Bill of Materials (SBOM)
|
|
71
|
+
|
|
72
|
+
Each CLI release ships with a **CycloneDX SBOM** of the CLI's own dependency
|
|
73
|
+
tree (`narvy-<version>.cyclonedx.json`), attached to the release. See
|
|
74
|
+
https://narvy.io/security for how to obtain it.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
*This is our documented process and will be reviewed by counsel; it is not legal
|
|
79
|
+
advice.*
|
|
File without changes
|