orbit-security 1.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. orbit_security-1.2.5/LICENSE +21 -0
  2. orbit_security-1.2.5/PKG-INFO +369 -0
  3. orbit_security-1.2.5/README.md +287 -0
  4. orbit_security-1.2.5/pyproject.toml +117 -0
  5. orbit_security-1.2.5/pyproject.toml.orig +115 -0
  6. orbit_security-1.2.5/src/orbit_security/__init__.py +51 -0
  7. orbit_security-1.2.5/src/orbit_security/_runtime_paths.py +52 -0
  8. orbit_security-1.2.5/src/orbit_security/agency_retainer.py +803 -0
  9. orbit_security-1.2.5/src/orbit_security/agency_teardown_publisher.py +170 -0
  10. orbit_security-1.2.5/src/orbit_security/agent_perimeter_sentinel.py +144 -0
  11. orbit_security-1.2.5/src/orbit_security/ast_sentinel.py +661 -0
  12. orbit_security-1.2.5/src/orbit_security/baseline_diff.py +494 -0
  13. orbit_security-1.2.5/src/orbit_security/billing/__init__.py +79 -0
  14. orbit_security-1.2.5/src/orbit_security/billing/catalog.py +275 -0
  15. orbit_security-1.2.5/src/orbit_security/billing/fulfillment.py +359 -0
  16. orbit_security-1.2.5/src/orbit_security/billing/onboarding.py +497 -0
  17. orbit_security-1.2.5/src/orbit_security/billing/stripe_client.py +316 -0
  18. orbit_security-1.2.5/src/orbit_security/billing/webhooks.py +372 -0
  19. orbit_security-1.2.5/src/orbit_security/billing_onboarding.py +52 -0
  20. orbit_security-1.2.5/src/orbit_security/blackboard.py +940 -0
  21. orbit_security-1.2.5/src/orbit_security/cert_transparency.py +710 -0
  22. orbit_security-1.2.5/src/orbit_security/cisa_kev.py +432 -0
  23. orbit_security-1.2.5/src/orbit_security/cli.py +236 -0
  24. orbit_security-1.2.5/src/orbit_security/cli_handlers/__init__.py +37 -0
  25. orbit_security-1.2.5/src/orbit_security/cli_handlers/commands.py +310 -0
  26. orbit_security-1.2.5/src/orbit_security/cli_handlers/diff_cmd.py +100 -0
  27. orbit_security-1.2.5/src/orbit_security/cli_handlers/scan_cmd.py +265 -0
  28. orbit_security-1.2.5/src/orbit_security/client_bundle_exporter.py +1436 -0
  29. orbit_security-1.2.5/src/orbit_security/cloud_sentinels.py +1405 -0
  30. orbit_security-1.2.5/src/orbit_security/core_affinity.py +101 -0
  31. orbit_security-1.2.5/src/orbit_security/deal_desk.py +660 -0
  32. orbit_security-1.2.5/src/orbit_security/dns_cache.py +462 -0
  33. orbit_security-1.2.5/src/orbit_security/egress_guard.py +349 -0
  34. orbit_security-1.2.5/src/orbit_security/epss.py +359 -0
  35. orbit_security-1.2.5/src/orbit_security/event_shuttle.py +434 -0
  36. orbit_security-1.2.5/src/orbit_security/fleet.py +549 -0
  37. orbit_security-1.2.5/src/orbit_security/gemini_cli_bridge.py +590 -0
  38. orbit_security-1.2.5/src/orbit_security/geo_panel.py +455 -0
  39. orbit_security-1.2.5/src/orbit_security/ghost_dns.py +407 -0
  40. orbit_security-1.2.5/src/orbit_security/github_sentinel.py +466 -0
  41. orbit_security-1.2.5/src/orbit_security/ground_truth_gate.py +175 -0
  42. orbit_security-1.2.5/src/orbit_security/inbox_agent.py +1271 -0
  43. orbit_security-1.2.5/src/orbit_security/inbox_guardrail.py +278 -0
  44. orbit_security-1.2.5/src/orbit_security/inbox_triage_bridge.py +166 -0
  45. orbit_security-1.2.5/src/orbit_security/input_sanitizer.py +130 -0
  46. orbit_security-1.2.5/src/orbit_security/mailer.py +194 -0
  47. orbit_security-1.2.5/src/orbit_security/models.py +80 -0
  48. orbit_security-1.2.5/src/orbit_security/network_bonding.py +331 -0
  49. orbit_security-1.2.5/src/orbit_security/notifications.py +671 -0
  50. orbit_security-1.2.5/src/orbit_security/opencode_remediation.py +488 -0
  51. orbit_security-1.2.5/src/orbit_security/osint_verifier.py +586 -0
  52. orbit_security-1.2.5/src/orbit_security/perimeter/__init__.py +88 -0
  53. orbit_security-1.2.5/src/orbit_security/perimeter/_hooks.py +11 -0
  54. orbit_security-1.2.5/src/orbit_security/perimeter/cms_kev.py +659 -0
  55. orbit_security-1.2.5/src/orbit_security/perimeter/dns_auth.py +407 -0
  56. orbit_security-1.2.5/src/orbit_security/perimeter/exposures.py +341 -0
  57. orbit_security-1.2.5/src/orbit_security/perimeter/http_surface.py +536 -0
  58. orbit_security-1.2.5/src/orbit_security/perimeter/probes.py +134 -0
  59. orbit_security-1.2.5/src/orbit_security/perimeter/safety.py +209 -0
  60. orbit_security-1.2.5/src/orbit_security/perimeter/takeover.py +258 -0
  61. orbit_security-1.2.5/src/orbit_security/perimeter/tls_monitor.py +670 -0
  62. orbit_security-1.2.5/src/orbit_security/playtest_guard.py +424 -0
  63. orbit_security-1.2.5/src/orbit_security/private_alerting.py +415 -0
  64. orbit_security-1.2.5/src/orbit_security/public_apis_osint.py +134 -0
  65. orbit_security-1.2.5/src/orbit_security/py.typed +0 -0
  66. orbit_security-1.2.5/src/orbit_security/radar_lead_enricher.py +645 -0
  67. orbit_security-1.2.5/src/orbit_security/radar_proposal_stager.py +553 -0
  68. orbit_security-1.2.5/src/orbit_security/radar_telemetry.py +2088 -0
  69. orbit_security-1.2.5/src/orbit_security/recon.py +849 -0
  70. orbit_security-1.2.5/src/orbit_security/recon_harvester.py +463 -0
  71. orbit_security-1.2.5/src/orbit_security/remediation.py +843 -0
  72. orbit_security-1.2.5/src/orbit_security/report_verifier.py +421 -0
  73. orbit_security-1.2.5/src/orbit_security/reporter.py +854 -0
  74. orbit_security-1.2.5/src/orbit_security/reporting/__init__.py +15 -0
  75. orbit_security-1.2.5/src/orbit_security/reporting/client_portal.py +691 -0
  76. orbit_security-1.2.5/src/orbit_security/scanner.py +337 -0
  77. orbit_security-1.2.5/src/orbit_security/scoring.py +573 -0
  78. orbit_security-1.2.5/src/orbit_security/sherlock_osint.py +276 -0
  79. orbit_security-1.2.5/src/orbit_security/signatures.py +454 -0
  80. orbit_security-1.2.5/src/orbit_security/stripe_checkout.py +489 -0
  81. orbit_security-1.2.5/src/orbit_security/stripe_webhook.py +226 -0
  82. orbit_security-1.2.5/src/orbit_security/threat_radar.py +513 -0
  83. orbit_security-1.2.5/src/orbit_security/tools/__init__.py +193 -0
  84. orbit_security-1.2.5/src/orbit_security/tools/adhx_client.py +392 -0
  85. orbit_security-1.2.5/src/orbit_security/tools/attack_tree.py +603 -0
  86. orbit_security-1.2.5/src/orbit_security/tools/compact_radar_feed.py +209 -0
  87. orbit_security-1.2.5/src/orbit_security/tools/deploy_oracle_sentinel.py +281 -0
  88. orbit_security-1.2.5/src/orbit_security/tools/duckdb_analytics.py +302 -0
  89. orbit_security-1.2.5/src/orbit_security/tools/embedding_search.py +460 -0
  90. orbit_security-1.2.5/src/orbit_security/tools/everything_search.py +468 -0
  91. orbit_security-1.2.5/src/orbit_security/tools/ffmpeg_renderer.py +484 -0
  92. orbit_security-1.2.5/src/orbit_security/tools/gemini_multimodal.py +387 -0
  93. orbit_security-1.2.5/src/orbit_security/tools/koa_gemma_router.py +367 -0
  94. orbit_security-1.2.5/src/orbit_security/tools/secret_harvester.py +103 -0
  95. orbit_security-1.2.5/src/orbit_security/tools/xh_probe.py +546 -0
  96. orbit_security-1.2.5/src/orbit_security/tools/yt_threat_harvester.py +410 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Carson (CmfH009)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,369 @@
