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.
Files changed (51) hide show
  1. {modelbom-0.1.0 → modelbom-0.1.2}/CHANGELOG.md +19 -1
  2. {modelbom-0.1.0 → modelbom-0.1.2}/CITATION.cff +2 -2
  3. {modelbom-0.1.0 → modelbom-0.1.2}/PKG-INFO +14 -12
  4. {modelbom-0.1.0 → modelbom-0.1.2}/README.md +13 -11
  5. modelbom-0.1.2/examples/safe-app/requirements.txt +5 -0
  6. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/requirements.txt +3 -3
  7. {modelbom-0.1.0 → modelbom-0.1.2}/pyproject.toml +1 -1
  8. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/__init__.py +1 -1
  9. modelbom-0.1.0/examples/safe-app/requirements.txt +0 -5
  10. {modelbom-0.1.0 → modelbom-0.1.2}/.gitignore +0 -0
  11. {modelbom-0.1.0 → modelbom-0.1.2}/LICENSE +0 -0
  12. {modelbom-0.1.0 → modelbom-0.1.2}/NOTICE +0 -0
  13. {modelbom-0.1.0 → modelbom-0.1.2}/docs/demo.svg +0 -0
  14. {modelbom-0.1.0 → modelbom-0.1.2}/docs/methodology.md +0 -0
  15. {modelbom-0.1.0 → modelbom-0.1.2}/docs/rules.md +0 -0
  16. {modelbom-0.1.0 → modelbom-0.1.2}/examples/safe-app/app.py +0 -0
  17. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/data.py +0 -0
  18. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/download.py +0 -0
  19. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/rag.py +0 -0
  20. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/serve.py +0 -0
  21. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/tokenizer_config.json +0 -0
  22. {modelbom-0.1.0 → modelbom-0.1.2}/examples/vulnerable-app/train.py +0 -0
  23. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/__main__.py +0 -0
  24. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/artifacts.py +0 -0
  25. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/attack_paths.py +0 -0
  26. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/cli.py +0 -0
  27. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/code_rules.py +0 -0
  28. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/deps.py +0 -0
  29. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/discovery.py +0 -0
  30. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/graph.py +0 -0
  31. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/models.py +0 -0
  32. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/pickle_scan.py +0 -0
  33. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/py.typed +0 -0
  34. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/__init__.py +0 -0
  35. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/cyclonedx.py +0 -0
  36. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/jsonfmt.py +0 -0
  37. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/sarif.py +0 -0
  38. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/report/text.py +0 -0
  39. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/rules.py +0 -0
  40. {modelbom-0.1.0 → modelbom-0.1.2}/src/modelbom/scanner.py +0 -0
  41. {modelbom-0.1.0 → modelbom-0.1.2}/tests/__init__.py +0 -0
  42. {modelbom-0.1.0 → modelbom-0.1.2}/tests/fixtures.py +0 -0
  43. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_artifacts.py +0 -0
  44. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_cli.py +0 -0
  45. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_code_rules.py +0 -0
  46. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_deps.py +0 -0
  47. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_discovery.py +0 -0
  48. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_graph_paths.py +0 -0
  49. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_pickle_scan.py +0 -0
  50. {modelbom-0.1.0 → modelbom-0.1.2}/tests/test_reports.py +0 -0
  51. {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.0...HEAD
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.0
6
- date-released: 2026-11-30
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.0
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
  [![CI](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml/badge.svg)](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml)
39
- [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
39
+ [![PyPI](https://img.shields.io/pypi/v/modelbom.svg)](https://pypi.org/project/modelbom/)
40
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/rajyavardhan01/modelbom/badge)](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/modelbom)
41
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE)
40
42
  ![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)
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.0). Rule IDs and the JSON schema may still change before 1.0.
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 git+https://github.com/rajyavardhan01/modelbom
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 offline (exit code 0). With `--online` it reports the advisories published against its pinned versions.
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.0
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
  [![CI](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml/badge.svg)](https://github.com/rajyavardhan01/modelbom/actions/workflows/ci.yml)
6
- [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
6
+ [![PyPI](https://img.shields.io/pypi/v/modelbom.svg)](https://pypi.org/project/modelbom/)
7
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/rajyavardhan01/modelbom/badge)](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/modelbom)
8
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/rajyavardhan01/modelbom/blob/main/LICENSE)
7
9
  ![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)
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.0). Rule IDs and the JSON schema may still change before 1.0.
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 git+https://github.com/rajyavardhan01/modelbom
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 offline (exit code 0). With `--online` it reports the advisories published against its pinned versions.
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.0
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.
@@ -0,0 +1,5 @@
1
+ torch==2.15.0
2
+ transformers==5.24.1
3
+ datasets==5.2.0
4
+ safetensors==0.8.0
5
+ pyyaml==6.0.4
@@ -1,8 +1,8 @@
1
- torch>=2.1
1
+ torch>=2.15
2
2
  transformers
3
- datasets~=2.19
3
+ datasets~=5.2
4
4
  langchain-community
5
5
  faiss-cpu==1.8.0
6
6
  numpy==1.26.4
7
7
  pyyaml
8
- requests==2.32.3
8
+ requests==2.34.2
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "modelbom"
7
- version = "0.1.0"
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"
@@ -4,6 +4,6 @@ modelbom statically inspects source code, model artifacts and dependency manifes
4
4
  imports, unpickles or otherwise loads the artifacts it scans.
5
5
  """
6
6
 
7
- __version__ = "0.1.0"
7
+ __version__ = "0.1.2"
8
8
 
9
9
  __all__ = ["__version__"]
@@ -1,5 +0,0 @@
1
- torch==2.6.0
2
- transformers==4.48.0
3
- datasets==3.2.0
4
- safetensors==0.5.2
5
- pyyaml==6.0.2
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