constant-time-testing

Detect timing side-channel vulnerabilities in cryptographic implementations using statistical testing.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill constant-time-testing-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-testing
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/constant-time-testing
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill constant-time-testing-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies timing side-channel vulnerabilities in cryptographic code where execution time correlates with secret data, preventing potential key extraction and security breaches.

Core Features & Use Cases

  • Statistical Analysis: Uses dudect to detect timing differences via Welch's t-test.
  • Dynamic Tracing: Uses timecop to pinpoint exact lines of code leaking secret information.
  • Use Case: When auditing a new implementation of an RSA or AES algorithm, use this skill to verify that secret-dependent branches or memory accesses are not leaking private keys through execution timing.

Quick Start

Use the constant-time-testing skill to run a statistical dudect analysis on the target cryptographic function to detect potential timing leaks.

Frequently Asked Questions about constant-time-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect timing side-channel vulnerabilities in cryptographic code?

Detect timing side-channel vulnerabilities by analyzing execution time variations using statistical testing. This skill uses dudect to apply Welch's t-test, identifying correlations between execution time and secret data in cryptographic implementations.

What is a timing attack and how does dudect identify secret-dependent leaks?

A timing attack extracts secrets by measuring execution time. dudect identifies secret-dependent leaks by applying Welch's t-test to execution traces, detecting statistically significant timing differences in cryptographic algorithms like RSA or AES.

How do I pinpoint exact lines of code leaking private keys through execution timing?

Pinpoint exact lines of code leaking private keys using dynamic tracing with timecop. After statistical analysis identifies a leak, timecop traces execution to locate specific secret-dependent branches or memory accesses.

Can I use this constant-time verification for auditing AES and RSA protocol primitives?

Yes, you can use this constant-time verification to audit AES and RSA protocol primitives. It satisfies requirements for security audits of sensitive algorithms, private key handling, and protocol primitives by detecting timing leaks.

What is the best way to verify that cryptographic implementations are constant-time?

The best way to verify cryptographic implementations are constant-time is combining statistical analysis with dynamic tracing. Use dudect for Welch's t-test detection and timecop to pinpoint secret-dependent branches or memory accesses.

When do I need dynamic tracing tools to eliminate timing side-channel leaks?

You need dynamic tracing tools like timecop after statistical analysis confirms a timing leak exists. Use timecop to pinpoint exact lines of code where secret-dependent branches or memory accesses leak private keys through execution timing.