Commit 5a108e9
feat(141): MAESTRO Phase 2 — Cross-Layer Attack Chain Analysis (#159)
* feat(141): add Section 6 Cross-Layer Attack Chains to threat report agent
Insert conditional Section 6 after Attack Trees (Section 5) in the
threat-report agent workflow. Renumber Remediation Roadmap (6→7),
Appendix (7→8), Delta Summary (8→9) across agent, template, and
schema. Add Attack Chain quality validation checklist items.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): expand threat-report input contract for attack-chains.md
Update frontmatter description, Core Mission, Metadata, Skill
References, Input Contract, and Input Validation to document
attack-chains.md as conditional input consumed by Section 6.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): validate threat report narrative against agentic-app (T015)
Design validation confirms Section 6 instructions produce valid output
for the agentic-app example: 6/7 MAESTRO layers covered, at least one
3-layer chain (L2→L1→L3) structurally possible, all causal vocabulary
referenced, 150-300 word constraint specified, CSA canonical structure
(initial exploit → intermediate cascades → business impact) aligned.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): implement Waves 1-4 — schema, parser, correlation engine, threat report narrative
Wave 1: Create attack-chain.yaml schema, correlation pattern lookup table,
and orchestration documentation (T001-T004).
Wave 2: Add parse_attack_chains() to tachi_parsers.py with detect_artifacts
support, insert Phase 3.5 skeleton into orchestrator (T005-T006).
Wave 3: Full correlation engine — cross-layer detection, chain assembly,
chain-breaking heuristic, artifact generation, 26 unit tests (T007-T012).
Wave 4: Threat report Section 6 with conditional chain narratives using
canonical CSA MAESTRO vocabulary (T013-T015).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): implement Wave 5 — PDF attack chain diagram pages (T016-T021)
Add cross-layer attack chain rendering to the PDF security report:
- Chain parsing + Mermaid flowchart TD generation in extract-report-data.py
with vertical MAESTRO layer stack (L1 top → L7 bottom), colored nodes,
and causal edge labels (T016, T016a)
- New attack-chain.typ Typst template with severity badge, layer progression
tag, diagram section, narrative, and finding IDs footer (T017)
- main.typ: import + has-attack-chains default + conditional page sequencing
after Attack Path Analysis section (T018)
- mmdc preflight gate extended for attack-chains.md (T019)
- 27 integration tests: parser, Mermaid syntax, Typst data, conditional gate (T020)
- Validated: template compiles, 5/5 backward compat PDFs byte-identical (T021)
100/100 tests pass (27 new + 73 existing, zero regressions).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs(141): update NEXT-SESSION.md handoff for Wave 6 resume
Waves 1-5 complete (22/34 tasks, 65%). P0+P1 checkpoints passed.
Next: Wave 6 example regeneration (pipeline execution).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): implement Wave 6 — example regeneration and chain artifact (T022-T028)
- T022: Architecture assessment — 6 MAESTRO layers sufficient for 3+ layer chains
- T023: Created attack-chains.md with 5 chains (4 surfaced), updated threat-report.md
with Section 6 (Attack Chains), regenerated PDF with chain diagram pages
- T023 fix: Normalize long-form MAESTRO layer values (e.g., "L1 — Foundation Model")
to short-form codes (L1) in generate_chain_mermaid() for valid Mermaid node IDs
- T024-T028: 5 non-chain examples verified byte-identical (5/5 backward compat pass)
- Full test suite: 100/100 pass
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(141): implement Wave 7 — ADR, README, final validation (T029-T033)
- T029: ADR-020 updated with Phase 2 cross-layer correlation section
documenting pipeline placement, correlation algorithm, chain schema, and
downstream propagation
- T030: Backward-compat baselines verified (5/5 byte-identical)
- T031: Full pytest suite 100/100 pass
- T032: README.md updated with attack-chains.md artifact, chain diagram
pages, and mmdc prerequisite clarification
- T033: All 7 success criteria (SC-001 through SC-007) validated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(141): address P2 architect review MEDIUM concerns
- MEDIUM-001: Normalize MAESTRO layer names in Mermaid diagram labels
from "&" shorthand to canonical "and" (L5 "Evaluation and Observability",
L6 "Security and Compliance") matching Feature 136 canonical CSA names
- MEDIUM-002: Replace branded "OWASP 3x3" reference in attack-chain.yaml
with "risk matrix in severity-bands-shared.md" per Feature 082 SC-004
100/100 pytest pass after fixes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* security(141): run security scan [e1a1339]
SAST: 4 files scanned, 0 findings (PASSED)
SCA: skipped (no manifests changed)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs(141): update backlog for MAESTRO Phase 2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b7283cc commit 5a108e9
File tree
38 files changed
+4496
-79
lines changed- .claude
- agents/tachi
- commands
- skills
- tachi-orchestration/references
- .security
- reports
- docs
- architecture/02_ADRs
- product
- 02_PRD
- _backlog
- examples/agentic-app/sample-report
- attack-chains
- schemas
- scripts
- specs/141-maestro-phase-2
- checklists
- templates/tachi
- output-schemas
- security-report
- tests/scripts
38 files changed
+4496
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
382 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
383 | 546 | | |
384 | 547 | | |
385 | 548 | | |
| |||
0 commit comments