Parsing Siemens code is only useful if there are rules that fire on it. Add the Siemens communication and exposure patterns, plus the unbounded-loop rule from #236 (loop part) which applies to both vendors.
What to change
In pipeline/plc/rules.rs:
Siemens communication and exposure patterns: TCON / TSEND_C, PUT/GET, MB_SERVER write ranges, and credentials in communication parameters.
The unbounded WHILE / FOR rule (#236, loop part) for both Siemens and CODESYS.
Acceptance
Each new rule has a positive and a negative fixture and a stable rule_id.
The unbounded-loop rule fires on both CODESYS ST and Siemens SCL fixtures.
New rule_ids get control-map LUT entries so findings carry CRA control refs (MVP-2.7).
The loop part of #236 is delivered here; the IEC 62443-4-2 CR-ref part stays in R1 (#241).
## Goal
Parsing Siemens code is only useful if there are rules that fire on it. Add the Siemens communication and exposure patterns, plus the unbounded-loop rule from **#236** (loop part) which applies to both vendors.
## What to change
In `pipeline/plc/rules.rs`:
- Siemens communication and exposure patterns: `TCON` / `TSEND_C`, PUT/GET, `MB_SERVER` write ranges, and credentials in communication parameters.
- The **unbounded `WHILE` / `FOR` rule (#236, loop part)** for both Siemens and CODESYS.
## Acceptance
- [ ] Each new rule has a positive and a negative fixture and a stable `rule_id`.
- [ ] The unbounded-loop rule fires on both CODESYS ST and Siemens SCL fixtures.
- [ ] New `rule_id`s get `control-map` LUT entries so findings carry CRA control refs (MVP-2.7).
- [ ] The loop part of #236 is delivered here; the IEC 62443-4-2 CR-ref part stays in R1 (#241).
sharang
added this to the Production MVP milestone 2026-09-20 20:18:25 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Parsing Siemens code is only useful if there are rules that fire on it. Add the Siemens communication and exposure patterns, plus the unbounded-loop rule from #236 (loop part) which applies to both vendors.
What to change
In
pipeline/plc/rules.rs:TCON/TSEND_C, PUT/GET,MB_SERVERwrite ranges, and credentials in communication parameters.WHILE/FORrule (#236, loop part) for both Siemens and CODESYS.Acceptance
rule_id.rule_ids getcontrol-mapLUT entries so findings carry CRA control refs (MVP-2.7).