How poo1t/side-chennel-attack-framework works
This repository is a side-channel research framework: it runs controlled cache and timing benchmarks, generates synthetic power traces, and analyzes leakage and mitigation outcomes. The power sweep’s generator and CPA calls are visible in source; the cache and timing harnesses visibly use their shared measurement utilities and comparison implementations. Analysis scripts and the experiment runner are included as product capabilities, but their wiring is not asserted where the supplied excerpts and reference index do not show it. The top-level README excerpt is empty, so the map relies on the framework’s source and tree.
Main entry points: timing_common.h Timing measurement utilities · measurement.cpp Timing measurement harness · cache_common.h Cache measurement utilities · cpa_analysis.py CPA experiment sweep
Components 16
Cache experiments
- Flush-reload experiment
side-channel-framework/src/cache/cache_experiment.cpp - Mitigation throughput
side-channel-framework/src/cache/cache_measurement.cpp - Cache measurement utilities
side-channel-framework/src/cache/cache_common.h - CPU and PRNG helpers
side-channel-framework/src/cache/cache_common.cpp
Timing experiments
- Timing measurement harness
side-channel-framework/src/timing/measurement.cpp - Early-exit comparison
side-channel-framework/src/timing/vulnerable.cpp - Constant-time comparison
side-channel-framework/src/timing/mitigated.cpp - Timing measurement utilities
side-channel-framework/src/timing/timing_common.h - Timing platform helpers
side-channel-framework/src/timing/timing_common.cpp
Power analysis
- Synthetic trace generator
side-channel-framework/src/power/trace_generator.py - CPA engine
side-channel-framework/src/power/power_analysis.py - CPA experiment sweep
side-channel-framework/analysis/cpa_analysis.py
Leakage analysis
- Cache leakage analysis
side-channel-framework/analysis/cache_analysis.py - Timing leakage analysis
side-channel-framework/analysis/timing_analysis.py - Comparative analysis
side-channel-framework/analysis/comparative_analysis.py - Experiment runner
side-channel-framework/experiments/run_experiments.py
Connections 12
- Flush-reload experiment → Cache measurement utilities: uses
side-channel-framework/src/cache/cache_experiment.cpp - Mitigation throughput → Cache measurement utilities: uses
side-channel-framework/src/cache/cache_measurement.cpp - CPU and PRNG helpers → Cache measurement utilities: implements
side-channel-framework/src/cache/cache_common.cpp - Timing measurement harness → Timing measurement utilities: uses
side-channel-framework/src/timing/measurement.cpp - Timing measurement harness → Early-exit comparison: measures
side-channel-framework/src/timing/measurement.cpp - Timing measurement harness → Constant-time comparison: measures
side-channel-framework/src/timing/measurement.cpp - Early-exit comparison → Timing measurement utilities: uses
side-channel-framework/src/timing/vulnerable.cpp - Constant-time comparison → Timing measurement utilities: uses
side-channel-framework/src/timing/mitigated.cpp - Timing platform helpers → Timing measurement utilities: implements
side-channel-framework/src/timing/timing_common.cpp - CPA experiment sweep → Synthetic trace generator: generates traces
side-channel-framework/analysis/cpa_analysis.py - CPA experiment sweep → CPA engine: runs CPA
side-channel-framework/analysis/cpa_analysis.py - CPA engine → Synthetic trace generator: imports tables
side-channel-framework/src/power/power_analysis.py