Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Code Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fmind-code-security)
---
name: code-security
description: "Review security, GDPR/EU AI Act/licenses, threat-model, vet skills, AI red-team, Betterleaks, Opengrep, Trivy, CodeQL, SonarQube."
license: MIT
metadata:
kind: collection
author: Médéric HURIER (Fmind)
source: github.com/fmind/dot/tree/main/skills/code-security
created: "2026-07-04"
updated: "2026-11-29"
---
# Code Security
Investigate and fix security defects with verified evidence; scanners inform reasoning, never replace it. Named `code-security` to avoid colliding with Claude/Copilot `security-review`.
## Workflow
Load the matching guide(s) below for every active surface; apply risk-gated fresh-session security review per [subagent](../subagent/SKILL.md) when crossing trust, IAM, or compliance boundaries.
- **File encryption (`age`)**: generate identities with `age-keygen -o <key>` (`0600`), encrypt files to public recipients via `age -r <recipient>` / `age -R <recipients-file>`, and decrypt with `age -d -i <key>` into a scoped target or pipe; never print, log, or commit plaintext or private keys.
## Task guides
<!-- guides:start -->
- [ai-red-team](references/ai-red-team/GUIDE.md): Red-team AI apps/agents (pytest probes, garak/promptfoo, PyRIT): injection, tool misuse, authority.
- [betterleaks](references/betterleaks.md): Scan the working tree and history for secrets; handle confirmed exposure.
- [code-review](references/code-review/GUIDE.md): Assess code and repository security; verify findings and repairs.
- [opengrep](references/opengrep.md): Run local intrafile and cross-file taint SAST scans with opengrep.
- [skill-security-review](references/skill-security-review/GUIDE.md): Review third-party skills and agent extensions for supply-chain risk.
- [sonarqube](references/sonarqube.md): SonarQube quality gates, issues, local scans, and server AI gates via sonar.
- [terms-review](references/terms-review.md): Review ToS, GDPR/EU AI Act, SPDX licenses, and DPAs for intended use.
- [threat-model](references/threat-model.md): Model attack paths, trust boundaries, abuse cases, and controls.
- [trivy](references/trivy/GUIDE.md): Scan dependencies, IaC, images, and licenses; generate SBOMs.
<!-- guides:end -->
## Documentation
- [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/) · [OWASP Agentic Top 10](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) · [MITRE ATLAS](https://atlas.mitre.org/)
- Companions: [full-review](../full-review/SKILL.md), [github](../github/SKILL.md), [containers](../containers/SKILL.md), [cloud-run](../gcloud/references/cloud-run/GUIDE.md).