用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill network-security命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | network-security |
| description | Network Security: VPC, firewall, zero-trust, segmentation, DDoS protection, WAF. |
| triggers | {"extensions":[".tf",".yaml",".json"],"directories":["network/","infrastructure/","security/"],"keywords":["vpc","firewall","network","security group","acl","waf","ddos","zero trust","segmentation","isolation"]} |
| auto_load_when | Designing network architecture or security controls |
| agent | security-expert |
| tools | ["Read","Write","Bash"] |
Focus: Segmentation, zero-trust, perimeter
Segmentation Strategy:
├── By Environment
│ ├── Production VPC
│ ├── Staging VPC
│ └── Development VPC
│ └── Isolated, no cross-environment access
│
├── By Tier
│ ├── Public subnet (ALB, NAT Gateway)
│ ├── Private subnet (app servers)
│ └── Database subnet (no internet)
│
├── By Service/Team
│ ├── Team A VPC / account
│ ├── Team B VPC / account
│ └── Cross-team via VPC peering or Transit Gateway
│
└── By Sensitivity
├── PII/financial data in isolated network
└── Additional encryption in transit
Zero Trust Principles:
├── Never trust, always verify
│ ├── Authenticate every request
│ ├── Not based on network location
│ └── Verify identity, not IP
│
├── Least privilege access
│ ├── Role-based access control
│ ├── Just-in-time access
│ └── Time-limited permissions
│
├── Assume breach
│ ├── Lateral movement limited
│ ├── Micro-segmentation
│ └── Monitor for anomalies
│
└── Verify explicitly
├── Strong authentication (MFA)
└── Device compliance
└── Session context
Firewall Rules:
├── Security Groups (stateful)
│ ├── Inbound rules: Only allow what needed
│ ├── Outbound: Allow all or specific
│ └── Attach to instances, not subnets
│
├── Network ACLs (stateless)
│ ├── Subnet-level filtering
│ └── Ephemeral ports for established
│
└── WAF (Web Application Firewall)
├── OWASP Top 10 protection
├── Rate limiting
└── Geo blocking
└── SQL injection, XSS blocking
Example security group:
# Allow HTTPS only from ALB
Inbound: 443 from alb-sg (or specific IPs)
# Allow app to connect to DB
Outbound: 5432 to db-sg
# Default deny all inbound
DDoS Mitigation:
├── CDN + WAF (for HTTP/HTTPS)
│ ├── CloudFlare, CloudFront + WAF
│ └── Absorb layer 3-7 attacks
│
├── Edge protection
│ ├── Rate limiting at edge
│ └── Geo-blocking
│
├── Managed DDoS (AWS Shield, Cloud Armor)
│ ├── Always-on protection
│ └── L3-4 protection
│
└── Application-layer
└── Request validation
└── CAPTCHA for bots
Network Monitoring:
├── Flow Logs
│ ├── VPC Flow Logs → S3/CloudWatch
│ └── Analyze traffic patterns
│ └── Detect anomalies
│
├── IDS/IPS
│ ├── Network-based intrusion detection
│ └── AWS GuardDuty, Suricata
│
└── Traffic Analysis
├── Unusual destinations
├── Large data transfers
└── After-hours activity
❌ 0.0.0.0/0 anywhere — wide open to internet
✅ Allow specific IPs/CIDRs only
❌ No segmentation — flat network
✅ Separate VPCs for environments, services
❌ No WAF on public APIs — OWASP attacks
✅ WAF with OWASP rules
❌ Not logging network traffic — no visibility
✅ VPC Flow Logs, all security groups
❌ Allowing SSH/RDP from anywhere — huge attack surface
✅ VPN + bastion only, or no direct access
| Layer | Protection | AWS | GCP |
|---|---|---|---|
| Edge | DDoS | Shield | Cloud Armor |
| Network | Firewall | SG, NACL | Firewall Rules |
| App | WAF | WAF | Cloud Armor |
| DNS | Protection | Route 53 | Cloud DNS |
| Log | Monitoring | VPC Flow | Flow Logs |