{"id":46450925,"url":"https://github.com/b-macker/naab-passage","last_synced_at":"2026-03-06T00:21:19.631Z","repository":{"id":341379966,"uuid":"1168738488","full_name":"b-macker/naab-passage","owner":"b-macker","description":"🔒 Sovereign data gateway \u0026 PII protection - Zero leakage to LLMs and APIs with self-synthesizing architecture. HIPAA/GDPR compliant. Part of the NAAb Ecosystem.","archived":false,"fork":false,"pushed_at":"2026-03-01T13:34:48.000Z","size":611,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T15:52:29.952Z","etag":null,"topics":["anthropic","api-gateway","audit","compliance","data-privacy","data-protection","encryption","gateway","gdpr","hipaa","llm-proxy","naab","naab-ecosystem","openai","pii-protection","polyglot","privacy","security","soc2","zero-trust"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b-macker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"b-macker"}},"created_at":"2026-02-27T18:34:44.000Z","updated_at":"2026-03-01T13:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/b-macker/naab-passage","commit_stats":null,"previous_names":["b-macker/naab-passage"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/b-macker/naab-passage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-macker%2Fnaab-passage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-macker%2Fnaab-passage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-macker%2Fnaab-passage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-macker%2Fnaab-passage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b-macker","download_url":"https://codeload.github.com/b-macker/naab-passage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-macker%2Fnaab-passage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","api-gateway","audit","compliance","data-privacy","data-protection","encryption","gateway","gdpr","hipaa","llm-proxy","naab","naab-ecosystem","openai","pii-protection","polyglot","privacy","security","soc2","zero-trust"],"created_at":"2026-03-06T00:21:18.926Z","updated_at":"2026-03-06T00:21:19.625Z","avatar_url":"https://github.com/b-macker.png","language":"Shell","funding_links":["https://github.com/sponsors/b-macker"],"categories":[],"sub_categories":[],"readme":"# NAAb Passage\n\n[![CI](https://github.com/b-macker/naab-passage/actions/workflows/ci.yml/badge.svg)](https://github.com/b-macker/naab-passage/actions/workflows/ci.yml)\n[![Security Scan](https://github.com/b-macker/naab-passage/actions/workflows/security-scan.yml/badge.svg)](https://github.com/b-macker/naab-passage/actions/workflows/security-scan.yml)\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://github.com/b-macker/naab-passage/releases/tag/v1.0.0)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![NAAb](https://img.shields.io/badge/NAAb-Ecosystem-purple.svg)](https://github.com/b-macker/NAAb)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)\n[![Discussions](https://img.shields.io/badge/Discussions-enabled-blue.svg)](https://github.com/b-macker/naab-passage/discussions)\n\n**Sovereign data gateway and PII protection platform** built on the [NAAb Language](https://github.com/b-macker/NAAb). Ensures secure passage for sensitive data by validating schemas, detecting PII, and enforcing policies before data reaches untrusted systems.\n\n```\nInput:  API request with potential PII\nOutput: Validated, redacted, or blocked request\nResult: Zero PII leakage with mathematical certainty\n```\n\n---\n\n## Why NAAb Passage?\n\n- **Sovereign Architecture** — NAAb owns all decisions, polyglot workers are \"dumb muscle\"\n- **Self-Synthesizing** — Compiles binaries at boot, SHA-256 verified\n- **Hardware Isolation** — CPU pinning, network namespaces\n- **Anti-Smuggling** — Strict schema enforcement\n- **Privacy-First** — HIPAA, GDPR, SOC2 compliant\n\n---\n\n## Demo\n\nSee NAAb Passage in action detecting and blocking PII leakage:\n\n### Test 1: Clean Request ✅\n**Safe API request with no sensitive data** → ALLOWED\n\n![Test 1 - Clean Request Allowed](demos/screenshots/Test_1.jpg)\n\n### Test 2: PII Detection 🚫\n**Request containing SSN, credit card, and email** → BLOCKED\n\n![Test 2 - PII Detected and Blocked](demos/screenshots/Test_2.jpg)\n\nPassage detected:\n- ✗ Email: `john.doe@example.com` (Score: 20)\n- ✗ SSN: `123-45-6789` (Score: 100)\n- ✗ Credit Card: `4532-****-****-9010` (Score: 80)\n- **Total Risk: 200** (threshold: 90) → **BLOCKED**\n\n### Test 3: Schema Smuggling Attack 🚫\n**Unauthorized field in request** → BLOCKED\n\n![Test 3 - Smuggling Attack Blocked](demos/screenshots/Test_3.jpg)\n\n**Try the demo yourself:**\n```bash\ncd demos\n./passage-demo.sh\n```\n\nSee [DEMO_GUIDE.md](DEMO_GUIDE.md) for recording instructions.\n\n---\n\n## Quick Start\n\n```bash\n# Clone with submodule\ngit clone --recursive https://github.com/b-macker/naab-passage.git\ncd naab-passage\n\n# Build NAAb\nbash build.sh\n\n# Start gateway\n./naab/build/naab-lang main.naab\n\n# Test request (in another terminal)\ncurl -X POST http://localhost:8091/ -d '{\"model\": \"gpt-4\", \"messages\": [\"Hello\"]}'\n```\n\n---\n\n## Architecture\n\n```\nHTTP → Go Gateway → NAAb Brain → Decision\n                        ↓\n                   Schema ✓\n                   PII ✓\n                   Risk ✓\n```\n\n**Components:**\n- **NAAb Brain** (Python) - Sovereign decision engine with PII detection\n- **Go Gateway** - HTTP/TLS proxy (forwards to brain via Unix socket)\n- **Rust Shield** - Constant-time pattern scanner (network-isolated)\n\n---\n\n## Features\n\n**Security:**\n- Self-synthesizing workers with SHA-256 verification\n- Forensic source shredding (3-pass overwrite)\n- Hardware isolation (CPU pinning via `taskset`, network namespaces via `unshare -n`)\n- Anti-smuggling schema validation\n- Hash-chained audit logging\n\n**PII Detection:**\n- Social Security Numbers (SSN)\n- Credit card numbers\n- Email addresses\n- High-entropy secrets\n- Custom patterns via configuration\n\n---\n\n## Configuration\n\nEdit `config/risk_matrix.json` to customize PII policies:\n\n```json\n{\n    \"policies\": [\n        {\"type\": \"ID_SSN\", \"score\": 100, \"action\": \"BLOCK\"},\n        {\"type\": \"FIN_CREDIT_CARD\", \"score\": 80, \"action\": \"BLOCK\"},\n        {\"type\": \"SEC_HIGH_ENTROPY\", \"score\": 40, \"action\": \"REDACT\"},\n        {\"type\": \"ID_EMAIL\", \"score\": 20, \"action\": \"AUDIT\"}\n    ],\n    \"thresholds\": {\n        \"block\": 90,\n        \"redact\": 40\n    }\n}\n```\n\n---\n\n## Use Cases\n\n1. **Privacy-First LLM Gateway** - Use ChatGPT/Claude without leaking SSNs, API keys, customer names\n2. **Zero-Trust Edge Security** - Protect legacy APIs from injection and malformed data\n3. **Self-Healing Security Appliances** - Deploy in hostile clouds, auto-rebuild if tampered\n\n---\n\n## Testing\n\n```bash\n# Run test suite\n./naab/build/naab-lang verify_vigilant_v7.naab\n```\n\n---\n\n## NAAb Ecosystem\n\n- **[NAAb Language](https://github.com/b-macker/NAAb)** — Core polyglot scripting language with governance\n- **[NAAb BOLO](https://github.com/b-macker/naab-bolo)** — Code governance \u0026 AI validation (50+ checks)\n- **[NAAb Pivot](https://github.com/b-macker/naab-pivot)** — Code evolution \u0026 optimization (3-60x speedups)\n- **NAAb Passage** (this project) — Data gateway \u0026 PII protection (zero leakage)\n\n---\n\n## Documentation\n\n- [Getting Started](docs/getting-started.md)\n- [Architecture](docs/architecture.md)\n- [Security](docs/security.md)\n- [Deployment](docs/deployment.md)\n\n---\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n**Brandon Mackert** - [@b-macker](https://github.com/b-macker)\n\n---\n\n_NAAb Passage — Secure passage for sensitive data._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-macker%2Fnaab-passage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-macker%2Fnaab-passage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-macker%2Fnaab-passage/lists"}