@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.
- package/README.md +135 -248
- package/bin/orion.js +30 -29
- package/dist/orion.exe +0 -0
- package/package.json +8 -10
- package/docs/API_REFERENCE.md +0 -211
- package/docs/ARCHITECTURE.md +0 -183
- package/docs/CHANGELOG.md +0 -112
- package/docs/CONTRIBUTING.md +0 -157
- package/docs/ENGINE_CATALOG.md +0 -87
- package/docs/GETTING_STARTED.md +0 -226
- package/pyproject.toml +0 -16
- package/src/orion/__init__.py +0 -0
- package/src/orion/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/orion/engine/__init__.py +0 -17
- package/src/orion/engine/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/config.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/core.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/ir.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/languages.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/registry.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/results.cpython-313.pyc +0 -0
- package/src/orion/engine/__pycache__/runner.cpython-313.pyc +0 -0
- package/src/orion/engine/api_security/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/api_security/engine.py +0 -125
- package/src/orion/engine/architecture/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/architecture/engine.py +0 -463
- package/src/orion/engine/authorization/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/authorization/engine.py +0 -337
- package/src/orion/engine/callgraph/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/callgraph/engine.py +0 -236
- package/src/orion/engine/cfg/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/cfg/engine.py +0 -509
- package/src/orion/engine/chaos/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/chaos/engine.py +0 -268
- package/src/orion/engine/chaos_config/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/chaos_config/engine.py +0 -322
- package/src/orion/engine/complexity/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/complexity/engine.py +0 -144
- package/src/orion/engine/compliance/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/compliance/engine.py +0 -325
- package/src/orion/engine/config.py +0 -41
- package/src/orion/engine/config_engine/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/config_engine/engine.py +0 -364
- package/src/orion/engine/config_validation/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/config_validation/engine.py +0 -313
- package/src/orion/engine/container/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/container/engine.py +0 -546
- package/src/orion/engine/contract_probe/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/contract_probe/engine.py +0 -316
- package/src/orion/engine/core.py +0 -75
- package/src/orion/engine/crypto_guard/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/crypto_guard/engine.py +0 -134
- package/src/orion/engine/data_residency/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/data_residency/engine.py +0 -238
- package/src/orion/engine/dataflow/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/dataflow/engine.py +0 -398
- package/src/orion/engine/dead_import/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/dead_import/engine.py +0 -293
- package/src/orion/engine/deps/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/deps/engine.py +0 -244
- package/src/orion/engine/dispatcher.py +0 -350
- package/src/orion/engine/docs/AUDIT_PROMPT.md +0 -1248
- package/src/orion/engine/duplication/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/duplication/engine.py +0 -120
- package/src/orion/engine/error_handling/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/error_handling/engine.py +0 -256
- package/src/orion/engine/fp_learn/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/fp_learn/engine.py +0 -248
- package/src/orion/engine/hunter/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/hunter/engine.py +0 -324
- package/src/orion/engine/iac_security/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/iac_security/engine.py +0 -218
- package/src/orion/engine/ir.py +0 -22
- package/src/orion/engine/languages.py +0 -454
- package/src/orion/engine/license/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/license/engine.py +0 -172
- package/src/orion/engine/lint/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/lint/engine.py +0 -558
- package/src/orion/engine/llm_security/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/llm_security/engine.py +0 -125
- package/src/orion/engine/logging_c/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/logging_c/engine.py +0 -164
- package/src/orion/engine/noise/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/noise/engine.py +0 -140
- package/src/orion/engine/orphan/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/orphan/engine.py +0 -244
- package/src/orion/engine/perf_guard/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/perf_guard/engine.py +0 -345
- package/src/orion/engine/prompt_security/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/prompt_security/detectors/__init__.py +0 -4
- package/src/orion/engine/prompt_security/engine.py +0 -170
- package/src/orion/engine/provenance/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/provenance/engine.py +0 -242
- package/src/orion/engine/registry.py +0 -55
- package/src/orion/engine/regression/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/regression/engine.py +0 -213
- package/src/orion/engine/results.py +0 -21
- package/src/orion/engine/runner.py +0 -1310
- package/src/orion/engine/sandbox_escape/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/sandbox_escape/engine.py +0 -284
- package/src/orion/engine/sast/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/sast/engine.py +0 -217
- package/src/orion/engine/sast/patterns/__init__.py +0 -513
- package/src/orion/engine/sast/patterns/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/orion/engine/secrets/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/secrets/engine.py +0 -77
- package/src/orion/engine/secrets/patterns/__init__.py +0 -74
- package/src/orion/engine/secrets/patterns/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/orion/engine/sensitive_data/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/sensitive_data/engine.py +0 -143
- package/src/orion/engine/state/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/state/engine.py +0 -218
- package/src/orion/engine/supply_chain_sbom/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/supply_chain_sbom/engine.py +0 -290
- package/src/orion/engine/symbol/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/symbol/engine.py +0 -463
- package/src/orion/engine/taint/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/taint/engine.py +0 -464
- package/src/orion/engine/test_coverage/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/test_coverage/engine.py +0 -445
- package/src/orion/engine/threat_model/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/threat_model/engine.py +0 -126
- package/src/orion/engine/wiring_trace/__pycache__/engine.cpython-313.pyc +0 -0
- package/src/orion/engine/wiring_trace/engine.py +0 -200
- package/src/orion_engine.egg-info/PKG-INFO +0 -7
- package/src/orion_engine.egg-info/SOURCES.txt +0 -65
- package/src/orion_engine.egg-info/dependency_links.txt +0 -1
- package/src/orion_engine.egg-info/entry_points.txt +0 -2
- package/src/orion_engine.egg-info/top_level.txt +0 -1
package/README.md
CHANGED
|
@@ -1,248 +1,135 @@
|
|
|
1
|
-
# Orion Security Suite
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<img src="assets/logo.png" alt="Orion Security Suite" width="
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<strong>
|
|
9
|
-
</
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<img src="https://img.shields.io/badge/
|
|
14
|
-
<img src="https://img.shields.io/badge/
|
|
15
|
-
<img src="https://img.shields.io/badge/
|
|
16
|
-
<img src="https://img.shields.io/badge/
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Orion
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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 -
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
20
|
-
const child = spawn(
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
8
|
-
"orion-engine": "
|
|
9
|
-
"orion-cli": "
|
|
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
|
|
13
|
-
"orion": "node
|
|
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
|
-
"
|
|
42
|
+
"dist/",
|
|
43
43
|
"assets/",
|
|
44
|
-
"
|
|
45
|
-
"README.md",
|
|
46
|
-
"pyproject.toml"
|
|
44
|
+
"README.md"
|
|
47
45
|
]
|
|
48
46
|
}
|