modelbom 0.1.0__tar.gz → 0.1.2__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.
- {modelbom-0.1.0 → modelbom-0.1.2}/CHANGELOG.md +19 -1
- {modelbom-0.1.0 → modelbom-0.1.2}/CITATION.cff +2 -2
- {modelbom-0.1.0 → modelbom-0.1.2}/PKG-INFO +14 -12
- {modelbom-0.1.0 → modelbom-0.1.2}/README.md +13 -11
- modelbom-0.1.2/examples/safe-app/requirements.txt +5 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/requirements.txt +3 -3
- {modelbom-0.1.0 → modelbom-0.1.2}/pyproject.toml +1 -1
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/__init__.py +1 -1
- modelbom-0.1.0/examples/safe-app/requirements.txt +0 -5
- {modelbom-0.1.0 → modelbom-0.1.2}/.gitignore +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/LICENSE +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/NOTICE +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/docs/demo.svg +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/docs/methodology.md +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/docs/rules.md +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/safe-app/app.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/data.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/download.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/rag.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/serve.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/tokenizer_config.json +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/train.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/__main__.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/artifacts.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/attack_paths.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/cli.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/code_rules.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/deps.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/discovery.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/graph.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/models.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/pickle_scan.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/py.typed +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/__init__.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/cyclonedx.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/jsonfmt.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/sarif.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/text.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/rules.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/scanner.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/__init__.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/fixtures.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_artifacts.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_cli.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_code_rules.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_deps.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_discovery.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_graph_paths.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_pickle_scan.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_reports.py +0 -0
- {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_safety.py +0 -0
|
@@ -6,6 +6,22 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.2] - 2026-12-01
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- GitHub Action: inputs reach the shell only through environment variables.
|
|
14
|
+
- CI installs its tools from hash-pinned requirement files; GitHub Actions are pinned by commit; CodeQL scanning added.
|
|
15
|
+
|
|
16
|
+
## [0.1.1] - 2026-12-01
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- README uses absolute links, so the demo, badges and links also work on PyPI.
|
|
21
|
+
- Release workflow: re-running a release updates it instead of failing.
|
|
22
|
+
- OpenSSF Scorecard workflow uses `scorecard-action` v2.6.0.
|
|
23
|
+
- `examples/safe-app` pins current releases with no known advisories.
|
|
24
|
+
|
|
9
25
|
## [0.1.0] - 2026-11-30
|
|
10
26
|
|
|
11
27
|
### Added
|
|
@@ -25,5 +41,7 @@ All notable changes to this project are documented here. The format follows
|
|
|
25
41
|
- Inline (`# modelbom: ignore[...]`) and `.modelbomignore` suppressions, including rule-scoped globs.
|
|
26
42
|
- Composite GitHub Action and pre-commit hook.
|
|
27
43
|
|
|
28
|
-
[Unreleased]: https://github.com/rajyavardhan01/modelbom/compare/v0.1.
|
|
44
|
+
[Unreleased]: https://github.com/rajyavardhan01/modelbom/compare/v0.1.2...HEAD
|
|
45
|
+
[0.1.2]: https://github.com/rajyavardhan01/modelbom/compare/v0.1.1...v0.1.2
|
|
46
|
+
[0.1.1]: https://github.com/rajyavardhan01/modelbom/compare/v0.1.0...v0.1.1
|
|
29
47
|
[0.1.0]: https://github.com/rajyavardhan01/modelbom/releases/tag/v0.1.0
|
|
@@ -2,8 +2,8 @@ cff-version: 1.2.0
|
|
|
2
2
|
message: "If you use this software, please cite it as below, and cite the article it implements."
|
|
3
3
|
type: software
|
|
4
4
|
title: "modelbom: AI supply-chain scanner and CycloneDX AI-BOM generator"
|
|
5
|
-
version: 0.1.
|
|
6
|
-
date-released: 2026-
|
|
5
|
+
version: 0.1.2
|
|
6
|
+
date-released: 2026-12-01
|
|
7
7
|
license: Apache-2.0
|
|
8
8
|
repository-code: "https://github.com/rajyavardhan01/modelbom"
|
|
9
9
|
keywords:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: modelbom
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Find unsafe model loading, poisoned artifacts and unpinned AI dependencies, and emit a CycloneDX AI-BOM. Zero dependencies; never loads what it scans.
|
|
5
5
|
Project-URL: Homepage, https://github.com/rajyavardhan01/modelbom
|
|
6
6
|
Project-URL: Repository, https://github.com/rajyavardhan01/modelbom
|
|
@@ -36,12 +36,14 @@ Description-Content-Type: text/markdown
|
|
|
36
36
|
**Find unsafe model loading, poisoned artifacts and unpinned AI dependencies, and emit a CycloneDX AI-BOM. Zero dependencies; never loads what it scans.**
|
|
37
37
|
|
|
38
38
|
[](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml)
|
|
39
|
-
[](https://pypi.org/project/modelbom/)
|
|
40
|
+
[](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/modelbom)
|
|
41
|
+
[](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE)
|
|
40
42
|

|
|
41
43
|
|
|
42
|
-
<p align="center"><img src="docs/demo.svg" alt="modelbom scanning an example project and reporting findings and attack paths" width="860"></p>
|
|
44
|
+
<p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/modelbom/main/docs/demo.svg" alt="modelbom scanning an example project and reporting findings and attack paths" width="860"></p>
|
|
43
45
|
|
|
44
|
-
Status: alpha (v0.1.
|
|
46
|
+
Status: alpha (v0.1.2). Rule IDs and the JSON schema may still change before 1.0.
|
|
45
47
|
|
|
46
48
|
---
|
|
47
49
|
|
|
@@ -69,7 +71,7 @@ test asserts that its own source never calls a deserializer.
|
|
|
69
71
|
## Quickstart
|
|
70
72
|
|
|
71
73
|
```bash
|
|
72
|
-
pip install
|
|
74
|
+
pip install modelbom
|
|
73
75
|
modelbom scan path/to/your/project
|
|
74
76
|
```
|
|
75
77
|
|
|
@@ -116,7 +118,7 @@ ATTACK PATHS
|
|
|
116
118
|
Summary: 8 high · 6 medium · 4 low · 5 attack paths (1 suppressed)
|
|
117
119
|
```
|
|
118
120
|
|
|
119
|
-
`examples/safe-app` performs the same tasks safely and scans clean
|
|
121
|
+
`examples/safe-app` performs the same tasks safely and scans clean (exit code 0). It pins releases that had no known advisories when it was last updated; with `--online`, modelbom reports any advisories published since then.
|
|
120
122
|
|
|
121
123
|
## Usage
|
|
122
124
|
|
|
@@ -141,7 +143,7 @@ Inventory records (`MB206`) never affect the exit code.
|
|
|
141
143
|
|
|
142
144
|
22 rules in three families: code (`MB1xx`), artifacts (`MB2xx`) and dependencies (`MB3xx`).
|
|
143
145
|
Each carries OWASP Top 10 for LLM Applications 2025, OWASP Top 10 for Agentic Applications
|
|
144
|
-
2026, MITRE ATLAS and CWE references. See [docs/rules.md](docs/rules.md) or run
|
|
146
|
+
2026, MITRE ATLAS and CWE references. See [docs/rules.md](https://github.com/rajyavardhan01/modelbom/blob/main/docs/rules.md) or run
|
|
145
147
|
`modelbom rules`.
|
|
146
148
|
|
|
147
149
|
### Suppressing findings
|
|
@@ -187,7 +189,7 @@ jobs:
|
|
|
187
189
|
security-events: write
|
|
188
190
|
steps:
|
|
189
191
|
- uses: actions/checkout@v4
|
|
190
|
-
- uses: rajyavardhan01/modelbom@v0.1.
|
|
192
|
+
- uses: rajyavardhan01/modelbom@v0.1.2
|
|
191
193
|
with:
|
|
192
194
|
path: .
|
|
193
195
|
fail-on: high
|
|
@@ -212,7 +214,7 @@ exploit-pathway analysis described in:
|
|
|
212
214
|
> Pathways in AI-Integrated Systems," *Journal of Computational Analysis and Applications*,
|
|
213
215
|
> vol. 34, no. 12, pp. 46–56, 2025. doi:10.48047/jocaaa.2025.34.12.06
|
|
214
216
|
|
|
215
|
-
[docs/methodology.md](docs/methodology.md) maps each feature to the paper's sections and
|
|
217
|
+
[docs/methodology.md](https://github.com/rajyavardhan01/modelbom/blob/main/docs/methodology.md) maps each feature to the paper's sections and
|
|
216
218
|
tables, and lists what is not implemented yet.
|
|
217
219
|
|
|
218
220
|
### Related tools
|
|
@@ -253,13 +255,13 @@ libraries.
|
|
|
253
255
|
|
|
254
256
|
## Contributing
|
|
255
257
|
|
|
256
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md). Security issues: see [SECURITY.md](SECURITY.md).
|
|
258
|
+
See [CONTRIBUTING.md](https://github.com/rajyavardhan01/modelbom/blob/main/CONTRIBUTING.md). Security issues: see [SECURITY.md](https://github.com/rajyavardhan01/modelbom/blob/main/SECURITY.md).
|
|
257
259
|
|
|
258
260
|
## License
|
|
259
261
|
|
|
260
|
-
Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|
|
262
|
+
Apache License 2.0. See [LICENSE](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE) and [NOTICE](https://github.com/rajyavardhan01/modelbom/blob/main/NOTICE).
|
|
261
263
|
|
|
262
264
|
## Citation
|
|
263
265
|
|
|
264
|
-
If you use modelbom in research, please cite the software (see [CITATION.cff](CITATION.cff))
|
|
266
|
+
If you use modelbom in research, please cite the software (see [CITATION.cff](https://github.com/rajyavardhan01/modelbom/blob/main/CITATION.cff))
|
|
265
267
|
and the paper above.
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
**Find unsafe model loading, poisoned artifacts and unpinned AI dependencies, and emit a CycloneDX AI-BOM. Zero dependencies; never loads what it scans.**
|
|
4
4
|
|
|
5
5
|
[](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml)
|
|
6
|
-
[](https://pypi.org/project/modelbom/)
|
|
7
|
+
[](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/modelbom)
|
|
8
|
+
[](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE)
|
|
7
9
|

|
|
8
10
|
|
|
9
|
-
<p align="center"><img src="docs/demo.svg" alt="modelbom scanning an example project and reporting findings and attack paths" width="860"></p>
|
|
11
|
+
<p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/modelbom/main/docs/demo.svg" alt="modelbom scanning an example project and reporting findings and attack paths" width="860"></p>
|
|
10
12
|
|
|
11
|
-
Status: alpha (v0.1.
|
|
13
|
+
Status: alpha (v0.1.2). Rule IDs and the JSON schema may still change before 1.0.
|
|
12
14
|
|
|
13
15
|
---
|
|
14
16
|
|
|
@@ -36,7 +38,7 @@ test asserts that its own source never calls a deserializer.
|
|
|
36
38
|
## Quickstart
|
|
37
39
|
|
|
38
40
|
```bash
|
|
39
|
-
pip install
|
|
41
|
+
pip install modelbom
|
|
40
42
|
modelbom scan path/to/your/project
|
|
41
43
|
```
|
|
42
44
|
|
|
@@ -83,7 +85,7 @@ ATTACK PATHS
|
|
|
83
85
|
Summary: 8 high · 6 medium · 4 low · 5 attack paths (1 suppressed)
|
|
84
86
|
```
|
|
85
87
|
|
|
86
|
-
`examples/safe-app` performs the same tasks safely and scans clean
|
|
88
|
+
`examples/safe-app` performs the same tasks safely and scans clean (exit code 0). It pins releases that had no known advisories when it was last updated; with `--online`, modelbom reports any advisories published since then.
|
|
87
89
|
|
|
88
90
|
## Usage
|
|
89
91
|
|
|
@@ -108,7 +110,7 @@ Inventory records (`MB206`) never affect the exit code.
|
|
|
108
110
|
|
|
109
111
|
22 rules in three families: code (`MB1xx`), artifacts (`MB2xx`) and dependencies (`MB3xx`).
|
|
110
112
|
Each carries OWASP Top 10 for LLM Applications 2025, OWASP Top 10 for Agentic Applications
|
|
111
|
-
2026, MITRE ATLAS and CWE references. See [docs/rules.md](docs/rules.md) or run
|
|
113
|
+
2026, MITRE ATLAS and CWE references. See [docs/rules.md](https://github.com/rajyavardhan01/modelbom/blob/main/docs/rules.md) or run
|
|
112
114
|
`modelbom rules`.
|
|
113
115
|
|
|
114
116
|
### Suppressing findings
|
|
@@ -154,7 +156,7 @@ jobs:
|
|
|
154
156
|
security-events: write
|
|
155
157
|
steps:
|
|
156
158
|
- uses: actions/checkout@v4
|
|
157
|
-
- uses: rajyavardhan01/modelbom@v0.1.
|
|
159
|
+
- uses: rajyavardhan01/modelbom@v0.1.2
|
|
158
160
|
with:
|
|
159
161
|
path: .
|
|
160
162
|
fail-on: high
|
|
@@ -179,7 +181,7 @@ exploit-pathway analysis described in:
|
|
|
179
181
|
> Pathways in AI-Integrated Systems," *Journal of Computational Analysis and Applications*,
|
|
180
182
|
> vol. 34, no. 12, pp. 46–56, 2025. doi:10.48047/jocaaa.2025.34.12.06
|
|
181
183
|
|
|
182
|
-
[docs/methodology.md](docs/methodology.md) maps each feature to the paper's sections and
|
|
184
|
+
[docs/methodology.md](https://github.com/rajyavardhan01/modelbom/blob/main/docs/methodology.md) maps each feature to the paper's sections and
|
|
183
185
|
tables, and lists what is not implemented yet.
|
|
184
186
|
|
|
185
187
|
### Related tools
|
|
@@ -220,13 +222,13 @@ libraries.
|
|
|
220
222
|
|
|
221
223
|
## Contributing
|
|
222
224
|
|
|
223
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md). Security issues: see [SECURITY.md](SECURITY.md).
|
|
225
|
+
See [CONTRIBUTING.md](https://github.com/rajyavardhan01/modelbom/blob/main/CONTRIBUTING.md). Security issues: see [SECURITY.md](https://github.com/rajyavardhan01/modelbom/blob/main/SECURITY.md).
|
|
224
226
|
|
|
225
227
|
## License
|
|
226
228
|
|
|
227
|
-
Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|
|
229
|
+
Apache License 2.0. See [LICENSE](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE) and [NOTICE](https://github.com/rajyavardhan01/modelbom/blob/main/NOTICE).
|
|
228
230
|
|
|
229
231
|
## Citation
|
|
230
232
|
|
|
231
|
-
If you use modelbom in research, please cite the software (see [CITATION.cff](CITATION.cff))
|
|
233
|
+
If you use modelbom in research, please cite the software (see [CITATION.cff](https://github.com/rajyavardhan01/modelbom/blob/main/CITATION.cff))
|
|
232
234
|
and the paper above.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "modelbom"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Find unsafe model loading, poisoned artifacts and unpinned AI dependencies, and emit a CycloneDX AI-BOM. Zero dependencies; never loads what it scans."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|