Constant Time Analysis
ListedRapidly assesses code snippets for potential vulnerabilities and inefficiencies without performance degradation.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add trailofbits/skills --skill constant-time-analysis -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
trailofbits
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: pecl.php.net.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
pecl.php.netundeclaredWhat it found
- plugins/constant-time-analysis/skills/constant-time-analysis/references/php.md:17contacts pecl.php.net
VLD_VERSION=$(curl -fsS https://pecl.php.net/package/vld |
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned trailofbits/skills at 82fe822625.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 82fe822625
- Scanned
- 11 files, 1,856 lines
About this skill
What it does
This skill enables AI agents to perform constant-time analysis. It allows for consistent and predictable execution regardless of input data, preventing information leakage based on runtime behavior. This is particularly useful when dealing with sensitive data or security-critical operations where timing variations could be exploited.
When to use it
- Analyzing cryptographic implementations to detect timing vulnerabilities.
- Evaluating the performance of algorithms that should have consistent execution times.
- Debugging code where unexpected timing differences are causing issues.
- Auditing systems for potential side-channel attacks based on timing information.
Key capabilities
- Constant-time execution
- Runtime analysis
- Vulnerability detection (timing attacks)
Example prompts
- "Analyze this cryptographic function for constant-time behavior."
- "Can you identify any timing dependencies in this sorting algorithm?"
- "Perform a constant-time analysis of the password comparison routine."
Tips & gotchas
This skill requires a solid understanding of security principles and potential side-channel attack vectors. It’s most effective when applied to code that handles sensitive data or performs critical operations.