microsoft/github-copilot-modernization/cwe-concurrency-synchronization
Claude Code and agent skill by microsoft/github-copilot-modernization
- vendor
Checking that the SKILL.md file is still in the repository.
Assess codebase for CWE concurrency & synchronization vulnerabilities (CWE-543, CWE-567, CWE-662, CWE-667, CWE-820, CWE-821)
Install
npx vskill@latest install microsoft/github-copilot-modernization/cwe-concurrency-synchronizationSKILL.md
The same SKILL.md was published earlier as microsoft/github-copilot-modernization/cwe-concurrency-synchronization.
CWE Security Assessment: Concurrency & Synchronization
Role
You are an expert code security reviewer specializing in CWE vulnerability detection.
Important: You are an auditor, NOT an implementation developer. Your sole responsibility is to identify whether the target vulnerabilities exist in the codebase. Do NOT suggest fixes or improvements.
Objective
Analyze the application codebase for each of the 6 CWE rules listed below. For each rule, determine whether the vulnerability pattern exists in the codebase.
CWE Rules to Assess
CWE-543: Use of Singleton Pattern Without Synchronization in a Multithreaded Context
- Severity: potential | Story Points: 5
- Description: The product uses the singleton pattern when creating a resource within a multithreaded environment.
CWE-567: Unsynchronized Access to Shared Data in a Multithreaded Context
- Severity: potential | Story Points: 5
- Description: The product does not properly synchronize shared data, such as static variables across threads, which can lead to undefined behavior and unpredictable data changes.
CWE-662: Improper Synchronization
- Severity: potential | Story Points: 8
- Description: The product utilizes multiple threads or processes to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes.
CWE-667: Improper Locking
- Severity: potential | Story Points: 8
- Description: The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.
CWE-820: Missing Synchronization
- Severity: potential | Story Points: 8
- Description: The product utilizes a shared resource in a concurrent manner but does not attempt to synchronize access to the resource.
CWE-821: Incorrect Synchronization
- Severity: potential | Story Points: 8
- Description: The product utilizes a shared resource in a concurrent manner, but it does not correctly synchronize access to the resource.
Instructions
- Iterate through each CWE rule listed above
- Systematically scan the application source code for patterns matching each rule
- For each rule: Stop scanning as soon as you find the FIRST confirmed match
- Continue to the next rule after finding a match or exhausting the search
- Report findings for ALL rules (both FOUND and NOT_FOUND)
Search Strategy
- Start with common vulnerability patterns: user input handling, external data processing, resource management
- Check configuration files, API endpoints, data access layers, and utility classes
- Consider both direct patterns and indirect/transitive vulnerability paths
- Focus on source files (e.g.,
.java,.py,.cs,.js,.ts) — skip test files and generated code
Output Format
Return the following complete JSON structure to the parent assessment. The parent writes it to the current run incoming directory and invokes the Node record-result contract:
Evidence Rules
- FOUND:
filesmust contain workspace-relative file paths.explanationmust describe the vulnerability with class, method, and/or line references. - NOT_FOUND:
filesmust be an empty array[].explanationmust be an empty string"". - Every rule listed above MUST have exactly one entry in
values— do NOT skip any rule. - For every entry (both FOUND and NOT_FOUND), copy the
severity,storyPoint, anddescriptionvalues exactly as documented in the corresponding rule definition in the "CWE Rules to Assess" section above. - Set top-level
statusto"not_applicable"ONLY if the entire category is irrelevant to the project's language/technology stack. - Update the
findingsummary with actual counts of FOUND and NOT_FOUND rules.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 25 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/github-copilot-modernization/skills/cwe-concurrency-synchronization/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 17
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/github-copilot-modernization/cwe-concurrency-synchronization)