constant-time-analysis

Analyze assembly or bytecode for variable-time instructions in cryptographic code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/monmacllcapp/skill-forks --skill constant-time-analysis-monmacllcapp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: constant-time-analysis
Source: https://github.com/monmacllcapp/skill-forks/tree/main/skills/security/plugins/constant-time-analysis/skills/constant-time-analysis
Command: npx skills add https://github.com/monmacllcapp/skill-forks --skill constant-time-analysis-monmacllcapp

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, preventing secret data leaks through execution time variations.

Core Features & Use Cases

  • Detects Vulnerabilities: Analyzes assembly or bytecode for dangerous instructions (e.g., variable-time division, secret-dependent branches).
  • Supports Multiple Languages: Covers C/C++, Go, Rust, PHP, JavaScript, Python, Ruby, Swift, Java, and Kotlin.
  • Provides Fixes: Offers patterns and guidance for implementing constant-time solutions.
  • Use Case: When reviewing a new encryption function, use this Skill to automatically scan for any operations that might leak the secret key through execution timing differences.

Quick Start

Use the constant-time-analysis skill to check the provided Swift code for timing vulnerabilities.

Frequently Asked Questions about constant-time-analysis

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

FAQPage Schema
What is constant-time programming and why do I need it for cryptography?▼

Constant-time programming prevents timing attacks by eliminating variable-time instructions. It is needed for cryptographic code because execution time variations can leak secret data, allowing attackers to recover encryption keys by measuring operation durations.

How do I detect timing side-channel vulnerabilities in my code?▼

Detect timing side-channel vulnerabilities by analyzing compiled assembly or virtual machine bytecode for dangerous operations like variable-time division and secret-dependent branches. This Skill scans multiple programming languages to identify these timing leaks automatically.

Does this timing attack analysis support Python, JavaScript, and Swift?▼

Yes, this timing attack analysis supports Python, JavaScript, TypeScript, Swift, and other languages including C, C++, Go, Rust, PHP, Ruby, Java, and Kotlin by examining their compiled assembly or virtual machine bytecode.

How do I fix variable-time division and secret-dependent branches in cryptography?▼

Fix variable-time division and secret-dependent branches by applying constant-time programming patterns. This Skill provides specific guidance and patterns for implementing secure solutions to replace dangerous instructions identified during the assembly or bytecode analysis.

Can I use this to review a new encryption function for timing leaks?▼

Yes, you can use this to review a new encryption function for timing leaks. It automatically scans the cryptographic code to detect any operations that might leak the secret key through execution timing differences, ensuring secure implementation.