This repository was archived by the owner on Mar 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathinstall.ps1
More file actions
127 lines (106 loc) · 3.79 KB
/
install.ps1
File metadata and controls
127 lines (106 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
# SENTINEL AI Security Platform — PowerShell Installer
# Usage: irm https://raw.githubusercontent.com/DmitrL-dev/AISecurity/main/install.ps1 | iex
param(
[switch]$Lite,
[switch]$Full,
[switch]$Dev,
[switch]$Help
)
$ErrorActionPreference = "Stop"
function Write-Banner {
Write-Host ""
Write-Host " SENTINEL AI Security Platform" -ForegroundColor Cyan
Write-Host " 209 Detection Engines | Strange Math" -ForegroundColor Cyan
Write-Host ""
}
function Write-Help {
Write-Host "SENTINEL AI Security Platform - Installer" -ForegroundColor Green
Write-Host ""
Write-Host "Usage: .\install.ps1 [-Lite] [-Full] [-Dev] [-Help]"
Write-Host ""
Write-Host "Options:"
Write-Host " -Lite Python only (pip install)"
Write-Host " -Full Docker stack (default)"
Write-Host " -Dev Development mode"
Write-Host " -Help Show this help"
Write-Host ""
Write-Host "Examples:"
Write-Host " .\install.ps1 -Lite"
Write-Host " .\install.ps1 -Full"
}
function Install-Lite {
Write-Host "[STEP] Installing SENTINEL Lite (Python only)..." -ForegroundColor Blue
# Check Python
try {
$pythonVersion = python --version 2>&1
Write-Host "[INFO] $pythonVersion" -ForegroundColor Green
}
catch {
Write-Host "[ERROR] Python not found. Install from https://python.org" -ForegroundColor Red
exit 1
}
$installDir = "$env:USERPROFILE\sentinel"
# Create venv
Write-Host "[INFO] Creating virtual environment..." -ForegroundColor Green
python -m venv "$installDir\venv"
# Activate and install
& "$installDir\venv\Scripts\Activate.ps1"
pip install --upgrade pip
pip install sentinel-llm-security
# Download signatures
Write-Host "[INFO] Downloading signatures..." -ForegroundColor Green
New-Item -ItemType Directory -Force -Path "$installDir\signatures" | Out-Null
Invoke-WebRequest -Uri "https://cdn.jsdelivr.net/gh/DmitrL-dev/AISecurity@main/sentinel-community/signatures/jailbreaks-manifest.json" -OutFile "$installDir\signatures\manifest.json"
Write-Host ""
Write-Host "SENTINEL Lite installed!" -ForegroundColor Green
Write-Host ""
Write-Host "Quick start:" -ForegroundColor Yellow
Write-Host " $installDir\venv\Scripts\Activate.ps1"
Write-Host " python -c `"from sentinel import analyze; print(analyze('test'))`""
}
function Install-Full {
Write-Host "[STEP] Installing SENTINEL Full (Docker)..." -ForegroundColor Blue
# Check Docker
try {
docker --version | Out-Null
Write-Host "[INFO] Docker found" -ForegroundColor Green
}
catch {
Write-Host "[ERROR] Docker not found. Install Docker Desktop" -ForegroundColor Red
exit 1
}
$installDir = "$env:USERPROFILE\sentinel"
# Clone
Write-Host "[INFO] Cloning repository..." -ForegroundColor Green
git clone --depth 1 https://github.com/DmitrL-dev/AISecurity.git $installDir
# Start
Set-Location "$installDir\sentinel-community"
docker compose -f docker-compose.full.yml up -d
Write-Host ""
Write-Host "SENTINEL installed!" -ForegroundColor Green
Write-Host " Dashboard: http://localhost:3000"
Write-Host " API: http://localhost:8080"
}
function Install-Dev {
Write-Host "[INFO] Development mode - clone and pip install" -ForegroundColor Green
$installDir = "$env:USERPROFILE\sentinel"
git clone --depth 1 https://github.com/DmitrL-dev/AISecurity.git $installDir
Set-Location "$installDir\sentinel-community"
pip install -r requirements.txt
Write-Host "Dev environment ready!" -ForegroundColor Green
}
# Main
Write-Banner
if ($Help) {
Write-Help
exit 0
}
if ($Lite) {
Install-Lite
}
elseif ($Dev) {
Install-Dev
}
else {
Install-Full
}