Claude-Code-CyberSecurity-Skill
CLAUDE.md462 starsChanged 3 months agoMITView on GitHub
This is a content repository, not an application. It publishes a Claude Code plugin — a collection of 22 SKILL.md files (in skills/<NN-skill-name>/) that teach Claude domain-specific cybersecurity methodology (recon, vuln scanning, exploit dev, RE, malware analysis, threat hunting, IR, network/web/cloud security, SOC automation, log analysis, crypto, red/blue team ops, AI/LLM security, mobile, OT/ICS, GRC, supply chain security, threat intelligence/CTI, purple team/adversary emulation). Each skill directory optionally ships standalone Python automation scripts and example usage docs that the SKILL.md references.
In this repository22 other files it gives its agents.
- Reconnaissance & OSINT AutomationSkill
- Vulnerability Scanning & AssessmentSkill
- Exploit Development & Payload EngineeringSkill
- Reverse Engineering & Binary AnalysisSkill
- Malware Analysis & SandboxingSkill
- Threat Hunting & IOC AnalysisSkill
- Incident Response & Digital ForensicsSkill
- Network Security & Traffic AnalysisSkill
- Web Application Security TestingSkill
- Cloud Security & Container HardeningSkill
- CSOC Operations & Playbook AutomationSkill
- Log Analysis & SIEM IntegrationSkill
- Cryptographic Analysis & AssessmentSkill
- Red Team Operations & Engagement PlanningSkill
- Blue Team Defense & HardeningSkill
- AI & LLM SecuritySkill
- Mobile Application SecuritySkill
- OT / ICS / SCADA SecuritySkill
- GRC & ComplianceSkill
- Supply Chain SecuritySkill
- Threat Intelligence & CTISkill
- Purple Team & Adversary EmulationSkill
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Every SKILL.md uses this structure (see CONTRIBUTING.md for the full template):
- Distinctive: line 61
Don't add speculative features outside a skill's domain.
- Very specific: line 62
If you change a script's behavior, update the SKILL.md's Script Integration section (and USAGE.md if a script is added/renamed) in the same …
- Very specific: line 78
No hardcoded credentials/IPs/secrets.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this repository is
This is a content repository, not an application. It publishes a Claude Code plugin — a collection of 22 SKILL.md files (in skills/<NN-skill-name>/) that teach Claude domain-specific cybersecurity methodology (recon, vuln scanning, exploit dev, RE, malware analysis, threat hunting, IR, network/web/cloud security, SOC automation, log analysis, crypto, red/blue team ops, AI/LLM security, mobile, OT/ICS, GRC, supply chain security, threat intelligence/CTI, purple team/adversary emulation). Each skill directory optionally ships standalone Python automation scripts and example usage docs that the SKILL.md references.
There is no app to build, no test suite, and no CI pipeline defined in this repo — "development" here means writing/editing Markdown skill files and the Python scripts they call out to.
Commands
Scripts are standalone (no shared package, no requirements.txt at repo root — each script declares its own imports and degrades gracefully if optional deps are missing).
# Syntax-check a script after editing it
python3 -m py_compile skills/<NN-skill-name>/scripts/<tool>.py
# Confirm --help works (argparse is required for every script)
python3 skills/<NN-skill-name>/scripts/<tool>.py --help
# If the script has a --demo flag, run it as a smoke test
python3 skills/<NN-skill-name>/scripts/<tool>.py --demo
# If a script writes --output <file>.json, validate the JSON
python3 -c "import json; json.load(open('/tmp/test.json'))"There is no linter or test runner configured — py_compile + --help + manual JSON validation (above) is the full verification loop used in this repo (see CONTRIBUTING.md).
Repository structure
skills/<NN-skill-name>/
├── SKILL.md # required — the instructions Claude reads; drives activation
├── scripts/<tool>.py # optional — automation the SKILL.md's Script Integration section calls
└── examples/, resources/ # optional — only when they add value beyond SKILL.md itself.claude-plugin/marketplace.json is the plugin manifest — it lists every skill path and must stay in sync with skills/. If you add, remove, or renumber a skill directory, update this file too.
Editing skills — required SKILL.md shape
Every SKILL.md uses this structure (see CONTRIBUTING.md for the full template):
---
name: Skill Name
description: One-line description (Claude uses this for activation matching)
version: 3.1.0
author: Masriyan
tags: [cybersecurity, ...]
---followed by: Activation Triggers → Prerequisites → Core Capabilities (numbered methodology) → Script Integration (table of scripts + args) → Output Template (exact report/finding format Claude must reproduce) → Skill Integration (cross-links to other numbered skills, e.g. "Vulnerabilities confirmed → develop PoC → Skill 03") → References.
New skills are added sequentially — the collection currently ends at 22, so the next one is 23.
Rules enforced by CONTRIBUTING.md that matter when editing:
- Never remove the authorization/legal-scope gates from Skill 03 (Exploit Development), Skill 14 (Red Team Operations), and Skill 22 (Purple Team & Adversary Emulation), or the safety gates on Skill 16 (AI/LLM Security) and Skill 18 (OT/ICS Security) — these are load-bearing, not boilerplate.
- Don't add speculative features outside a skill's domain; don't introduce external dependencies without a graceful fallback.
- If you change a script's behavior, update the SKILL.md's Script Integration section (and
USAGE.mdif a script is added/renamed) in the same change. - Any Unreleased-worthy change should be logged under
CHANGELOG.md's[Unreleased]section.
Python script conventions (from CONTRIBUTING.md)
- Python 3.10+,
#!/usr/bin/env python3shebang. argparsefor all CLI args; every script must support--help.loggingfor diagnostics;print()only for actual report/finding content.- Optional dependencies must degrade gracefully:
try: import optional_package except ImportError: optional_package = None logger.warning("optional_package not installed — feature X disabled") - No hardcoded credentials/IPs/secrets. No
shell=Trueinsubprocess(use list form). - PEP 8, type hints on all signatures, 120-char line limit, one short docstring per class/function.
PR conventions
Title format: [skill-name] Brief description (e.g. [threat-hunting] Add Sigma rule generation for lateral movement detection).
Note on AV false positives
Some scripts contain payload/exploit string templates for authorized testing (Skills 03, 14). This is intentional and documented in SECURITY.md — don't "fix" these by removing or obfuscating the content.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

