DocsSecurity Architecture

Security Architecture

Worker Pool Isolation

KeySpot’s WorkerPool supports three execution modes:

ModeIsolation levelWhen used
isolated-vmFull memory isolation via V8 isolateOptional — install isolated-vm
worker_threadsProcess-level isolation via WorkerDefault when worker script exists
InlineSame-process synchronousFallback when workers unavailable

Each scan cycle runs in a fresh or recycled sandbox. After completion, worker buffers are discarded and the thread is returned to the pool. Hard timeouts prevent runaway scans.

Streaming Buffer

Large inputs are processed with a 2048-character rolling window, preventing memory exhaustion and catching secrets that span chunk boundaries.

Buffer Zeroing

After each scan, worker memory buffers are explicitly discarded before the thread is recycled, reducing the window for cold-boot or memory-dump attacks.

Contextual Confidence

Not every match is a real secret. The scanner penalises paths like chat.*, message.*, memory.* and boosts config.*, secret.*, credentials.* — false positives are designed out, not filtered after the fact.

Hash-Chained Audit Logs

Every audit entry links to the SHA-256 hash of the previous entry. Tampering with a historical entry breaks the chain. With PersistedAuditLogger, entries are Ed25519-signed and can be anchored to the Arbitrum One blockchain.