Documentation

Set up, run, read.

Installing the panel, configuring the client, running a screening, reading what comes back, and the API between them — on one page.

§ 01

Quick start

The panel needs PHP 8.0 or later with the PDO SQLite extension. There is nothing to install and nothing to build.

  1. Configure. Copy server/config.example.php to server/config.php. The defaults work; set https_only to true once the panel is served over HTTPS.
  2. Serve. Point a web server at server/public, or for a local trial run the built-in one:
php -S 127.0.0.1:8080 -t server/public
  1. Create the owner. The first visit with no accounts opens setup. The password needs at least 8 characters.
  2. Create an API key under API keys. The key and its signing secret are shown once; copy both.
  3. Configure the client with an ultraviole.ini beside Ultraviole.exe, as in the next section.
  4. Open a session and give the PIN to the person being screened.

Keep server/data outside the web root. It holds the SQLite file, and nothing in it should ever be served.

§ 02

Client configuration

The file is optional. Without it the client runs on its built-in rules and writes the report to the desktop; nothing about a scan depends on the panel being reachable.

# ultraviole.ini — beside Ultraviole.exe
server         = https://panel.example.com
api_key        = paste-the-key-here
api_secret     = paste-the-signing-secret-here
fetch_ruleset  = 1
upload_reports = 1
verify_tls     = 1
timeout_ms     = 15000
KeyMeaning
serverBase URL of the panel, no trailing slash.
api_keyCreated under API keys and shown once.
api_secretSigns each report body with HMAC-SHA256; only the digest is sent. A key that rejects unsigned reports refuses a client without it.
fetch_rulesetDownload rules before each scan. The last good copy is cached in %LOCALAPPDATA%\Ultraviole.
upload_reportsUpload after each scan. The desktop copy is written either way.
verify_tlsLeave on. Turned off, anyone on the path can rewrite the ruleset; every report records that it was off.
timeout_msPer-request timeout, from 1000 to 120000.
§ 03

Scan sessions

A session ties one report to one person. Open it under Sessions with a subject — a name, an account id, a ticket number — and the panel issues a six-digit PIN.

  • The PIN can be claimed once. Its lifetime defaults to 30 minutes and can be set from 5 to 1440.
  • Claiming it returns a session token and a single-use challenge. The report has to carry both, so it cannot be uploaded twice or prepared in advance.
  • A session moves from open to claimed to reported; it can also be cancelled or expire.
  • Binding a session to one API key means a PIN cannot be redeemed by a client from another deployment.
  • Failed claims are limited to 20 an hour, counted per key and per address.
§ 04

Reading a report

Start with the status of each check, not with its findings. A check that reports partial or failed did not look at everything, and the absence of a finding from it means nothing.

Severity

  • High — no benign explanation the check could find. Still an indicator: read the reasoning before acting.
  • Medium — something that needs an explanation, and may have one.
  • Low — context. True, worth knowing, not an accusation.

The headline

A report is never headed “clean”. The scanner can only say it found nothing, and several checks cannot complete without administrator rights.

Verification

Each report shows whether its signature verified, whether its challenge was fresh, and whether its build hash is one you approved. An unapproved build is not necessarily hostile — it may simply be one you have not accounted for yet — but account for it before trusting what it reported.

§ 05

Rules

Rules are written in the panel and served to every client as one versioned ruleset; each report records the version it ran. Severities are info, low, medium, high.

TypeWhat it doesFields
Endpoint stringendpoint Searched for in process memory as ASCII, UTF-16LE and UNC. Name = the string itself. name only
Process / service memory stringmemory_string Searched for only inside the named process or service. Target process or service, Target type, String to find
File hash (SHA-1)file_hash Matched against the SHA-1 the Compatibility Appraiser recorded for every binary it has seen. The record outlives the file, so this still matches after the file has been deleted. SHA-1 (40 hex characters)
Path patternpath_pattern Substring matched against full file paths, case-insensitive. Pattern
Process nameprocess_name Reported when a process with this image name is running. Image name
Registry valueregistry Reported when the value exists and equals the expected data. Hive, Key path, Value name, Expected data (blank = any)
Event log ruleevent_log Channel plus event id. Benign actors are not reported as alerts. Channel, Event ID, Benign actors (comma separated)
USN journal ruleusn File name or extension plus the NTFS reason to match. File name or extension, Reason
File string rulestring_rule Scans files for a set of strings. Replaces the YARA rules of the old tool. Strings (one per line), Match, Extensions (comma separated, blank = all), Search, Min size MB, Max size MB (0 = no limit), Whitelisted file names (comma separated)
Protected targetprotected_target Game process to audit open handles on. Name = image name, or a prefix if "prefix" is set. Match
Benign USN actorbenign_usn_actor Process allowed to delete the USN journal without raising an alert. name only
Forensic wipe toolforensic_wipe_tool Process whose log or journal deletion is always an alert. name only
PE extension whitelistpe_extension Extension that legitimately carries a PE image, e.g. .node name only
Disguise extensiondisguise_extension Document or media extension; a PE behind one is reported at high severity. name only
JIT hostjit_host Runtime expected to allocate executable private memory. name only
System handle holdersystem_handle_holder Process that holds handles to everything by design. name only
Forensic serviceforensic_service Service whose records are the execution history; a hook in its host is an alert. name only

A rule that names a process or a file is a bypass its author opts into by renaming. Prefer rules that describe a capability or a fact of the operating system.

§ 06

Accounts and roles

RoleCan do
Ownereverything, including accounts
Staffrules, keys, builds, reports
Viewerreports only, read-only

The last active owner cannot be disabled, deleted or demoted. Every account can turn on a second factor from its profile, and owners can reset it for others.

§ 07

API reference

Every request carries X-Api-Key. Every response carries X-RateLimit-Remaining; past the key’s hourly budget the answer is 429 with Retry-After: 600. Errors have the shape {"ok": false, "error": "…"}.

GET /api/v1/ruleset

The current ruleset as JSON, with an ETag. Send it back as If-None-Match; an unchanged ruleset answers 304 with no body.

POST /api/v1/session/claim

// request
{"pin": "123456"}

// 200
{"ok": true, "session_token": "…", "nonce": "…",
 "subject": "…", "expires_at": "…"}

Every failure is the same 403 pin not accepted, so the response cannot be used to tell a wrong PIN from a PIN for another deployment.

POST /api/v1/report

HeaderValue
X-Api-KeyThe key.
X-SignatureHex HMAC-SHA256 of the raw body under the key’s signing secret.
X-Session-TokenFrom the claim. With it, the body must carry the claim’s nonce.

The body is the report JSON: machine, client_version, client_sha256, ruleset_version, counts (high, medium, low), elapsed_sec, nonce and detections. The answer says what was verified:

{"ok": true, "report_id": 46, "build_approved": true,
 "signature_ok": true, "nonce_ok": true}
§ 08

Security model

The panel proves three things about a report: it came from a client holding the key’s secret, it was sent once in answer to a session the panel opened, and it names a build you can identify. It does not prove that the client told the truth.

  • A patched client holds the same secret and can sign anything; the build hash it reports is self-reported too. Approve only builds you produced.
  • A kernel component on the screened machine can arrange most user-mode answers. The checks that compare independent sources — the kernel’s module list against the file, its signature and its service key — degrade slowest, and the TPM’s measurements are the one source software cannot rewrite.
  • The panel sends a strict content security policy, runs no inline script or style, rate-limits sign-in and PIN claims, and logs every administrative change.

Findings are evidence, not proof. Read the reasoning and the limit on each one before acting on it.