Security dossier
The document your security review asks for
How SecureBasis is built, what it trusts, what can go wrong and what stops it, and what is still open. Print it or attach it to your tool approval.
Summary
- What it is
- A single Go binary (Windows or Linux, amd64) that you run on your own network. It checks SAP systems and their hosts after each SAP Security Patch Day, runs approved changes, and keeps a hash-chained evidence ledger.
- Where it runs
- On a jump host you control, as a Windows service or a hardened systemd service. Optionally a second copy runs as a runner next to segmented SAP hosts.
- What it connects to
- Only the SAP instances and hosts you register, and only the notification endpoints and OpenTelemetry collector you configure. No telemetry, licence server or update check.
- Default posture
- Read-only. A write needs a plan, a dry run, a second person's approval and an open maintenance window.
- Secrets
- Entered per session, held in memory, never written to disk, ledger, logs or exports.
Architecture
One process contains the web UI and API, the engine, the scorer, the evidence ledger (SQLite, pure Go) and four channels. There is no separate database server and nothing is downloaded at run time.
| Boundary | Crossed by | Protection |
|---|---|---|
| Browser to SecureBasis | Operators, CISO, auditor | HTTPS; session cookie with CSRF token; idle and absolute session timeouts; roles; lockout and per-address sign-in limits |
| SecureBasis to SAP and hosts | The four channels | Verified TLS and SSH host keys; pinned host and port; no proxy, no redirect, no WebSocket upgrade; parameters validated before anything is sent |
| SecureBasis to its data directory | The service account | Directory readable by the service only; append-only ledger; no secrets written |
| Runner to control plane (split mode) | Outbound HTTPS long-poll | A shared token of 32 or more characters, your CA file and server name; credentials stay in the runner's memory |
| Vendor to you | Releases, licences, rules packs | Ed25519 signatures checked offline; older rules packs refused |
The data flow diagram and the ports table are on the trust page.
Threat model
| Threat | Control |
|---|---|
| A user changes production alone, by mistake or on purpose | Four-eyes approval (approver differs from requester) with change type and CAB ticket; writes refused outside the window; the dry-run command list is exactly what the apply sends; every step on the ledger with the person's name |
| Command injection through a parameter or a system label | Every parameter has a strict pattern and is quoted for the target shell; IP addresses and CIDRs are parsed and re-rendered; labels can never name a credential |
| Credential theft from disk, logs or exports | In-memory credential vault; a redaction pass over every result; log attributes that look like secrets are redacted |
| Evidence edited after the fact | Hash chain with database triggers against updates and deletes; chain verification in the UI and CLI; signed evidence packs verified offline |
| Forged licence or rules pack | Ed25519 signatures verified offline against the embedded vendor key; an older rules pack is refused |
| Replaced binary | Signed SHA256SUMS, a CycloneDX SBOM, and the key fingerprint published separately on our website |
| The tool used to reach other systems | Each channel talks only to its target's host and port; no proxy, no redirect; instances found by discovery are reported, not contacted |
| Man in the middle | TLS verification with your CA file; SSH host keys pinned or from known_hosts; "insecure" only when set explicitly on a system |
| Exploit traffic against SAP | No WebSocket upgrade is ever sent (the ICM2SHELL pattern); checks are reads; no exploit code exists in the product |
| Data leaving your network | No outbound calls except your targets and your notification endpoints; you can run it with all other egress blocked |
| A change whose outcome is unclear | A lost connection after a change was sent is "unknown", never "failed" or "done"; re-check before any retry. An unconfirmed firewall lockdown rolls itself back |
Controls in detail
Web UI and API
- HTTPS with your certificate, or one generated at install for the names you choose.
- A content security policy with no inline script or style, Trusted Types, and no third-party origin; frames denied.
- Local users with bcrypt password hashes; one-time passwords must be changed before any other API call is allowed.
- Roles: administrator, Basis, Infra, module lead (its own tiles only), CISO and a read-only auditor.
Engine
- Runs are rebuilt from the ledger after a restart: no hidden state.
- One instance at a time for kernel work; the pre-stop gate checks work processes, locks, queues and the module leads' confirmations.
- When the hunt finds an indicator, an evidence freeze stops changes so the evidence is kept.
Channels
- Read actions and write actions are declared per channel; RFC and the SAP front end have no write actions, and SAP GUI transactions that write are blocked.
- OS root commands run only through
sudo -n; SAP binaries run as the SAP admin login on the server (system ID + adm, for example s4dadm). - Every write is gated: snapshot or backup first where it applies, then the approved command list.
Service
- Linux: a dedicated system user,
NoNewPrivileges, an empty capability set,ProtectSystem=strict, private temp and devices, protected kernel settings, restricted address families, a system-call filter andMemoryDenyWriteExecute. - Windows: the data directory is limited to SYSTEM and Administrators, and the protection is re-applied at every start.
Supply chain
- Built with Go, without cgo, with paths trimmed. The same sources and build date give the same binaries.
- Each release ships a CycloneDX 1.5 SBOM per binary: every Go module with its version and go.sum hash.
- SHA256SUMS is signed with our Ed25519 release key (OpenSSH signature, namespace
securebasis-release). Fingerprint:SHA256:H39RN3GZjnQB03nXjEt+45CSRSASuOK4gFUnYO0Uqyo. - The vendor private key is kept outside the source tree and never printed by the tools that use it.
Testing
- Every package passes
go vet,gofmtand its unit tests before a release. - The channels are tested against recorded outputs and a set of malicious parameters (more than 60 for the OS channel alone), each refused with nothing sent; generated shell and PowerShell scripts are parsed by real parsers.
- End-to-end tests drive the full product over HTTPS against the simulated SAP estate: one-time passwords, a recon run, the gate, a dry run, a four-eyes approval, an apply inside the window, a signed evidence pack verified offline, and a restart that keeps every record.
Known gaps
Stated plainly so you can weigh them:
- Lab confirmation. Actions marked "unverified" in the release notes are built from vendor documentation and proven against the simulated SAP estate; their confirmation on lab SAP systems is in progress. Evaluate read-only on non-production systems first.
- NW RFC SDK backend. Not in the release binaries. Systems where SOAP-RFC is switched off cannot run the RFC checks yet; those missions stay unverified.
- Assessment-only mode. A setting that removes every write action entirely (not only gates it) is planned; today, writes are approval-gated.
- External testing. No third-party penetration test has been run yet, and Sharan AI holds no third-party security attestation such as ISO/IEC 27001 or SOC 2.
- Browsers. The web UI is tested in Chromium-based browsers; Firefox and Safari are supported but not yet in the automated suite.
Contact
Security questions and vulnerability reports: security@sharanai.com (see our disclosure policy). Everything else: sales@sharanai.com.