@yottameta/yotta-compliance 0.0.0 → 0.1.1

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.
@@ -0,0 +1,406 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "pack_id": "pipl",
4
+ "framework": "PIPL",
5
+ "pack_version": "2026.09.1",
6
+ "jurisdiction": "CN",
7
+ "coverage_level": "baseline_review",
8
+ "clause_type_lexicon": {
9
+ "personal_information": ["个人信息", "个人资料"],
10
+ "sensitive_personal_information": [
11
+ "敏感个人信息",
12
+ "生物识别",
13
+ "人脸识别",
14
+ "指纹",
15
+ "医疗健康",
16
+ "健康信息",
17
+ "金融账户",
18
+ "行踪轨迹",
19
+ "宗教信仰",
20
+ "特定身份"
21
+ ],
22
+ "minor_personal_information": ["不满十四周岁", "未成年人", "儿童个人信息"],
23
+ "third_party_provision": ["向第三方提供", "提供给第三方", "共享", "对外提供"],
24
+ "impact_assessment_trigger": [
25
+ "敏感个人信息",
26
+ "自动化决策",
27
+ "向境外提供",
28
+ "传输至境外",
29
+ "出境",
30
+ "公开个人信息",
31
+ "委托处理"
32
+ ],
33
+ "retention": ["保存期限", "存储期限", "留存期限"]
34
+ },
35
+ "mapping_only": [
36
+ {
37
+ "framework": "GDPR",
38
+ "topics": {
39
+ "lawful_basis": ["PIPL-BASIS-003"],
40
+ "purpose_limitation": ["PIPL-PURPOSE-002", "PIPL-NOTICE-001"],
41
+ "storage_limitation": ["PIPL-RETENTION-004", "PIPL-RETENTION-005"],
42
+ "special_categories": ["PIPL-SENSITIVE-006"],
43
+ "children": ["PIPL-MINOR-007"],
44
+ "data_subject_rights": ["PIPL-RIGHTS-009"],
45
+ "breach_notification": ["PIPL-INCIDENT-010"],
46
+ "dpia": ["PIPL-PIPIA-011"]
47
+ }
48
+ },
49
+ {
50
+ "framework": "HIPAA",
51
+ "topics": {
52
+ "phi_context": ["PIPL-SENSITIVE-006"],
53
+ "breach_notification": ["PIPL-INCIDENT-010"]
54
+ }
55
+ },
56
+ {
57
+ "framework": "SOC2",
58
+ "topics": {
59
+ "privacy_notice": ["PIPL-NOTICE-001"],
60
+ "incident_response": ["PIPL-INCIDENT-010"]
61
+ }
62
+ },
63
+ {
64
+ "framework": "PCI-DSS",
65
+ "topics": {
66
+ "account_data_context": ["PIPL-SENSITIVE-006"]
67
+ }
68
+ },
69
+ {
70
+ "framework": "ISO27001",
71
+ "topics": {
72
+ "incident_management": ["PIPL-INCIDENT-010"],
73
+ "retention_governance": ["PIPL-RETENTION-004"]
74
+ }
75
+ },
76
+ {
77
+ "framework": "等保",
78
+ "topics": {
79
+ "emergency_response": ["PIPL-INCIDENT-010"],
80
+ "data_retention": ["PIPL-RETENTION-004"]
81
+ }
82
+ }
83
+ ],
84
+ "rules": [
85
+ {
86
+ "rule_id": "PIPL-NOTICE-001",
87
+ "title": "未出现处理目的的告知表述",
88
+ "clause_types": ["personal_information"],
89
+ "match": {
90
+ "operator": "any",
91
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
92
+ },
93
+ "assert": {
94
+ "operator": "absent",
95
+ "target": "processing_purpose_notice",
96
+ "scope": "document",
97
+ "search": {
98
+ "kind": "regex",
99
+ "pattern": "处理目的|使用目的|收集目的|用于以下目的|用于提供|用于改进|用于推荐"
100
+ }
101
+ },
102
+ "severity": "medium",
103
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
104
+ "evidence": ["matched_span", "document_scope"],
105
+ "rationale": "文本出现个人信息相关表述,但未检索到处理目的相关表述;本规则只描述文本现象,不代表实际未履行告知义务,需人工核对。",
106
+ "source": {
107
+ "type": "official",
108
+ "citation": "《中华人民共和国个人信息保护法》第十七条第一款第二项",
109
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
110
+ },
111
+ "remediation": "补充个人信息处理目的,并同时说明处理方式、处理的个人信息种类与保存期限。",
112
+ "test_ids": ["PIPL-NOTICE-001-positive", "PIPL-NOTICE-001-negative", "PIPL-NOTICE-001-boundary"]
113
+ },
114
+ {
115
+ "rule_id": "PIPL-PURPOSE-002",
116
+ "title": "未出现最小必要或影响最小约束",
117
+ "clause_types": ["personal_information"],
118
+ "match": {
119
+ "operator": "any",
120
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
121
+ },
122
+ "assert": {
123
+ "operator": "absent",
124
+ "target": "minimal_necessity",
125
+ "scope": "document",
126
+ "search": {
127
+ "kind": "regex",
128
+ "pattern": "最小必要|最小范围|必要范围|影响最小|限于实现.{0,10}目的"
129
+ }
130
+ },
131
+ "severity": "medium",
132
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
133
+ "evidence": ["matched_span", "document_scope"],
134
+ "rationale": "文本出现个人信息相关表述,但未检索到最小必要或影响最小相关表述;需人工核对收集范围是否限于实现处理目的所必需。",
135
+ "source": {
136
+ "type": "official",
137
+ "citation": "《中华人民共和国个人信息保护法》第六条",
138
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
139
+ },
140
+ "remediation": "补充最小必要说明:明确收集个人信息限于实现处理目的的最小范围,并采取对个人权益影响最小的方式。",
141
+ "test_ids": ["PIPL-PURPOSE-002-positive", "PIPL-PURPOSE-002-negative", "PIPL-PURPOSE-002-boundary"]
142
+ },
143
+ {
144
+ "rule_id": "PIPL-BASIS-003",
145
+ "title": "未出现处理个人信息的合法性依据",
146
+ "clause_types": ["personal_information"],
147
+ "match": {
148
+ "operator": "any",
149
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
150
+ },
151
+ "assert": {
152
+ "operator": "absent",
153
+ "target": "lawful_basis",
154
+ "scope": "document",
155
+ "search": {
156
+ "kind": "regex",
157
+ "pattern": "取得.{0,8}同意|基于.{0,6}同意|合同所必需|法定义务|法定职责|为履行法定职责"
158
+ }
159
+ },
160
+ "severity": "medium",
161
+ "confidence_policy": {"exact_match": "high", "absence": "low"},
162
+ "evidence": ["matched_span", "document_scope"],
163
+ "rationale": "文本出现个人信息相关表述,但未检索到同意、合同所必需或法定义务等合法性依据表述;属于概览性检查,必须人工核对。",
164
+ "source": {
165
+ "type": "official",
166
+ "citation": "《中华人民共和国个人信息保护法》第十三条",
167
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
168
+ },
169
+ "remediation": "补充处理的合法性依据,例如取得个人同意、为订立或履行合同所必需、为履行法定职责或法定义务所必需等。",
170
+ "test_ids": ["PIPL-BASIS-003-positive", "PIPL-BASIS-003-negative", "PIPL-BASIS-003-boundary"]
171
+ },
172
+ {
173
+ "rule_id": "PIPL-RETENTION-004",
174
+ "title": "未出现个人信息保存期限说明",
175
+ "clause_types": ["personal_information"],
176
+ "match": {
177
+ "operator": "any",
178
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
179
+ },
180
+ "assert": {
181
+ "operator": "absent",
182
+ "target": "retention_notice",
183
+ "scope": "document",
184
+ "search": {
185
+ "kind": "regex",
186
+ "pattern": "保存期限|存储期限|留存期限|保留期限"
187
+ }
188
+ },
189
+ "severity": "medium",
190
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
191
+ "evidence": ["matched_span", "document_scope"],
192
+ "rationale": "文本出现个人信息相关表述,但未检索到保存期限相关表述;需人工核对是否说明了保存期限与到期处理方式。",
193
+ "source": {
194
+ "type": "official",
195
+ "citation": "《中华人民共和国个人信息保护法》第十七条第一款第二项、第十九条",
196
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
197
+ },
198
+ "remediation": "补充个人信息保存期限,并说明保存期限届满后的删除或匿名化处理方式。",
199
+ "test_ids": ["PIPL-RETENTION-004-positive", "PIPL-RETENTION-004-negative", "PIPL-RETENTION-004-boundary"]
200
+ },
201
+ {
202
+ "rule_id": "PIPL-RETENTION-005",
203
+ "title": "保存期限达到或超过 3 年",
204
+ "clause_types": ["retention"],
205
+ "match": {
206
+ "operator": "any",
207
+ "conditions": [{"kind": "clause_type", "value": "retention"}]
208
+ },
209
+ "assert": {
210
+ "operator": "numeric_compare",
211
+ "target": "retention_years",
212
+ "search": {
213
+ "kind": "regex",
214
+ "pattern": "保存期限[::为]?\\s*([0-9]+)\\s*年",
215
+ "group": 1
216
+ },
217
+ "compare": {"op": "gte", "value": 3}
218
+ },
219
+ "severity": "low",
220
+ "confidence_policy": {"exact_match": "high", "absence": "low"},
221
+ "evidence": ["matched_span"],
222
+ "rationale": "原文声明保存期限达到或超过 3 年;本规则只做阈值提示,不判断合法性,需人工核对是否为实现处理目的所必要的最短时间。",
223
+ "source": {
224
+ "type": "official",
225
+ "citation": "《中华人民共和国个人信息保护法》第十九条",
226
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
227
+ },
228
+ "remediation": "核对保存期限的必要性;超过必要最短时间的,缩短期限或说明法律、行政法规依据。",
229
+ "test_ids": [
230
+ "PIPL-RETENTION-005-positive",
231
+ "PIPL-RETENTION-005-negative",
232
+ "PIPL-RETENTION-005-threshold",
233
+ "PIPL-RETENTION-005-boundary"
234
+ ]
235
+ },
236
+ {
237
+ "rule_id": "PIPL-SENSITIVE-006",
238
+ "title": "涉及敏感个人信息但未出现单独同意",
239
+ "clause_types": ["sensitive_personal_information"],
240
+ "match": {
241
+ "operator": "any",
242
+ "conditions": [{"kind": "clause_type", "value": "sensitive_personal_information"}]
243
+ },
244
+ "assert": {
245
+ "operator": "absent",
246
+ "target": "separate_consent",
247
+ "scope": "document",
248
+ "search": {"kind": "regex", "pattern": "单独同意|单独授权|单独取得同意"}
249
+ },
250
+ "severity": "high",
251
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
252
+ "evidence": ["matched_span", "document_scope"],
253
+ "rationale": "文本出现敏感个人信息相关表述,但未检索到单独同意相关表述;需人工核对是否已取得单独同意并说明特定目的与充分必要性。",
254
+ "source": {
255
+ "type": "official",
256
+ "citation": "《中华人民共和国个人信息保护法》第二十八条、第二十九条",
257
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
258
+ },
259
+ "remediation": "处理敏感个人信息前取得个人单独同意,并说明处理的特定目的、充分必要性与严格保护措施。",
260
+ "test_ids": [
261
+ "PIPL-SENSITIVE-006-positive",
262
+ "PIPL-SENSITIVE-006-negative",
263
+ "PIPL-SENSITIVE-006-boundary"
264
+ ]
265
+ },
266
+ {
267
+ "rule_id": "PIPL-MINOR-007",
268
+ "title": "涉及不满十四周岁未成年人个人信息但未出现监护人同意",
269
+ "clause_types": ["minor_personal_information"],
270
+ "match": {
271
+ "operator": "any",
272
+ "conditions": [{"kind": "clause_type", "value": "minor_personal_information"}]
273
+ },
274
+ "assert": {
275
+ "operator": "absent",
276
+ "target": "guardian_consent",
277
+ "scope": "document",
278
+ "search": {
279
+ "kind": "regex",
280
+ "pattern": "监护人.{0,8}同意|父母.{0,8}同意|监护人授权"
281
+ }
282
+ },
283
+ "severity": "high",
284
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
285
+ "evidence": ["matched_span", "document_scope"],
286
+ "rationale": "文本出现未成年人个人信息相关表述,但未检索到监护人同意相关表述;需人工核对是否取得父母或者其他监护人同意。",
287
+ "source": {
288
+ "type": "official",
289
+ "citation": "《中华人民共和国个人信息保护法》第三十一条",
290
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
291
+ },
292
+ "remediation": "处理不满十四周岁未成年人个人信息前取得父母或者其他监护人同意,并制定专门的个人信息处理规则。",
293
+ "test_ids": ["PIPL-MINOR-007-positive", "PIPL-MINOR-007-negative", "PIPL-MINOR-007-boundary"]
294
+ },
295
+ {
296
+ "rule_id": "PIPL-SHARE-008",
297
+ "title": "对外提供个人信息但未出现单独同意",
298
+ "clause_types": ["third_party_provision"],
299
+ "match": {
300
+ "operator": "any",
301
+ "conditions": [{"kind": "clause_type", "value": "third_party_provision"}]
302
+ },
303
+ "assert": {
304
+ "operator": "absent",
305
+ "target": "third_party_separate_consent",
306
+ "scope": "document",
307
+ "search": {"kind": "regex", "pattern": "单独同意|单独授权"}
308
+ },
309
+ "severity": "high",
310
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
311
+ "evidence": ["matched_span", "document_scope"],
312
+ "rationale": "文本出现对外提供或共享个人信息相关表述,但未检索到单独同意相关表述;需人工核对是否已告知接收方信息并取得单独同意。",
313
+ "source": {
314
+ "type": "official",
315
+ "citation": "《中华人民共和国个人信息保护法》第二十三条",
316
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
317
+ },
318
+ "remediation": "向个人告知接收方的名称或者姓名、联系方式、处理目的、处理方式和个人信息的种类,并取得个人的单独同意。",
319
+ "test_ids": ["PIPL-SHARE-008-positive", "PIPL-SHARE-008-negative", "PIPL-SHARE-008-boundary"]
320
+ },
321
+ {
322
+ "rule_id": "PIPL-RIGHTS-009",
323
+ "title": "未出现个人权利相关表述",
324
+ "clause_types": ["personal_information"],
325
+ "match": {
326
+ "operator": "any",
327
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
328
+ },
329
+ "assert": {
330
+ "operator": "absent",
331
+ "target": "data_subject_rights",
332
+ "scope": "document",
333
+ "search": {
334
+ "kind": "regex",
335
+ "pattern": "查阅|复制|更正|删除|撤回同意|注销|拒绝处理"
336
+ }
337
+ },
338
+ "severity": "low",
339
+ "confidence_policy": {"exact_match": "high", "absence": "low"},
340
+ "evidence": ["matched_span", "document_scope"],
341
+ "rationale": "文本出现个人信息相关表述,但未检索到查阅、复制、更正、删除、撤回同意等个人权利表述;属于概览性检查,必须人工核对权利告知与行使路径。",
342
+ "source": {
343
+ "type": "official",
344
+ "citation": "《中华人民共和国个人信息保护法》第十七条第一款第三项、第四十四条至第四十七条",
345
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
346
+ },
347
+ "remediation": "补充个人行使查阅、复制、更正、补充、删除、撤回同意等权利的方式和程序。",
348
+ "test_ids": ["PIPL-RIGHTS-009-positive", "PIPL-RIGHTS-009-negative", "PIPL-RIGHTS-009-boundary"]
349
+ },
350
+ {
351
+ "rule_id": "PIPL-INCIDENT-010",
352
+ "title": "未出现个人信息泄露补救与通知机制",
353
+ "clause_types": ["personal_information"],
354
+ "match": {
355
+ "operator": "any",
356
+ "conditions": [{"kind": "clause_type", "value": "personal_information"}]
357
+ },
358
+ "assert": {
359
+ "operator": "absent",
360
+ "target": "incident_response",
361
+ "scope": "document",
362
+ "search": {
363
+ "kind": "regex",
364
+ "pattern": "泄露|篡改|丢失|应急预案|安全事件|补救措施"
365
+ }
366
+ },
367
+ "severity": "low",
368
+ "confidence_policy": {"exact_match": "high", "absence": "low"},
369
+ "evidence": ["matched_span", "document_scope"],
370
+ "rationale": "文本出现个人信息相关表述,但未检索到泄露、篡改、丢失、安全事件、应急预案等表述;属于概览性检查,必须人工核对安全事件的补救与通知机制。",
371
+ "source": {
372
+ "type": "official",
373
+ "citation": "《中华人民共和国个人信息保护法》第五十一条第五项、第五十七条",
374
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
375
+ },
376
+ "remediation": "补充个人信息安全事件应急预案,以及发生或可能发生泄露、篡改、丢失时的补救措施与通知安排。",
377
+ "test_ids": ["PIPL-INCIDENT-010-positive", "PIPL-INCIDENT-010-negative", "PIPL-INCIDENT-010-boundary"]
378
+ },
379
+ {
380
+ "rule_id": "PIPL-PIPIA-011",
381
+ "title": "涉及影响评估情形但未出现个人信息保护影响评估",
382
+ "clause_types": ["impact_assessment_trigger"],
383
+ "match": {
384
+ "operator": "any",
385
+ "conditions": [{"kind": "clause_type", "value": "impact_assessment_trigger"}]
386
+ },
387
+ "assert": {
388
+ "operator": "absent",
389
+ "target": "impact_assessment",
390
+ "scope": "document",
391
+ "search": {"kind": "regex", "pattern": "影响评估"}
392
+ },
393
+ "severity": "medium",
394
+ "confidence_policy": {"exact_match": "high", "absence": "medium"},
395
+ "evidence": ["matched_span", "document_scope"],
396
+ "rationale": "文本出现敏感个人信息、自动化决策、对外提供、公开、委托处理或出境等情形,但未检索到个人信息保护影响评估相关表述;需人工核对该处理活动是否已事前评估并记录。",
397
+ "source": {
398
+ "type": "official",
399
+ "citation": "《中华人民共和国个人信息保护法》第五十五条",
400
+ "url": "https://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html"
401
+ },
402
+ "remediation": "对属于第五十五条情形的处理活动,事前开展个人信息保护影响评估并记录处理情况;评估报告与记录至少保存三年。",
403
+ "test_ids": ["PIPL-PIPIA-011-positive", "PIPL-PIPIA-011-negative", "PIPL-PIPIA-011-boundary"]
404
+ }
405
+ ]
406
+ }