constant-time-analysis

Detect timing side-channel vulnerabilities in cryptographic code across languages.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/fjor1025/InfoSec-Framework --skill constant-time-analysis-fjor1025
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-analysis
Source: https://github.com/fjor1025/InfoSec-Framework/tree/main/ClaudeSkills/plugins/constant-time-analysis/skills/constant-time-analysis
Command: npx skills add https://github.com/fjor1025/InfoSec-Framework --skill constant-time-analysis-fjor1025

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill protects your cryptographic implementations by identifying and helping you fix vulnerabilities where secret data can be leaked through execution timing variations.

Core Features & Use Cases

  • Detect Timing Vulnerabilities: Analyzes code (assembly, bytecode, or source) for dangerous instructions like division or secret-dependent branches.
  • Multi-Language Support: Works with C, C++, Go, Rust, PHP, JavaScript, Python, Ruby, Java, Kotlin, C#, and Swift.
  • Use Case: You've implemented a new encryption algorithm and want to ensure it's resistant to side-channel attacks like KyberSlash. This Skill will scan your code for potential timing leaks.

Quick Start

Use the constant-time-analysis skill to check the file 'crypto.rs' for timing vulnerabilities.

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?

To detect timing side-channel vulnerabilities, analyze your cryptographic code for variable-time instructions and secret-dependent branches across compiled code, bytecode, and scripting languages. This process identifies dangerous operations like division that leak secret data through execution timing variations.

What is a constant-time analysis and when do I need it for my encryption algorithm?

Constant-time analysis is a security review that identifies timing leaks where secret data influences execution timing. You need it after implementing encryption algorithms to ensure resistance against side-channel attacks like KyberSlash, preventing attackers from extracting keys through timing observations.

Can I scan for secret-dependent branches across multiple programming languages like Rust and C++?

Yes, you can scan for secret-dependent branches across Rust and C++, alongside C, Go, PHP, JavaScript, Python, Ruby, Java, Kotlin, C#, and Swift. The analysis operates on assembly, bytecode, and source code to find timing vulnerabilities in diverse architectures.

How do I integrate timing attack analysis into a CI pipeline for automated security checks?

You integrate timing attack analysis into CI pipelines to run automated security checks on every code change. The analysis scans cryptographic implementations for variable-time instructions, providing constant-time fixes and preventing timing vulnerabilities from reaching production environments.

What are the limitations of detecting timing attacks in compiled code versus source code?

Detecting timing attacks in compiled code targets variable-time instructions directly in the assembly, while source code analysis identifies secret-dependent branches in the logic. Both compiled and scripting formats are supported, ensuring comprehensive vulnerability coverage across different compilation stages.