race-conditions

Analyze source code for race condition vulnerabilities with CWE references.

12|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/florianbuetow/claude-code --skill race-conditions-florianbuetow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: race-conditions
Source: https://github.com/florianbuetow/claude-code/tree/main/plugins/appsec/skills/race-conditions
Command: npx skills add https://github.com/florianbuetow/claude-code --skill race-conditions-florianbuetow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and helps you fix critical race condition vulnerabilities in your code, preventing data corruption and security exploits.

Core Features & Use Cases

  • Concurrency Analysis: Detects Time-of-Check to Time-of-Use (TOCTOU), double-spend, and check-then-act patterns.
  • Shared State Auditing: Analyzes how shared mutable state is accessed across asynchronous boundaries.
  • Use Case: Automatically scan your payment processing module for race conditions that could lead to double-spending or incorrect balance updates.

Quick Start

Analyze the current project for race conditions with deep scope.

Frequently Asked Questions about race-conditions

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

FAQPage Schema
How do I scan source code for race condition vulnerabilities?

To scan for race condition vulnerabilities, analyze source code to detect time-of-check to time-of-use (TOCTOU) patterns, double-spend issues, and non-atomic operations. The tool supports multiple scanners including semgrep, go vet, and bandit to provide detailed findings with CWE references.

What is a TOCTOU race condition and how is it detected?

A TOCTOU race condition is a check-then-act vulnerability where shared state changes between validation and execution. It is detected by analyzing source code for time-of-check to time-of-use patterns across asynchronous boundaries without proper locking mechanisms, providing detailed findings with CWE references.

Can I use this to audit shared mutable state across async boundaries?

Yes, you can audit shared mutable state across async boundaries. The concurrency analysis detects check-then-act patterns without locking, shared state access issues, and file system race conditions, ensuring thread safety and preventing data corruption or security exploits.

How do I find double-spend vulnerabilities in payment processing modules?

To find double-spend vulnerabilities in payment processing modules, scan for race conditions and incorrect balance updates. The analysis detects non-atomic counter operations and check-then-act patterns without locking, preventing concurrency bugs that could lead to double-spending.

Does this concurrency analysis tool work with semgrep and bandit?

Yes, this concurrency analysis tool works with multiple scanners including semgrep, go vet, and bandit. It leverages these tools to analyze source code for race conditions, thread safety issues, and file system race conditions, providing detailed findings with CWE references.

What are the limitations when scanning for thread safety issues?

When scanning for thread safety issues, limitations may include false positives in complex async boundaries and difficulty detecting non-atomic counter operations in dynamically loaded code. The tool focuses on TOCTOU, double-spend, and check-then-act patterns without locking, with detailed CWE references.