This document provides an architectural overview of the crypto-auditing project.
The following figure illustrates the proposed architecture.
At the highest level, the architecture consists of two parts: crau-agent and log analysis tools (crau-query, crau-monitor).
crau-agent runs as a system service, receives cryptographic events from the kernel through eBPF, and writes them onto the primary log file.
Log analysis tools provide users with access to the primary log storage.
The responsibilities of crau-agent include:
- Install BPF program to monitor USDT events
- Receive notification events on execution reaching USDT probes
- Write received events to primary log file
The agent is meant to work as fast as possible with minimal resource consumption. The current implementation leverages [eBPF ring buffers] and io_uring for asynchronous I/O.
The log analysis tools provides ways to access the primary log file, either at any later time or at real-time.
The current implementation contains crau-query for the former, and crau-monitor for the latter.