SoulInPsyAbstract commited on
Commit
4fc408d
·
verified ·
1 Parent(s): 13e9db0

Mirror GitHub commit 8f96bd001f6099c87a59b08dda2ed3bd95956832 (committed 2026-09-05T11:10:12+03:00), pushed 2026-09-05T08:11:41Z

Browse files
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ __pycache__/
2
+ *.pyc
3
+ .DS_Store
MIRROR_PROVENANCE.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Mirror provenance
2
+
3
+ This is not part of the archived repository -- it is written fresh on every push and carries no `.sha256` seal, deliberately. Every *other* file in this mirror is a byte-exact `git archive` of one GitHub commit, sealed at that commit; this file is the one exception, so that the file describing the copy never has to also be true about the copy's own past.
4
+
5
+ - **Source commit:** [`8f96bd001f6099c87a59b08dda2ed3bd95956832`](https://github.com/soulinpsyabstract/eilatsecure/commit/8f96bd001f6099c87a59b08dda2ed3bd95956832)
6
+ - **Committed upstream:** 2026-09-05T11:10:12+03:00
7
+ - **Pushed to this mirror:** 2026-09-05T08:11:41Z
8
+ - **Method:** `git archive` of that exact commit, uploaded as one atomic commit via `upload_folder(delete_patterns=["*"])`.
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EilatSecure
2
+
3
+ Passive, B2B website-security scanning for local Eilat businesses — a
4
+ separate brand from SIPA OS, run by the same team.
5
+
6
+ **Live site:** https://web-secure.sipa-os.org
7
+
8
+ ## What this is
9
+
10
+ EilatSecure gives small local businesses (the kind that had a website built
11
+ by a freelancer or a page builder years ago and never touched it again) a
12
+ plain-language, non-intrusive check of how exposed their site actually is,
13
+ plus a paid path to a deeper human-reviewed audit and — as a cross-sell —
14
+ website/AI-agent build services from the same team under the `web.sipa-os.org`
15
+ brand.
16
+
17
+ It is intentionally **passive**. Every request the scanner makes is one a
18
+ normal browser, visitor, or search-engine crawler would also make. It does
19
+ **not**:
20
+
21
+ - attempt logins or credential guessing
22
+ - send injection payloads (SQLi, XSS, etc.)
23
+ - brute-force anything
24
+ - port-scan beyond the default web ports a browser would hit
25
+
26
+ This is a read-only, GET-only reconnaissance tool, not a penetration tester.
27
+
28
+ ## Services (as shown on the landing page)
29
+
30
+ | Service | Price | What you get |
31
+ |---|---|---|
32
+ | Free scan | free | Instant automated pass/fail report from the passive scanner below |
33
+ | Full audit | from ₪2,000 | A human goes through what the free scan found, plus what it can't see (outdated CMS versions, weak passwords, exposed admin panels) — clear report in Hebrew within 48 hours |
34
+ | Website build (cross-sell, `web.sipa-os.org`) | from ₪1,200 | A real landing page, live within 24 hours — WhatsApp button, Google Maps, HTTPS, three rounds of edits included |
35
+ | AI WhatsApp agent (cross-sell, `web.sipa-os.org`) | from ₪4,000 | AI WhatsApp agent for the business |
36
+
37
+ ## What the passive scanner actually checks
38
+
39
+ Implemented in `functions/api/scan.js` (a Cloudflare Pages Function backing
40
+ `POST /api/scan`). Given a URL, it checks:
41
+
42
+ 1. **HTTPS reachability** — can the site be reached over HTTPS at all
43
+ 2. **HTTP → HTTPS redirect** — does plain `http://` force an upgrade to
44
+ `https://`, or can traffic still go over cleartext
45
+ 3. **Six security response headers** — presence/absence of:
46
+ - `Strict-Transport-Security` (HSTS)
47
+ - `Content-Security-Policy`
48
+ - `X-Frame-Options`
49
+ - `X-Content-Type-Options`
50
+ - `Referrer-Policy`
51
+ - `Permissions-Policy`
52
+ 4. **Cookie flags** — whether `Set-Cookie` headers carry `Secure` and
53
+ `HttpOnly`
54
+ 5. **Technology/version disclosure** — `Server` and `X-Powered-By` headers
55
+ leaking stack/version info
56
+ 6. **Mixed content** — `http://` resources referenced from an `https://` page
57
+ 7. **Exposed sensitive paths** — a fixed list of conventionally-public-if-
58
+ present paths is probed with plain GETs: `/.env`, `/.git/config`,
59
+ `/.git/HEAD`, `/wp-config.php.bak`, `/config.json`, `/.DS_Store`,
60
+ `/backup.zip`, `/phpinfo.php`
61
+ 8. **TLS** — reachability/handshake over HTTPS (certificate expiry is checked
62
+ separately in `scan_own_domains.py`, see below)
63
+
64
+ The scan returns a JSON payload: `{ target, scannedAt, grade, findings[] }`,
65
+ where `grade` starts at 100 and is docked per finding by severity.
66
+
67
+ ### What it does NOT do
68
+
69
+ No logins, no injection testing, no brute-force, no port scanning. If a
70
+ prospective customer needs that, it is out of scope for this tool and would
71
+ require an explicit, authorized penetration test — not something a passive
72
+ web scanner should ever attempt without a signed engagement.
73
+
74
+ ## `scan_own_domains.py`
75
+
76
+ A separate, **not customer-facing** script. It runs the same category of
77
+ passive checks (headers, cookie flags, sensitive paths, forced HTTPS
78
+ redirect, plus TLS certificate expiry) against a fixed list of the
79
+ architect's own 14 SIPA OS domains, for self-monitoring rather than as part
80
+ of the EilatSecure product. It is currently run **manually** — it is not yet
81
+ wired into a cron schedule or CI job.
82
+
83
+ ## Deploying
84
+
85
+ The site is a Cloudflare Pages project (`eilatsecure`) already deployed and
86
+ attached to its custom domain — no new infrastructure should be created for
87
+ routine deploys. To ship a change:
88
+
89
+ ```bash
90
+ export CLOUDFLARE_API_TOKEN="$CLOUDFLARE_WORKERS_TOKEN"
91
+ npx wrangler pages deploy . --project-name=eilatsecure --branch=main
92
+ ```
93
+
94
+ ## Domains — read this before linking anywhere
95
+
96
+ - **`web-secure.sipa-os.org`** is the current, working, canonical domain —
97
+ a Cloudflare Pages custom domain on the `sipa-os.org` zone. This is the
98
+ only URL that should ever be presented as "the live site."
99
+ - **`eilatsecure.com`** is a separate domain, registered via IONOS, that is
100
+ currently **non-functional** — it is stuck mid-transfer between IONOS and
101
+ Cloudflare and WHOIS currently returns "no match." It is **not** live and
102
+ should not be linked to or treated as reachable anywhere until the
103
+ transfer completes.
104
+
105
+ ## Repository layout
106
+
107
+ ```
108
+ index.html landing page (free-scan form + pricing)
109
+ functions/api/scan.js Cloudflare Pages Function — the scan API
110
+ scan_own_domains.py self-monitoring script (not customer-facing)
111
+ REMEDIATION/G15_REMEDIATION_LOG__2026-08-16.md historical one-time remediation log
112
+ *.sha256 / *.TAG integrity seals (see below)
113
+ ```
114
+
115
+ ## Integrity seals
116
+
117
+ Every content file in this repo is sealed with a `<file>.sha256` and
118
+ `<file>.TAG` sidecar pair, produced by the shared `reseal.py` tool used
119
+ across SIPA OS projects. A `.TAG` records `FILE`, `SHA256`, `SIZE`, `DEVICE`,
120
+ and `TS` (plus any extra fields already present, which reseal preserves
121
+ rather than dropping). Reseal any content file you change:
122
+
123
+ ```bash
124
+ python3 /path/to/sipa-os-governance/scripts/reseal.py <path> [DEVICE]
125
+ ```
126
+
127
+ This README is sealed too — check `README.md.sha256` / `README.md.TAG`
128
+ alongside it.
README.md.TAG ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FILE=README.md
2
+ SHA256=57e551fb2d1aac0c74d3dc3c66d1b2e5dd1b408249f49ab6e44bb53377f29a95
3
+ SIZE=5745
4
+ DEVICE=SERVER
5
+ TS=2026-09-05__11-09-54
README.md.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 57e551fb2d1aac0c74d3dc3c66d1b2e5dd1b408249f49ab6e44bb53377f29a95 README.md
REMEDIATION/G15_REMEDIATION_LOG__2026-08-16.md ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # G15 Vulnerability Gate — Remediation Log
2
+ **Дата начала:** 2026-08-15 вечер · **Продолжение:** 2026-08-16 утро
3
+ **Архитектор:** Aelin AquaSoul · **Исполнитель:** Claude
4
+
5
+ ## Контекст
6
+
7
+ G15 ("vulnerability gate", EXP-023 Binary Gate) вписан в `MASTER_GUARDIAN.sh`
8
+ (cron `5 0 * * *`, раз в сутки) — запускает `scan_own_domains.py` (пассивный
9
+ GET-only сканер EilatSecure) и жёстко ставит `OVERALL=CRITICAL` при любой
10
+ находке, без права модели продолжать (hard stop, семантика из EXP-023).
11
+
12
+ Первый ночной прогон (2026-08-16 00:05 IDT) нашёл реальные проблемы на
13
+ 13 из 14 доменов. План: чинить группами по типу деплоя, каждую находку
14
+ проверять живьём (headers + headless-браузер на console-ошибки CSP),
15
+ не полагаться на "wrangler сказал Success".
16
+
17
+ ## Инфраструктура сканера
18
+
19
+ - `/home/sipa/apps/eilatsecure/scan_own_domains.py` — читает 13 доменов
20
+ (был 14, убрала `api.soulinpsyabstract.com` — не её домен, подтверждено
21
+ оператором, NS на AWS Route53 не Cloudflare)
22
+ - **Найден и починен реальный баг** до первого прогона: `urlopen()` в Python
23
+ молча следует за редиректом → проверка HTTP→HTTPS всегда видела финальный
24
+ 200 вместо самого 301, ложно репортила "нет редиректа" даже там где он
25
+ реально работал. Добавлена `fetch_no_redirect()` (свой opener без
26
+ auto-follow). Без этого фикса G15 бы каждый день кричал ложную тревогу.
27
+
28
+ ## Готово
29
+
30
+ ### critical (2/2 закрыто)
31
+ | Домен | Проблема | Фикс |
32
+ |---|---|---|
33
+ | `shell.sipa-os.org` | DNS-записи не было вообще (Worker route настроен, но без DNS не резолвился) | Добавлена placeholder `A 192.0.2.1 proxied=true` в Cloudflare — тот же паттерн что у `terminal.sipa-os.org` |
34
+ | `api.soulinpsyabstract.com` | Не её домен | Убрана из списка целей сканера |
35
+
36
+ ### high (1/1 закрыто)
37
+ | Домен | Проблема | Фикс |
38
+ |---|---|---|
39
+ | `sipa-os.online` | Нет форс-HTTPS-редиректа | Найден live-код воркера `sipa-os-portal` через CF API (локальной копии не было вообще), добавлен редирект + все 6 security-заголовков. Сохранён локально: `/home/sipa/apps/sipa-os-portal/worker.js` |
40
+
41
+ ### medium/low — группа 1: простые Workers (4/4 закрыто)
42
+ Паттерн: свой `worker.js`/`_headers`, легко добавить заголовки, проверено
43
+ headless-браузером на реальные CSP-ошибки в консоли (не только curl заголовков).
44
+
45
+ | Домен | Worker | Что нашли живым тестом |
46
+ |---|---|---|
47
+ | `deck.sipa-os.org` | `sipa-deck` (`_headers` файл, CF Pages assets) | Уже был частичный `_headers` от 13 августа — дополнила CSP+Permissions-Policy |
48
+ | `community.sipa-os.org` | `sipa-community` | CSP сломал 2 реальные вещи: Google Fonts, авто-инжектируемый Cloudflare Insights beacon — обе пойманы live, не угаданы |
49
+ | `app.soulinpsyabstract.store` | `soul-protocol-mind` (TanStack Start) | Пересобран `vite build`, задеплоен, 0 ошибок сразу |
50
+ | `games.sipa-os.org` | `sipa-games-app` | CSP сломал 3 вещи: ElevenLabs widget, CF Insights, Google Translate widget (несколько googleapis-поддоменов) — все пойманы и починены итеративно |
51
+
52
+ **Методология для каждого фикса:**
53
+ 1. Найти реальный источник (локальный репо или live-код через CF API, если локального нет)
54
+ 2. grep исходников/бандла на внешние origin'ы (scripts/fonts/iframe/connect)
55
+ 3. Написать CSP на основе найденного, не угадывая
56
+ 4. Задеплоить
57
+ 5. Проверить заголовки curl'ом
58
+ 6. Проверить headless-браузером (Playwright) на реальные console-ошибки CSP — это поймало то, что grep пропустил (CF Insights beacon и Google Fonts грузятся не из JS-бандла, а автоматически/из HTML)
59
+ 7. Если есть ошибки — расширить CSP по конкретной ошибке, передеплоить, перепроверить
60
+ 8. sha256 + TAG на изменённый файл
61
+
62
+ ### Группа 2: SPA/TanStack-Workers (3/3 закрыто) ✅
63
+ Все три — TanStack Start приложения с `src/server.ts`/`worker.ts` (`run_worker_first: true`
64
+ в wrangler.jsonc), не простой worker.js. Grep бандла оказался ненадёжен даже
65
+ больше чем в группе 1 — реальный маркетинговый стек виден только живым тестом.
66
+
67
+ | Домен | Worker | Что нашли живым тестом |
68
+ |---|---|---|
69
+ | `focus.sipa-os.org` | `sipa-adhd-focus` | Самый сложный: 4 итерации деплоя. Реальный стек — Auth0, Supabase, ElevenLabs, Google Pay, Calendly, Umami (`gateway.umami.is`, не `cloud.umami.is`), Google Translate, GTM, Google Analytics (`analytics.google.com`/`stats.g.doubleclick.net`), Amplitude (`api2.amplitude.com`, не `api.amplitude.com`), Apollo.io tracker (script на `assets.apollo.io`, beacon на `aplo-evnt.com` — разные хосты!), Intercom, YouTube. `Permissions-Policy: payment=(self)` — у этого домена реальный Google Pay |
70
+ | `ai.sipa-os.org` | `sipa-ai-app` | CSP взят как надмножество от `focus` (тот же "SIPA OS" стек) — сработало с первого раза, 0 нарушений |
71
+ | `neuropower.sipa-os.org` | `sipa-neuropower-app` | CSP от `focus` как база + 2 итерации: нашли уникальные для этого домена интеграции — собственный `tts.sipa-os.org` виджет и realtime-бэкенд Convex (`wss://focused-anaconda-100.convex.cloud`) |
72
+
73
+ **Ключевой урок группы 2:** три сиблинг-приложения одной экосистемы разделяют
74
+ общий маркетинговый/аналитический стек (Auth0, ElevenLabs, GTM, Amplitude,
75
+ Apollo.io, Intercom, Umami, Google Translate, YouTube) — после первого
76
+ полного цикла на `focus` остальные чинились быстрее через "CSP-надмножество +
77
+ живая проверка", а не с нуля.
78
+
79
+ ### Группа 3: CF Pages (1/1 закрыто) ✅
80
+ | Домен | Проект | Что нашли |
81
+ |---|---|---|
82
+ | `pixels.sipa-os.org` | `sipa-million-pixels` | Простая статика (canvas-игра "купи пиксель"), `_headers` не было вообще — создан с нуля. API (`/api/pixels`, `/api/checkout`, `/api/confirm`) same-origin через Pages Functions. 0 CSP-ошибок с первого раза |
83
+
84
+ ### Группа 4: Cloudflare Tunnel origin (1/2 закрыто)
85
+ Оба домена шли не через тот же tunnel что в остальном каноне
86
+ (`config.yml` на сервере), а через отдельный **третий, ранее незадокументированный
87
+ tunnel** `sipa-syntax-status` (id `a8d3685a-166f-4e54-bf67-67f33da7e5d7`),
88
+ конфиг которого живёт целиком в облаке Cloudflare (token-режим, не в
89
+ локальном `config.yml`). Достала ingress-правила через `CF API
90
+ /cfd_tunnel/{id}/configurations`:
91
+ - `syntax.sipa-os.org` → `localhost:5004`
92
+ - `status.sipa-os.org` → `localhost:3001`
93
+ - `neurocoach.sipa-os.org` → `localhost:9926` (бонус-находка, не в scope сегодня)
94
+
95
+ | Домен | Что за приложение | Статус |
96
+ |---|---|---|
97
+ | `syntax.sipa-os.org` | Её собственный FastAPI (`/home/sipa/apps/sipa-syntax-api/api.py`, systemd user service `sipa-syntax-api.service`) | ✅ Готово — добавлен `@app.middleware("http")` с заголовками+CSP прямо в код, рестарт сервиса, живой тест 0 ошибок. Реальная находка: дашборд ходит на **другой** домен `sipa-syntax-api.soulinpsy.info/api/dashboard`, не на себя |
98
+ | `status.sipa-os.org` | **Стороннее ПО** — Docker-контейнер `louislam/uptime-kuma:2` (порт 3001), не её код | ⏸️ Требует решения архитектора — см. ниже |
99
+
100
+ **Почему `status.sipa-os.org` не чиню как остальные:** это готовый opensource
101
+ продукт (Uptime Kuma), не её исходники — нельзя просто дописать заголовки
102
+ в код. У самого Uptime Kuma нет настройки для CSP/security headers через
103
+ переменные окружения. Варианты:
104
+ 1. **Поставить nginx-прокси** между Cloudflare Tunnel и контейнером (сейчас
105
+ tunnel ingress идёт прямо на `localhost:3001`), прокси добавляет заголовки.
106
+ Требует правки ingress-конфига через CF API (`PUT /cfd_tunnel/{id}/configurations`,
107
+ поме��ять `service` на новый порт) — трогает живой мониторинг аптайма,
108
+ которым она реально пользуется.
109
+ 2. **Оставить как есть** — Uptime Kuma отдаёт "X-Powered-By: Express" и без
110
+ security-заголовков, но это осознанное ограничение стороннего ПО, не дыра
111
+ в собственном коде.
112
+ 3. Проверить, нет ли у более новой версии Uptime Kuma (образ `:2`) скрытой
113
+ настройки для reverse-proxy заголовков — не проверено.
114
+
115
+ **Решение оператора:** "кума вообще-то на сервере, ты и ставил" — то есть это
116
+ не чужая инфраструктура, а её собственный сервис (перенесён на SERVER после
117
+ смерти Hermes VPS 63.250.59.83, см. SESSIONS_LOG строка 4177: раньше перед
118
+ Kuma там ЖЕ стоял nginx с заголовками, просто после переноса на новый сервер
119
+ контейнер подняли напрямую без прокси). Восстановила тот же паттерн:
120
+
121
+ 1. Nginx уже стоял на сервере (использовался для других доменов) — написала
122
+ новый vhost `/etc/nginx/sites-available/sipa-status`, `proxy_pass` на
123
+ `127.0.0.1:3001` + WebSocket upgrade (Kuma использует socket.io для live-
124
+ обновлений) + все 6 security-заголовков через `add_header`
125
+ 2. Нет passwordless sudo для записи в `/etc/nginx/` — записала конфиг во
126
+ временный путь, дала оператору готовую команду на копипаст (`sudo cp ... &&
127
+ sudo nginx -t && sudo systemctl reload nginx`), выполнено оператором
128
+ 3. Проверила локально (`curl -H "Host: status.sipa-os.org" http://127.0.0.1:80/`)
129
+ ДО переключения тоннеля — заголовки на месте
130
+ 4. Переключила Cloudflare Tunnel ingress (`PUT /cfd_tunnel/{id}/configurations`)
131
+ с `http://localhost:3001` (напрямую в контейнер) на `http://localhost:80`
132
+ (через новый nginx-vhost)
133
+ 5. Живой тест поймал реальный CSP-промах (тот же CF Insights beacon, что и
134
+ везде) — дописала `static.cloudflareinsights.com`, оператор применил
135
+ обновлённый конфиг тем же способом
136
+ 6. Финальная проверка headless-браузером: **0 CSP-ошибок**
137
+
138
+ Конфиг сохранён: `/home/sipa/PROJECT/PAYTON_HUBS/HUB_CODE_FILE/nginx_configs/sipa-status`
139
+ (+ sha256/TAG).
140
+
141
+ **Побочная находка, вне scope сегодня:** Kuma редиректит `/` → `/setup-database`
142
+ — похоже, база данных контейнера не проинициализирована (возможно, потеряна
143
+ при переносе с упавшего VPS). Реальные мониторы на публичной странице статуса,
144
+ возможно, сейчас не отображаются как надо. Не трогала — отдельная задача,
145
+ не связана с заголовками.
146
+
147
+ ## ФИНАЛЬНАЯ ПРОВЕРКА (2026-08-16 05:54 UTC)
148
+
149
+ ```
150
+ EilatSecure self-scan: 13 targets, clean
151
+ ```
152
+
153
+ Полный повторный прогон `scan_own_domains.py` — **0 находок на всех 13 доменах**.
154
+
155
+ **Два хвоста, найденные именно этим финальным прогоном (не были в исходном
156
+ scope, потому что раньше не проходили дальше critical-уровня):**
157
+ - `shell.sipa-os.org` — воркер `sipa-shell-app` никогда не получал реального
158
+ трафика до сегодняшнего DNS-фикса, поэтому его medium/low находки (CSP,
159
+ Permissions-Policy и т.д.) не всплывали раньше. Дочинила отдельно — CSP
160
+ оказался самым насыщенным из всех (Auth0, tts.sipa-os.org, PostHog
161
+ (`edge.soulinpsy.info`), Umami, GTM, Sentry, Apollo.io, accessibility-виджет
162
+ acsbapp.com) — 3 итерации живого теста.
163
+ - `status.sipa-os.org` — `X-Powered-By: Express` от Uptime Kuma скрыт через
164
+ `proxy_hide_header X-Powered-By;` в том же nginx-конфиге.
165
+
166
+ ## Продолжение — LoRA-обучение vulnerability-gate специалиста (2026-08-16, позже)
167
+
168
+ Оператор подняла Brev GPU (L40S 48GB, massedcompute, $1.06/ч, instance
169
+ `experienced-aquamarine-scallop`). Датасет из 6 групп (1196 строк) конвертирован
170
+ в SFT-форм��т (`prep_vuln_dataset.py` → `vuln_gate_sft_v1.jsonl`, только positive-
171
+ поведение, тот же принцип что у honesty specialist-cd — модель никогда не видит
172
+ негативный/эскалационный текст как training target). Обучающий скрипт
173
+ `train_vuln_specialist_qwen25.py` — Qwen2.5-7B-Instruct, LoRA r=16, тот же паттерн
174
+ что у остальных specialist-cd моделей серии.
175
+
176
+ Доступ к инстансу — `brev exec`/`brev copy` с самого SERVER (brev CLI уже
177
+ авторизован тем же пользователем `sipa`, отдельный SSH-ключ не понадобился).
178
+ Venv `.venv` пришёл пустым (без pip) — пересоздан системным `python3 -m venv`
179
+ после `sudo apt-get install python3.10-venv`. Установка torch+CUDA+transformers/
180
+ peft/trl/datasets/accelerate/bitsandbytes запущена в фоне.
181
+
182
+ ## ИТОГ: 13 из 13 доменов закрыто ✅
183
+
184
+ | Категория | Домены | Статус |
185
+ |---|---|---|
186
+ | Critical | `shell.sipa-os.org`, `api.soulinpsyabstract.com` | ✅ 2/2 |
187
+ | High | `sipa-os.online` | ✅ 1/1 |
188
+ | Группа 1 (простые Workers) | `deck`, `community`, `app.soulinpsyabstract.store`, `games` | ✅ 4/4 |
189
+ | Группа 2 (SPA/TanStack) | `focus`, `ai`, `neuropower` | ✅ 3/3 |
190
+ | Группа 3 (CF Pages) | `pixels` | ✅ 1/1 |
191
+ | Группа 4 (Cloudflare Tunnel origin) | `syntax`, `status` | ✅ 2/2 |
192
+
193
+ Каждый фикс проверен живьём: `curl` на заголовки + headless-браузер (Playwright)
194
+ на реальные CSP console-ошибки — не просто "wrangler/nginx сказал Success".
195
+ Найдено и починено попутно: баг в самом сканере (ложноположительный HTTPS-redirect
196
+ finding), отсутствующая DNS-запись для `shell`, третий незадокументированный
197
+ Cloudflare Tunnel (`sipa-syntax-status`), потерянный nginx-слой перед Uptime Kuma.
REMEDIATION/G15_REMEDIATION_LOG__2026-08-16.md.TAG ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FILE=G15_REMEDIATION_LOG__2026-08-16.md
2
+ SHA256=9ff1402ae8f3597f94c69bbd550625c37e7884e2270311570eb676045084d17b
3
+ SIZE=15992
4
+ DEVICE=SERVER
5
+ TS=2026-08-16__08-55-44
6
+ FIXATED_BY=Claude
7
+ NOTE=FINAL_scan_clean_13_of_13_all_medium_low_included_shell_and_status_tail_fixes
REMEDIATION/G15_REMEDIATION_LOG__2026-08-16.md.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 9ff1402ae8f3597f94c69bbd550625c37e7884e2270311570eb676045084d17b G15_REMEDIATION_LOG__2026-08-16.md
functions/api/scan.js ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Passive, non-intrusive website security scan.
2
+ // Only requests things a normal visitor/browser/search-engine crawler would
3
+ // request (the homepage, and a short list of paths that are conventionally
4
+ // public if present). No auth bypass, no injection payloads, no brute force,
5
+ // no port scanning beyond default web ports. Read-only GET requests only.
6
+
7
+ const SENSITIVE_PATHS = [
8
+ "/.env",
9
+ "/.git/config",
10
+ "/.git/HEAD",
11
+ "/wp-config.php.bak",
12
+ "/config.json",
13
+ "/.DS_Store",
14
+ "/backup.zip",
15
+ "/phpinfo.php",
16
+ ];
17
+
18
+ const SECURITY_HEADERS = [
19
+ { key: "strict-transport-security", label: "HSTS (Strict-Transport-Security)" },
20
+ { key: "content-security-policy", label: "Content-Security-Policy" },
21
+ { key: "x-frame-options", label: "X-Frame-Options" },
22
+ { key: "x-content-type-options", label: "X-Content-Type-Options" },
23
+ { key: "referrer-policy", label: "Referrer-Policy" },
24
+ { key: "permissions-policy", label: "Permissions-Policy" },
25
+ ];
26
+
27
+ function normalizeUrl(input) {
28
+ let url = input.trim();
29
+ if (!/^https?:\/\//i.test(url)) url = "https://" + url;
30
+ return new URL(url);
31
+ }
32
+
33
+ async function safeFetch(url, opts = {}) {
34
+ try {
35
+ const res = await fetch(url, {
36
+ redirect: "manual",
37
+ signal: AbortSignal.timeout(5000),
38
+ headers: { "User-Agent": "EilatSecure-Scanner/1.0 (+https://web-secure.sipa-os.org)" },
39
+ ...opts,
40
+ });
41
+ return { ok: true, res };
42
+ } catch (err) {
43
+ return { ok: false, error: err instanceof Error ? err.message : "fetch failed" };
44
+ }
45
+ }
46
+
47
+ export async function onRequestPost(context) {
48
+ const { request } = context;
49
+ let body;
50
+ try {
51
+ body = await request.json();
52
+ } catch {
53
+ return Response.json({ error: "bad request" }, { status: 400 });
54
+ }
55
+
56
+ const target = String(body.url ?? "").trim();
57
+ if (!target) return Response.json({ error: "url required" }, { status: 400 });
58
+
59
+ let parsed;
60
+ try {
61
+ parsed = normalizeUrl(target);
62
+ } catch {
63
+ return Response.json({ error: "invalid url" }, { status: 400 });
64
+ }
65
+
66
+ const findings = [];
67
+ let grade = 100;
68
+
69
+ // 1. HTTPS check
70
+ const httpsUrl = new URL(parsed);
71
+ httpsUrl.protocol = "https:";
72
+ const httpsResult = await safeFetch(httpsUrl.toString());
73
+
74
+ if (!httpsResult.ok) {
75
+ findings.push({
76
+ severity: "critical",
77
+ title: "Site unreachable over HTTPS",
78
+ detail: httpsResult.error,
79
+ });
80
+ grade -= 40;
81
+ } else {
82
+ const res = httpsResult.res;
83
+
84
+ // Follow one redirect hop to get final headers (still same-origin scan only)
85
+ let finalRes = res;
86
+ if (res.status >= 300 && res.status < 400 && res.headers.get("location")) {
87
+ const loc = new URL(res.headers.get("location"), httpsUrl);
88
+ const hop = await safeFetch(loc.toString());
89
+ if (hop.ok) finalRes = hop.res;
90
+ }
91
+
92
+ // 2. Security headers
93
+ for (const h of SECURITY_HEADERS) {
94
+ if (!finalRes.headers.get(h.key)) {
95
+ findings.push({
96
+ severity: h.key === "content-security-policy" ? "medium" : "low",
97
+ title: `Missing ${h.label}`,
98
+ detail: `Response does not set the ${h.label} header — reduces defense-in-depth against clickjacking/XSS/downgrade attacks.`,
99
+ });
100
+ grade -= h.key === "content-security-policy" ? 8 : 4;
101
+ }
102
+ }
103
+
104
+ // 3. Cookie flags
105
+ const setCookie = finalRes.headers.get("set-cookie");
106
+ if (setCookie) {
107
+ const lower = setCookie.toLowerCase();
108
+ if (!lower.includes("secure")) {
109
+ findings.push({ severity: "medium", title: "Cookie missing Secure flag", detail: "A session/tracking cookie is set without the Secure flag — it can be sent over unencrypted HTTP." });
110
+ grade -= 6;
111
+ }
112
+ if (!lower.includes("httponly")) {
113
+ findings.push({ severity: "medium", title: "Cookie missing HttpOnly flag", detail: "A cookie is readable by JavaScript, increasing XSS impact if the site has any script-injection bug." });
114
+ grade -= 6;
115
+ }
116
+ }
117
+
118
+ // 4. Server / version disclosure
119
+ const serverHeader = finalRes.headers.get("server");
120
+ const poweredBy = finalRes.headers.get("x-powered-by");
121
+ if (poweredBy) {
122
+ findings.push({ severity: "low", title: "Technology disclosure via X-Powered-By", detail: `Header reveals: ${poweredBy}. Makes it easier to target known vulnerabilities for that stack/version.` });
123
+ grade -= 3;
124
+ }
125
+ if (serverHeader && /\d/.test(serverHeader)) {
126
+ findings.push({ severity: "low", title: "Server version disclosed", detail: `Server header reveals: ${serverHeader}.` });
127
+ grade -= 3;
128
+ }
129
+
130
+ // 5. Mixed content (cheap check on homepage HTML only)
131
+ try {
132
+ const html = await finalRes.clone().text();
133
+ if (/src=["']http:\/\//i.test(html) || /href=["']http:\/\/(?!.*\.w3\.org)/i.test(html)) {
134
+ findings.push({ severity: "medium", title: "Possible mixed content", detail: "Page references http:// resources while served over https:// — browsers may block or warn." });
135
+ grade -= 5;
136
+ }
137
+ } catch {}
138
+ }
139
+
140
+ // 6. HTTP → HTTPS redirect (run in parallel with path probes below)
141
+ const httpUrl = new URL(parsed);
142
+ httpUrl.protocol = "http:";
143
+ const httpResultPromise = safeFetch(httpUrl.toString());
144
+
145
+ // 7. Sensitive path exposure — run all probes concurrently, capped overall.
146
+ const pathProbes = SENSITIVE_PATHS.map((path) => {
147
+ const probeUrl = new URL(path, httpsUrl);
148
+ return safeFetch(probeUrl.toString()).then((probe) => ({ path, probe }));
149
+ });
150
+
151
+ const [httpResult, pathResults] = await Promise.all([
152
+ httpResultPromise,
153
+ Promise.all(pathProbes),
154
+ ]);
155
+
156
+ if (httpResult.ok) {
157
+ const status = httpResult.res.status;
158
+ const loc = httpResult.res.headers.get("location") || "";
159
+ const redirectsToHttps = status >= 300 && status < 400 && loc.startsWith("https://");
160
+ if (!redirectsToHttps) {
161
+ findings.push({ severity: "high", title: "No forced HTTPS redirect", detail: "Visiting the plain http:// version does not redirect to https:// — traffic can be intercepted." });
162
+ grade -= 12;
163
+ }
164
+ }
165
+
166
+ const exposedPaths = [];
167
+ for (const { path, probe } of pathResults) {
168
+ if (probe.ok && probe.res.status === 200) {
169
+ const ct = probe.res.headers.get("content-type") || "";
170
+ if (!ct.includes("text/html")) {
171
+ exposedPaths.push(path);
172
+ }
173
+ }
174
+ }
175
+ if (exposedPaths.length) {
176
+ findings.push({
177
+ severity: "critical",
178
+ title: "Publicly exposed sensitive file(s)",
179
+ detail: `Found accessible: ${exposedPaths.join(", ")}. These commonly leak credentials or source code.`,
180
+ });
181
+ grade -= 30;
182
+ }
183
+
184
+ grade = Math.max(0, Math.min(100, Math.round(grade)));
185
+ findings.sort((a, b) => {
186
+ const order = { critical: 0, high: 1, medium: 2, low: 3 };
187
+ return order[a.severity] - order[b.severity];
188
+ });
189
+
190
+ return Response.json({
191
+ target: httpsUrl.hostname,
192
+ scannedAt: new Date().toISOString(),
193
+ grade,
194
+ findings,
195
+ });
196
+ }
functions/api/scan.js.TAG ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FILE=scan.js
2
+ SHA256=5c22b229da24d1ca2ee8bb755ee7bc3dcd7f4174d384119fcd6e58957df7b018
3
+ SIZE=6886
4
+ DEVICE=SERVER
5
+ TS=2026-09-05__11-09-20
functions/api/scan.js.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 5c22b229da24d1ca2ee8bb755ee7bc3dcd7f4174d384119fcd6e58957df7b018 scan.js
index.html ADDED
@@ -0,0 +1,407 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>EilatSecure — Free Website Security Check for Eilat Businesses</title>
7
+ <meta name="description" content="Free, instant, passive security scan for your business website. Find exposed files, missing HTTPS, and misconfigurations before someone else does." />
8
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🛡</text></svg>" />
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
12
+ <style>
13
+ :root {
14
+ --bg: #0b1a1f;
15
+ --bg-elevated: #0f2229;
16
+ --bg-card: #122832;
17
+ --border: rgba(180, 210, 210, 0.12);
18
+ --text: #eaf3f2;
19
+ --text-dim: #a9c2c1;
20
+ --text-faint: #6f8f8e;
21
+ --accent: #ff6a4d;
22
+ --accent-soft: rgba(255, 106, 77, 0.12);
23
+ --safe: #4dd0a7;
24
+ --safe-soft: rgba(77, 208, 167, 0.12);
25
+ --warn: #f0b34d;
26
+ --sev-critical: #ff5a5a;
27
+ --sev-high: #ff9a4d;
28
+ --sev-medium: #f0c94d;
29
+ --sev-low: #7fb8c9;
30
+ --font-display: "Space Grotesk", sans-serif;
31
+ --font-body: "IBM Plex Sans", sans-serif;
32
+ --font-mono: "IBM Plex Mono", monospace;
33
+ }
34
+ @media (prefers-color-scheme: light) {
35
+ :root {
36
+ --bg: #f4f8f7;
37
+ --bg-elevated: #ffffff;
38
+ --bg-card: #ffffff;
39
+ --border: rgba(15, 40, 45, 0.1);
40
+ --text: #0e2126;
41
+ --text-dim: #3f5b5c;
42
+ --text-faint: #7a9494;
43
+ --accent-soft: rgba(255, 106, 77, 0.1);
44
+ --safe-soft: rgba(20, 150, 110, 0.1);
45
+ }
46
+ }
47
+ * { box-sizing: border-box; margin: 0; padding: 0; }
48
+ html { scroll-behavior: smooth; }
49
+ body {
50
+ background: var(--bg);
51
+ color: var(--text);
52
+ font-family: var(--font-body);
53
+ line-height: 1.55;
54
+ -webkit-font-smoothing: antialiased;
55
+ overflow-x: hidden;
56
+ }
57
+ body::before {
58
+ content: "";
59
+ position: fixed;
60
+ inset: 0;
61
+ background:
62
+ radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,106,77,0.10), transparent 60%),
63
+ radial-gradient(ellipse 700px 500px at 100% 20%, rgba(77,208,167,0.08), transparent 60%);
64
+ pointer-events: none;
65
+ z-index: 0;
66
+ }
67
+ .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
68
+ a { color: inherit; }
69
+
70
+ nav {
71
+ display: flex; align-items: center; justify-content: space-between;
72
+ padding: 22px 0;
73
+ }
74
+ .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
75
+ .logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, var(--accent), #b8412b); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
76
+ nav .links { display: flex; gap: 28px; font-size: 0.88rem; color: var(--text-dim); }
77
+ nav .links a:hover { color: var(--text); }
78
+ .cta-btn {
79
+ display: inline-flex; align-items: center; gap: 8px;
80
+ background: var(--accent); color: #17100d;
81
+ font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
82
+ padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer;
83
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
84
+ text-decoration: none;
85
+ }
86
+ .cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,106,77,0.35); }
87
+ .cta-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
88
+
89
+ header.hero { padding: 64px 0 40px; text-align: center; }
90
+ .eyebrow {
91
+ display: inline-flex; align-items: center; gap: 8px;
92
+ font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
93
+ color: var(--safe); background: var(--safe-soft); border: 1px solid rgba(77,208,167,0.25);
94
+ padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
95
+ }
96
+ h1 {
97
+ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
98
+ font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.08; text-wrap: balance;
99
+ max-width: 820px; margin: 0 auto 20px;
100
+ }
101
+ h1 em { font-style: normal; color: var(--accent); }
102
+ .sub { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin: 0 auto 40px; text-wrap: balance; }
103
+
104
+ .scan-box {
105
+ max-width: 620px; margin: 0 auto; background: var(--bg-card);
106
+ border: 1px solid var(--border); border-radius: 18px; padding: 8px;
107
+ display: flex; gap: 8px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
108
+ }
109
+ .scan-box input {
110
+ flex: 1; background: transparent; border: none; outline: none;
111
+ color: var(--text); font-family: var(--font-mono); font-size: 0.95rem;
112
+ padding: 14px 16px;
113
+ }
114
+ .scan-box input::placeholder { color: var(--text-faint); }
115
+ .scan-box button {
116
+ font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
117
+ background: var(--accent); color: #17100d; border: none; border-radius: 12px;
118
+ padding: 0 22px; cursor: pointer; white-space: nowrap;
119
+ transition: filter 0.15s ease;
120
+ }
121
+ .scan-box button:hover { filter: brightness(1.08); }
122
+ .scan-box button:disabled { opacity: 0.6; cursor: wait; }
123
+ .fine-print { margin-top: 14px; font-size: 0.78rem; color: var(--text-faint); }
124
+ .fine-print a { text-decoration: underline; text-underline-offset: 2px; }
125
+
126
+ #report { max-width: 720px; margin: 40px auto 0; text-align: left; display: none; }
127
+ .report-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
128
+ .report-head {
129
+ display: flex; align-items: center; justify-content: space-between; gap: 16px;
130
+ padding: 22px 24px; border-bottom: 1px solid var(--border);
131
+ }
132
+ .report-head .target { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-dim); word-break: break-all; }
133
+ .grade-pill {
134
+ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
135
+ width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
136
+ flex-shrink: 0;
137
+ }
138
+ .grade-good { background: var(--safe-soft); color: var(--safe); }
139
+ .grade-mid { background: rgba(240,179,77,0.14); color: var(--warn); }
140
+ .grade-bad { background: rgba(255,90,90,0.14); color: var(--sev-critical); }
141
+ .findings-list { padding: 8px; }
142
+ .finding {
143
+ display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px;
144
+ }
145
+ .finding + .finding { margin-top: 2px; }
146
+ .sev-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
147
+ .sev-critical .sev-dot { background: var(--sev-critical); }
148
+ .sev-high .sev-dot { background: var(--sev-high); }
149
+ .sev-medium .sev-dot { background: var(--sev-medium); }
150
+ .sev-low .sev-dot { background: var(--sev-low); }
151
+ .finding-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 3px; }
152
+ .finding-detail { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
153
+ .all-clear { padding: 32px 24px; text-align: center; color: var(--safe); font-family: var(--font-mono); font-size: 0.9rem; }
154
+ .report-footer { padding: 20px 24px; border-top: 1px solid var(--border); text-align: center; }
155
+ .report-footer p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }
156
+ #scan-error { display: none; max-width: 620px; margin: 20px auto 0; color: var(--sev-critical); font-family: var(--font-mono); font-size: 0.85rem; text-align: center; }
157
+
158
+ section { padding: 80px 0; }
159
+ .section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
160
+ .section-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
161
+ h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-wrap: balance; }
162
+ .section-head p { color: var(--text-dim); margin-top: 12px; }
163
+
164
+ .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
165
+ @media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }
166
+ .card {
167
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
168
+ }
169
+ .card .num { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; margin-bottom: 14px; }
170
+ .card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
171
+ .card p { color: var(--text-dim); font-size: 0.9rem; }
172
+
173
+ .checks-section { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
174
+ .checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; max-width: 720px; margin: 0 auto; }
175
+ @media (max-width: 640px) { .checks-grid { grid-template-columns: 1fr; } }
176
+ .check-item { display: flex; align-items: baseline; gap: 10px; font-size: 0.92rem; color: var(--text-dim); padding: 10px 0; border-bottom: 1px dashed var(--border); }
177
+ .check-item::before { content: "◆"; color: var(--safe); font-size: 0.7rem; }
178
+
179
+ .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
180
+ @media (max-width: 780px) { .services-grid { grid-template-columns: 1fr; } }
181
+ .service-card {
182
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
183
+ display: flex; flex-direction: column; gap: 10px;
184
+ }
185
+ .service-card.featured { border-color: var(--accent); }
186
+ .service-card h3 { font-family: var(--font-display); font-size: 1.05rem; }
187
+ .service-price { font-family: var(--font-mono); color: var(--accent); font-size: 1.15rem; font-weight: 700; }
188
+ .service-card p { color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; }
189
+ .service-card .cta-btn.ghost { align-self: flex-start; margin-top: 4px; }
190
+
191
+ .contact-card {
192
+ max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border);
193
+ border-radius: 20px; padding: 44px; text-align: center;
194
+ }
195
+ .contact-card h2 { margin-bottom: 12px; }
196
+ .contact-card p { color: var(--text-dim); margin-bottom: 26px; }
197
+ .contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
198
+
199
+ footer { padding: 40px 0 60px; text-align: center; color: var(--text-faint); font-size: 0.82rem; }
200
+ footer a { text-decoration: underline; text-underline-offset: 2px; }
201
+ </style>
202
+ </head>
203
+ <body>
204
+
205
+ <div class="wrap">
206
+ <nav>
207
+ <div class="logo"><span class="logo-mark">🛡</span> EilatSecure</div>
208
+ <div class="links">
209
+ <a href="#how">How it works</a>
210
+ <a href="#checks">What we check</a>
211
+ <a href="#services">Services</a>
212
+ <a href="#contact">Contact</a>
213
+ </div>
214
+ <a href="#scan" class="cta-btn">Scan my site</a>
215
+ </nav>
216
+ </div>
217
+
218
+ <header class="hero wrap" id="scan">
219
+ <span class="eyebrow">◆ Free · Instant · No signup</span>
220
+ <h1>Is your business website leaking <em>more</em> than you think?</h1>
221
+ <p class="sub">Paste your URL below. In seconds we'll show you exactly what a stranger — or a competitor — can already see about your site's security.</p>
222
+
223
+ <form class="scan-box" id="scan-form">
224
+ <input type="text" id="scan-url" placeholder="yourbusiness.co.il" autocomplete="off" required />
225
+ <button type="submit" id="scan-btn">Scan free →</button>
226
+ </form>
227
+ <p class="fine-print">Passive, read-only check — we never modify or log into your site. See <a href="#how">how it works</a>.</p>
228
+
229
+ <p id="scan-error"></p>
230
+
231
+ <div id="report">
232
+ <div class="report-card">
233
+ <div class="report-head">
234
+ <div>
235
+ <div style="font-size:0.75rem;color:var(--text-faint);font-family:var(--font-mono);margin-bottom:4px;">SCAN RESULT</div>
236
+ <div class="target" id="report-target"></div>
237
+ </div>
238
+ <div class="grade-pill" id="report-grade">—</div>
239
+ </div>
240
+ <div class="findings-list" id="report-findings"></div>
241
+ <div class="report-footer">
242
+ <p>Want these fixed instead of just found? We do that too.</p>
243
+ <a href="#contact" class="cta-btn">Get a fix quote →</a>
244
+ </div>
245
+ </div>
246
+ </div>
247
+ </header>
248
+
249
+ <section id="how">
250
+ <div class="wrap">
251
+ <div class="section-head">
252
+ <div class="section-eyebrow">How it works</div>
253
+ <h2>Three steps, zero risk to your site</h2>
254
+ <p>Everything we do is the same as what a browser or search engine already does when it visits your homepage.</p>
255
+ </div>
256
+ <div class="grid-3">
257
+ <div class="card">
258
+ <div class="num">01</div>
259
+ <h3>You paste your URL</h3>
260
+ <p>No account, no install, nothing added to your site. Just the address you'd give a customer.</p>
261
+ </div>
262
+ <div class="card">
263
+ <div class="num">02</div>
264
+ <h3>We look at what's public</h3>
265
+ <p>HTTPS setup, response headers, cookie flags, and a short list of files that are sometimes accidentally left open to the world.</p>
266
+ </div>
267
+ <div class="card">
268
+ <div class="num">03</div>
269
+ <h3>You get a plain-language report</h3>
270
+ <p>What's wrong, how bad it is, and — if you want — we quote a fix. No obligation either way.</p>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </section>
275
+
276
+ <section class="checks-section" id="checks">
277
+ <div class="wrap">
278
+ <div class="section-head">
279
+ <div class="section-eyebrow">What we check</div>
280
+ <h2>Passive checks only — nothing that could break your site</h2>
281
+ <p>We never attempt logins, injections, or brute force. If it's not something a normal visitor's browser would trigger, we don't do it.</p>
282
+ </div>
283
+ <div class="checks-grid">
284
+ <div class="check-item">Valid HTTPS &amp; forced redirect from HTTP</div>
285
+ <div class="check-item">Security headers (CSP, HSTS, X-Frame-Options…)</div>
286
+ <div class="check-item">Cookie Secure / HttpOnly flags</div>
287
+ <div class="check-item">Server &amp; framework version disclosure</div>
288
+ <div class="check-item">Mixed content on HTTPS pages</div>
289
+ <div class="check-item">Accidentally exposed .env / .git / backups</div>
290
+ </div>
291
+ </div>
292
+ </section>
293
+
294
+ <section id="services">
295
+ <div class="wrap">
296
+ <div class="section-head">
297
+ <div class="section-eyebrow">What we offer</div>
298
+ <h2>Beyond the free scan</h2>
299
+ <p>Part of the same team behind web.sipa-os.org — websites and AI tools for local Eilat businesses.</p>
300
+ </div>
301
+ <div class="services-grid">
302
+ <div class="service-card featured">
303
+ <h3>Full security audit</h3>
304
+ <div class="service-price">from ₪2,000</div>
305
+ <p>A human goes through what the free scan found — plus what it can't see: outdated CMS versions, weak passwords, exposed admin panels. Clear report in Hebrew within 48 hours.</p>
306
+ <a href="mailto:support@sipa-os.org?subject=Full%20security%20audit" class="cta-btn ghost">Ask for a quote</a>
307
+ </div>
308
+ <div class="service-card">
309
+ <h3>Business website</h3>
310
+ <div class="service-price">from ₪1,200</div>
311
+ <p>A real landing page, live within 24 hours — WhatsApp button, Google Maps, HTTPS, three rounds of edits included.</p>
312
+ <a href="https://web.sipa-os.org" class="cta-btn ghost">See web.sipa-os.org</a>
313
+ </div>
314
+ <div class="service-card">
315
+ <h3>AI WhatsApp agent</h3>
316
+ <div class="service-price">from ₪4,000</div>
317
+ <p>Answers customers 24/7, books appointments, in Hebrew, English, or Russian — with monthly upkeep included.</p>
318
+ <a href="https://web.sipa-os.org" class="cta-btn ghost">See web.sipa-os.org</a>
319
+ </div>
320
+ </div>
321
+ </div>
322
+ </section>
323
+
324
+ <section id="contact">
325
+ <div class="wrap">
326
+ <div class="contact-card">
327
+ <h2>Found something scary?</h2>
328
+ <p>We fix what we find — or anything else on your site that's bugging you. Straightforward pricing, no long contracts.</p>
329
+ <div class="contact-actions">
330
+ <a href="mailto:support@sipa-os.org" class="cta-btn">support@sipa-os.org</a>
331
+ <a href="#scan" class="cta-btn ghost">Run another scan</a>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </section>
336
+
337
+ <footer class="wrap">
338
+ <p>EilatSecure — independent website security checks for local businesses. Built with care in Eilat.</p>
339
+ </footer>
340
+
341
+ <script>
342
+ const form = document.getElementById('scan-form');
343
+ const btn = document.getElementById('scan-btn');
344
+ const urlInput = document.getElementById('scan-url');
345
+ const report = document.getElementById('report');
346
+ const errorBox = document.getElementById('scan-error');
347
+ const reportTarget = document.getElementById('report-target');
348
+ const reportGrade = document.getElementById('report-grade');
349
+ const reportFindings = document.getElementById('report-findings');
350
+
351
+ function severityLabel(sev) {
352
+ return { critical: 'Critical', high: 'High', medium: 'Medium', low: 'Low' }[sev] || sev;
353
+ }
354
+
355
+ form.addEventListener('submit', async (e) => {
356
+ e.preventDefault();
357
+ const url = urlInput.value.trim();
358
+ if (!url) return;
359
+
360
+ btn.disabled = true;
361
+ btn.textContent = 'Scanning…';
362
+ errorBox.style.display = 'none';
363
+ report.style.display = 'none';
364
+
365
+ try {
366
+ const res = await fetch('/api/scan', {
367
+ method: 'POST',
368
+ headers: { 'Content-Type': 'application/json' },
369
+ body: JSON.stringify({ url }),
370
+ });
371
+ const data = await res.json();
372
+ if (!res.ok) throw new Error(data.error || 'scan failed');
373
+
374
+ reportTarget.textContent = data.target;
375
+ reportGrade.textContent = data.grade;
376
+ reportGrade.className = 'grade-pill ' + (data.grade >= 80 ? 'grade-good' : data.grade >= 50 ? 'grade-mid' : 'grade-bad');
377
+
378
+ reportFindings.innerHTML = '';
379
+ if (!data.findings.length) {
380
+ reportFindings.innerHTML = '<div class="all-clear">✓ No issues found in this passive scan.</div>';
381
+ } else {
382
+ for (const f of data.findings) {
383
+ const div = document.createElement('div');
384
+ div.className = 'finding sev-' + f.severity;
385
+ div.innerHTML = `
386
+ <div class="sev-dot"></div>
387
+ <div>
388
+ <div class="finding-title">${f.title} <span style="color:var(--text-faint);font-weight:400;">— ${severityLabel(f.severity)}</span></div>
389
+ <div class="finding-detail">${f.detail}</div>
390
+ </div>`;
391
+ reportFindings.appendChild(div);
392
+ }
393
+ }
394
+ report.style.display = 'block';
395
+ report.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
396
+ } catch (err) {
397
+ errorBox.textContent = 'Could not scan that site — check the URL and try again.';
398
+ errorBox.style.display = 'block';
399
+ } finally {
400
+ btn.disabled = false;
401
+ btn.textContent = 'Scan free →';
402
+ }
403
+ });
404
+ </script>
405
+
406
+ </body>
407
+ </html>
index.html.TAG ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FILE=index.html
2
+ SHA256=c6b87795ab885a7b129f5e6e2ef02a1eccb1e0520c99adaeccf9b1e57fc3dafe
3
+ SIZE=18819
4
+ DEVICE=SERVER
5
+ TS=2026-09-05__11-09-20
index.html.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ c6b87795ab885a7b129f5e6e2ef02a1eccb1e0520c99adaeccf9b1e57fc3dafe index.html
scan_own_domains.py ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Regular passive security scan of SIPA OS's own domains — same checks as
4
+ functions/api/scan.js (the public EilatSecure landing scanner), run on a
5
+ schedule against a fixed target list instead of an ad-hoc user-submitted URL.
6
+
7
+ Read-only GET requests only. No auth bypass, no injection payloads, no brute
8
+ force, no port scanning. Same philosophy as the manual scanner: things a
9
+ normal visitor/crawler would request.
10
+ """
11
+ import json
12
+ import ssl
13
+ import socket
14
+ import sys
15
+ from datetime import datetime, timezone
16
+ from urllib.request import Request, urlopen, build_opener, HTTPRedirectHandler
17
+ from urllib.error import URLError, HTTPError
18
+
19
+ TARGETS = [
20
+ "sipa-os.org",
21
+ "focus.sipa-os.org",
22
+ "ai.sipa-os.org",
23
+ "shell.sipa-os.org",
24
+ "games.sipa-os.org",
25
+ "syntax.sipa-os.org",
26
+ "deck.sipa-os.org",
27
+ "neuropower.sipa-os.org",
28
+ "community.sipa-os.org",
29
+ "status.sipa-os.org",
30
+ "pixels.sipa-os.org",
31
+ "sipa-os.online",
32
+ "app.soulinpsyabstract.store",
33
+ ]
34
+
35
+ SENSITIVE_PATHS = [
36
+ "/.env", "/.git/config", "/.git/HEAD", "/wp-config.php.bak",
37
+ "/config.json", "/.DS_Store", "/backup.zip", "/phpinfo.php",
38
+ ]
39
+
40
+ SECURITY_HEADERS = [
41
+ ("strict-transport-security", "HSTS (Strict-Transport-Security)", "low"),
42
+ ("content-security-policy", "Content-Security-Policy", "medium"),
43
+ ("x-frame-options", "X-Frame-Options", "low"),
44
+ ("x-content-type-options", "X-Content-Type-Options", "low"),
45
+ ("referrer-policy", "Referrer-Policy", "low"),
46
+ ("permissions-policy", "Permissions-Policy", "low"),
47
+ ]
48
+
49
+ TIMEOUT = 6
50
+ UA = "EilatSecure-SelfScan/1.0 (+https://web-secure.sipa-os.org)"
51
+
52
+
53
+ def fetch(url, method="GET"):
54
+ req = Request(url, headers={"User-Agent": UA}, method=method)
55
+ try:
56
+ resp = urlopen(req, timeout=TIMEOUT)
57
+ return resp, None
58
+ except HTTPError as e:
59
+ return e, None
60
+ except URLError as e:
61
+ return None, str(e.reason)
62
+ except Exception as e:
63
+ return None, str(e)
64
+
65
+
66
+ class _NoRedirect(HTTPRedirectHandler):
67
+ def redirect_request(self, *args, **kwargs):
68
+ return None
69
+
70
+
71
+ def fetch_no_redirect(url, method="GET"):
72
+ # urlopen() follows redirects transparently by default, which makes it
73
+ # useless for checking whether a redirect exists — need the raw 3xx
74
+ # response itself, not what it points to.
75
+ req = Request(url, headers={"User-Agent": UA}, method=method)
76
+ opener = build_opener(_NoRedirect)
77
+ try:
78
+ resp = opener.open(req, timeout=TIMEOUT)
79
+ return resp, None
80
+ except HTTPError as e:
81
+ return e, None
82
+ except URLError as e:
83
+ return None, str(e.reason)
84
+ except Exception as e:
85
+ return None, str(e)
86
+
87
+
88
+ def cert_days_left(host):
89
+ try:
90
+ ctx = ssl.create_default_context()
91
+ with socket.create_connection((host, 443), timeout=TIMEOUT) as sock:
92
+ with ctx.wrap_socket(sock, server_hostname=host) as ssock:
93
+ cert = ssock.getpeercert()
94
+ expires = datetime.strptime(cert["notAfter"], "%b %d %H:%M:%S %Y %Z").replace(tzinfo=timezone.utc)
95
+ return (expires - datetime.now(timezone.utc)).days
96
+ except Exception:
97
+ return None
98
+
99
+
100
+ def scan_target(host):
101
+ findings = []
102
+ https_url = f"https://{host}/"
103
+ resp, err = fetch(https_url)
104
+
105
+ if resp is None:
106
+ findings.append({"severity": "critical", "title": "Unreachable over HTTPS", "detail": err})
107
+ return findings
108
+
109
+ headers = {k.lower(): v for k, v in resp.headers.items()}
110
+
111
+ for key, label, sev in SECURITY_HEADERS:
112
+ if key not in headers:
113
+ findings.append({"severity": sev, "title": f"Missing {label}"})
114
+
115
+ set_cookie = headers.get("set-cookie", "")
116
+ if set_cookie:
117
+ low = set_cookie.lower()
118
+ if "secure" not in low:
119
+ findings.append({"severity": "medium", "title": "Cookie missing Secure flag"})
120
+ if "httponly" not in low:
121
+ findings.append({"severity": "medium", "title": "Cookie missing HttpOnly flag"})
122
+
123
+ if headers.get("x-powered-by"):
124
+ findings.append({"severity": "low", "title": f"X-Powered-By discloses: {headers['x-powered-by']}"})
125
+ server = headers.get("server", "")
126
+ if server and any(c.isdigit() for c in server):
127
+ findings.append({"severity": "low", "title": f"Server header discloses version: {server}"})
128
+
129
+ # HTTP -> HTTPS redirect (fetch_no_redirect — plain fetch() follows
130
+ # redirects transparently and would always see the final 200, never the 3xx)
131
+ http_resp, _ = fetch_no_redirect(f"http://{host}/")
132
+ if http_resp is not None:
133
+ status = getattr(http_resp, "status", getattr(http_resp, "code", None))
134
+ loc = http_resp.headers.get("Location", "") if hasattr(http_resp, "headers") else ""
135
+ if not (status and 300 <= status < 400 and loc.startswith("https://")):
136
+ findings.append({"severity": "high", "title": "No forced HTTPS redirect"})
137
+
138
+ # Sensitive paths
139
+ exposed = []
140
+ for path in SENSITIVE_PATHS:
141
+ r, _ = fetch(f"https://{host}{path}")
142
+ if r is not None:
143
+ status = getattr(r, "status", getattr(r, "code", None))
144
+ ct = r.headers.get("Content-Type", "") if hasattr(r, "headers") else ""
145
+ if status == 200 and "text/html" not in ct:
146
+ exposed.append(path)
147
+ if exposed:
148
+ findings.append({"severity": "critical", "title": f"Exposed sensitive file(s): {', '.join(exposed)}"})
149
+
150
+ # TLS expiry
151
+ days = cert_days_left(host)
152
+ if days is not None and days < 21:
153
+ findings.append({"severity": "high" if days < 7 else "medium", "title": f"TLS cert expires in {days} days"})
154
+
155
+ return findings
156
+
157
+
158
+ def main():
159
+ ran_at = datetime.now(timezone.utc).isoformat()
160
+ report = {"ran_at": ran_at, "targets": {}}
161
+ any_findings = False
162
+
163
+ for host in TARGETS:
164
+ findings = scan_target(host)
165
+ report["targets"][host] = findings
166
+ if findings:
167
+ any_findings = True
168
+
169
+ print(f"[{ran_at}] EilatSecure self-scan: {len(TARGETS)} targets, "
170
+ f"{'FINDINGS' if any_findings else 'clean'}")
171
+ for host, findings in report["targets"].items():
172
+ if not findings:
173
+ continue
174
+ for f in findings:
175
+ print(f" {host}: [{f['severity']}] {f['title']}")
176
+
177
+ print(json.dumps(report))
178
+ sys.exit(1 if any_findings else 0)
179
+
180
+
181
+ if __name__ == "__main__":
182
+ main()
scan_own_domains.py.TAG ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FILE=scan_own_domains.py
2
+ SHA256=d0a37eadcabe1720d5b994dece319eb5f081a0d329e55b04e271087d64fe0866
3
+ SIZE=6372
4
+ DEVICE=SERVER
5
+ TS=2026-09-05__11-09-20
6
+ FIXATED_BY=Claude
7
+ NOTE=removed_api.soulinpsyabstract.com_not_owned_domain_confirmed_by_operator
scan_own_domains.py.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ d0a37eadcabe1720d5b994dece319eb5f081a0d329e55b04e271087d64fe0866 scan_own_domains.py