Zero-Knowledge Execution: How Lory Protects Credentials During Autonomous Pentests | Lorikeet Security Skip to main content
Lory Architecture & Security

Zero-Knowledge Execution: How Lory Protects Credentials During Autonomous Pentests

September 23, 2026 7 min read Enterprise Cryptography

Effective penetration testing demands authenticated access. Testing modern applications without valid session tokens, test user credentials, or API keys leaves critical business logic, Broken Object Level Authorization (BOLA), and privilege escalation paths completely unexamined. However, handing production-like credentials to an autonomous artificial intelligence engine presents legitimate security concerns for CISOs and compliance teams.

To resolve this fundamental tension, Lorikeet Security engineered Lory with a strict zero-knowledge execution architecture. In this deep dive, we explain the cryptographic mechanisms, runtime memory zeroing, prompt token scrubbing, and strict tenant isolation that ensure customer secrets remain secure throughout autonomous security assessments.

The Secret Management Challenge in Autonomous Pentesting

Autonomous penetration testing platforms face three distinct risks when handling user credentials:

AES-256-GCM Envelope Encryption at Rest

Customer credentials configured within the Talon platform or supplied via CI/CD pipelines are never stored in plaintext. Secrets are encrypted using Authenticated Encryption with Associated Data (AEAD) via AES-256-GCM.

AES-256-GCM Envelope Architecture: Customer Secret ──► [Encrypted with DEK (Data Encryption Key)] ──► Ciphertext + 128-bit Auth Tag DEK ─────────────► [Encrypted with KEK in Hardware HSM] ────────► Stored Envelope Decryption ──────► Ephemeral runtime key unwrapping restricted to verified worker VPC

Each customer tenant receives unique, dynamically generated Data Encryption Keys (DEKs). Master Key Encryption Keys (KEKs) reside within certified Hardware Security Modules (FIPS 140-2 Level 3 compliant). Key retrieval is strictly logged and audited under SOC 2 Type II Confidentiality controls.

Prompt Token Masking: Scrubbing Secrets Before the LLM

The cardinal rule of Lory architecture is: LLM inference endpoints never see plaintext credentials.

Before Lory generates reasoning prompts or constructs attack plans across Layer 1 or Layer 2 orchestrators, all known credentials undergo deterministic token substitution:

Secret Class Actual Customer Secret Substituted Surrogate Token Runtime Injection Point
Bearer Auth Header Bearer eyJhbGciOi...98xQ {{LORY_AUTH_TOKEN_ALPHA}} Worker cURL / HTTP engine directly
Tenant API Key lsk_live_99f2b8813a0c {{LORY_API_KEY_TEST}} Isolated CLI sandbox process
Test User Password ComplexPass#2026!Orlando {{LORY_USER_PWD_BETA}} Headless Chromium authentication form
Database Connection postgres://adm:9f#1@db... {{LORY_DB_CONN_SURROGATE}} Layer 3 network runner

The artificial intelligence model reasons solely with the abstract placeholders: "Submit an HTTP POST request to /api/v2/orders including {{LORY_AUTH_TOKEN_ALPHA}} to evaluate if non-admin roles can read billing details." The actual secret is populated exclusively within the isolated worker sandbox runtime just microseconds before the socket transmission occurs.

Zero Model Training Guarantee

Lorikeet Security maintains enterprise zero-retention service level agreements (SLAs) with all model providers. Prompts, outputs, and intermediate data are never used for model training, reinforcement learning, or human review by upstream vendors.

Ephemeral Memory Zeroing and Isolated Worker Sandboxes

When Lory dispatches an authenticated test vector (such as an IDOR probe or a JWT privilege escalation check), the execution occurs inside an isolated, short-lived container sandbox:

  1. Per-Vector Container Isolation: Each vector execution runs in a locked-down container with zero access to sibling vectors or peer tenant networks.
  2. RAM-Only Decryption: Secrets exist only in transient memory registers, never written to swap partitions or container disk storage.
  3. Explicit Memory Scrubbing: Upon vector termination, memory buffers containing decrypted tokens are overwritten with zeros (cryptographic memory zeroing) before process exit.
  4. Instant Sandbox Destruction: Containers are immediately purged upon task completion. No residual state or filesystem layers persist on host hypervisors.

Regional Database Pinning & Compliance Standards

For organizations operating under strict data residency mandates (such as Canadian PIPEDA, European GDPR, or US federal compliance), Lory supports regional tenant pinning:

Enterprise-Grade Security for Autonomous Audits

Experience autonomous penetration testing engineered with the world's most rigorous secret protection and zero-knowledge execution protocols.

-- views
Link copied!
Lorikeet Security

Lorikeet Security Team

Penetration Testing & Cybersecurity Consulting

Lorikeet Security helps modern engineering teams ship safer software. Our work spans web applications, APIs, cloud infrastructure, and AI-generated codebases — and everything we publish here comes from patterns we see in real client engagements.

Lory waving

Hi, I'm Lory! Need help finding the right service? Click to chat!