Repository navigation
CICS security model: untrusted sources and sensitive sinks cited to IBM (Part of #8606, step 1) - #9074
Conversation
…(Part of #8606) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9074 @ 56eeca0: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
PR #9074 @ f404f44: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
PR #9074 @ 13cc1f3: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
Part of #8606 (step 1 of 5, milestone "CICS Security - Full CICS Cross-Program SAST").
What this adds
gitgalaxy/standards/cics_security.py: a versioned (MODEL_VERSION = 1), stdlib-only table of CICS security roles as data. Roles:source,protected_read,conduit,sink(classessql_injection,file_write,control_transfer,disclosure),sanitizer,not_a_sanitizer. Each entry cites a section of one manual, named with its release (CICS TS 6 API Reference and Developing CICS Applications, Db2 13 SQL Reference and Application Programming and SQL Guide, Enterprise COBOL 6.4 Language Reference). What IBM leaves open isassumedorrefusedby name with a note (e.g. DFHCOMMAREA trust, EIBCALEN is not a sanitizer, static SQL host variables are not an injection sink).NOT_SECURITY_RELEVANTlists, with a reason, every verb that is none of those. Nothing imports the table yet, and no doc claims any detection.The test (
tests/core_engine/test_cics_security_model.py) checks that every EXEC CICS and EXEC SQL verb the seven burned estates use is classified or listed as not relevant (the pinned census always; a re-scan of the pinned corpora whenGITGALAXY_MAINFRAME_CORPORAis set, which also fails on a stale census), that no verb is in both, and that entries cite a manual, with sinks naming a class and sanitizers stated narrowly.Class / Sibling gaps
Class: the EXEC CICS and EXEC SQL verbs a CICS COBOL estate uses, each given a security role. Handled: every verb in the burned COBOL sources (65 CICS verbs, 11 SQL statements). Sibling gaps: (1)
PREPARE,EXECUTE IMMEDIATE,WEB READ HTTPHEADER/QUERYPARMare classified from the manual only; no burned program uses them (they are listed inUNUSED_BY_BURNED), so no burned program needs them yet. (2) HLASM sources (zECSZECSNC.asmissuesDEFINE DCOUNTER) are outside this COBOL census. (3) Outbound HTTP target selection (WEB OPEN),WRITE OPERATORlog forging and second-order taint through files and tables are deferred as outside the issue's sink list; needed by zECS and the web-service estates if a later step takes them. (4) Steps 2-5 (the engine reading the table, measuring detection, cross-program tracking) are the remaining milestone issues, not this PR.Gates
Targeted tests pass (63 in the new file; spec, source-reads and change-classifier guards pass; time_ratchet 0 over limit).
audit_check.py: ruff, format, mypy, dead-key, doc-refs, ast-accuracy and signal-coverage all OK. No golden bless: no parsing logic changed.Cross-repo
This PR changes nothing the rosetta audit reads. Its
rosetta-auditis red onclist/short_circuit, a cell main's engine produces that keyword-rosetta's na baseline does not list yet; the unblocking companion is keyword-rosetta#171 (baselines that cell). That side merges first; then re-runrosetta-audithere (no re-bless needed).Lessons for agents
enum.pyin the cwd shadows the stdlib and breaksimport re; name scratch scripts distinctly.gitgalaxy.core.source_text.read_sourcereturns aSourceText; use.text.Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code