constant-time-analysis

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

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/amano--/call-center --skill constant-time-analysis-amano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-analysis
Source: https://github.com/amano--/call-center/tree/main/.gemini/antigravity/skills/trailofbits-security/constant-time-analysis
Command: npx skills add https://github.com/amano--/call-center --skill constant-time-analysis-amano

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers identify and fix timing side-channel vulnerabilities in cryptographic code, which can leak sensitive information through execution time variations.

Core Features & Use Cases

  • Vulnerability Detection: Analyzes code (assembly, bytecode, or source) for dangerous instructions like division, secret-dependent branches, and timing-unsafe comparisons.
  • Multi-Language Support: Works with C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, and Ruby.
  • Use Case: A developer implementing a new encryption algorithm can use this Skill to automatically scan their code for potential timing leaks before deployment, ensuring the security of sensitive data.

Quick Start

Use the constant-time-analysis skill to check the file 'crypto.c' 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, you can scan your cryptographic code for dangerous instructions like division, secret-dependent branches, and timing-unsafe comparisons. This analysis flags operations that leak sensitive data through execution time variations.

What types of timing attack vectors are checked during a cryptographic code review?

A cryptographic code review checks for timing attack vectors including secret-dependent operations, division, and branching. It analyzes compiled, VM-compiled, and interpreted code to identify timing-unsafe comparisons that could expose encryption keys.

Does timing vulnerability analysis work with Rust, Go, and Python cryptographic implementations?

Timing vulnerability analysis works with Rust, Go, and Python, alongside C, C++, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, and Ruby. It evaluates source code, bytecode, and assembly across these multiple programming languages.

How do I scan an encryption algorithm for secret-dependent branches before deployment?

To scan an encryption algorithm for secret-dependent branches before deployment, run a constant-time analysis on your source file. The tool automatically audits the code and reports potential timing leaks to ensure sensitive data security.

Do I need specific language toolchains to analyze bytecode for timing leaks?

You need specific language toolchains to analyze bytecode for timing leaks comprehensively. The analysis requires these toolchains to inspect VM-compiled code effectively and identify timing-unsafe comparisons and secret-dependent operations.

Why does compiled code require assembly analysis to find timing side-channel vulnerabilities?

Compiled code requires assembly analysis to find timing side-channel vulnerabilities because the compiled instructions reveal the actual execution path. Analyzing assembly identifies dangerous instructions like division and secret-dependent branches that source code alone may obscure.