1
+ Metadata-Version: 2.3
2
+ Name: orbit-security
3
+ Version: 1.2.5
4
+ Summary: Autonomous external perimeter hygiene, subdomain takeover sentinel, and white-label client security auditing for web & Shopify agencies.
5
+ Keywords: security,perimeter-hygiene,dns,subdomain-takeover,ast-sentinel,ci-cd
6
+ Author: CmfH009
7
+ Author-email: CmfH009 <carsonmail009@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 Carson (CmfH009)
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ Classifier: Development Status :: 4 - Beta
30
+ Classifier: Intended Audience :: Developers
31
+ Classifier: Intended Audience :: System Administrators
32
+ Classifier: Topic :: Security
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Programming Language :: Python :: 3.12
35
+ Classifier: Programming Language :: Python :: 3.13
36
+ Requires-Dist: dnspython>=2.8.0
37
+ Requires-Dist: httpx>=0.28.1
38
+ Requires-Dist: jinja2>=3.1.6
39
+ Requires-Dist: pydantic>=2.13.5
40
+ Requires-Dist: python-dotenv>=1.2.3
41
+ Requires-Dist: reportlab>=5.0.1
42
+ Requires-Dist: rich>=15.0.0
43
+ Requires-Dist: numpy>=2.0.0 ; extra == 'ai'
44
+ Requires-Dist: edge-tts>=7.0.0 ; extra == 'all'
45
+ Requires-Dist: pillow>=11.0.0 ; extra == 'all'
46
+ Requires-Dist: psutil>=5.9.0 ; extra == 'all'
47
+ Requires-Dist: pyperclip>=1.8.2 ; extra == 'all'
48
+ Requires-Dist: pywin32>=306 ; sys_platform == 'win32' and extra == 'all'
49
+ Requires-Dist: requests>=2.31.0 ; extra == 'all'
50
+ Requires-Dist: numpy>=2.0.0 ; extra == 'all'
51
+ Requires-Dist: duckdb>=1.0.0 ; extra == 'all'
52
+ Requires-Dist: duckdb>=1.0.0 ; extra == 'analytics'
53
+ Requires-Dist: patchright>=1.49.0 ; extra == 'browser'
54
+ Requires-Dist: rookiepy>=0.1.0 ; extra == 'browser'
55
+ Requires-Dist: pyautogui>=0.9.54 ; sys_platform == 'win32' and extra == 'desktop'
56
+ Requires-Dist: pywinauto>=0.6.9 ; sys_platform == 'win32' and extra == 'desktop'
57
+ Requires-Dist: beautifulsoup4>=4.12.0 ; extra == 'dev'
58
+ Requires-Dist: pytest>=9.1.1 ; extra == 'dev'
59
+ Requires-Dist: pytest-asyncio>=1.4.0 ; extra == 'dev'
60
+ Requires-Dist: pyyaml>=6.0.3 ; extra == 'dev'
61
+ Requires-Dist: edge-tts>=7.0.0 ; extra == 'media'
62
+ Requires-Dist: pillow>=11.0.0 ; extra == 'media'
63
+ Requires-Dist: psutil>=5.9.0 ; extra == 'ops'
64
+ Requires-Dist: pyperclip>=1.8.2 ; extra == 'ops'
65
+ Requires-Dist: pywin32>=306 ; sys_platform == 'win32' and extra == 'ops'
66
+ Requires-Dist: requests>=2.31.0 ; extra == 'ops'
67
+ Requires-Python: >=3.12
68
+ Project-URL: Homepage, https://cmfh009.github.io/Orbit-Security/
69
+ Project-URL: Documentation, https://cmfh009.github.io/Orbit-Security/about.html
70
+ Project-URL: Repository, https://github.com/CmfH009/Orbit-Security
71
+ Project-URL: Issues, https://github.com/CmfH009/Orbit-Security/issues
72
+ Project-URL: Changelog, https://github.com/CmfH009/Orbit-Security/blob/main/ROADMAP.md
73
+ Provides-Extra: ai
74
+ Provides-Extra: all
75
+ Provides-Extra: analytics
76
+ Provides-Extra: browser
77
+ Provides-Extra: desktop
78
+ Provides-Extra: dev
79
+ Provides-Extra: media
80
+ Provides-Extra: ops
81
+ Description-Content-Type: text/markdown
82
+
83
+ # ๐Ÿ›ก๏ธ Orbit Security: Attack Surface & Subdomain Hygiene Sentinel
84
+
85
+ [![Orbit Security Perimeter Sentinel](https://github.com/CmfH009/Orbit-Security/actions/workflows/orbit-perimeter-sentinel.yml/badge.svg)](https://github.com/CmfH009/Orbit-Security/actions/workflows/orbit-perimeter-sentinel.yml)
86
+ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/CmfH009/Orbit-Security?color=cyan&label=release)](https://github.com/CmfH009/Orbit-Security/releases/latest)
87
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
88
+ [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/)
89
+ [![Live Demo & Fleet Center](https://img.shields.io/badge/Fleet%20Center-Live%20Demo-10B981)](https://cmfh009.github.io/Orbit-Security/)
90
+
91
+ **Orbit Security** is an autonomous external perimeter auditor and attack surface sentinel built for web design, development, and digital marketing agencies. It monitors client domains for dangling CNAME takeovers, email spoofing risks (DMARC/SPF), exposed environment secrets (`.env`, `.git`), and expiring SSL certificatesโ€”automatically compiling co-branded, white-label monthly audit PDFs that agencies send to their clients to justify and elevate their recurring monthly maintenance retainers.
92
+
93
+ ---
94
+
95
+ ## ๐Ÿ“ Project Status & Roadmap
96
+
97
+ | Artifact | What it is |
98
+ |---|---|
99
+ | [`ROADMAP.md`](ROADMAP.md) | Phase plan (Trust Surface โ†’ Product Integrity โ†’ Revenue Loop โ†’ AI-Search Authority โ†’ Scale & Harden) with owners, exit gates, risk register and a 14-day view |
100
+ | [`SECURITY.md`](SECURITY.md) | Coordinated Vulnerability Disclosure policy, RFC 9116 `security.txt`, and CFAA Safe Harbor rules of engagement |
101
+ | Live showcase | <https://cmfh009.github.io/Orbit-Security/> ยท About: <https://cmfh009.github.io/Orbit-Security/about.html> |
102
+
103
+ **Shipped in `v1.2.5`:** Turn-key composite GitHub Action (`CmfH009/Orbit-Security@v1.2.5`) with SARIF 2.1.0 Code Scanning export (`--sarif-output`), AST Code Sentinel, CISA KEV PR Auditor, lean core Python dependencies, lightweight MainWP Agency Connector (`integrations/mainwp-orbit-security/`), live Gemini/Ollama GEO Prompt Panel, and 3 agency GEO guides (100/100 Lighthouse).
104
+
105
+ ---
106
+
107
+ ## โš–๏ธ Open-Core Model: Free Self-Hosted CLI vs. Managed Agency Cloud
108
+
109
+ Orbit Security uses the same open-core model as Sentry, Plausible, and PostHog:
110
+
111
+ | What you get | Free Self-Hosted (`v1.2.5`, `$0`) | Managed Agency Cloud (`$29 / $59 / $99 per mo`) |
112
+ |---|---|---|
113
+ | **Core Scanner & Fixpacks** | Full Python 3.13 CLI, passive DoH/DMARC/takeover engine, 52-provider table, BIND/Terraform fixpacks, GitHub Action, MainWP connector | Everything in the open-source engine, managed for you |
114
+ | **Scheduling & Operations** | DIY โ€” you install Python 3.13, maintain cron jobs across client lists, and fix breakages | **Zero ops** โ€” continuous scans across 15, 40, or 100 client domains without touching a terminal |
115
+ | **White-Label Delivery** | Manual PDF generation and email delivery | Hosted co-branded portals, custom logo/palette, and automated 1st-of-month executive PDF dispatch |
116
+ | **Alerting & Support** | DIY webhook/Slack wiring | Dedicated Slack/webhook drift alerts, priority support, and custom SLA/security reviews (Pro tier) |
117
+
118
+ Busy Shopify and WordPress agencies pay **$59/mo ($1.48/site)** to skip maintaining scripts and cron jobs and hand clients branded monthly reports on `$250/mo` care plans. -> [Start Managed Plan](https://cmfh009.github.io/Orbit-Security/#pricing)
119
+
120
+ ---
121
+
122
+ ## ๐ŸŽฏ The Daily Micro-Revenue Model ($10 โ€“ $100/day)
123
+
124
+ Agencies charge 20โ€“100+ clients between **$150 and $350/month** for "Website Maintenance & Care Plans". However, clients frequently ask: *"What are we paying you for if the site hasn't changed?"*
125
+
126
+ By delivering a co-branded, high-polish Security & Perimeter Audit on the 1st of every month:
127
+ 1. **The agency protects and justifies their retainer revenue.**
128
+ 2. **You charge the agency $29 โ€“ $99/month.**
129
+ 3. **With just 15 to 25 agency accounts, you generate a reliable $50/day ($1,500/month) with near-zero marginal cost and virtually zero churn.**
130
+
131
+ ---
132
+
133
+ ## ๐Ÿš€ Quickstart
134
+
135
+ ### 0. Install the CLI (any machine)
136
+
137
+ ```powershell
138
+ pip install "orbit-security @ git+https://github.com/CmfH009/Orbit-Security.git"
139
+ ```
140
+
141
+ That installs three entry points: `orbit-security` (full CLI), `orbit-recon` (standalone perimeter recon) and `agency-sentry`.
142
+
143
+ > **Note on PyPI:** the package is **not** published to PyPI yet, so `pip install orbit-security` does not resolve. The command above installs from the GitHub source and is verified to build and install cleanly. A PyPI release is on the roadmap - until then, use the source install.
144
+
145
+ ### 1. Installation (development)
146
+ ```powershell
147
+ cd C:\AgyHut\projects\orbit-security
148
+ uv sync
149
+ ```
150
+
151
+ ### 2. Run a Live Audit
152
+ ```powershell
153
+ uv run orbit-security scan example.com --agency-name "Apex Digital Studio" --output-pdf audit.pdf --output-md audit.md
154
+ ```
155
+
156
+ ### 3. Specify Target Subdomains
157
+ ```powershell
158
+ uv run orbit-security scan myclient.com --subdomains "staging.myclient.com,promo.myclient.com,dev.myclient.com" --output-pdf client_audit.pdf
159
+ ```
160
+
161
+ ---
162
+
163
+ ## ๐Ÿ” Core Security & Hygiene Checks
164
+
165
+ 1. **Subdomain Takeovers (Dangling CNAMEs):**
166
+ - Resolves subdomains against known vulnerable SaaS signatures (Unbounce, GitHub Pages, AWS S3, Heroku, Webflow, Shopify, Zendesk, Pantheon, Netlify, Surge).
167
+ - Probes endpoints for unattached provider 404 error strings.
168
+ 2. **Email Spoofing & Phishing Resistance:**
169
+ - DMARC inspection (`_dmarc.<domain>`), distinguishing between active enforcement (`p=quarantine`/`p=reject`) and monitoring-only mode (`p=none`).
170
+ - SPF inspection (`v=spf1`), alerting on missing or dangerously permissive (`+all`) rules.
171
+ 3. **Exposed Critical Files:**
172
+ - Detects publicly accessible `/.env`, `/.git/HEAD`, and `/wp-config.php.bak`.
173
+ 4. **Transport & Application Headers:**
174
+ - HSTS (`Strict-Transport-Security`), Content Security Policy (`Content-Security-Policy`), and Clickjacking mitigation (`X-Frame-Options`).
175
+ 5. **SSL/TLS Certificate Validity:**
176
+ - Validates socket TLS certificates, calculating exact days until expiration.
177
+
178
+ ---
179
+
180
+ ---
181
+
182
+ ## โšก Autonomous CLI Scanner (`orbit-recon`)
183
+
184
+ `orbit-recon` is our standalone, zero-dependency external attack surface scanner:
185
+
186
+ ```bash
187
+ # Scan a single domain
188
+ python tools/orbit-recon.py example.com
189
+
190
+ # Scan multiple domains with Markdown matrix export & CI/CD gate
191
+ python tools/orbit-recon.py --targets-file domains.txt --markdown fleet_matrix.md --fail-on-critical
192
+ ```
193
+
194
+ ---
195
+
196
+ ## ๐Ÿค– CI/CD GitHub Action (`action.yml`)
197
+
198
+ Orbit Security `v1.2.5` ships a dual-mode composite GitHub Action (`CmfH009/Orbit-Security@v1.2.5`) that supports both **Static PR Code & CISA KEV Gating with SARIF 2.1.0 export** and **External Domain Perimeter Auditing**:
199
+
200
+ ### 1. PR Static AST, Secret & CISA KEV Gate + SARIF 2.1.0 Code Scanning
201
+ ```yaml
202
+ name: Orbit Security PR Gate
203
+
204
+ on: [push, pull_request]
205
+
206
+ permissions:
207
+ contents: read
208
+ security-events: write
209
+
210
+ jobs:
211
+ security-gate:
212
+ runs-on: ubuntu-latest
213
+ steps:
214
+ - uses: actions/checkout@v4
215
+ with:
216
+ fetch-depth: 2
217
+
218
+ - name: Run Orbit Security CI/CD Gate
219
+ uses: CmfH009/Orbit-Security@v1.2.5
220
+ with:
221
+ target-path: 'src'
222
+ scan-types: 'ast,secrets,cisa-kev'
223
+ fail-on-findings: 'true'
224
+ sarif-output: 'orbit-security.sarif'
225
+
226
+ - name: Upload SARIF 2.1.0 to GitHub Code Scanning
227
+ if: always()
228
+ uses: github/codeql-action/upload-sarif@v3
229
+ with:
230
+ sarif_file: orbit-security.sarif
231
+ ```
232
+
233
+ ### 2. External Domain Perimeter Sentinel
234
+ Gate deployments by verifying that no staging subdomains, broken CNAMEs, or exposed secrets slip into production:
235
+
236
+ ```yaml
237
+ name: Orbit Security Perimeter Sentinel
238
+
239
+ on: [push, pull_request]
240
+
241
+ jobs:
242
+ perimeter-audit:
243
+ runs-on: ubuntu-latest
244
+ steps:
245
+ - uses: actions/checkout@v4
246
+ - name: Audit External Perimeter
247
+ uses: CmfH009/Orbit-Security@v1.2.5
248
+ with:
249
+ target: 'myagency.com'
250
+ # Or specify a list of client domains:
251
+ # targets-file: '.orbit-targets.txt'
252
+ fail-on-critical: 'true'
253
+ markdown-summary: 'true'
254
+ ```
255
+ *When `markdown-summary` is enabled, the formatted audit table is automatically rendered right inside the GitHub Actions run summary tab!*
256
+
257
+ ### Native GitHub Actions Workflow (`.github/workflows/orbit-perimeter-sentinel.yml`)
258
+
259
+ The repository also ships a native GitHub Actions workflow that runs on every push/PR to `main` and `develop`. It reads targets from `.orbit-targets.txt` (RFC 2606 reserved domains by default โ€” never third-party production sites), executes the composite action with `fail-on-critical: true`, and uploads the Markdown audit report as a workflow artifact:
260
+
261
+ ```yaml
262
+ on:
263
+ push:
264
+ branches: [main, develop]
265
+ pull_request:
266
+ branches: [main, develop]
267
+ jobs:
268
+ perimeter-audit:
269
+ runs-on: ubuntu-latest
270
+ continue-on-error: false
271
+ steps:
272
+ - uses: actions/checkout@v4
273
+ - name: Read target domains
274
+ id: targets
275
+ run: |
276
+ # Reads .orbit-targets.txt (comments + blanks stripped)
277
+ # Falls back to repo's GitHub Pages domain or example.com
278
+ - name: Run Orbit Security Perimeter Audit
279
+ uses: ./
280
+ with:
281
+ targets-file: ${{ steps.targets.outputs.targets-file }}
282
+ fail-on-critical: 'true'
283
+ markdown-summary: 'true'
284
+ export-markdown: 'orbit-perimeter-audit.md'
285
+ - name: Upload audit report artifact
286
+ uses: actions/upload-artifact@v4
287
+ with:
288
+ name: orbit-perimeter-audit
289
+ path: orbit-perimeter-audit.md
290
+ ```
291
+
292
+ ---
293
+
294
+ ## ๐Ÿ”” Slack & Discord Webhooks
295
+
296
+ Send real-time alerts when client perimeters drift into dangerous states:
297
+
298
+ ```bash
299
+ python scripts/scheduled_sentinel.py \
300
+ --clients-file data/clients.json \
301
+ --slack-webhook "https://hooks.slack.com/services/..." \
302
+ --discord-webhook "https://discord.com/api/webhooks/..."
303
+ ```
304
+
305
+ ---
306
+
307
+ ## ๐Ÿ“ฌ Cohort Outreach Audit Generator (`run_cohort_outreach.py`)
308
+
309
+ Batch-generates co-branded perimeter-hygiene audit PDFs + Markdown reports from `data/new_prospects.json` for agency outreach. Each prospect's primary portfolio domain is scanned and a white-label report is emitted under `data/generated_audits/<agency-slug>/`.
310
+
311
+ ```powershell
312
+ # Preview what would be generated (no scanning, no file writes)
313
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --dry-run --limit 3
314
+
315
+ # Scan all 54 prospects
316
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py
317
+
318
+ # Limit to 10 prospects, custom output dir
319
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --limit 10 --output-dir out/audits
320
+
321
+ # Only agencies whose name contains "Blue" (case-insensitive)
322
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --agency "Blue"
323
+
324
+ # Combine filter + limit + dry-run
325
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --agency "Blue" --limit 5 --dry-run
326
+ ```
327
+
328
+ Each audit includes the agency's name, support email, and website in the report header โ€” ready to attach to cold-email outreach.
329
+
330
+ ---
331
+
332
+ ## ๐Ÿ•ต๏ธ Passive OSINT Intelligence
333
+
334
+ Every `orbit-security scan` now cross-references the target against the curated public-apis catalog (`C:\AgyHut\reference\public-apis\db\resources.json`, 1,690+ APIs). The OSINT section in the terminal, Markdown, and PDF reports shows:
335
+
336
+ - **Catalog APIs indexed** and **security/OSINT endpoints** count
337
+ - **Domain matches**: catalog APIs whose name/domain/link mention the target
338
+ - **Pivot domains**: unique host domains across security/OSINT catalog entries for attack-surface expansion
339
+
340
+ This is purely passive (local file lookup, no network to the target) and gives agencies a ready-made list of recon tooling to recommend to clients.
341
+
342
+ ---
343
+
344
+ ## ๐Ÿ—ƒ๏ธ Deliverability Preflight Gate
345
+
346
+ ### Anti-Bounce Contact Deliverability Gate (`scripts/verify_contacts.py`)
347
+ Verifies agency contact emails against live MX records and published contact pages, de-obfuscates HTML entities / `[at]` patterns, filters retina image filenames (`logo@2x.png`), and enforces a CI/CD preflight gate before outreach dispatch:
348
+ ```powershell
349
+ python scripts/verify_contacts.py --preflight --max-unresolved 0 --min-deliverable-rate 0.80
350
+ ```
351
+
352
+ ---
353
+
354
+ ## ๐Ÿงช Testing
355
+
356
+ Run the automated test suite (1,250 tests, 100% green):
357
+ ```powershell
358
+ uv run pytest
359
+ ```
360
+
361
+ ---
362
+
363
+ ## ๐ŸŒ Live Platform & Demos
364
+
365
+ - **Live Production App & Scanner:** [https://cmfh009.github.io/Orbit-Security/](https://cmfh009.github.io/Orbit-Security/)
366
+ - **Terms of Service:** [https://cmfh009.github.io/Orbit-Security/terms.html](https://cmfh009.github.io/Orbit-Security/terms.html)
367
+ - **Privacy Policy:** [https://cmfh009.github.io/Orbit-Security/privacy.html](https://cmfh009.github.io/Orbit-Security/privacy.html)
368
+ - **RFC Safe Harbor:** [https://cmfh009.github.io/Orbit-Security/disclaimer.html](https://cmfh009.github.io/Orbit-Security/disclaimer.html)
369
+
@@ -0,0 +1,287 @@
1
+ # ๐Ÿ›ก๏ธ Orbit Security: Attack Surface & Subdomain Hygiene Sentinel
2
+
3
+ [![Orbit Security Perimeter Sentinel](https://github.com/CmfH009/Orbit-Security/actions/workflows/orbit-perimeter-sentinel.yml/badge.svg)](https://github.com/CmfH009/Orbit-Security/actions/workflows/orbit-perimeter-sentinel.yml)
4
+ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/CmfH009/Orbit-Security?color=cyan&label=release)](https://github.com/CmfH009/Orbit-Security/releases/latest)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+ [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/)
7
+ [![Live Demo & Fleet Center](https://img.shields.io/badge/Fleet%20Center-Live%20Demo-10B981)](https://cmfh009.github.io/Orbit-Security/)
8
+
9
+ **Orbit Security** is an autonomous external perimeter auditor and attack surface sentinel built for web design, development, and digital marketing agencies. It monitors client domains for dangling CNAME takeovers, email spoofing risks (DMARC/SPF), exposed environment secrets (`.env`, `.git`), and expiring SSL certificatesโ€”automatically compiling co-branded, white-label monthly audit PDFs that agencies send to their clients to justify and elevate their recurring monthly maintenance retainers.
10
+
11
+ ---
12
+
13
+ ## ๐Ÿ“ Project Status & Roadmap
14
+
15
+ | Artifact | What it is |
16
+ |---|---|
17
+ | [`ROADMAP.md`](ROADMAP.md) | Phase plan (Trust Surface โ†’ Product Integrity โ†’ Revenue Loop โ†’ AI-Search Authority โ†’ Scale & Harden) with owners, exit gates, risk register and a 14-day view |
18
+ | [`SECURITY.md`](SECURITY.md) | Coordinated Vulnerability Disclosure policy, RFC 9116 `security.txt`, and CFAA Safe Harbor rules of engagement |
19
+ | Live showcase | <https://cmfh009.github.io/Orbit-Security/> ยท About: <https://cmfh009.github.io/Orbit-Security/about.html> |
20
+
21
+ **Shipped in `v1.2.5`:** Turn-key composite GitHub Action (`CmfH009/Orbit-Security@v1.2.5`) with SARIF 2.1.0 Code Scanning export (`--sarif-output`), AST Code Sentinel, CISA KEV PR Auditor, lean core Python dependencies, lightweight MainWP Agency Connector (`integrations/mainwp-orbit-security/`), live Gemini/Ollama GEO Prompt Panel, and 3 agency GEO guides (100/100 Lighthouse).
22
+
23
+ ---
24
+
25
+ ## โš–๏ธ Open-Core Model: Free Self-Hosted CLI vs. Managed Agency Cloud
26
+
27
+ Orbit Security uses the same open-core model as Sentry, Plausible, and PostHog:
28
+
29
+ | What you get | Free Self-Hosted (`v1.2.5`, `$0`) | Managed Agency Cloud (`$29 / $59 / $99 per mo`) |
30
+ |---|---|---|
31
+ | **Core Scanner & Fixpacks** | Full Python 3.13 CLI, passive DoH/DMARC/takeover engine, 52-provider table, BIND/Terraform fixpacks, GitHub Action, MainWP connector | Everything in the open-source engine, managed for you |
32
+ | **Scheduling & Operations** | DIY โ€” you install Python 3.13, maintain cron jobs across client lists, and fix breakages | **Zero ops** โ€” continuous scans across 15, 40, or 100 client domains without touching a terminal |
33
+ | **White-Label Delivery** | Manual PDF generation and email delivery | Hosted co-branded portals, custom logo/palette, and automated 1st-of-month executive PDF dispatch |
34
+ | **Alerting & Support** | DIY webhook/Slack wiring | Dedicated Slack/webhook drift alerts, priority support, and custom SLA/security reviews (Pro tier) |
35
+
36
+ Busy Shopify and WordPress agencies pay **$59/mo ($1.48/site)** to skip maintaining scripts and cron jobs and hand clients branded monthly reports on `$250/mo` care plans. -> [Start Managed Plan](https://cmfh009.github.io/Orbit-Security/#pricing)
37
+
38
+ ---
39
+
40
+ ## ๐ŸŽฏ The Daily Micro-Revenue Model ($10 โ€“ $100/day)
41
+
42
+ Agencies charge 20โ€“100+ clients between **$150 and $350/month** for "Website Maintenance & Care Plans". However, clients frequently ask: *"What are we paying you for if the site hasn't changed?"*
43
+
44
+ By delivering a co-branded, high-polish Security & Perimeter Audit on the 1st of every month:
45
+ 1. **The agency protects and justifies their retainer revenue.**
46
+ 2. **You charge the agency $29 โ€“ $99/month.**
47
+ 3. **With just 15 to 25 agency accounts, you generate a reliable $50/day ($1,500/month) with near-zero marginal cost and virtually zero churn.**
48
+
49
+ ---
50
+
51
+ ## ๐Ÿš€ Quickstart
52
+
53
+ ### 0. Install the CLI (any machine)
54
+
55
+ ```powershell
56
+ pip install "orbit-security @ git+https://github.com/CmfH009/Orbit-Security.git"
57
+ ```
58
+
59
+ That installs three entry points: `orbit-security` (full CLI), `orbit-recon` (standalone perimeter recon) and `agency-sentry`.
60
+
61
+ > **Note on PyPI:** the package is **not** published to PyPI yet, so `pip install orbit-security` does not resolve. The command above installs from the GitHub source and is verified to build and install cleanly. A PyPI release is on the roadmap - until then, use the source install.
62
+
63
+ ### 1. Installation (development)
64
+ ```powershell
65
+ cd C:\AgyHut\projects\orbit-security
66
+ uv sync
67
+ ```
68
+
69
+ ### 2. Run a Live Audit
70
+ ```powershell
71
+ uv run orbit-security scan example.com --agency-name "Apex Digital Studio" --output-pdf audit.pdf --output-md audit.md
72
+ ```
73
+
74
+ ### 3. Specify Target Subdomains
75
+ ```powershell
76
+ uv run orbit-security scan myclient.com --subdomains "staging.myclient.com,promo.myclient.com,dev.myclient.com" --output-pdf client_audit.pdf
77
+ ```
78
+
79
+ ---
80
+
81
+ ## ๐Ÿ” Core Security & Hygiene Checks
82
+
83
+ 1. **Subdomain Takeovers (Dangling CNAMEs):**
84
+ - Resolves subdomains against known vulnerable SaaS signatures (Unbounce, GitHub Pages, AWS S3, Heroku, Webflow, Shopify, Zendesk, Pantheon, Netlify, Surge).
85
+ - Probes endpoints for unattached provider 404 error strings.
86
+ 2. **Email Spoofing & Phishing Resistance:**
87
+ - DMARC inspection (`_dmarc.<domain>`), distinguishing between active enforcement (`p=quarantine`/`p=reject`) and monitoring-only mode (`p=none`).
88
+ - SPF inspection (`v=spf1`), alerting on missing or dangerously permissive (`+all`) rules.
89
+ 3. **Exposed Critical Files:**
90
+ - Detects publicly accessible `/.env`, `/.git/HEAD`, and `/wp-config.php.bak`.
91
+ 4. **Transport & Application Headers:**
92
+ - HSTS (`Strict-Transport-Security`), Content Security Policy (`Content-Security-Policy`), and Clickjacking mitigation (`X-Frame-Options`).
93
+ 5. **SSL/TLS Certificate Validity:**
94
+ - Validates socket TLS certificates, calculating exact days until expiration.
95
+
96
+ ---
97
+
98
+ ---
99
+
100
+ ## โšก Autonomous CLI Scanner (`orbit-recon`)
101
+
102
+ `orbit-recon` is our standalone, zero-dependency external attack surface scanner:
103
+
104
+ ```bash
105
+ # Scan a single domain
106
+ python tools/orbit-recon.py example.com
107
+
108
+ # Scan multiple domains with Markdown matrix export & CI/CD gate
109
+ python tools/orbit-recon.py --targets-file domains.txt --markdown fleet_matrix.md --fail-on-critical
110
+ ```
111
+
112
+ ---
113
+
114
+ ## ๐Ÿค– CI/CD GitHub Action (`action.yml`)
115
+
116
+ Orbit Security `v1.2.5` ships a dual-mode composite GitHub Action (`CmfH009/Orbit-Security@v1.2.5`) that supports both **Static PR Code & CISA KEV Gating with SARIF 2.1.0 export** and **External Domain Perimeter Auditing**:
117
+
118
+ ### 1. PR Static AST, Secret & CISA KEV Gate + SARIF 2.1.0 Code Scanning
119
+ ```yaml
120
+ name: Orbit Security PR Gate
121
+
122
+ on: [push, pull_request]
123
+
124
+ permissions:
125
+ contents: read
126
+ security-events: write
127
+
128
+ jobs:
129
+ security-gate:
130
+ runs-on: ubuntu-latest
131
+ steps:
132
+ - uses: actions/checkout@v4
133
+ with:
134
+ fetch-depth: 2
135
+
136
+ - name: Run Orbit Security CI/CD Gate
137
+ uses: CmfH009/Orbit-Security@v1.2.5
138
+ with:
139
+ target-path: 'src'
140
+ scan-types: 'ast,secrets,cisa-kev'
141
+ fail-on-findings: 'true'
142
+ sarif-output: 'orbit-security.sarif'
143
+
144
+ - name: Upload SARIF 2.1.0 to GitHub Code Scanning
145
+ if: always()
146
+ uses: github/codeql-action/upload-sarif@v3
147
+ with:
148
+ sarif_file: orbit-security.sarif
149
+ ```
150
+
151
+ ### 2. External Domain Perimeter Sentinel
152
+ Gate deployments by verifying that no staging subdomains, broken CNAMEs, or exposed secrets slip into production:
153
+
154
+ ```yaml
155
+ name: Orbit Security Perimeter Sentinel
156
+
157
+ on: [push, pull_request]
158
+
159
+ jobs:
160
+ perimeter-audit:
161
+ runs-on: ubuntu-latest
162
+ steps:
163
+ - uses: actions/checkout@v4
164
+ - name: Audit External Perimeter
165
+ uses: CmfH009/Orbit-Security@v1.2.5
166
+ with:
167
+ target: 'myagency.com'
168
+ # Or specify a list of client domains:
169
+ # targets-file: '.orbit-targets.txt'
170
+ fail-on-critical: 'true'
171
+ markdown-summary: 'true'
172
+ ```
173
+ *When `markdown-summary` is enabled, the formatted audit table is automatically rendered right inside the GitHub Actions run summary tab!*
174
+
175
+ ### Native GitHub Actions Workflow (`.github/workflows/orbit-perimeter-sentinel.yml`)
176
+
177
+ The repository also ships a native GitHub Actions workflow that runs on every push/PR to `main` and `develop`. It reads targets from `.orbit-targets.txt` (RFC 2606 reserved domains by default โ€” never third-party production sites), executes the composite action with `fail-on-critical: true`, and uploads the Markdown audit report as a workflow artifact:
178
+
179
+ ```yaml
180
+ on:
181
+ push:
182
+ branches: [main, develop]
183
+ pull_request:
184
+ branches: [main, develop]
185
+ jobs:
186
+ perimeter-audit:
187
+ runs-on: ubuntu-latest
188
+ continue-on-error: false
189
+ steps:
190
+ - uses: actions/checkout@v4
191
+ - name: Read target domains
192
+ id: targets
193
+ run: |
194
+ # Reads .orbit-targets.txt (comments + blanks stripped)
195
+ # Falls back to repo's GitHub Pages domain or example.com
196
+ - name: Run Orbit Security Perimeter Audit
197
+ uses: ./
198
+ with:
199
+ targets-file: ${{ steps.targets.outputs.targets-file }}
200
+ fail-on-critical: 'true'
201
+ markdown-summary: 'true'
202
+ export-markdown: 'orbit-perimeter-audit.md'
203
+ - name: Upload audit report artifact
204
+ uses: actions/upload-artifact@v4
205
+ with:
206
+ name: orbit-perimeter-audit
207
+ path: orbit-perimeter-audit.md
208
+ ```
209
+
210
+ ---
211
+
212
+ ## ๐Ÿ”” Slack & Discord Webhooks
213
+
214
+ Send real-time alerts when client perimeters drift into dangerous states:
215
+
216
+ ```bash
217
+ python scripts/scheduled_sentinel.py \
218
+ --clients-file data/clients.json \
219
+ --slack-webhook "https://hooks.slack.com/services/..." \
220
+ --discord-webhook "https://discord.com/api/webhooks/..."
221
+ ```
222
+
223
+ ---
224
+
225
+ ## ๐Ÿ“ฌ Cohort Outreach Audit Generator (`run_cohort_outreach.py`)
226
+
227
+ Batch-generates co-branded perimeter-hygiene audit PDFs + Markdown reports from `data/new_prospects.json` for agency outreach. Each prospect's primary portfolio domain is scanned and a white-label report is emitted under `data/generated_audits/<agency-slug>/`.
228
+
229
+ ```powershell
230
+ # Preview what would be generated (no scanning, no file writes)
231
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --dry-run --limit 3
232
+
233
+ # Scan all 54 prospects
234
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py
235
+
236
+ # Limit to 10 prospects, custom output dir
237
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --limit 10 --output-dir out/audits
238
+
239
+ # Only agencies whose name contains "Blue" (case-insensitive)
240
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --agency "Blue"
241
+
242
+ # Combine filter + limit + dry-run
243
+ .venv\Scripts\python.exe scripts\run_cohort_outreach.py --agency "Blue" --limit 5 --dry-run
244
+ ```
245
+
246
+ Each audit includes the agency's name, support email, and website in the report header โ€” ready to attach to cold-email outreach.
247
+
248
+ ---
249
+
250
+ ## ๐Ÿ•ต๏ธ Passive OSINT Intelligence
251
+
252
+ Every `orbit-security scan` now cross-references the target against the curated public-apis catalog (`C:\AgyHut\reference\public-apis\db\resources.json`, 1,690+ APIs). The OSINT section in the terminal, Markdown, and PDF reports shows:
253
+
254
+ - **Catalog APIs indexed** and **security/OSINT endpoints** count
255
+ - **Domain matches**: catalog APIs whose name/domain/link mention the target
256
+ - **Pivot domains**: unique host domains across security/OSINT catalog entries for attack-surface expansion
257
+
258
+ This is purely passive (local file lookup, no network to the target) and gives agencies a ready-made list of recon tooling to recommend to clients.
259
+
260
+ ---
261
+
262
+ ## ๐Ÿ—ƒ๏ธ Deliverability Preflight Gate
263
+
264
+ ### Anti-Bounce Contact Deliverability Gate (`scripts/verify_contacts.py`)
265
+ Verifies agency contact emails against live MX records and published contact pages, de-obfuscates HTML entities / `[at]` patterns, filters retina image filenames (`logo@2x.png`), and enforces a CI/CD preflight gate before outreach dispatch:
266
+ ```powershell
267
+ python scripts/verify_contacts.py --preflight --max-unresolved 0 --min-deliverable-rate 0.80
268
+ ```
269
+
270
+ ---
271
+
272
+ ## ๐Ÿงช Testing
273
+
274
+ Run the automated test suite (1,250 tests, 100% green):
275
+ ```powershell
276
+ uv run pytest
277
+ ```
278
+
279
+ ---
280
+
281
+ ## ๐ŸŒ Live Platform & Demos
282
+
283
+ - **Live Production App & Scanner:** [https://cmfh009.github.io/Orbit-Security/](https://cmfh009.github.io/Orbit-Security/)
284
+ - **Terms of Service:** [https://cmfh009.github.io/Orbit-Security/terms.html](https://cmfh009.github.io/Orbit-Security/terms.html)
285
+ - **Privacy Policy:** [https://cmfh009.github.io/Orbit-Security/privacy.html](https://cmfh009.github.io/Orbit-Security/privacy.html)
286
+ - **RFC Safe Harbor:** [https://cmfh009.github.io/Orbit-Security/disclaimer.html](https://cmfh009.github.io/Orbit-Security/disclaimer.html)
287
+