step-examples/12-8-mixed/M130.stp
Sources
- 16-iso-spec ISO 10303-203 §5.5 (security classification)
- bug-reporter language: "AP203 security inversion", "child confidential in unclassified parent", "PDM clearance hierarchy broken".
Sender
deduced — PDM exporter that tagged classifications per-leaf but did not propagate up to assemblies
Description
A parent `PRODUCT` carries a `SECURITY_CLASSIFICATION` level of 'unclassified' but a child component used in a `NEXT_ASSEMBLY_USAGE_OCCURRENCE` carries 'confidential'. Aggregating a classified child into an unclassified parent inverts the security clearance hierarchy: anyone permitted to read the parent now has visibility of the classified child. Bug-reporter language: "AP203 security classification inversion", "PDM access-control violation".
Reproducer recipe
parent `PRODUCT` with `SECURITY_CLASSIFICATION_LEVEL('unclassified')`; child with `SECURITY_CLASSIFICATION_LEVEL('confidential')`; both linked through `CC_DESIGN_SECURITY_CLASSIFICATION`.
Expected kernel behavior
validate classification monotonicity from leaves to root; reject or warn if any child exceeds the parent's level.
Notes
Synonyms: "AP203 clearance inversion", "ITAR/EAR hierarchy violation", "classified child unclassified parent".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')count_entity_def(b'SECURITY_CLASSIFICATION') >= 2contains(b'CC_DESIGN_SECURITY_CLASSIFICATION')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M130: AP203 assembly classified at lower security level than its components */ 3/* DEFECT: parent assembly is 'unclassified'; child component is 'confidential' */ 4/* Per AP203 §5.5 security must be monotone: child level <= parent level */ 5/* Anyone reading the unclassified assembly gains access to the confidential child */ 6/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 7/* Byte assertion: count_entity_def(b'SECURITY_CLASSIFICATION') >= 2 */ 8/* Byte assertion: contains(b'CC_DESIGN_SECURITY_CLASSIFICATION') */ 9HEADER; 10FILE_DESCRIPTION(('M130: AP203 security classification inversion â unclassified parent, confidential child'),'2;1'); 11FILE_NAME('M130.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 12/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 13FILE_SCHEMA(('CONFIG_CONTROL_DESIGN { 1 0 10303 203 1 0 0 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('configuration controlled 3D designs of mechanical parts and assemblies'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'config_control_design',1994,#1); 19/* Standard unit context (mm) */ 20#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 21#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 28 REPRESENTATION_CONTEXT('ctx','3D')); 29/* Parent assembly product â will be classified 'unclassified' */ 30#20=PRODUCT('ASSY-001','Actuator Assembly','Top-level assembly',(#1)); 31#21=PRODUCT_DEFINITION_FORMATION('rev_A','',#20); 32#22=PRODUCT_DEFINITION('design','',#21,PRODUCT_DEFINITION_CONTEXT(#1,'design')); 33/* Child component product â will be classified 'confidential' */ 34#30=PRODUCT('PART-007','Classified Valve','Restricted flow control valve',(#1)); 35#31=PRODUCT_DEFINITION_FORMATION('rev_A','',#30); 36#32=PRODUCT_DEFINITION('design','',#31,PRODUCT_DEFINITION_CONTEXT(#1,'design')); 37/* NEXT_ASSEMBLY_USAGE_OCCURRENCE links child into parent assembly */ 38#40=NEXT_ASSEMBLY_USAGE_OCCURRENCE('nauo_1','valve in assembly','', 39 #22,#32,$); 40/* Byte assertion: count_entity_def(b'SECURITY_CLASSIFICATION') >= 2 */ 41/* SECURITY_CLASSIFICATION for parent: 'unclassified' */ 42#50=SECURITY_CLASSIFICATION('assembly clearance','unclassified assembly', 43 SECURITY_CLASSIFICATION_LEVEL('unclassified')); 44/* SECURITY_CLASSIFICATION for child: 'confidential' â higher than parent: DEFECT */ 45#51=SECURITY_CLASSIFICATION('part clearance','confidential valve component', 46 SECURITY_CLASSIFICATION_LEVEL('confidential')); 47/* Byte assertion: contains(b'CC_DESIGN_SECURITY_CLASSIFICATION') */ 48/* CC_DESIGN_SECURITY_CLASSIFICATION assigns clearance to parent assembly */ 49#52=CC_DESIGN_SECURITY_CLASSIFICATION(#50,(#22)); 50/* DEFECT: child component gets 'confidential' while parent is 'unclassified' */ 51/* Per AP203 §5.5 this inverts the monotonicity requirement */ 52#53=CC_DESIGN_SECURITY_CLASSIFICATION(#51,(#32)); 53/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 54#500=GEOMETRIC_CURVE_SET('ap203-security-classification-inversion', 55 (#22,#32,#40,#50,#51,#52,#53)); 56/* Product chain */ 57#600=APPLICATION_CONTEXT('mechanical design'); 58#601=PRODUCT_CONTEXT('',#600,'mechanical'); 59#602=PRODUCT('M130','M130','M130',(#601)); 60#603=PRODUCT_DEFINITION_FORMATION('','',#602); 61#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 62#605=PRODUCT_DEFINITION('','',#603,#604); 63#606=PRODUCT_DEFINITION_SHAPE('','',#605); 64#607=SHAPE_REPRESENTATION('',(#500),#14); 65#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 66ENDSEC; 67END-ISO-10303-21;