Skip to content

maxwellokumu/okaudit-claude-skills / network-security/segmentation-validator

segmentation-validator

Verified

Validate zone isolation and cross-zone traffic controls so Claude can explain where segmentation rules may allow unauthorized or risky network flows.

FileKindSize
README.mdmarkdown1.2 KB
SKILL.mdskill md1.6 KB
main.pyscript12.1 KB
sample_input/segmentation_rules.csvother913 B
sample_input/zones.jsonconfig183 B
skill.yamlconfig851 B
# 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** |
```
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall