x-pack/solutions/security/packages/kbn-discoveries/implementation_guide.md
Note: The
POST /internal/attack_discovery/_generate/graphendpoint and its supporting code (executeGraphGeneration,PostGenerateGraphRequestBody, etc.) have been removed. The generation graph is now invoked exclusively through the orchestrated pipeline (POST /internal/attack_discovery/_generate) via workflow steps.
The @kbn/discoveries package defines type-safe interfaces for invoking Attack Discovery and Defend Insights graphs with pre-retrieved documents:
InvokeAttackDiscoveryGraphWithDocs - for Attack DiscoveryInvokeDefendInsightsGraphWithDocs - for Defend InsightsThese interfaces are used by the security.attack-discovery.generate workflow step, which is orchestrated by the _generate endpoint's pipeline.
The discoveries plugin invokes graph generation through the workflow engine:
POST /internal/attack_discovery/_generate validates the request and kicks off the orchestrated pipelinesecurity.attack-discovery.generate step uses invokeAttackDiscoveryGraphWithAlerts, a deep import from @kbn/discoveries/impl/attack_discovery/graphs/invoke_graph_with_alerts (not a root export)