Skip to content

feat(cpp): add translation reorganization and enrichment flow#442

Open
Rahulatram321 wants to merge 1 commit into
cbomkit:mainfrom
Rahulatram321:mentorship/pr-07-cpp-translation
Open

feat(cpp): add translation reorganization and enrichment flow#442
Rahulatram321 wants to merge 1 commit into
cbomkit:mainfrom
Rahulatram321:mentorship/pr-07-cpp-translation

Conversation

@Rahulatram321
Copy link
Copy Markdown

@Rahulatram321 Rahulatram321 commented May 24, 2026

Summary

This PR introduces the C/C++ translation pipeline to convert raw detection findings into standardized cryptography model nodes, including reorganization and enrichment phases.

Why

Detection alone is not sufficient for meaningful CBOM. Findings must be mapped, structured, and enriched into a semantically coherent model.

What this PR includes

  • C/C++ translation process implementation (translate -> reorganize -> enrich).
  • Context-based translator routing for C/C++ detection contexts.
  • Initial mapper integration for OpenSSL-related detected values.
  • Reorganization rules to normalize parent/child relationships in translated trees.
  • Translation pipeline logging points for traceability and debugging.

Architecture impact

  • Completes the core C/C++ data path from detection store to model nodes.
  • Reuses shared mapper/reorganizer/enricher modules.
  • Keeps language-specific translation logic isolated in C/C++ module.

Validation

  • Translation tests for representative OpenSSL detection trees.
  • Assertions on node kind/value relationships after reorganization.
  • Enrichment sanity checks for defaults/OID attachment where applicable.

Non-goals

  • Exhaustive OpenSSL mapping completeness is iterative and continues in later changes.
  • Policy evaluation is separate and addressed in PR-10.

Follow-up

Next PR deepens test harness and assertion generation for long-term maintenance safety.

Signed-off-by: Rahul Atram <YOUR_GITHUB_VERIFIED_EMAIL>
Signed-off-by: Rahul Atram <rahulatram0226@gmail.com>
@Rahulatram321 Rahulatram321 requested a review from a team as a code owner May 24, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant