Package ai.attackframework.tools.burp.sinks
package ai.attackframework.tools.burp.sinks
Sinks (reporters) that turn Burp sources into exporter output for the OpenSearch and file sinks.
This package houses:
- Traffic reporters —
TrafficHttpHandler,ProxyHistoryIndexReporter,ProxyWebSocketIndexReporter,RepeaterTabsIndexReporter— that feed the sharedtrafficindex. - Non-traffic reporters —
SitemapIndexReporter,FindingsIndexReporter,ExporterIndexConfigReporter— that write their own domain indices. - Shared infrastructure —
TrafficExportQueuebounded queue and spill,FileExportServicefile-sink writer,TrafficRouteBucketroute mapping for traffic counters,BulkOutcomeRecorderbulk success/failure accounting,SingleDocOutcomeRecordersingle-document success/failure accounting, andSnapshotSummaryone-shot run summaries.
OpenSearch bulk exports use two deliberate paths: retry-coordinated snapshot pushes via
OpenSearchClientWrapper.pushBulk(java.lang.String, java.lang.String, java.lang.String, java.util.List<java.util.Map<java.lang.String, java.lang.Object>>) and
streaming drains via
ChunkedBulkSender. Both converge on
FileExportService for file output and on
TrafficRouteBucket /
BulkOutcomeRecorder for counter accounting so
stats remain consistent across the two bulk strategies.
-
ClassDescriptionShared bulk-outcome accounting for OpenSearch bulk requests across reporters.Estimates approximate JSON payload size for bulk index requests.Pushes the current runtime configuration to the Exporter index.Forwards selected exporter log events to the Exporter index.Periodically pushes exporter stats snapshots to the Exporter index.Coordinates intentional shutdown and reset of long-lived export reporters.Shared dispatcher for file-based exports.Contract for file-based export sinks.Pushes Burp audit issues (findings) to the findings index when export is running and "Issues" is selected.Creates OpenSearch indices from bundled JSON mapping files.Result of an index creation attempt.Pushes Proxy History items to the traffic index once when Start is clicked and "Proxy History" is selected.Pushes Proxy WebSocket history items to the traffic index.Best-effort Repeater tab snapshot capture for historic request/response pairs.Builds request and response sub-documents in the same shape as the traffic index, for use by both
TrafficHttpHandlerandSitemapIndexReporter.Pushes Burp project and user settings to the settings index when export is running and "Settings" is selected.Shared single-document outcome accounting for reporters that push one document at a time.Pushes Burp sitemap items to the sitemap index when export is running and "Sitemap" is selected.Shared helper for logging completion summaries of one-shot export waves.Baseline counters for a counter source captured before a one-shot run.Bounded queue for traffic documents so the HTTP thread can enqueue and return immediately.Shared Burp HTTP traffic handler for live request/response export.Centralized traffic "route bucket" mapping shared by all traffic sinks and stats views.Bucket kind used to group traffic counters in stats.Route record carrying the resolved bucket kind and key.