compiler-hardening

Official

Enhance 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-strong and -Wl,-z,relro,-z,now in 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.