masahiroid commited on
Commit
a1ef24f
·
verified ·
1 Parent(s): eb887dd

Security: bilingual SECURITY.md with verified-conversion audit (model-audit-lite 0.5.2), ML-BOM, README link

Browse files
Files changed (3) hide show
  1. README.md +8 -0
  2. SECURITY.md +60 -9
  3. bom.json +116 -0
README.md CHANGED
@@ -90,6 +90,10 @@ details are in the conversion-toolkit repo, not `SECURITY.md`).
90
  - Security audit uses [model-audit-lite](https://github.com/masahirocom/model-audit-lite)
91
  (see `SECURITY.md` for details).
92
 
 
 
 
 
93
  ---
94
 
95
  ## モデルの概要
@@ -162,3 +166,7 @@ fp16の範囲内に収まる`-1e4`に変更して解消している(詳細は`
162
  - 本変換は非公式のコミュニティ版です。
163
  - セキュリティー監査には[model-audit-lite](https://github.com/masahirocom/model-audit-lite)を
164
  使用しています(詳細は`SECURITY.md`)。
 
 
 
 
 
90
  - Security audit uses [model-audit-lite](https://github.com/masahirocom/model-audit-lite)
91
  (see `SECURITY.md` for details).
92
 
93
+ ### Security
94
+
95
+ 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).
96
+
97
  ---
98
 
99
  ## モデルの概要
 
166
  - 本変換は非公式のコミュニティ版です。
167
  - セキュリティー監査には[model-audit-lite](https://github.com/masahirocom/model-audit-lite)を
168
  使用しています(詳細は`SECURITY.md`)。
169
+
170
+ ### セキュリティー
171
+
172
+ [model-audit-lite](https://github.com/masahirocom/model-audit-lite) で変換元と突き合わせて監査済みです(重みの形式、同梱コード、機械可読な系譜=ML-BOM)。詳細・チェックサム・再現方法は [SECURITY.md](SECURITY.md) をご覧ください。
SECURITY.md CHANGED
@@ -1,20 +1,71 @@
1
- # セキュリティー監査情報: masahiroid/bert-base-ner-mlx
2
 
3
- 2026-10-01時点でのmodel-audit-liteによる自動監査結果です。
4
 
5
- ## 配布物としての安全性監査
6
 
7
- - **pickle形式チェック**: pickle形式(`.bin`/`.pt`/`.pth`/`.pkl`など)は検出されませんでした。
8
- - **同梱コードチェック**: このリポジトリには独自のPythonコード(`bert_ner_mlx.py`)が
9
- 同梱されています。標準的なBERTエンコーダー + 線形分類ヘッドのMLX実装で、モデルロード前に
10
- 内容をご確認ください。
11
- - **チェックサム (SHA256)**:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  ```
14
  7005e3395d992d9cb205f67edcf548e1bdff18ec3d0ac43a40a84d165a9cddf1 bert_ner_mlx.py
15
  d0eaa685614a6709da955d074aaaac5d67c0b6f3d8c21c6f81321dce74c203fd model.safetensors
16
  ```
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
- Generated by [model-audit-lite](https://github.com/masahirocom/model-audit-lite).
 
1
+ # Security / セキュリティー
2
 
3
+ [English](#english) | [日本語](#日本語)
4
 
5
+ ## English
6
 
7
+ **Verified conversion.** `bert-base-ner-mlx` was audited on 2026-10-03 with [model-audit-lite](https://github.com/masahirocom/model-audit-lite) v0.5.2 against its upstream, [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER). Everything below can be re-run by you with one command.
8
+
9
+ ### What was verified
10
+
11
+ | Check | Result |
12
+ |---|---|
13
+ | Weight format | `safetensors` only. 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 [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) (audited revision `eb887dd3df70`). |
15
+ | Bundled code | Added by this conversion (not in upstream): `bert_ner_mlx.py`. Plain source written for this conversion (inference / export helpers); it runs only if you import or execute it. Hashes below; read before use. |
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
  7005e3395d992d9cb205f67edcf548e1bdff18ec3d0ac43a40a84d165a9cddf1 bert_ner_mlx.py
30
  d0eaa685614a6709da955d074aaaac5d67c0b6f3d8c21c6f81321dce74c203fd model.safetensors
31
  ```
32
 
33
+ ### Reproduce
34
+
35
+ ```bash
36
+ pip install git+https://github.com/masahirocom/model-audit-lite.git
37
+ model-audit-lite scan masahiroid/bert-base-ner-mlx --base dslim/bert-base-NER
38
+ ```
39
+
40
+ ## 日本語
41
+
42
+ **検証済みの変換版です。** `bert-base-ner-mlx` は 2026-10-03 に [model-audit-lite](https://github.com/masahirocom/model-audit-lite) v0.5.2 で、変換元 [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) と突き合わせて監査しました。以下はすべて、1コマンドであなた自身が再実行できます。
43
+
44
+ ### 検証した内容
45
+
46
+ | 項目 | 結果 |
47
+ |---|---|
48
+ | 重みの形式 | `safetensors` のみ。pickle形式(`.bin` / `.pt` / `.pkl`)のファイルはありません。読み込み時にコードを実行しうる形式群です。 |
49
+ | 系譜 | CycloneDX 1.6 の ML-BOM([`bom.json`](bom.json))に、全ファイルのSHA-256と、[`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) までの変換の経路を記録しています(監査したリビジョン `eb887dd3df70`)。 |
50
+ | 同梱コード | この変換で追加(変換元には無い): `bert_ner_mlx.py`。この変換のために書いた平文のソース(推論・変換の補助)で、importや実行をしない限り動きません。ハッシュは下記。使う前に中身をご確認ください。 |
51
+ | 安全性の挙動 | 対象外: 指示に従うチャットモデルではないため、指示への挙動を試験する対象がありません。 |
52
+
53
+ ### 同じモデルの他の変換版ではなく、これを選ぶ理由
54
+
55
+ 自分で作っていない変換版が何を変えたのかは、普通は分かりません。この版は、全ファイルにハッシュがあり、変換元までの系譜が機械可読で、1コマンドで再現できます。 再現のコマンドは末尾にあります。
56
+
57
+ ### 範囲
58
+
59
+ この監査の対象は、配布物(ファイル・系譜)です。重みのバックドアの検査は含みません。モデルの挙動は変換元に由来し、形式変換や量子化で良くも悪くも変わりうるため、変換前後の差は保証しません。
60
+
61
+ ### チェックサム (SHA-256)
62
+
63
+ 上記の英語セクションと同じです([`bom.json`](bom.json) にも機械可読で記載)。
64
+
65
+ ### 再現方法
66
+
67
+ 上記の英語セクションと同じコマンドです。
68
+
69
  ---
70
 
71
+ [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,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bomFormat": "CycloneDX",
3
+ "specVersion": "1.6",
4
+ "serialNumber": "urn:uuid:d25c8d6c-43e0-48a1-95b7-5ade2cb8ebaf",
5
+ "version": 1,
6
+ "metadata": {
7
+ "timestamp": "2026-10-03T12:15:15Z",
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/bert-base-ner-mlx@eb887dd3df70d59cd6280231a1d4e4d45449e3f5",
20
+ "name": "masahiroid/bert-base-ner-mlx",
21
+ "version": "eb887dd3df70d59cd6280231a1d4e4d45449e3f5"
22
+ }
23
+ },
24
+ "components": [
25
+ {
26
+ "type": "machine-learning-model",
27
+ "bom-ref": "hf:masahiroid/bert-base-ner-mlx@eb887dd3df70d59cd6280231a1d4e4d45449e3f5",
28
+ "name": "masahiroid/bert-base-ner-mlx",
29
+ "externalReferences": [
30
+ {
31
+ "type": "distribution",
32
+ "url": "https://huggingface.co/masahiroid/bert-base-ner-mlx"
33
+ }
34
+ ],
35
+ "version": "eb887dd3df70d59cd6280231a1d4e4d45449e3f5",
36
+ "licenses": [
37
+ {
38
+ "license": {
39
+ "id": "mit"
40
+ }
41
+ }
42
+ ],
43
+ "components": [
44
+ {
45
+ "type": "file",
46
+ "bom-ref": "hf:masahiroid/bert-base-ner-mlx@eb887dd3df70d59cd6280231a1d4e4d45449e3f5#bert_ner_mlx.py",
47
+ "name": "bert_ner_mlx.py",
48
+ "hashes": [
49
+ {
50
+ "alg": "SHA-256",
51
+ "content": "7005e3395d992d9cb205f67edcf548e1bdff18ec3d0ac43a40a84d165a9cddf1"
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "type": "file",
57
+ "bom-ref": "hf:masahiroid/bert-base-ner-mlx@eb887dd3df70d59cd6280231a1d4e4d45449e3f5#model.safetensors",
58
+ "name": "model.safetensors",
59
+ "hashes": [
60
+ {
61
+ "alg": "SHA-256",
62
+ "content": "d0eaa685614a6709da955d074aaaac5d67c0b6f3d8c21c6f81321dce74c203fd"
63
+ }
64
+ ]
65
+ }
66
+ ],
67
+ "pedigree": {
68
+ "ancestors": [
69
+ {
70
+ "type": "machine-learning-model",
71
+ "bom-ref": "hf:dslim/bert-base-NER@d1a3e8f13f8c3566299d95fcfc9a8d2382a9affc",
72
+ "name": "dslim/bert-base-NER",
73
+ "externalReferences": [
74
+ {
75
+ "type": "distribution",
76
+ "url": "https://huggingface.co/dslim/bert-base-NER"
77
+ }
78
+ ],
79
+ "version": "d1a3e8f13f8c3566299d95fcfc9a8d2382a9affc"
80
+ }
81
+ ],
82
+ "notes": "Converted/derived from dslim/bert-base-NER. Lineage is declared by the publisher; see properties for checks."
83
+ },
84
+ "properties": [
85
+ {
86
+ "name": "model-audit-lite:total-files",
87
+ "value": "5"
88
+ },
89
+ {
90
+ "name": "model-audit-lite:risky-pickle-files",
91
+ "value": "0"
92
+ },
93
+ {
94
+ "name": "model-audit-lite:custom-code-files",
95
+ "value": "1"
96
+ },
97
+ {
98
+ "name": "model-audit-lite:custom-code-file",
99
+ "value": "bert_ner_mlx.py"
100
+ },
101
+ {
102
+ "name": "model-audit-lite:formats",
103
+ "value": "safetensors,mlx"
104
+ },
105
+ {
106
+ "name": "model-audit-lite:derived-from",
107
+ "value": "dslim/bert-base-NER"
108
+ },
109
+ {
110
+ "name": "model-audit-lite:chat-template-changed",
111
+ "value": "false"
112
+ }
113
+ ]
114
+ }
115
+ ]
116
+ }