constant-time-analysis

Detect timing side-channel vulnerabilities in cryptographic code via assembly or bytecode analysis.

Updated May 2, 2026
One-click install
npx skills add https://github.com/ayehiaa/my-travel-assistant --skill constant-time-analysis-ayehiaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-analysis
Source: https://github.com/ayehiaa/my-travel-assistant/tree/main/.agents/skills/constant-time-analysis
Command: npx skills add https://github.com/ayehiaa/my-travel-assistant --skill constant-time-analysis-ayehiaa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Constant-time analysis helps you identify timing side-channel vulnerabilities in cryptographic implementations where secret-dependent operations can leak information through execution time.

Core Features & Use Cases

  • Detect timing vulnerabilities: Flags potentially variable-time instructions and patterns associated with secret handling.
  • Analyze across languages and formats: Supports compiled languages via assembly patterns and VM/bytecode-based languages via bytecode inspection and opcode heuristics.
  • Guide toward safer patterns: Recommends constant-time replacements such as Barrett reduction and constant-time selection/compare approaches, and can output JSON for CI automation.

Quick Start

Ask Claude to analyze your crypto function for constant-time issues and point out where division, secret-dependent branches, or unsafe comparisons are present.

Frequently Asked Questions about constant-time-analysis

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?

Timing side-channel vulnerabilities in cryptographic code are detected by scanning assembly or bytecode for variable-time instructions where secrets flow into division, branching, comparisons, or lookup indices. This analysis flags dangerous operations and recommends constant-time replacements.

What is constant-time analysis and when do I need it for crypto code review?

Constant-time analysis is the process of identifying timing leaks where secret-dependent operations leak information through execution time. You need it during crypto code reviews or implementation audits to ensure secrets do not influence execution timing.

Can I automate timing analysis for crypto code in CI pipelines?

Yes, you can automate timing analysis in CI pipelines by configuring the scan to output CI-friendly JSON results. This allows automated detection of timing side-channel vulnerabilities during continuous integration security checks.

Does constant-time analysis work with both compiled languages and VM bytecode?

Constant-time analysis supports compiled languages via assembly pattern inspection and VM/bytecode-based languages via opcode heuristics. It scans the generated assembly or bytecode to detect variable-time operations across supported formats.

How do I find secret-dependent branches and unsafe comparisons in my crypto implementation?

To find secret-dependent branches and unsafe comparisons, scan the compiled assembly or bytecode for branching, division, and modulo operations conditioned on secrets. The analysis identifies these patterns and guides toward safer constant-time selection approaches.

What are the limitations of assembly inspection for timing analysis?

Assembly inspection for timing analysis is limited to detecting known dangerous instruction patterns in supported compiled and VM/bytecode languages. It relies on opcode heuristics and cannot guarantee complete coverage of all possible timing side-channel vectors.