# Complimentary Initial Security Assessment — Titanward

> Evaluate modern and End-of-Life servers, codebases, environment variable boundaries, containers, CI workflows, and dependencies without sharing passwords, SSH keys, or live .env values.

HTML version: https://titanward.eu/free-assessment · Programmatic endpoint: POST https://titanward.eu/api/v1/assess-preview · MCP tool: evaluate_posture_preview

## Privacy, retention & epistemic boundary (`in_memory_zero_secret_preview`)

Your collector JSON or software manifest is **not stored** (`retained: false`). In the browser studio (`https://titanward.eu/free-assessment`) files of any local size are evaluated in tab memory with zero network upload; over `POST /api/v1/assess-preview` or MCP `evaluate_posture_preview` (up to `60 KiB` / `61,440` bytes per HTTP request under default `eu-hybrid` / NIST FIPS 203–205 rules) inputs are parsed in request memory, scored, and discarded immediately. Live `.env` files, private keys, and secret tokens are refused (`422 secret_detected`).

- **What `in_memory_zero_secret_preview` establishes**: Deterministic 5–100 posture scoring (or `null` when `insufficient_evidence`), CVSS v4.0 severity counts, prioritized findings, and explicit `coverage` (`checked` vs `notChecked`) computed from the supplied metadata.
- **What it cannot establish**: Live external network reachability, cryptographic signature verification of unprovided files, absence of kernel-mode rootkits on uninspected hosts, or continuous drift monitoring.

## Free preview vs commissioned 4-stage engagement (`docs/ASSESSMENT-RUNBOOK.md`)

- **Stage 1 · Complimentary demo / preview (Free)**: Unprivileged read-only collector (`--label`, optional `--scan-dir`); client inspects JSON before sharing (`zero_secret_proof` counts files opened vs secret-named files refused). Duty of care: every `CRITICAL` exposure is disclosed immediately in full so your team can contain urgent issues today regardless of engagement.
- **Stage 2 · Authoritative full assessment (`sudo` + `estate-plan`)**: Captures authoritative `sshd -T`, host firewall rules, LaunchDaemons/systemd units, and socket owners (`--probe-tls` only to client-named targets), producing the frozen `before/` baseline, `IMPLEMENTATION-PLAN.md`, `EXECUTIVE-SCORECARD.md`, `SOW-SCOPE-SCHEDULE.md`, and `cbom.cdx.json`.
- **Stage 3a & 3b · Honest remediation split (never claiming 'one click fixes everything')**: Stage 3a runs 5 reversible Linux `titanward fix` modules (`plan` -> `apply --yes` -> `undo` with automatic backups, `sshd -t` validation, second SSH session, and auto-rollback on failed live re-check; safely refuses when `authorized_keys` is missing or Docker bypasses `ufw`). Stage 3b delivers guided manual change tickets (legacy VLAN gateways, Docker `127.0.0.1` + `DOCKER-USER`, dependency updates, JWKS `kid` rotation, macOS/Windows MDM/GPO).
- **Stage 4 · Before/after verification & drift watch**: Re-runs identical root scope (`after/` vs `before/`), verifies host counts match, explains any regressions, and issues `verification-delta.json` + `VERIFICATION-RECEIPT.md`.

## Three built-in zero-secret presets

- `GET https://titanward.eu/api/v1/assess-preview?sample=hybrid`: 2-host hybrid fleet (Ubuntu 24.04 modern server + EOL CentOS 6.10 legacy controller).
- `GET https://titanward.eu/api/v1/assess-preview?sample=repo`: Application repository (Node `package.json` + `Dockerfile` + GitHub Actions CI workflow).
- `GET https://titanward.eu/api/v1/assess-preview?sample=pqc`: December 2026 post-quantum & VPN config (draft Kyber/liboqs packages, TLS-inspection proxy stripping `X25519MLKEM768`, classical IKEv2, and `RSA-OAEP` key wrapping).

## Three standalone zero-secret collectors (Mandatory 4-step safe execution order: Download → Inspect → Verify → Run)

