maxwellokumu/okaudit-claude-skills / network-security/segmentation-validator
segmentation-validator
VerifiedValidate zone isolation and cross-zone traffic controls so Claude can explain where segmentation rules may allow unauthorized or risky network flows.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.2 KB |
| SKILL.md | skill md | 1.6 KB |
| main.py | script | 12.1 KB |
| sample_input/segmentation_rules.csv | other | 913 B |
| sample_input/zones.json | config | 183 B |
| skill.yaml | config | 851 B |
README.md
View on GitHub# segmentation-validator
Validates network segmentation by mapping firewall rules to defined network zones (Internet, DMZ, Internal, DB, Management, etc.) and detecting unauthorised cross-zone ALLOW flows. Flags high-risk paths such as DMZ → Internal or Internet → DB.
## Requirements
```
python-dotenv
```
Uses Python's built-in `ipaddress` module — no third-party IP libraries required.
## Usage
```bash
python main.py --zones sample_input/zones.json --rules sample_input/segmentation_rules.csv
```
## Input Formats
### zones.json
```json
{
"Internet": ["0.0.0.0/0"],
"DMZ": ["172.16.10.0/24"],
"Internal": ["10.0.1.0/24", "10.0.2.0/24"],
"DB": ["10.0.3.0/24"],
"Management": ["10.0.4.0/24"]
}
```
### segmentation_rules.csv
```
source,destination,port,protocol,action
172.16.10.5,10.0.3.10,3306,TCP,ALLOW
```
## Sample Output
```markdown
# Network Segmentation Validation Report
**Generated:** 2024-01-15 09:00 UTC
**Total Rules:** 25
## Zone Definitions
| Zone | CIDRs |
|------|-------|
| Internet | `0.0.0.0/0` |
| DMZ | `172.16.10.0/24` |
...
## Classification Summary
| Classification | Count |
|----------------|-------|
| Intra-zone (compliant) | 8 |
| Inter-zone ALLOWED (flagged) | 11 |
| **High-risk cross-zone flows** | **4** |
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |