@orionscanner/cli 0.1.0 → 0.1.1

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 (129) hide show
  1. package/README.md +135 -248
  2. package/bin/orion.js +30 -29
  3. package/dist/orion.exe +0 -0
  4. package/package.json +8 -10
  5. package/docs/API_REFERENCE.md +0 -211
  6. package/docs/ARCHITECTURE.md +0 -183
  7. package/docs/CHANGELOG.md +0 -112
  8. package/docs/CONTRIBUTING.md +0 -157
  9. package/docs/ENGINE_CATALOG.md +0 -87
  10. package/docs/GETTING_STARTED.md +0 -226
  11. package/pyproject.toml +0 -16
  12. package/src/orion/__init__.py +0 -0
  13. package/src/orion/__pycache__/__init__.cpython-313.pyc +0 -0
  14. package/src/orion/engine/__init__.py +0 -17
  15. package/src/orion/engine/__pycache__/__init__.cpython-313.pyc +0 -0
  16. package/src/orion/engine/__pycache__/config.cpython-313.pyc +0 -0
  17. package/src/orion/engine/__pycache__/core.cpython-313.pyc +0 -0
  18. package/src/orion/engine/__pycache__/ir.cpython-313.pyc +0 -0
  19. package/src/orion/engine/__pycache__/languages.cpython-313.pyc +0 -0
  20. package/src/orion/engine/__pycache__/registry.cpython-313.pyc +0 -0
  21. package/src/orion/engine/__pycache__/results.cpython-313.pyc +0 -0
  22. package/src/orion/engine/__pycache__/runner.cpython-313.pyc +0 -0
  23. package/src/orion/engine/api_security/__pycache__/engine.cpython-313.pyc +0 -0
  24. package/src/orion/engine/api_security/engine.py +0 -125
  25. package/src/orion/engine/architecture/__pycache__/engine.cpython-313.pyc +0 -0
  26. package/src/orion/engine/architecture/engine.py +0 -463
  27. package/src/orion/engine/authorization/__pycache__/engine.cpython-313.pyc +0 -0
  28. package/src/orion/engine/authorization/engine.py +0 -337
  29. package/src/orion/engine/callgraph/__pycache__/engine.cpython-313.pyc +0 -0
  30. package/src/orion/engine/callgraph/engine.py +0 -236
  31. package/src/orion/engine/cfg/__pycache__/engine.cpython-313.pyc +0 -0
  32. package/src/orion/engine/cfg/engine.py +0 -509
  33. package/src/orion/engine/chaos/__pycache__/engine.cpython-313.pyc +0 -0
  34. package/src/orion/engine/chaos/engine.py +0 -268
  35. package/src/orion/engine/chaos_config/__pycache__/engine.cpython-313.pyc +0 -0
  36. package/src/orion/engine/chaos_config/engine.py +0 -322
  37. package/src/orion/engine/complexity/__pycache__/engine.cpython-313.pyc +0 -0
  38. package/src/orion/engine/complexity/engine.py +0 -144
  39. package/src/orion/engine/compliance/__pycache__/engine.cpython-313.pyc +0 -0
  40. package/src/orion/engine/compliance/engine.py +0 -325
  41. package/src/orion/engine/config.py +0 -41
  42. package/src/orion/engine/config_engine/__pycache__/engine.cpython-313.pyc +0 -0
  43. package/src/orion/engine/config_engine/engine.py +0 -364
  44. package/src/orion/engine/config_validation/__pycache__/engine.cpython-313.pyc +0 -0
  45. package/src/orion/engine/config_validation/engine.py +0 -313
  46. package/src/orion/engine/container/__pycache__/engine.cpython-313.pyc +0 -0
  47. package/src/orion/engine/container/engine.py +0 -546
  48. package/src/orion/engine/contract_probe/__pycache__/engine.cpython-313.pyc +0 -0
  49. package/src/orion/engine/contract_probe/engine.py +0 -316
  50. package/src/orion/engine/core.py +0 -75
  51. package/src/orion/engine/crypto_guard/__pycache__/engine.cpython-313.pyc +0 -0
  52. package/src/orion/engine/crypto_guard/engine.py +0 -134
  53. package/src/orion/engine/data_residency/__pycache__/engine.cpython-313.pyc +0 -0
  54. package/src/orion/engine/data_residency/engine.py +0 -238
  55. package/src/orion/engine/dataflow/__pycache__/engine.cpython-313.pyc +0 -0
  56. package/src/orion/engine/dataflow/engine.py +0 -398
  57. package/src/orion/engine/dead_import/__pycache__/engine.cpython-313.pyc +0 -0
  58. package/src/orion/engine/dead_import/engine.py +0 -293
  59. package/src/orion/engine/deps/__pycache__/engine.cpython-313.pyc +0 -0
  60. package/src/orion/engine/deps/engine.py +0 -244
  61. package/src/orion/engine/dispatcher.py +0 -350
  62. package/src/orion/engine/docs/AUDIT_PROMPT.md +0 -1248
  63. package/src/orion/engine/duplication/__pycache__/engine.cpython-313.pyc +0 -0
  64. package/src/orion/engine/duplication/engine.py +0 -120
  65. package/src/orion/engine/error_handling/__pycache__/engine.cpython-313.pyc +0 -0
  66. package/src/orion/engine/error_handling/engine.py +0 -256
  67. package/src/orion/engine/fp_learn/__pycache__/engine.cpython-313.pyc +0 -0
  68. package/src/orion/engine/fp_learn/engine.py +0 -248
  69. package/src/orion/engine/hunter/__pycache__/engine.cpython-313.pyc +0 -0
  70. package/src/orion/engine/hunter/engine.py +0 -324
  71. package/src/orion/engine/iac_security/__pycache__/engine.cpython-313.pyc +0 -0
  72. package/src/orion/engine/iac_security/engine.py +0 -218
  73. package/src/orion/engine/ir.py +0 -22
  74. package/src/orion/engine/languages.py +0 -454
  75. package/src/orion/engine/license/__pycache__/engine.cpython-313.pyc +0 -0
  76. package/src/orion/engine/license/engine.py +0 -172
  77. package/src/orion/engine/lint/__pycache__/engine.cpython-313.pyc +0 -0
  78. package/src/orion/engine/lint/engine.py +0 -558
  79. package/src/orion/engine/llm_security/__pycache__/engine.cpython-313.pyc +0 -0
  80. package/src/orion/engine/llm_security/engine.py +0 -125
  81. package/src/orion/engine/logging_c/__pycache__/engine.cpython-313.pyc +0 -0
  82. package/src/orion/engine/logging_c/engine.py +0 -164
  83. package/src/orion/engine/noise/__pycache__/engine.cpython-313.pyc +0 -0
  84. package/src/orion/engine/noise/engine.py +0 -140
  85. package/src/orion/engine/orphan/__pycache__/engine.cpython-313.pyc +0 -0
  86. package/src/orion/engine/orphan/engine.py +0 -244
  87. package/src/orion/engine/perf_guard/__pycache__/engine.cpython-313.pyc +0 -0
  88. package/src/orion/engine/perf_guard/engine.py +0 -345
  89. package/src/orion/engine/prompt_security/__pycache__/engine.cpython-313.pyc +0 -0
  90. package/src/orion/engine/prompt_security/detectors/__init__.py +0 -4
  91. package/src/orion/engine/prompt_security/engine.py +0 -170
  92. package/src/orion/engine/provenance/__pycache__/engine.cpython-313.pyc +0 -0
  93. package/src/orion/engine/provenance/engine.py +0 -242
  94. package/src/orion/engine/registry.py +0 -55
  95. package/src/orion/engine/regression/__pycache__/engine.cpython-313.pyc +0 -0
  96. package/src/orion/engine/regression/engine.py +0 -213
  97. package/src/orion/engine/results.py +0 -21
  98. package/src/orion/engine/runner.py +0 -1310
  99. package/src/orion/engine/sandbox_escape/__pycache__/engine.cpython-313.pyc +0 -0
  100. package/src/orion/engine/sandbox_escape/engine.py +0 -284
  101. package/src/orion/engine/sast/__pycache__/engine.cpython-313.pyc +0 -0
  102. package/src/orion/engine/sast/engine.py +0 -217
  103. package/src/orion/engine/sast/patterns/__init__.py +0 -513
  104. package/src/orion/engine/sast/patterns/__pycache__/__init__.cpython-313.pyc +0 -0
  105. package/src/orion/engine/secrets/__pycache__/engine.cpython-313.pyc +0 -0
  106. package/src/orion/engine/secrets/engine.py +0 -77
  107. package/src/orion/engine/secrets/patterns/__init__.py +0 -74
  108. package/src/orion/engine/secrets/patterns/__pycache__/__init__.cpython-313.pyc +0 -0
  109. package/src/orion/engine/sensitive_data/__pycache__/engine.cpython-313.pyc +0 -0
  110. package/src/orion/engine/sensitive_data/engine.py +0 -143
  111. package/src/orion/engine/state/__pycache__/engine.cpython-313.pyc +0 -0
  112. package/src/orion/engine/state/engine.py +0 -218
  113. package/src/orion/engine/supply_chain_sbom/__pycache__/engine.cpython-313.pyc +0 -0
  114. package/src/orion/engine/supply_chain_sbom/engine.py +0 -290
  115. package/src/orion/engine/symbol/__pycache__/engine.cpython-313.pyc +0 -0
  116. package/src/orion/engine/symbol/engine.py +0 -463
  117. package/src/orion/engine/taint/__pycache__/engine.cpython-313.pyc +0 -0
  118. package/src/orion/engine/taint/engine.py +0 -464
  119. package/src/orion/engine/test_coverage/__pycache__/engine.cpython-313.pyc +0 -0
  120. package/src/orion/engine/test_coverage/engine.py +0 -445
  121. package/src/orion/engine/threat_model/__pycache__/engine.cpython-313.pyc +0 -0
  122. package/src/orion/engine/threat_model/engine.py +0 -126
  123. package/src/orion/engine/wiring_trace/__pycache__/engine.cpython-313.pyc +0 -0
  124. package/src/orion/engine/wiring_trace/engine.py +0 -200
  125. package/src/orion_engine.egg-info/PKG-INFO +0 -7
  126. package/src/orion_engine.egg-info/SOURCES.txt +0 -65
  127. package/src/orion_engine.egg-info/dependency_links.txt +0 -1
  128. package/src/orion_engine.egg-info/entry_points.txt +0 -2
  129. package/src/orion_engine.egg-info/top_level.txt +0 -1
package/README.md CHANGED
@@ -1,248 +1,135 @@
1
- # Orion Security Suite (v0.1.0)
2
-
3
- <p align="center">
4
- <img src="assets/logo.png" alt="Orion Security Suite" width="420" />
5
- </p>
6
-
7
- <p align="center">
8
- <strong>Proprietary In-House Code Intelligence, Static Application Security Testing (SAST) & Architecture Auditing Platform</strong>
9
- </p>
10
-
11
- <p align="center">
12
- <img src="https://img.shields.io/badge/version-0.1.0-blue.svg" alt="Version 0.1.0" />
13
- <img src="https://img.shields.io/badge/license-Proprietary%20%2F%20In--House-green.svg" alt="License" />
14
- <img src="https://img.shields.io/badge/python-%3E%3D3.10-blue.svg" alt="Python Version" />
15
- <img src="https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey.svg" alt="Platform" />
16
- <img src="https://img.shields.io/badge/architecture-100%25%20In--House%20Local-purple.svg" alt="Architecture" />
17
- </p>
18
-
19
- ---
20
-
21
- ## Executive Overview
22
-
23
- **Orion Security Suite** is a unified, enterprise-grade static analysis, software security, and architecture intelligence platform. Every auditing engine is **100% custom-built and developed in-house**, executing locally with zero third-party wrappers, zero external CLI subprocess dependencies, and zero telemetry.
24
-
25
- Orion operates on a unified **Intermediate Representation (IR)** graph, performing AST semantic analysis, Inter-Procedural Control Flow Graphs (CFG), Taint Propagation, AI/LLM agent defense, Cloud/IaC misconfiguration audits, and comprehensive PII/PCI-DSS privacy inspections.
26
-
27
- ---
28
-
29
- ## Key Capabilities & Highlights
30
-
31
- | Capability | Orion Engine Architecture |
32
- | :--- | :--- |
33
- | **100% In-House Local IP** | All AST visitors, taint trackers, heuristics, and tokenizers run natively in pure Python. |
34
- | **Comprehensive Scope** | Single unified run covering Application Security, Cloud/IaC, AI Prompt/Agent Defense, Code Quality, and Architecture. |
35
- | **Phased Indexing** | Clear, multi-phase AST indexing and CFG synthesis without jumpy animations or progress-bar console jitter. |
36
- | **Cross-Engine Deduplication** | Correlates and collapses overlapping findings across multiple engines with confidence scoring. |
37
- | **Executive Reports** | Generates self-contained HTML dashboards with one-click print/PDF layout, JSON findings catalog, and TXT summaries in `ORION SCANNER REPORTS/`. |
38
- | **Isolated Execution** | Async/await execution model with per-engine resource limits, sandboxing, and timeout protection. |
39
-
40
- ---
41
-
42
- ## Proprietary In-House Engine Suite
43
-
44
- Orion features a full matrix of specialized auditing engines grouped by domain:
45
-
46
- ### 1. Application Security & Deep SAST
47
- - **DeepSAST™ (`sast`)**: Detects SQL Injection, XSS, Command Injection, SSRF, Path Traversal, Insecure Deserialization, and Weak Ciphers.
48
- - **TaintFlow™ (`taint`)**: Inter-procedural AST taint propagation tracking untrusted inputs to critical execution sinks.
49
- - **KeyVault™ (`secrets`)**: High-entropy token analysis and pattern matching for leaked API keys, private keys, and passwords.
50
- - **AuthGate™ (`authorization`)**: Route-level access control auditor verifying RBAC/ABAC enforcement across web frameworks.
51
- - **CryptoGuard™ (`crypto_guard`)**: Cryptographic posture validator flagging outdated algorithms (MD5, SHA1, DES, ECB mode).
52
- - **APIGuard™ (`api_security`)**: OWASP API Top 10 inspector auditing endpoint rate limiting, input validation, and JWT signatures.
53
- - **ContainerBreak™ (`sandbox_escape`)**: Detects sandbox escape vectors, unsafe reflection, `ctypes`, and dangerous native calls.
54
-
55
- ### 2. AI, LLM & Threat Modeling
56
- - **AegisAgent™ (`llm_security` / `prompt_security`)**: Audits LLM applications for prompt injection, jailbreak attempts, unconstrained tool use, and insecure output handling.
57
- - **ThreatPulse™ (`threat_model`)**: Automated STRIDE threat modeling analyzing trust boundaries, unprotected persistence crossings, and cascading I/O.
58
-
59
- ### 3. Privacy, Compliance & Supply Chain
60
- - **PrivacyShield™ (`sensitive_data`)**: Scans for PII, GDPR, HIPAA, and PCI-DSS violations with proprietary Luhn PAN validation and SSN detectors.
61
- - **DataBound™ (`data_residency`)**: Verifies data sovereignty and storage boundaries to prevent unauthorized geographic transfers.
62
- - **SBOMTracker™ (`supply_chain_sbom` / `deps`)**: In-house Software Bill of Materials (SBOM) generator and dependency vulnerability scanner.
63
- - **LicenseGuard™ (`license`)**: Scans for GPL/AGPL copyleft license contamination and license compatibility conflicts.
64
- - **ProvenanceTrace™ (`provenance`)**: Audits source code build integrity, commit signing indicators, and pipeline reproducibility.
65
-
66
- ### 4. Code Quality, Standards & Reliability
67
- - **CognitivePulse™ (`complexity`)**: Computes cyclomatic complexity, cognitive load metrics, and deeply nested logic paths.
68
- - **CloneMatrix™ (`duplication`)**: Token-based duplicate code and structural redundancy detector.
69
- - **CleanSweep™ (`dead_import` / `orphan`)**: Identifies unreferenced symbols, orphan functions, and dead code stores.
70
- - **ResilienceGuard™ (`error_handling`)**: Detects empty exception handlers (`except: pass`), swallowed errors, and unhandled promises.
71
- - **CodeStandard™ (`lint`)**: Static code quality and best practices enforcement without stylistic noise.
72
- - **CoverageGuard™ (`test_coverage`)**: Heuristic test-to-code ratio and missing unit test coverage detector.
73
-
74
- ### 5. Architecture, Dataflow & Performance
75
- - **CallGraph360™ (`callgraph`)**: Constructs comprehensive whole-program call graphs and dependency coupling hierarchies.
76
- - **FlowCFG™ (`cfg`)**: Builds control flow graphs to detect unreachable branches, infinite loops, and execution anomalies.
77
- - **SymbolMatrix™ (`symbol`)**: Analyzes symbol resolution, shadowed builtins, and scope collisions.
78
- - **DataFlowIR™ (`dataflow`)**: Intra-function data flow analyzer detecting use-before-def and uninitialized state.
79
- - **SpeedGuard™ (`perf_guard`)**: Identifies algorithmic performance anti-patterns, nested O(n²) loops, and unindexed lookups.
80
- - **RegressionShield™ (`regression`)**: Flags fragile patterns, runtime monkey patching, and unsafe reflection.
81
- - **WiringTrace™ (`wiring_trace`)**: Dependency injection and component wiring validator.
82
- - **StateGuard™ (`state`)**: Concurrency analysis detecting unprotected shared mutable state and race conditions.
83
-
84
- ### 6. Cloud, IaC & Resilience
85
- - **CloudSentry™ (`container`)**: Dockerfile and container security analyzer (root execution, exposed daemon sockets, multi-stage builds).
86
- - **IaCGuard™ (`iac_security`)**: Terraform, CloudFormation, and Kubernetes manifest auditor for security group and IAM misconfigurations.
87
- - **ConfigPulse™ (`config_engine` / `config_validation`)**: Validates environment variables, `.env` hygiene, and application configuration drift.
88
- - **ChaosProbe™ (`chaos` / `chaos_config`)**: Injects fault tolerance simulations and verifies circuit breaker recovery mechanisms.
89
- - **NoiseFilter™ (`noise`)**: Machine-level false positive suppression and signal-to-noise optimization.
90
- - **HunterCore™ (`hunter`)**: Heuristic zero-day vulnerability hunter for unusual code patterns.
91
- - **FPLearn™ (`fp_learn`)**: Contextual learning feedback loop to minimize recurring false positives.
92
-
93
- ---
94
-
95
- ## Quick Start & Installation
96
-
97
- ### Local Editable Installation
98
-
99
- ```bash
100
- # Clone or navigate to the Orion Engine repository
101
- cd D:/Homeworks/Orion_Engine
102
-
103
- # Install in editable mode
104
- pip install -e .
105
- ```
106
-
107
- ### Verification
108
-
109
- ```bash
110
- orion --help
111
- ```
112
-
113
- ---
114
-
115
- ## Command Line Interface (CLI)
116
-
117
- Orion provides a formatted CLI with steady status reporting and dedicated sections for **Security Vulnerabilities** and **Code Quality Standards**:
118
-
119
- ```bash
120
- # Run a full audit across all proprietary engines on current directory
121
- orion .
122
-
123
- # Audit a specific repository or file
124
- orion /path/to/project
125
- orion ./src/app.py
126
-
127
- # Specialized Targeted Scans:
128
- orion . --security # Application Security & Deep SAST
129
- orion . --threat # Automated STRIDE Threat Modeling & Privacy (PII)
130
- orion . --iac # Infrastructure as Code & Container Security
131
- orion . --ai # AI, LLM Prompt Security & Agent Defense
132
- orion . --quality # Code Quality, Complexity & Linter
133
- orion . --architecture # Call Graph, CFG & Data Flow Analysis
134
- orion . --supply-chain # SBOM, Dependencies & License Auditing
135
-
136
- # Interactive Management Console:
137
- orion
138
- ```
139
-
140
- ---
141
-
142
- ## Executive Reporting Outputs
143
-
144
- Every execution automatically cleans previous artifacts and produces three reports in `ORION SCANNER REPORTS/`:
145
-
146
- 1. **`orion_executive_security_report.html`**:
147
- - High-clarity executive security dashboard.
148
- - Interactive severity (`Critical`, `High`, `Medium`, `Low`) and category filter tabs (`Security`, `Code Quality`, `Architecture`, `Supply Chain`).
149
- - Clean, self-contained layout with zero external CSS/JS dependencies.
150
- - Built-in **🖨️ Export PDF / Print Report** stylesheet optimized for executive presentations.
151
- 2. **`orion_executive_security_report.json`**:
152
- - Machine-readable structured findings catalog with metadata, CWE identifiers, confidence scores, and contributing engine attribution.
153
- 3. **`orion_executive_security_report.txt`**:
154
- - Clean plaintext audit summary ideal for CI/CD terminal logs and build pipelines.
155
-
156
- ---
157
-
158
- ## Python Programmatic API
159
-
160
- You can integrate Orion directly into custom Python pipelines:
161
-
162
- ```python
163
- import asyncio
164
- from pathlib import Path
165
- from orion.engine import OrionEngine, EngineConfig, ResourceLimits
166
- from orion.engine.ir import OrionIR
167
-
168
- async def audit_codebase():
169
- # 1. Initialize Orion Engine
170
- engine = OrionEngine()
171
-
172
- # 2. Build Intermediate Representation (IR)
173
- file_path = Path("src/server.py")
174
- ir = OrionIR(
175
- content=file_path.read_bytes(),
176
- metadata={
177
- "path": str(file_path),
178
- "language": "python",
179
- "project_root": "."
180
- }
181
- )
182
-
183
- # 3. Configure Execution Limits
184
- config = EngineConfig(
185
- resource_limits=ResourceLimits(
186
- max_cpu_seconds=30,
187
- max_memory_mb=256
188
- )
189
- )
190
-
191
- # 4. Execute Engine Suite
192
- result = await engine.run([ir], config)
193
-
194
- # 5. Process Findings
195
- print(f"Total Findings: {len(result.findings)}")
196
- for finding in result.findings:
197
- print(f"[{finding.severity.upper()}] {finding.title} ({finding.location})")
198
- print(f" Engine: {finding.engine} | Confidence: {finding.metadata.get('confidence')}")
199
-
200
- if __name__ == "__main__":
201
- asyncio.run(audit_codebase())
202
- ```
203
-
204
- ---
205
-
206
- ## Supported Languages & File Formats
207
-
208
- Orion automatically detects and audits:
209
- - **Languages**: Python (`.py`), JavaScript (`.js`, `.jsx`, `.mjs`), TypeScript (`.ts`, `.tsx`), Go (`.go`), Java (`.java`), Rust (`.rs`), Ruby (`.rb`), PHP (`.php`), C/C++ (`.c`, `.cpp`, `.h`), C# (`.cs`), Shell (`.sh`, `.bash`), SQL (`.sql`).
210
- - **Infrastructure & Configs**: Dockerfile, `docker-compose.yml`, Kubernetes manifests (`.yaml`, `.yml`), Terraform (`.tf`), GitHub Actions workflows (`.github/workflows/*.yml`), `.env` configuration files.
211
- - **Manifests & Dependencies**: `requirements.txt`, `pyproject.toml`, `Pipfile`, `package.json`, `package-lock.json`, `go.mod`, `Cargo.toml`, `pom.xml`.
212
-
213
- ---
214
-
215
- ## Project Structure
216
-
217
- ```text
218
- Orion_Engine/
219
- ├── assets/
220
- │ └── logo.png # Official Orion Emblem & Logo
221
- ├── src/
222
- │ └── orion/
223
- │ └── engine/
224
- │ ├── core.py # OrionEngine Core Coordinator
225
- │ ├── ir.py # Intermediate Representation (IR)
226
- │ ├── runner.py # CLI Runner, Formatter & Report Generator
227
- │ ├── registry.py # Dynamic In-House Engine Discovery
228
- │ ├── config.py # Engine Configurations & Resource Limits
229
- │ ├── results.py # Finding & EngineResult Data Models
230
- │ ├── sast/ # DeepSAST™ Engine
231
- │ ├── taint/ # TaintFlow™ Engine
232
- │ ├── secrets/ # KeyVault™ Engine
233
- │ ├── threat_model/ # ThreatPulse™ STRIDE Engine
234
- │ ├── sensitive_data/ # PrivacyShield™ PII/PCI Engine
235
- │ ├── llm_security/ # AegisAgent™ AI/LLM Security Engine
236
- │ ├── perf_guard/ # SpeedGuard™ Performance Engine
237
- │ ├── iac_security/ # IaCGuard™ Cloud/IaC Engine
238
- │ └── ... # (All in-house proprietary engines)
239
- ├── ORION SCANNER REPORTS/ # Output Directory for Latest Generated Reports
240
- ├── pyproject.toml # Package Configuration (v0.1.0)
241
- └── README.md # Documentation
242
- ```
243
-
244
- ---
245
-
246
- ## License & Compliance
247
-
248
- Orion Security Suite is a proprietary, in-house developed codebase intelligence platform. All engines, AST visitors, and parsers are original intellectual property engineered to run self-contained on local infrastructure.
1
+ # Orion Security Suite
2
+
3
+ <p align="center">
4
+ <img src="assets/logo.png" alt="Orion Security Suite" width="460" />
5
+ </p>
6
+
7
+ <p align="center">
8
+ <strong>SEE. ANALYZE. IMPROVE.</strong><br>
9
+ <em>The Autonomous, In-House Code Intelligence & Enterprise Security Audit Platform</em>
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/@orionscanner/cli"><img src="https://img.shields.io/badge/npm-v0.1.0-cb3837?logo=npm" alt="npm" /></a>
14
+ <img src="https://img.shields.io/badge/version-0.1.0-blue.svg" alt="Version 0.1.0" />
15
+ <img src="https://img.shields.io/badge/security-In--House%20Core-emerald.svg" alt="Security" />
16
+ <img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg" alt="Platform" />
17
+ </p>
18
+
19
+ ---
20
+
21
+ ## Why Choose Orion?
22
+
23
+ Modern development teams face fragmented security tools, high false-alarm noise, and code privacy risks from sending proprietary source files to third-party clouds.
24
+
25
+ **Orion Security Suite** solves this with a unified, zero-cloud, 100% in-house code audit powerhouse that runs entirely on your local infrastructure.
26
+
27
+ ```
28
+ ┌────────────────────────────────────────┐
29
+ │ ORION SECURITY SUITE │
30
+ │ SEE. ANALYZE. IMPROVE. │
31
+ └───────────────────┬────────────────────┘
32
+
33
+ ┌────────────────────────────┼────────────────────────────┐
34
+ ▼ ▼ ▼
35
+ 🛡️ Application Security 🧠 AI & LLM Defense ⚡ Code Quality & Flow
36
+ Deep SAST & Sinks • Prompt Injection Shields • Complexity & O(n²) Guard
37
+ Taint Flow Analysis • Agent Trust Boundaries • Dead Code Elimination
38
+ Secret & Key Leak Hunter • Automated STRIDE Threat • Clean Architecture Graph
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Instant Quick Start
44
+
45
+ ### 🚀 Install via NPM (One-Line Global Setup)
46
+
47
+ ```bash
48
+ npm install -g @orionscanner/cli
49
+ ```
50
+
51
+ *Or run instantly with `npx` (zero installation required):*
52
+ ```bash
53
+ npx @orionscanner/cli .
54
+ ```
55
+
56
+ ---
57
+
58
+ ### 🐍 Install via Python
59
+
60
+ ```bash
61
+ # Clone the repository
62
+ git clone https://github.com/chandrahotha/OrionEngine.git
63
+ cd OrionEngine
64
+
65
+ # Install locally in editable mode
66
+ pip install -e .
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Supercharged CLI Experience
72
+
73
+ Audit your entire codebase in seconds with intuitive commands:
74
+
75
+ ```bash
76
+ # Complete Workspace Audit (All Security, Quality & Architecture Engines)
77
+ orion .
78
+
79
+ # Targeted Security & Deep SAST Audit
80
+ orion . --security
81
+
82
+ # Automated STRIDE Threat Modeling & PII Privacy Inspection
83
+ orion . --threat
84
+
85
+ # AI Agent Defense & Prompt Injection Testing
86
+ orion . --ai
87
+
88
+ # Cloud Configuration & Container Security Audit
89
+ orion . --iac
90
+
91
+ # Code Quality, Complexity & Architecture Sweep
92
+ orion . --quality
93
+
94
+ # Launch Interactive Terminal Management Console
95
+ orion
96
+ ```
97
+
98
+ ---
99
+
100
+ ## 💎 The Orion Advantage
101
+
102
+ ### 🔒 100% In-House, Zero-Cloud Privacy
103
+ Your proprietary source code never leaves your workstation or CI/CD runner. Every parser, AST visitor, heuristic rule, and taint-flow engine is 100% custom-built and executes locally with zero external subprocess dependencies.
104
+
105
+ ### 📊 Beautiful, Executive-Ready Reports
106
+ Every scan generates self-contained executive intelligence reports in `ORION SCANNER REPORTS/`:
107
+ - **Interactive HTML Dashboard**: Filter findings by category (`Security`, `Code Quality`, `Architecture`, `Supply Chain`) and severity.
108
+ - **One-Click PDF Export**: Clean, printable executive summary ready for stakeholders and compliance audits.
109
+ - **Machine-Readable JSON**: Complete structured finding metadata with CWE mappings and confidence scores.
110
+
111
+ ### 🎯 High-Precision Signal, Zero Fluff
112
+ Orion uses cross-engine correlation and false-positive suppression to eliminate noise, delivering actionable findings you can trust.
113
+
114
+ ---
115
+
116
+ ## 🛠️ Multi-Language Codebase Support
117
+
118
+ Orion automatically detects and audits your entire multi-language stack:
119
+
120
+ - **Languages**: Python, JavaScript, TypeScript, Go, Java, Rust, Ruby, PHP, C/C++, C#, Shell, SQL
121
+ - **Cloud & DevOps**: Dockerfile, `docker-compose.yml`, Kubernetes Manifests, Terraform, GitHub Actions
122
+ - **Dependency Manifests**: `package.json`, `requirements.txt`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `pom.xml`
123
+
124
+ ---
125
+
126
+ ## 📦 NPM Package Links
127
+
128
+ - **NPM Package**: [`https://www.npmjs.com/package/@orionscanner/cli`](https://www.npmjs.com/package/@orionscanner/cli)
129
+ - **GitHub Repository**: [`https://github.com/chandrahotha/OrionEngine`](https://github.com/chandrahotha/OrionEngine)
130
+
131
+ ---
132
+
133
+ ## License & Intellectual Property
134
+
135
+ Orion Security Suite is a proprietary, in-house developed codebase intelligence platform. All engines, algorithms, and AST analyzers are original intellectual property built for high-performance security auditing.
package/bin/orion.js CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Orion Security Suite - Global NPM CLI Wrapper (v0.1.0)
3
+ * Orion Security Suite - Protected Standalone Binary Wrapper (v0.1.1)
4
4
  * 100% In-House Code Intelligence & SAST Platform
5
+ * (Zero Python Source Code Distributed)
5
6
  */
6
7
 
7
8
  const { spawn } = require('child_process');
@@ -11,38 +12,38 @@ const fs = require('fs');
11
12
  const projectRoot = path.resolve(__dirname, '..');
12
13
  const args = process.argv.slice(2);
13
14
 
14
- function runPython(pythonCmd) {
15
- const pythonEnv = Object.assign({}, process.env, {
16
- PYTHONPATH: path.join(projectRoot, 'src') + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : '')
17
- });
15
+ // Check for standalone compiled binary first (zero source code)
16
+ const exePath = path.join(projectRoot, 'dist', 'orion.exe');
17
+ const binPath = path.join(projectRoot, 'dist', 'orion');
18
18
 
19
- const scriptPath = path.join(projectRoot, 'src', 'orion', 'engine', 'runner.py');
20
- const child = spawn(pythonCmd, [scriptPath, ...args], {
19
+ if (process.platform === 'win32' && fs.existsSync(exePath)) {
20
+ const child = spawn(exePath, args, {
21
21
  stdio: 'inherit',
22
- env: pythonEnv,
23
22
  cwd: process.cwd()
24
23
  });
25
-
26
- child.on('error', (err) => {
27
- if (pythonCmd === 'python3') {
28
- runPython('python');
29
- } else if (pythonCmd === 'python') {
30
- runPython('py');
31
- } else {
32
- console.error('\x1b[31m✖ Error: Python 3.10+ is required to execute Orion Engine.\x1b[0m');
33
- console.error('Please ensure Python is installed and added to your PATH environment variable.');
34
- process.exit(1);
35
- }
36
- });
37
-
38
- child.on('close', (code) => {
39
- process.exit(code || 0);
24
+ child.on('close', (code) => process.exit(code || 0));
25
+ } else if (fs.existsSync(binPath)) {
26
+ const child = spawn(binPath, args, {
27
+ stdio: 'inherit',
28
+ cwd: process.cwd()
40
29
  });
41
- }
42
-
43
- // Start with standard python executable or python3
44
- if (process.platform === 'win32') {
45
- runPython('python');
30
+ child.on('close', (code) => process.exit(code || 0));
46
31
  } else {
47
- runPython('python3');
32
+ // Fallback if running from development workspace with source
33
+ const scriptPath = path.join(projectRoot, 'src', 'orion', 'engine', 'runner.py');
34
+ if (fs.existsSync(scriptPath)) {
35
+ const pythonEnv = Object.assign({}, process.env, {
36
+ PYTHONPATH: path.join(projectRoot, 'src') + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : '')
37
+ });
38
+ const cmd = process.platform === 'win32' ? 'python' : 'python3';
39
+ const child = spawn(cmd, [scriptPath, ...args], {
40
+ stdio: 'inherit',
41
+ env: pythonEnv,
42
+ cwd: process.cwd()
43
+ });
44
+ child.on('close', (code) => process.exit(code || 0));
45
+ } else {
46
+ console.error('\x1b[31m✖ Error: Orion binary executable not found.\x1b[0m');
47
+ process.exit(1);
48
+ }
48
49
  }
package/dist/orion.exe ADDED
Binary file
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@orionscanner/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Orion Security Suite - Proprietary In-House Code Intelligence, SAST & Architecture Auditing Platform",
5
5
  "main": "bin/orion.js",
6
6
  "bin": {
7
- "orion": "./bin/orion.js",
8
- "orion-engine": "./bin/orion.js",
9
- "orion-cli": "./bin/orion.js"
7
+ "orion": "bin/orion.js",
8
+ "orion-engine": "bin/orion.js",
9
+ "orion-cli": "bin/orion.js"
10
10
  },
11
11
  "scripts": {
12
- "start": "node ./bin/orion.js",
13
- "orion": "node ./bin/orion.js"
12
+ "start": "node bin/orion.js",
13
+ "orion": "node bin/orion.js"
14
14
  },
15
15
  "keywords": [
16
16
  "orion",
@@ -39,10 +39,8 @@
39
39
  "homepage": "https://github.com/chandrahotha/OrionEngine#readme",
40
40
  "files": [
41
41
  "bin/",
42
- "src/",
42
+ "dist/",
43
43
  "assets/",
44
- "docs/",
45
- "README.md",
46
- "pyproject.toml"
44
+ "README.md"
47
45
  ]
48
46
  }