compiler-hardening
OfficialEnhance C/C++ security with effective compile-time hardening.
AuthorRedHatProductSecurity
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers improve the security and stability of C and C++ applications by applying compiler hardening flags and sanitizers to prevent common vulnerabilities.
Core Features & Use Cases
- Apply Hardening Flags: Recommends and guides the integration of compiler options like
-fstack-protector-strongand-Wl,-z,relro,-z,nowin build configurations. - Configure Sanitizers: Provides instructions to enable runtime sanitizers such as AddressSanitizer, ThreadSanitizer, and LeakSanitizer during development and testing.
- Use Case: A security engineer reviewing a native code project's CI pipeline can use this Skill to verify and enforce security-focused compile flags and runtime checks before deployment.
Quick Start
Review your build system configurations and add the recommended compiler flags and sanitizers as described to improve your project's security posture.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: compiler-hardening Download link: https://github.com/RedHatProductSecurity/prodsec-skills/archive/main.zip#compiler-hardening Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.