One-click install
npx skills add https://github.com/pruiz/CodeCome --skill c-cpp-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c-cpp-security
Source: https://github.com/pruiz/CodeCome/tree/main/.opencode/skills/c-cpp-security
Command: npx skills add https://github.com/pruiz/CodeCome --skill c-cpp-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps security researchers and developers identify critical vulnerabilities in C and C++ source code, facilitating faster security assessments.

Core Features & Use Cases

  • Vulnerability Hypothesis Generation: Detects high-risk classes like buffer overflows, use after free, and memory leaks.
  • Code pattern Review: Analyzes code for unsafe functions, dangerous APIs, and insecure practices.
  • Use Case: Analyze a C++ project to find potential security issues related to string handling functions such as strcpy or system calls.

Quick Start

Use the c/c++ security skill to review your source code for common security vulnerabilities and unsafe functions.

Frequently Asked Questions about c-cpp-security

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

FAQPage Schema
How do I find memory safety vulnerabilities like buffer overflows in C or C++ source code?

To find memory safety vulnerabilities in C or C++ source code, you can perform static analysis to detect high-risk issues like buffer overflows and use-after-free. This approach reviews unsafe patterns, dangerous APIs, and insecure practices to improve overall code security.

What is the best way to check C++ projects for unsafe functions and insecure string handling?

The best way to check C++ projects for unsafe functions and insecure string handling is through code pattern review. It identifies dangerous APIs such as strcpy and system calls, helping developers fix input validation and buffer handling issues efficiently.

Can I use static analysis to detect command execution and cryptographic vulnerabilities in C?

Yes, you can use static analysis to detect command execution and cryptographic vulnerabilities in C. The process analyzes source files and build scripts to identify dangerous functions, unsafe patterns, and input validation issues across the entire codebase.

Does this security analysis identify memory leaks and use-after-free issues automatically?

Yes, this security analysis automatically identifies memory leaks and use-after-free issues. It generates vulnerability hypotheses by analyzing source code for dangerous APIs and unsafe patterns, facilitating faster security assessments for code auditors.

What are the limitations of static code analysis for identifying C and C++ security vulnerabilities?

The limitations of static code analysis for C and C++ security vulnerabilities include focusing primarily on source files and build scripts to identify unsafe patterns and dangerous APIs. It generates vulnerability hypotheses rather than executing the code to confirm runtime memory safety issues.