HermeticOrmus/LibreSecOps-Claude-Code
GitHub: HermeticOrmus/LibreSecOps-Claude-Code
为 Claude Code 提供涵盖威胁建模、渗透测试、云安全和合规治理等领域的 32 个安全运营专业插件工具包。
Stars: 1 | Forks: 0
LibreSecOps Claude Code
使用 Claude Code 进行安全运营 —— 包含 32 个专业插件,涵盖 DevSecOps、威胁建模、事件响应、渗透测试和云安全
安全工作是不对称的。防守方必须次次正确。攻击方只需对一次。通用的 AI 编码会产生“看起来安全”的代码,但在真正的对抗性审查中却会失效。**LibreSecOps 为 Claude Code 赋予了安全领域的专业知识,以交付能够抵御真实攻击的系统。** 包含 32 个领域插件,涵盖蓝队、红队、云安全、应用安全、合规性,以及介于它们之间的操作层。 ## 本工具包应对的转变 Karpathy,2025年12月:编程正在被重构。特别是在安全方面,AI 生成的代码引入了新的漏洞攻击面 —— prompt 注入、供应链风险、加密原语的误用、过度宽松的 IAM。防御者的工具箱必须随着威胁的演进而进化。 ### LibreSecOps 的定位 | Claude Code 组件 | LibreSecOps 提供 | |---|---| | **Plugins** | 32 个子领域插件(威胁建模、IR、渗透测试、云安全、应用安全、合规性等) | | **Agents** | 每个插件配备专家级 agent(威胁建模师、IR 指挥官、渗透测试员、蓝队分析师) | | **Commands** | 每个插件的快捷斜杠命令 | | **Skills** | 模式库(STRIDE、MITRE ATT&CK 映射、OWASP 分类、NIST 控制) | | **Templates** | 威胁建模模板、IR playbook、审计证据脚手架 | ## 32 个插件 ### 防御性操作(蓝队) | Plugin | 领域 | |---|---| | **threat-modeling** ⭐ | STRIDE、攻击树、MITRE ATT&CK 映射 | | blue-team-detection | 检测工程、告警、SIEM 规则设计 | | incident-response | IR playbook、遏制、取证交接 | | siem-log-management | 日志标准化、告警调优、威胁狩猎 | | forensics-analysis | 数字取证、证据链、内存分析 | | security-automation | SOAR、playbook 自动化、响应编排 | | security-awareness | 钓鱼训练、用户教育、社会工程学防御 | | social-engineering-defense | 防钓鱼、防虚假托辞、防语音钓鱼 | ### 攻击性操作(红队) | Plugin | 领域 | |---|---| | penetration-testing | 渗透测试方法论(PTES、OSSTMM)、范围界定、报告 | | red-team-operations | 对手模拟、C2 设计、持久化技术 | | bug-bounty-methodology | 侦察、漏洞发现、负责任的披露 | | social-engineering-defense | (与攻击变体配对) | | vulnerability-scanning | 扫描器选择(Nessus、Qualys、OpenVAS)、误报分类 | | api-security-testing | API 模糊测试、BOLA、BFLA、批量赋值、GraphQL 专项 | | web-application-security | OWASP Top 10、XSS、SQLi、CSRF、身份验证缺陷 | ### 云安全 | Plugin | 领域 | |---|---| | cloud-security-aws | AWS IAM、KMS、GuardDuty、Security Hub、完善架构的安全支柱 | | cloud-security-azure | Azure AD、Defender、Sentinel、Conditional Access | | cloud-security-gcp | GCP IAM、Security Command Center、BeyondCorp、Cloud Armor | | container-security | 镜像扫描、runtime 安全、SBOM、Distroless | | kubernetes-security | Pod Security Standards、RBAC、NetworkPolicies、OPA Gatekeeper | | serverless-patterns | Lambda 安全、Functions-as-a-Service IAM、事件注入 | ### 应用 + 供应链安全 | Plugin | 领域 | |---|---| | secure-coding-practices | 特定语言的反模式(SQL 注入、反序列化等) | | supply-chain-security | SBOM、SLSA、依赖混淆、Typosquatting 防御 | | devsecops-pipelines | 左移安全、CI 中的 SAST/DAST/SCA | | cryptography-essentials | 对称与非对称加密、密钥管理、常见错误(ECB、IV 重用) | | secrets-management | Vault、AWS Secrets Manager、GCP Secret Manager、轮换模式 | | mobile-app-security | OWASP 移动 Top 10、证书固定、Keychain 安全 | ### 身份 + 访问 | Plugin | 领域 | |---|---| | identity-access-management | RBAC、ABAC、OAuth2、OIDC、SAML、即时访问 | | zero-trust-architecture | 超越边界、身份优先网络、微隔离 | | privacy-engineering | GDPR、CCPA、数据最小化、隐私设计模式 | ### 合规 + 治理 | Plugin | 领域 | |---|---| | compliance-frameworks | SOC 2、ISO 27001、PCI DSS、HIPAA、NIST CSF 映射 | | security-hardening | CIS 基准、主机加固、网络加固、特定操作系统配置 | | malware-analysis | 静态 + 动态分析、沙箱、IoC 提取 | | network-security | 防火墙设计、分段、IDS/IPS、DPI、DNS 安全 | ⭐ = 深度完善的插件(包含实质性专家内容)。其余 31 个插件为外壳改进版,计划在 v0.3-v0.5 版本中丰富深度内容。 ## 快速开始 ``` git clone https://github.com/HermeticOrmus/LibreSecOps-Claude-Code.git ~/projects/LibreSecOps-Claude-Code cd ~/projects/LibreSecOps-Claude-Code ./setup.sh ``` 然后在任何 Claude Code 会话中: ``` /threat-model build a STRIDE threat model for a SaaS application with multi-tenant data, OAuth2 social login, file upload, and a public REST API ``` 查看 [QUICK_START.md](QUICK_START.md) 获取完整的操作指南。 ## 学习路径 - **[初学者](learning-paths/beginner.md)** —— 安全思维转变、你的第一个威胁模型、OWASP Top 10 - **[中级](learning-paths/intermediate.md)** —— DevSecOps 集成、IR playbook、云安全态势 - **[高级](learning-paths/advanced.md)** —— 红队 / 蓝队演练、合规审计准备、零信任迁移 ## 兼容性 - **云平台**: AWS、Azure、GCP(三者间保持一致) - **容器/编排**: Docker、Kubernetes、ECS、GKE、AKS - **合规框架**: SOC 2、ISO 27001、PCI DSS、HIPAA、NIST CSF、FedRAMP、GDPR - **语言**: Python、TypeScript、Go、Rust、Java、.NET - **技能水平**: 从刚进入安全领域的开发人员到高级安全工程师 ## 免责声明 本工具包仅用于**防御性安全和授权测试**。攻击性插件(penetration-testing、red-team-operations、bug-bounty-methodology)仅供在获得明确授权的情况下使用。在大多数司法管辖区,未经授权的测试是非法的。 这是文档 + prompt 工程。它**不是**: - 关于合规的法律建议 - 认证安全专业人员的替代品 - 审计认证 对于受监管的系统,请聘请持证安全顾问和认可的审计员。 ## License MIT. ## Claude Code 开源 Libre 技术栈的一部分 本仓库是不断壮大的 Claude Code 开源工具包家族的一部分。 ### Libre 套件 —— 综合性插件包 - [LibreUIUX-Claude-Code](https://github.com/HermeticOrmus/LibreUIUX-Claude-Code) —— UI/UX 开发(152 个 agent,70 个 plugin,76 个 command,74 个 skill) - [LibreArch-Claude-Code](https://github.com/HermeticOrmus/LibreArch-Claude-Code) —— 软件架构和系统设计 - [LibreCopy-Claude-Code](https://github.com/HermeticOrmus/LibreCopy-Claude-Code) —— 技术写作和文档工程 - [LibreDevOps-Claude-Code](https://github.com/HermeticOrmus/LibreDevOps-Claude-Code) —— DevOps 工程和基础设施自动化 - [LibreEmbed-Claude-Code](https://github.com/HermeticOrmus/LibreEmbed-Claude-Code) —— 嵌入式系统、固件和物联网开发 - [LibreFinTech-Claude-Code](https://github.com/HermeticOrmus/LibreFinTech-Claude-Code) —— 金融科技开发 - [LibreGEO-Claude-Code](https://github.com/HermeticOrmus/LibreGEO-Claude-Code) —— AI 搜索优化(ChatGPT、Perplexity、Gemini、Google AI Overviews) - [LibreGameDev-Claude-Code](https://github.com/HermeticOrmus/LibreGameDev-Claude-Code) —— 跨越 Godot、Unity、Unreal 的游戏开发 - [LibreMLOps-Claude-Code](https://github.com/HermeticOrmus/LibreMLOps-Claude-Code) —— ML 工程和 AI 运营 - [LibreMobileDev-Claude-Code](https://github.com/HermeticOrmus/LibreMobileDev-Claude-Code) —— 移动应用开发(Flutter、React Native、原生 iOS、原生 Android) - [LibreSessionFlow-Claude-Code](https://github.com/HermeticOrmus/LibreSessionFlow-Claude-Code) —— 会话生命周期:交接、提取、吸收、探索、关闭 ### Skills mini-repos —— 单个 CLAUDE.md 直接插入文件 - [vibe-engineer-skills](https://github.com/HermeticOrmus/vibe-engineer-skills) —— 正确进行 AI 代码生成:求助前先假设,限定 prompt 范围,接受前先验证 - [markdown-discipline-skills](https://github.com/HermeticOrmus/markdown-discipline-skills) —— 剔除 markdown 中的 AI 冗词(无破折号,无营销废话) - [shell-safety-skills](https://github.com/HermeticOrmus/shell-safety-skills) —— `set -euo pipefail` 纪律外加 15 个失败模式示例 - [commit-standard-skills](https://github.com/HermeticOrmus/commit-standard-skills) —— Ormus 提交标准 v1.0 外加 commit-msg hook 和 commitlint - [unwoke-skills](https://github.com/HermeticOrmus/unwoke-skills) —— 剔除 AI 戏码(消除十宗罪,对称参与) - [python-conventions-skills](https://github.com/HermeticOrmus/python-conventions-skills) —— 现代 Python 3.11+(类型、pathlib、async、ruff、mypy、uv) - [typescript-conventions-skills](https://github.com/HermeticOrmus/typescript-conventions-skills) —— TypeScript 严格模式、可辨识联合、Result 类型 - [hermetic-laws-skills](https://github.com/HermeticOrmus/hermetic-laws-skills) —— 应用于工程的七大赫尔墨斯法则 - [riper-workflow-skills](https://github.com/HermeticOrmus/riper-workflow-skills) —— 研究 / 创新 / 计划 / 执行 / 审查的系统化开发 - [six-day-cycle-skills](https://github.com/HermeticOrmus/six-day-cycle-skills) —— 带有强制休息的可持续发布节奏 - [token-optimization-skills](https://github.com/HermeticOrmus/token-optimization-skills) —— Claude Code token 和上下文优化 - [osint-skills](https://github.com/HermeticOrmus/osint-skills) —— OSINT 研究方法论(多波调查螺旋) - [calcinate-skills](https://github.com/HermeticOrmus/calcinate-skills) —— Magnum Opus 的第一阶段(燃烧项目冗余) - [claude-md-overhaul-skills](https://github.com/HermeticOrmus/claude-md-overhaul-skills) —— 根据上限审计 CLAUDE.md 和 MEMORY.md - [session-handoff-skills](https://github.com/HermeticOrmus/session-handoff-skills) —— 会话交接和提取纪律 - [naming-skills](https://github.com/HermeticOrmus/naming-skills) —— 产品命名方法论(挖掘品牌词汇) - [magnum-opus-skills](https://github.com/HermeticOrmus/magnum-opus-skills) —— 应用于项目转型的七阶段炼金术 - [mem-search-skills](https://github.com/HermeticOrmus/mem-search-skills) —— 搜索 claude-mem 跨会话记忆:搜索、过滤、获取 - [hypothesis-debugging-skills](https://github.com/HermeticOrmus/hypothesis-debugging-skills) —— 假设驱动调试:重现、隔离、测试、修复 - [vibe-proof-skills](https://github.com/HermeticOrmus/vibe-proof-skills) —— 针对凭直觉编码(vibe-coded)的全栈应用的安全加固 - [tdd-skills](https://github.com/HermeticOrmus/tdd-skills) —— 针对 JS/TS 和 Python 的测试驱动开发(Red-Green-Refactor) - [mars-skills](https://github.com/HermeticOrmus/mars-skills) —— 生产就绪审计:凭直觉编码的 MVP 的五大致命罪过 - [git-workflow-skills](https://github.com/HermeticOrmus/git-workflow-skills) —— 干净的 git 工作流:分支、原子提交、可审查的 PR - [code-review-skills](https://github.com/HermeticOrmus/code-review-skills) —— 领域感知的代码审查:先分类代码,再聚焦 - [code-comprehension-skills](https://github.com/HermeticOrmus/code-comprehension-skills) —— 快速理解陌生的代码库 - [dx-audit-skills](https://github.com/HermeticOrmus/dx-audit-skills) —— 审计开发者体验:文档、引导、工具摩擦 - [setup-env-skills](https://github.com/HermeticOrmus/setup-env-skills) —— 搭建项目的开发环境 - [automate-skills](https://github.com/HermeticOrmus/automate-skills) —— 将重复性任务转化为可靠的自动化脚本 - [quick-fix-skills](https://github.com/HermeticOrmus/quick-fix-skills) —— 针对常见问题的快速排查与修复 - [prime-context-skills](https://github.com/HermeticOrmus/prime-context-skills) —— 在会话开始时初始化项目上下文 - [auto-docs-skills](标签:CISA项目, Claude Code, Cutter, DevSecOps, Web报告查看器, 上游代理, 人工智能, 威胁建模, 安全运营, 扫描框架, 插件, 用户模式Hook绕过, 防御加固