| Script | Runtime | Target environments | SHA-256 |
| --- | --- | --- | --- |
| [titanward-assess-modern.py](https://titanward.eu/collectors/titanward-assess-modern.py) | Python 3.8+ (stdlib only) | Modern Linux, macOS, Windows hosts, repositories, lockfiles, Dockerfiles, CI workflows, and .env boundaries | `15bc6412602c1a9a23ec8e23861f131bbb3a66d0d19171269546828333d6094c` |
| [titanward-assess-legacy.py](https://titanward.eu/collectors/titanward-assess-legacy.py) | Polyglot Python 2.6 – 3.x (nice 15 on POSIX; stdlib only) | End-of-Life CentOS 5/6/7, RHEL, Debian 7/8, Ubuntu 12/14, and Windows Server 2008/2012 where Python is already installed (no fourth .ps1 script is published under /collectors/; stock Windows hosts without Python use gateway checks or built-in Windows gpresult / netsh exports during a guided engagement so zero runtimes are installed) | `a5e6245175f0828583ce0bce2866c5eb68187820ac0a603f0960bb2968ef5e4b` |
| [titanward-assess-legacy.sh](https://titanward.eu/collectors/titanward-assess-legacy.sh) | Strict POSIX /bin/sh | BusyBox, Solaris, BSD, embedded gateways, and industrial appliances without Python | `f752b907291ccad764c052768b5bbeab21fffe30d8780c5e85646aa5fe940f0b` |

Verify `SHA256SUMS.txt` (v1.1.0) before running — OpenPGP v4 fingerprint `42EF 8363 ED78 198F E703 44D0 E91C E12E C6F3 7ED7`, OpenSSH Ed25519 key `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOOzKv/u4vhGbMnCiCFbbezoxS+/wrYUai7JXRw5oNeq`, and Cardano Mainnet label `674` manifest digest (`anchor_status: settled_on_cardano_mainnet`, block `#14284789`, tx `9879374cc0758041206143c37e214653f1863117547d878d8351b9b6f5929cd0`):
```bash
# 1. OpenPGP (asserting pinned v4 fingerprint) + SHA-256 check:
curl -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt.asc -fsSLO https://titanward.eu/collectors/collector-signing-key.asc && GNUPGHOME="$(mktemp -d)" && export GNUPGHOME && gpg --with-colons --import-options show-only --import collector-signing-key.asc | grep -q '42EF8363ED78198FE70344D0E91CE12EC6F37ED7' && gpg --batch --import collector-signing-key.asc && gpg --batch --verify SHA256SUMS.txt.asc SHA256SUMS.txt && rm -rf "$GNUPGHOME" && shasum -a 256 -c --ignore-missing SHA256SUMS.txt

# 2. OpenSSH (-Y verify) + SHA-256 check:
curl -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt.ssig -fsSLO https://titanward.eu/collectors/allowed_signers.txt && ssh-keygen -Y verify -f allowed_signers.txt -I security@titanward.eu -n titanward-collectors -s SHA256SUMS.txt.ssig < SHA256SUMS.txt && shasum -a 256 -c --ignore-missing SHA256SUMS.txt

# 3a. Cardano manifest digest check (against local cardano-anchor.json):
curl -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt -fsSLO https://titanward.eu/collectors/cardano-anchor.json && python3 -c "import hashlib,json; a=json.load(open('cardano-anchor.json')); assert hashlib.sha256(open('SHA256SUMS.txt','rb').read()).hexdigest()==a['manifest_sha256']" && shasum -a 256 -c --ignore-missing SHA256SUMS.txt

# 3b. Independent on-chain Cardano Mainnet check (queries public Koios node directly for tx 9879374cc0758041206143c37e214653f1863117547d878d8351b9b6f5929cd0):
curl -fsSLO https://titanward.eu/collectors/SHA256SUMS.txt && curl -fsSL https://api.koios.rest/api/v1/tx_metadata -H 'content-type: application/json' -d '{"_tx_hashes":["9879374cc0758041206143c37e214653f1863117547d878d8351b9b6f5929cd0"]}' | python3 -c "import hashlib,json,sys; msg=json.load(sys.stdin)[0]['metadata']['674']['msg']; i=msg.index('SHA256SUMS.txt sha256:'); onchain=msg[i+1]+msg[i+2]; local=hashlib.sha256(open('SHA256SUMS.txt','rb').read()).hexdigest(); assert local==onchain, (local,onchain); print('ON-CHAIN CARDANO MAINNET DIGEST VERIFIED:', onchain)" && shasum -a 256 -c --ignore-missing SHA256SUMS.txt
```

## Severity taxonomy

| Tier | Priority basis | Target SLA | Score penalty | Scope |
| --- | --- | --- | --- | --- |
| CRITICAL | P1 · Caps score <= 65 | 0 - 24 hours | 18 | Unauthenticated control sockets, cleartext admin protocols, unignored secret files, or compromised dependencies. |
| HIGH | P2 · Caps score <= 78 | 24 - 72 hours | 10 | End-of-Life hosts without VLAN isolation, TLS-bypass flags, pre-standard PQC drafts, TLS-inspection strip, or legacy NTLM/RC4. |
| MEDIUM | P3 · -4 pts / signal | 7 - 30 days | 4 | Classical-only TLS/SSH/IPsec key exchange, RSA key-wrapping on archives, unpinned dependencies, root containers, or mutable CI tags. |
| LOW | P4 · -1 pt / signal | Scheduled window | 1 | AES-128 cipher rotation to AES-256, browser policy headers, disclosure metadata, or local permission hygiene. |
| INFORMATIONAL | Context · 0 pt penalty | Planning horizon | 0 | Cryptographic inventory baselines, checked surface counts, and regulatory transition milestones. |
