bootlint 0.1.0__py3-none-win_amd64.whl

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.
Binary file
@@ -0,0 +1,338 @@
1
+ Metadata-Version: 2.4
2
+ Name: bootlint
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Information Technology
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: Rust
11
+ Classifier: Topic :: Security
12
+ License-File: LICENSE-MIT
13
+ License-File: LICENSE-APACHE
14
+ Summary: Boot-chain security auditor for embedded Linux: U-Boot environment, FIT images, device trees and kernel config
15
+ Keywords: u-boot,security,embedded,firmware,audit
16
+ Author: Reflex Hardware Security
17
+ License-Expression: MIT OR Apache-2.0
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
+ Project-URL: Changelog, https://github.com/reflex-hs/bootlint/blob/main/CHANGELOG.md
21
+ Project-URL: Homepage, https://github.com/reflex-hs/bootlint
22
+ Project-URL: Issues, https://github.com/reflex-hs/bootlint/issues
23
+ Project-URL: Source, https://github.com/reflex-hs/bootlint
24
+
25
+ # bootlint
26
+
27
+ Boot-chain security auditor for embedded Linux devices. `bootlint` reads the
28
+ artifacts you pull off a board during a hardware security assessment and
29
+ points out what lets an attacker with physical access (UART, removable media,
30
+ flash programmer, network) take over the boot flow:
31
+
32
+ - **U-Boot environment**: `fw_printenv` output, `uEnv.txt`, `setenv` scripts,
33
+ and binary environment blobs (CRC32 header, single or redundant layout,
34
+ little or big endian, auto-detected size, optional offset into a flash dump).
35
+ - **FIT images** (`.itb`, and `.its` source): images, configurations, hash and
36
+ signature nodes, algorithm strength, configuration vs. image signing,
37
+ `sign-images` / `hashed-nodes` coverage, embedded hash verification, and
38
+ nested audits of embedded device trees and uncompressed kernels (IKCONFIG).
39
+ - **Device trees** (`.dtb`, and `.dts` source): U-Boot control DTB
40
+ `/signature` keys and their `required` mode, enabled JTAG/CoreSight and UART
41
+ nodes, USB OTG/peripheral mode, `/chosen` console and boot arguments.
42
+ - **Kernel configuration**: `.config`, `/proc/config.gz`, or an uncompressed
43
+ kernel image with an embedded config; 31 hardening checks and a severity
44
+ weighted score.
45
+
46
+ Output is a human report, JSON or SARIF 2.1.0, with `--fail-on` for CI gates.
47
+ It is a single static binary with no runtime dependencies, never executes
48
+ anything from the input and does not touch the network.
49
+
50
+ ## Install
51
+
52
+ Prebuilt binaries are published on PyPI for Linux (x86_64 and aarch64, glibc and
53
+ musl), macOS (Apple Silicon and Intel) and Windows (x86_64), so no Rust toolchain is
54
+ needed:
55
+
56
+ ```sh
57
+ pipx install bootlint # or: uv tool install bootlint, or pip install bootlint
58
+ ```
59
+
60
+ [hwntools](https://github.com/reflex-hs/hwntools) installs it together with the other
61
+ Reflex tools with `pip install "hwntools[tools]"`.
62
+
63
+ To build from source with Cargo:
64
+
65
+ ```sh
66
+ # latest version from GitHub (works today)
67
+ cargo install --locked --git https://github.com/reflex-hs/bootlint
68
+
69
+ # from crates.io (once published)
70
+ cargo install --locked bootlint
71
+
72
+ # from a checkout
73
+ cargo install --locked --path .
74
+ ```
75
+
76
+ Building from source requires Rust 1.88 or newer.
77
+
78
+ ## Usage
79
+
80
+ ```sh
81
+ # Auto-detects the input type from content
82
+ bootlint fw_printenv.txt
83
+ bootlint uboot-env.bin image.itb u-boot.dtb /proc/config.gz
84
+
85
+ # Scan an extracted boot partition or rootfs (known file names + any FDT blob)
86
+ bootlint ./extracted/boot/
87
+
88
+ # Environment inside a raw SPI flash dump at a known offset
89
+ bootlint --type env-bin --env-offset 0x100000 --env-size 0x10000 spi.bin
90
+
91
+ # Machine-readable output and CI gating
92
+ bootlint --json image.itb > report.json
93
+ bootlint --sarif -o bootlint.sarif uEnv.txt
94
+ bootlint --fail-on high uEnv.txt image.itb # exit 1 if any high/critical finding
95
+
96
+ # Rule catalog
97
+ bootlint --list-rules
98
+ ```
99
+
100
+ Options:
101
+
102
+ | Option | Description |
103
+ | --- | --- |
104
+ | `-t, --type <auto\|env\|env-bin\|fit\|dtb\|kconfig>` | Force the input type (default `auto`). |
105
+ | `-f, --format <human\|json\|sarif>` | Output format; `--json` and `--sarif` are shortcuts. |
106
+ | `-o, --output <FILE>` | Write the report to a file. |
107
+ | `--fail-on <SEVERITY>` | Exit 1 if a finding at or above `info/low/medium/high/critical` exists. |
108
+ | `--min-severity <SEVERITY>` | Hide findings below this severity. |
109
+ | `--env-size <N>` | Binary environment size (`CONFIG_ENV_SIZE`), e.g. `0x2000` or `8k`. |
110
+ | `--env-offset <N>` | Offset of the environment inside the file. |
111
+ | `-q, --quiet` | Hide the inventory/decoding details in the human report. |
112
+ | `--no-color` | Disable ANSI colors (also honours `NO_COLOR`). |
113
+
114
+ Exit codes: `0` success, `1` `--fail-on` threshold reached, `2` an input
115
+ could not be read or recognized.
116
+
117
+ To try it without real firmware, generate synthetic fixtures:
118
+
119
+ ```sh
120
+ cargo run --example make_fixtures -- fixtures
121
+ bootlint fixtures/
122
+ ```
123
+
124
+ ## Sample output
125
+
126
+ ```text
127
+ == fixtures/uboot-env.bin [uboot-env]
128
+ | binary environment: size 0x2000, redundant (CRC + flag) header, little-endian CRC32 OK
129
+ | flag byte 0x01
130
+ | bootcmd=usb start; fatload usb 0 ${loadaddr} boot.scr; source ${loadaddr}; run mmcboot
131
+ | bootdelay=2
132
+ | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait
133
+ HIGH BL-ENV-001 Autoboot can be interrupted without a stop key @ bootdelay
134
+ Any key on the UART within 2 s stops autoboot and opens the U-Boot shell.
135
+ evidence: bootdelay=2
136
+ HIGH BL-ENV-008 Boot from removable media or unauthenticated script @ bootcmd
137
+ Boot flow probes or loads from USB storage.
138
+ evidence: fatload usb 0 0x42000000 boot.scr; usb start
139
+ MEDIUM BL-CMD-001 Kernel console on a serial UART @ bootargs
140
+ Kernel console is routed to serial device 'ttyS0'.
141
+ evidence: console=ttyS0,115200
142
+ MEDIUM BL-ENV-008 Boot from removable media or unauthenticated script @ bootcmd
143
+ Boot script executed with 'source'; it is unauthenticated unless loaded from a signed FIT.
144
+ evidence: source 0x42000000
145
+ LOW BL-ENV-003 U-Boot console not silenced @ silent
146
+ silent is not enabled (requires CONFIG_SILENT_CONSOLE).
147
+ evidence: silent unset
148
+ LOW BL-ENV-005 No runtime environment access control (.flags) @ .flags
149
+ No .flags variable restricts which variables may be changed.
150
+ LOW BL-ENV-007 Kernel booted without signature verification @ mmcboot
151
+ bootm without a #config selector: if this is a legacy uImage it is only CRC-checked; if it is a FIT, signatures apply only with a required key in the control DTB.
152
+ evidence: bootm 0x42000000
153
+
154
+ == fixtures/image.itb [fit]
155
+ | description: Example FIT
156
+ | image kernel-1: type=kernel arch=arm os=linux compression=gzip size=22 hash=[sha1] signature=[sha1,rsa2048]
157
+ | image fdt-1: type=flat_dt arch=- os=- compression=none size=150 hash=[crc32] signature=[]
158
+ | config conf-1 (default): kernel=kernel-1 fdt=fdt-1 signature=[]
159
+ HIGH BL-FIT-002 Weak hash algorithm @ /images/fdt-1/hash-1
160
+ Image hash uses weak algorithm 'crc32'.
161
+ evidence: algo = "crc32"
162
+ HIGH BL-FIT-004 Configuration not signed @ /configurations
163
+ Only images are signed; configurations are not. Signed images can be recombined (mix-and-match).
164
+ MEDIUM BL-DTB-004 Debug peripheral enabled @ /images/fdt-1:/jtag@0
165
+ 1 debug node(s) enabled.
166
+ evidence: /jtag@0
167
+ MEDIUM BL-FIT-002 Weak hash algorithm @ /images/kernel-1/hash-1
168
+ Image hash uses weak algorithm 'sha1'.
169
+ evidence: algo = "sha1"
170
+ MEDIUM BL-FIT-006 Weak signature algorithm @ /images/kernel-1/signature-1
171
+ Signature algorithm: sha1 digest is collision-prone; RSA-2048 is below the 3072-bit level recommended beyond 2030.
172
+ evidence: algo = "sha1,rsa2048"
173
+
174
+ Summary: 2 file(s), 12 finding(s): 0 critical 4 high 5 medium 3 low 0 info
175
+ ```
176
+
177
+ ## Rules
178
+
179
+ | ID | Default severity | Title |
180
+ | --- | --- | --- |
181
+ | `BL-ENV-001` | high | Autoboot can be interrupted without a stop key |
182
+ | `BL-ENV-002` | high | Autoboot disabled (bootdelay=-1) |
183
+ | `BL-ENV-003` | low | U-Boot console not silenced |
184
+ | `BL-ENV-004` | medium | Network boot command in the boot path |
185
+ | `BL-ENV-005` | low | No runtime environment access control (.flags) |
186
+ | `BL-ENV-006` | high | Image verification disabled |
187
+ | `BL-ENV-007` | medium | Kernel booted without signature verification |
188
+ | `BL-ENV-008` | high | Boot from removable media or unauthenticated script |
189
+ | `BL-ENV-009` | medium | USB download / flashing gadget reachable |
190
+ | `BL-ENV-010` | info | Environment CRC invalid |
191
+ | `BL-ENV-011` | info | Secure-boot related variable present |
192
+ | `BL-ENV-012` | info | Redundant environment copies differ |
193
+ | `BL-CMD-001` | medium | Kernel console on a serial UART |
194
+ | `BL-CMD-002` | critical | init replaced with a shell |
195
+ | `BL-CMD-003` | high | Single-user / rescue boot |
196
+ | `BL-CMD-004` | medium | Root filesystem or IP config from the network |
197
+ | `BL-CMD-005` | high | Initramfs / systemd debug shell |
198
+ | `BL-CMD-006` | low | Verbose kernel logging |
199
+ | `BL-CMD-007` | medium | Kernel security feature disabled on the command line |
200
+ | `BL-CMD-008` | high | Kernel debugger enabled on the command line |
201
+ | `BL-FIT-001` | medium | FIT image component has no hash node |
202
+ | `BL-FIT-002` | high | Weak hash algorithm |
203
+ | `BL-FIT-003` | high | FIT image is not signed |
204
+ | `BL-FIT-004` | high | Configuration not signed |
205
+ | `BL-FIT-005` | high | Configuration signature does not cover all referenced images |
206
+ | `BL-FIT-006` | medium | Weak signature algorithm |
207
+ | `BL-FIT-007` | high | Signature node without a value |
208
+ | `BL-FIT-008` | low | Broken FIT structure |
209
+ | `BL-FIT-009` | medium | Unit address in FIT node name |
210
+ | `BL-FIT-010` | high | Embedded hash does not match image data |
211
+ | `BL-FIT-011` | info | Image data stored externally |
212
+ | `BL-DTB-001` | medium | No verified-boot keys in U-Boot control DTB |
213
+ | `BL-DTB-002` | medium | Verified-boot key required for images only |
214
+ | `BL-DTB-003` | high | Verified-boot key not required |
215
+ | `BL-DTB-004` | medium | Debug peripheral enabled |
216
+ | `BL-DTB-005` | low | Serial UARTs enabled |
217
+ | `BL-DTB-006` | low | stdout-path points at a serial console |
218
+ | `BL-DTB-007` | low | USB controller in device/OTG mode |
219
+ | `BL-DTB-008` | medium | Weak verified-boot key |
220
+ | `BL-KCFG-001` | medium | KASLR disabled |
221
+ | `BL-KCFG-002` | medium | /dev/mem not restricted |
222
+ | `BL-KCFG-003` | low | /dev/mem I/O ranges not restricted |
223
+ | `BL-KCFG-004` | low | /dev/mem enabled |
224
+ | `BL-KCFG-005` | high | /dev/kmem enabled |
225
+ | `BL-KCFG-006` | high | Unsigned kernel modules can be loaded |
226
+ | `BL-KCFG-007` | high | Kernel debugger (KGDB) built in |
227
+ | `BL-KCFG-008` | medium | KDB shell built in |
228
+ | `BL-KCFG-009` | medium | Kernel lockdown not available |
229
+ | `BL-KCFG-010` | medium | Strong stack protector disabled |
230
+ | `BL-KCFG-011` | medium | Kernel text/rodata not write-protected |
231
+ | `BL-KCFG-012` | low | Module memory not write-protected |
232
+ | `BL-KCFG-013` | medium | Hardened usercopy disabled |
233
+ | `BL-KCFG-014` | medium | FORTIFY_SOURCE disabled |
234
+ | `BL-KCFG-015` | low | Slab freelist not randomized |
235
+ | `BL-KCFG-016` | low | Slab freelist not hardened |
236
+ | `BL-KCFG-017` | low | Heap memory not zeroed on allocation |
237
+ | `BL-KCFG-018` | medium | /proc/kcore enabled |
238
+ | `BL-KCFG-019` | medium | kexec enabled |
239
+ | `BL-KCFG-020` | low | Hibernation enabled |
240
+ | `BL-KCFG-021` | low | debugfs enabled |
241
+ | `BL-KCFG-022` | low | Magic SysRq enabled |
242
+ | `BL-KCFG-023` | low | Unprivileged BPF allowed by default |
243
+ | `BL-KCFG-024` | low | seccomp disabled |
244
+ | `BL-KCFG-025` | low | dmesg readable by unprivileged users |
245
+ | `BL-KCFG-026` | low | Kernel continues after an oops |
246
+ | `BL-KCFG-027` | low | Kernel config exposed in /proc/config.gz |
247
+ | `BL-KCFG-028` | low | /dev/port enabled |
248
+ | `BL-KCFG-029` | low | Kernel stacks lack guard pages |
249
+ | `BL-KCFG-030` | low | No major LSM enabled |
250
+ | `BL-KCFG-031` | low | dm-verity not available |
251
+
252
+ Findings may be raised or lowered from the default severity when context
253
+ warrants it (for example `bootdelay=0` is medium, `bootdelay=3` is high).
254
+
255
+ ## How the checks work (and their limits)
256
+
257
+ `bootlint` is a static, heuristic auditor. It tells you where to look; it
258
+ does not prove a device is exploitable or secure. Things to keep in mind:
259
+
260
+ - **Environment vs. build configuration.** Many protections are compile-time
261
+ U-Boot options that leave no trace in the environment:
262
+ `CONFIG_AUTOBOOT_KEYED`, `CONFIG_SILENT_CONSOLE`, `CONFIG_ENV_FLAGS_LIST_STATIC`,
263
+ `CONFIG_ENV_WRITEABLE_LIST`, `CONFIG_FIT_SIGNATURE`, a locked-down command
264
+ set, or a read-only environment. A stop key in the environment only works
265
+ if `CONFIG_AUTOBOOT_KEYED` is enabled. Confirm on the device.
266
+ - **Boot path reachability.** Variables are followed from `bootcmd`,
267
+ `preboot`, `altbootcmd` and `bootargs` through `run` and `${var}`
268
+ references (including distro-boot style `run bootcmd_${target}`, which is
269
+ treated as a prefix match). Findings in variables that are never referenced
270
+ are reported one severity lower. Fallback branches (`if ...; else run
271
+ netboot; fi`) count as reachable, because forcing the first branch to fail
272
+ is usually easy with physical access.
273
+ - **`bootm` without `#config`** cannot be classified statically: a legacy
274
+ uImage is CRC-only, a FIT is only signature-checked if the control DTB has a
275
+ required key. It is reported as low so you check which one it is.
276
+ - **`.flags` and full environments.** Checks that only make sense for a full
277
+ environment (`silent`, `.flags`, missing `bootdelay`) run only when the input
278
+ has `bootcmd` plus `bootdelay` or `baudrate`, so `uEnv.txt` fragments are
279
+ not flagged for them.
280
+ - **FIT signing.** Configuration signatures are what U-Boot recommends;
281
+ image-only signatures allow mix-and-match of signed images. Coverage uses
282
+ `hashed-nodes` when present (it is written by mkimage when signing), else
283
+ `sign-images`; if neither exists, mkimage's default (`kernel`, `fdt`,
284
+ `script`) is assumed and the finding says so. Signature values are not
285
+ cryptographically verified (no public key is needed or used); embedded
286
+ `crc32/md5/sha1/sha256/sha384/sha512` hashes are recomputed. External-data
287
+ FITs (`data-offset`/`data-position`) are not hash-verified.
288
+ - **Algorithm strength.** `sha1` digests are medium, `md5`/`crc32` high,
289
+ RSA below 2048 bits high, RSA-2048 low (acceptable until about 2030 per
290
+ NIST SP 800-131A), RSA-3072/4096 and ECDSA P-256/P-384 pass.
291
+ - **Control DTB detection** uses markers (`/config`, `/binman`,
292
+ `bootph-*`/`u-boot,dm-*` properties, `/signature`). Keys might be in a
293
+ separate DTB appended to U-Boot; audit that file too.
294
+ - **Debug peripherals** are recognized by node names and compatibles
295
+ (`jtag`, `coresight`, `etm`, `arm,dcc`, ...). Vendor-specific debug blocks
296
+ with unusual names will be missed. Enabled UARTs are expected on most
297
+ boards and are reported as low so you can map them to header pins.
298
+ - **DTS parsing** is best effort: preprocessor macros are not expanded
299
+ (unknown identifiers in cells become 0) and `/incbin/` data is empty. Use
300
+ the compiled `.dtb` when you have it.
301
+ - **Kernel config score** is `sum(weight of passed checks) / sum(weight of
302
+ applicable checks)`, with weights high=3, medium=2, low=1. Some options do
303
+ not exist on every architecture or kernel version; KASLR is skipped on
304
+ 32-bit ARM, and legacy names (`CC_STACKPROTECTOR_STRONG`, `DEBUG_RODATA`)
305
+ are accepted. `CONFIG_CMDLINE` is audited, at lower severity unless
306
+ `CMDLINE_FORCE`/`CMDLINE_EXTEND` makes it authoritative.
307
+ - **Binary environments** are located by CRC32 for the file size, half the
308
+ file size and common `CONFIG_ENV_SIZE` values. If no CRC matches,
309
+ `bootlint` decodes the content heuristically and reports `BL-ENV-010`.
310
+ It does not search a whole flash image for environments; use
311
+ `--env-offset` (for example after locating `bootcmd=` with `strings -t x`).
312
+
313
+ ## Development
314
+
315
+ ```sh
316
+ cargo test
317
+ cargo clippy --all-targets -- -D warnings
318
+ cargo fmt --check
319
+ ```
320
+
321
+ Test fixtures are synthesized in code: binary environments are built with
322
+ real CRC32 headers and FIT/DTB blobs are produced by the built-in FDT writer
323
+ (`bootlint::fdt::write`), so no vendor firmware is needed or included.
324
+
325
+ ## License
326
+
327
+ Licensed under either of
328
+
329
+ - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))
330
+ - MIT license ([LICENSE-MIT](LICENSE-MIT))
331
+
332
+ at your option. Copyright (c) 2026 Reflex Hardware Security.
333
+
334
+ Unless you explicitly state otherwise, any contribution intentionally
335
+ submitted for inclusion in the work by you, as defined in the Apache-2.0
336
+ license, shall be dual licensed as above, without any additional terms or
337
+ conditions.
338
+
@@ -0,0 +1,7 @@
1
+ bootlint-0.1.0.data/scripts/bootlint.exe,sha256=WQfcDwegRgbJqsiZO3VoZ4qJrEUCdGqrnrnkXV_7z7Y,1285632
2
+ bootlint-0.1.0.dist-info/METADATA,sha256=PsqHw52Yl9omarBXAsAddg8PWkhLSsIojxhGyWq9HPk,17052
3
+ bootlint-0.1.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
4
+ bootlint-0.1.0.dist-info/licenses/LICENSE-APACHE,sha256=IP57AOkE7WkOO5_WBzeE0_xCgUHb0QuBwB_RQ9B5f1g,9899
5
+ bootlint-0.1.0.dist-info/licenses/LICENSE-MIT,sha256=Vj1ywj0rwPNjEDkwb9r4lMnKJBN0KPtCFwgZ1ko_yzk,1102
6
+ bootlint-0.1.0.dist-info/sboms/bootlint.cyclonedx.json,sha256=53ae64eyMxZtaBwEEbyEa0vDcmjY5JNEayTkmfQSiD8,52481
7
+ bootlint-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Reflex Hardware Security
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.