KORTHEXDocumentation

Docs / ANALYSIS ENGINES

ANALYSIS ENGINES

Planner Engine

Written and maintained by Hendrik Schneider · Last reviewed · How we check this

The Planner takes a scan report and produces a concrete migration plan: for every weak algorithm, which file/line to change, what to replace it with, in what order, by when, and how long it will take. The desktop app stores the plan as an encrypted document and shows it in its built-in viewer; the CLI prints it as JSON. Executing a plan is planned for V2 (Auto Migration).

Plan Items by Domain

A plan is a topologically-ordered list of items, each scoped to a specific remediation domain:

Item typeCaptures
CodeFile + line + algorithm to replace, with the recommended replacement.
ConfigConfig-file key paths and new values (web.config, application.properties, ...).
TLSCertificate rotation, endpoint reconfiguration, cipher-suite changes.
GitHistorical-commit remediation (with explicit destructive-action confirmation).
HybridMulti-domain coordinated changes (e.g., config + code + git revert as one unit).

Per-Item Information

Every item carries the same set of properties so plans are easy to consume programmatically: Severity - inherited from the source finding. Replacement - recommended algorithm + key length + mode. Deadline - calibrated to NIST PQC 2030 + per-algorithm deprecation dates. Engineer-hours - estimated effort with confidence interval. Dependencies - ordered edges to other plan items (do foundational changes first). Verification steps - tests to write or run after the migration.

Using the Planner

Creating a plan and reading plan files are separate commands. korthex plan create prints the plan and does not store it. # Generate a plan from the newest complete report of the active project korthex plan create # Plan from a named report; the only way to use a partial report korthex plan create --input <report.krx> # Keep the plan: the JSON output carries it under "data" korthex plan create --json > migration-plan.json # List plan files under .korthex/plans and .korthex/reports of the active project korthex plan list # Print a plan file from .korthex/plans, named without its extension korthex plan view <plan-id> Not available from the CLI in 1.0: applying a plan, previewing its code changes, a review gate before execution, accepting or reverting an applied migration, and rendering a plan to PDF. To check a change you made yourself, scan again and compare the two reports with korthex diff .

ML Re-prioritization (Optional)

By default, the plan is ordered by deadline + severity + dependency edges. With the Neural Network Engine enabled, items can be re-prioritized based on predicted impact: two items with the same deadline get re-ordered so the one most likely to produce a measurable security improvement comes first. There is no CLI flag for this today. The planner applies its ordering when the Neural Network Engine is enabled; it is not selectable per run, and --reprioritize-with-nn does not exist. Re-prioritization is a hint, not a hard reorder - dependency edges are still respected. If item B depends on item A, item B never appears before item A in the output regardless of ML scores.