Security: bilingual SECURITY.md with verified-conversion audit (model-audit-lite 0.5.2), ML-BOM, README link
Browse files- README.md +8 -0
- SECURITY.md +62 -11
- bom.json +123 -0
README.md
CHANGED
|
@@ -81,6 +81,10 @@ Compared against the PyTorch fp32 reference on a COCO validation image:
|
|
| 81 |
- Security audit uses [model-audit-lite](https://github.com/masahirocom/model-audit-lite)
|
| 82 |
(see `SECURITY.md` for details).
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
---
|
| 85 |
|
| 86 |
## モデルの概要
|
|
@@ -140,3 +144,7 @@ PyTorch fp32リファレンスと、COCO検証画像1枚で比較:
|
|
| 140 |
- 本変換は非公式のコミュニティ版です。
|
| 141 |
- セキュリティー監査には[model-audit-lite](https://github.com/masahirocom/model-audit-lite)を
|
| 142 |
使用しています(詳細は`SECURITY.md`)。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
- Security audit uses [model-audit-lite](https://github.com/masahirocom/model-audit-lite)
|
| 82 |
(see `SECURITY.md` for details).
|
| 83 |
|
| 84 |
+
### Security
|
| 85 |
+
|
| 86 |
+
Audited against its upstream with [model-audit-lite](https://github.com/masahirocom/model-audit-lite): weight format, bundled code, and a machine-readable lineage (ML-BOM). Details, checksums and how to reproduce: [SECURITY.md](SECURITY.md).
|
| 87 |
+
|
| 88 |
---
|
| 89 |
|
| 90 |
## モデルの概要
|
|
|
|
| 144 |
- 本変換は非公式のコミュニティ版です。
|
| 145 |
- セキュリティー監査には[model-audit-lite](https://github.com/masahirocom/model-audit-lite)を
|
| 146 |
使用しています(詳細は`SECURITY.md`)。
|
| 147 |
+
|
| 148 |
+
### セキュリティー
|
| 149 |
+
|
| 150 |
+
[model-audit-lite](https://github.com/masahirocom/model-audit-lite) で変換元と突き合わせて監査済みです(重みの形式、同梱コード、機械可読な系譜=ML-BOM)。詳細・チェックサム・再現方法は [SECURITY.md](SECURITY.md) をご覧ください。
|
SECURITY.md
CHANGED
|
@@ -1,21 +1,72 @@
|
|
| 1 |
-
# セキュリティー
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
##
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
```
|
|
|
|
|
|
|
| 16 |
6e4753261bcdf7eaf230d1c13b1f11435c4606afbfecbd4ce6ccb824aee201be table-transformer-detection_fp16.mlpackage/Manifest.json
|
| 17 |
```
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
-
|
|
|
|
| 1 |
+
# Security / セキュリティー
|
| 2 |
|
| 3 |
+
[English](#english) | [日本語](#日本語)
|
| 4 |
|
| 5 |
+
## English
|
| 6 |
|
| 7 |
+
**Verified conversion.** `table-transformer-detection-coreml` was audited on 2026-10-03 with [model-audit-lite](https://github.com/masahirocom/model-audit-lite) v0.5.2 against its upstream, [`microsoft/table-transformer-detection`](https://huggingface.co/microsoft/table-transformer-detection). Everything below can be re-run by you with one command.
|
| 8 |
+
|
| 9 |
+
### What was verified
|
| 10 |
+
|
| 11 |
+
| Check | Result |
|
| 12 |
+
|---|---|
|
| 13 |
+
| Weight format | Formats: coreml. No pickle-format files (`.bin` / `.pt` / `.pkl`), the format family that can execute code when loaded. |
|
| 14 |
+
| Lineage | A CycloneDX 1.6 ML-BOM ([`bom.json`](bom.json)) records every file's SHA-256 and the conversion chain back to [`microsoft/table-transformer-detection`](https://huggingface.co/microsoft/table-transformer-detection) (audited revision `b84248eea639`). |
|
| 15 |
+
| Bundled code | None. No custom Python code, so `trust_remote_code` is not needed. |
|
| 16 |
+
| Safety behavior | Not applicable: this is not an instruction-following chat model, so there is no instruction behavior to probe. |
|
| 17 |
+
|
| 18 |
+
### Why use this build rather than another conversion of the same model
|
| 19 |
+
|
| 20 |
+
You normally cannot tell what a conversion you did not make has changed. Here you can: every file is hashed, the lineage back to upstream is machine-readable, and the audit is reproducible with one command. The command is at the bottom.
|
| 21 |
+
|
| 22 |
+
### Scope
|
| 23 |
+
|
| 24 |
+
This audit covers the distribution (files, lineage). It does not inspect the weights for backdoors. Model behavior comes from the upstream model; format conversion and quantization can shift it in either direction.
|
| 25 |
+
|
| 26 |
+
### Checksums (SHA-256)
|
| 27 |
|
| 28 |
```
|
| 29 |
+
e740b3338eb7804b6ea7070a2879558927472bf3ad1e49f7000024493bf789e4 table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
|
| 30 |
+
87fb13cc9b0ae4bc4d943996f6e7ce9119255aa15ddc151e4b725fb67e95ddec table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin
|
| 31 |
6e4753261bcdf7eaf230d1c13b1f11435c4606afbfecbd4ce6ccb824aee201be table-transformer-detection_fp16.mlpackage/Manifest.json
|
| 32 |
```
|
| 33 |
|
| 34 |
+
### Reproduce
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
pip install git+https://github.com/masahirocom/model-audit-lite.git
|
| 38 |
+
model-audit-lite scan masahiroid/table-transformer-detection-coreml --base microsoft/table-transformer-detection
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## 日本語
|
| 42 |
+
|
| 43 |
+
**検証済みの変換版です。** `table-transformer-detection-coreml` は 2026-10-03 に [model-audit-lite](https://github.com/masahirocom/model-audit-lite) v0.5.2 で、変換元 [`microsoft/table-transformer-detection`](https://huggingface.co/microsoft/table-transformer-detection) と突き合わせて監査しました。以下はすべて、1コマンドであなた自身が再実行できます。
|
| 44 |
+
|
| 45 |
+
### 検証した内容
|
| 46 |
+
|
| 47 |
+
| 項目 | 結果 |
|
| 48 |
+
|---|---|
|
| 49 |
+
| 重みの形式 | 形式: coreml。pickle形式(`.bin` / `.pt` / `.pkl`)のファイルはありません。読み込み時にコードを実行しうる形式群です。 |
|
| 50 |
+
| 系譜 | CycloneDX 1.6 の ML-BOM([`bom.json`](bom.json))に、全ファイルのSHA-256と、[`microsoft/table-transformer-detection`](https://huggingface.co/microsoft/table-transformer-detection) までの変換の経路を記録しています(監査したリビジョン `b84248eea639`)。 |
|
| 51 |
+
| 同梱コード | なし。独自のPythonコードを含まないため、`trust_remote_code` は不要です。 |
|
| 52 |
+
| 安全性の挙動 | 対象外: 指示に従うチャットモデルではないため、指示への挙動を試験する対象がありません。 |
|
| 53 |
+
|
| 54 |
+
### 同じモデルの他の変換版ではなく、これを選ぶ理由
|
| 55 |
+
|
| 56 |
+
自分で作っていない変換版が何を変えたのかは、普通は分かりません。この版は、全ファイルにハッシュがあり、変換元までの系譜が機械可読で、1コマンドで再現できます。 再現のコマンドは末尾にあります。
|
| 57 |
+
|
| 58 |
+
### 範囲
|
| 59 |
+
|
| 60 |
+
この監査の対象は、配布物(ファイル・系譜)です。重みのバックドアの検査は含みません。モデルの挙動は変換元に由来し、形式変換や量子化で良くも悪くも変わりうるため、変換前後の差は保証しません。
|
| 61 |
+
|
| 62 |
+
### チェックサム (SHA-256)
|
| 63 |
+
|
| 64 |
+
上記の英語セクションと同じです([`bom.json`](bom.json) にも機械可読で記載)。
|
| 65 |
+
|
| 66 |
+
### 再現方法
|
| 67 |
+
|
| 68 |
+
上記の英語セクションと同じコマンドです。
|
| 69 |
+
|
| 70 |
---
|
| 71 |
|
| 72 |
+
[model-audit-lite](https://github.com/masahirocom/model-audit-lite) (MIT License) — you can run the same audit on your own models. / 自分のモデルにも同じ監査を適用できます。
|
bom.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bomFormat": "CycloneDX",
|
| 3 |
+
"specVersion": "1.6",
|
| 4 |
+
"serialNumber": "urn:uuid:574fc085-dd73-42d5-8d19-603b00f8d0f7",
|
| 5 |
+
"version": 1,
|
| 6 |
+
"metadata": {
|
| 7 |
+
"timestamp": "2026-10-03T12:15:28Z",
|
| 8 |
+
"tools": {
|
| 9 |
+
"components": [
|
| 10 |
+
{
|
| 11 |
+
"type": "application",
|
| 12 |
+
"name": "model-audit-lite",
|
| 13 |
+
"version": "0.5.2"
|
| 14 |
+
}
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"component": {
|
| 18 |
+
"type": "machine-learning-model",
|
| 19 |
+
"bom-ref": "hf:masahiroid/table-transformer-detection-coreml@b84248eea639853aa68f72eb5d0c0534afff07de",
|
| 20 |
+
"name": "masahiroid/table-transformer-detection-coreml",
|
| 21 |
+
"version": "b84248eea639853aa68f72eb5d0c0534afff07de"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"components": [
|
| 25 |
+
{
|
| 26 |
+
"type": "machine-learning-model",
|
| 27 |
+
"bom-ref": "hf:masahiroid/table-transformer-detection-coreml@b84248eea639853aa68f72eb5d0c0534afff07de",
|
| 28 |
+
"name": "masahiroid/table-transformer-detection-coreml",
|
| 29 |
+
"externalReferences": [
|
| 30 |
+
{
|
| 31 |
+
"type": "distribution",
|
| 32 |
+
"url": "https://huggingface.co/masahiroid/table-transformer-detection-coreml"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"version": "b84248eea639853aa68f72eb5d0c0534afff07de",
|
| 36 |
+
"licenses": [
|
| 37 |
+
{
|
| 38 |
+
"license": {
|
| 39 |
+
"id": "mit"
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"components": [
|
| 44 |
+
{
|
| 45 |
+
"type": "file",
|
| 46 |
+
"bom-ref": "hf:masahiroid/table-transformer-detection-coreml@b84248eea639853aa68f72eb5d0c0534afff07de#table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel",
|
| 47 |
+
"name": "table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel",
|
| 48 |
+
"hashes": [
|
| 49 |
+
{
|
| 50 |
+
"alg": "SHA-256",
|
| 51 |
+
"content": "e740b3338eb7804b6ea7070a2879558927472bf3ad1e49f7000024493bf789e4"
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"type": "file",
|
| 57 |
+
"bom-ref": "hf:masahiroid/table-transformer-detection-coreml@b84248eea639853aa68f72eb5d0c0534afff07de#table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin",
|
| 58 |
+
"name": "table-transformer-detection_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin",
|
| 59 |
+
"hashes": [
|
| 60 |
+
{
|
| 61 |
+
"alg": "SHA-256",
|
| 62 |
+
"content": "87fb13cc9b0ae4bc4d943996f6e7ce9119255aa15ddc151e4b725fb67e95ddec"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"type": "file",
|
| 68 |
+
"bom-ref": "hf:masahiroid/table-transformer-detection-coreml@b84248eea639853aa68f72eb5d0c0534afff07de#table-transformer-detection_fp16.mlpackage/Manifest.json",
|
| 69 |
+
"name": "table-transformer-detection_fp16.mlpackage/Manifest.json",
|
| 70 |
+
"hashes": [
|
| 71 |
+
{
|
| 72 |
+
"alg": "SHA-256",
|
| 73 |
+
"content": "6e4753261bcdf7eaf230d1c13b1f11435c4606afbfecbd4ce6ccb824aee201be"
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
| 77 |
+
],
|
| 78 |
+
"pedigree": {
|
| 79 |
+
"ancestors": [
|
| 80 |
+
{
|
| 81 |
+
"type": "machine-learning-model",
|
| 82 |
+
"bom-ref": "hf:microsoft/table-transformer-detection@2357cbe2b5a5d1c03e54f32764f06058933b65ab",
|
| 83 |
+
"name": "microsoft/table-transformer-detection",
|
| 84 |
+
"externalReferences": [
|
| 85 |
+
{
|
| 86 |
+
"type": "distribution",
|
| 87 |
+
"url": "https://huggingface.co/microsoft/table-transformer-detection"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"version": "2357cbe2b5a5d1c03e54f32764f06058933b65ab"
|
| 91 |
+
}
|
| 92 |
+
],
|
| 93 |
+
"notes": "Converted/derived from microsoft/table-transformer-detection. Lineage is declared by the publisher; see properties for checks."
|
| 94 |
+
},
|
| 95 |
+
"properties": [
|
| 96 |
+
{
|
| 97 |
+
"name": "model-audit-lite:total-files",
|
| 98 |
+
"value": "6"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "model-audit-lite:risky-pickle-files",
|
| 102 |
+
"value": "0"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "model-audit-lite:custom-code-files",
|
| 106 |
+
"value": "0"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name": "model-audit-lite:formats",
|
| 110 |
+
"value": "coreml"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "model-audit-lite:derived-from",
|
| 114 |
+
"value": "microsoft/table-transformer-detection"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"name": "model-audit-lite:chat-template-changed",
|
| 118 |
+
"value": "false"
|
| 119 |
+
}
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
]
|
| 123 |
+
}
|