implementing-security-chaos-engineering
它能做什么
这个工具可以模拟安全控制措施的故障,用来测试你的检测和响应系统能否正常工作。它会有意禁用或削弱某些安全措施,检查是否能发现问题,以及响应是否及时。
适用场景
- ✓当你想测试安全系统能否检测到攻击时。
- ✓当你做了改动后,想验证防御措施是否仍然有效时。
- ✓当你想确认安全告警能够正常触发时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-security-chaos-engineering/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“模拟关闭日志监控,看看我们会不会收到告警。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会运行一些实验,有意“破坏”安全控制措施。例如,它可能临时打开一个网络端口,或者关闭活动日志,然后检查监控和告警系统能否及时发现问题并作出响应。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Implementing Security Chaos Engineering
When to Use
- When deploying or configuring implementing security chaos engineering capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Design and execute security chaos experiments that intentionally break security controls to verify that detection, alerting, and response systems work correctly.
# Example: Verify detection when a security group is opened
import boto3
ec2 = boto3.client("ec2")
# Chaos experiment: temporarily add 0.0.0.0/0 rule
ec2.authorize_security_group_ingress(
GroupId="sg-12345",
IpProtocol="tcp", FromPort=22, ToPort=22,
CidrIp="0.0.0.0/0",
)
# Verify: does GuardDuty/Config alert fire within SLA?
# Rollback: remove the rule after verification
Key experiments:
- Open a security group and verify Config Rule alerts
- Disable CloudTrail and verify detection time
- Create IAM admin user and verify alert triggers
- Simulate log pipeline failure and check monitoring gaps
- Deploy test malware hash and verify EDR response
Examples
# Rollback function for safe experiment execution
def run_experiment(setup_fn, verify_fn, rollback_fn, timeout=300):
try:
setup_fn()
result = verify_fn(timeout)
finally:
rollback_fn()
return result
常见问题
使用这个工具需要会编程吗?
你不需要是经验丰富的程序员,但了解一些安全知识和云系统的基本原理会很有帮助。
这会对我的系统造成真正的问题吗?
这个工具设计用于测试或实验环境,以避免造成损害。运行测试前,一定要获得授权,并且务必谨慎操作。
它能模拟哪些类型的故障?
它可以模拟开放安全端口、关闭审计日志(CloudTrail)、创建管理员用户,以及日志处理流水线出现故障等情况。
详情
作者的原始描述
Implements security chaos engineering experiments that deliberately disable or degrade security controls to verify detection and response capabilities. Tests WAF bypass, firewall rule removal, log pipeline disruption, and EDR disablement scenarios using boto3 and subprocess. Use when validating SOC detection coverage and resilience. '
热度
- GitHub 星标
- 35k
- 排名
- #8116
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。