Alpha · Multi-validator consensus not yet live · Patent Pending

4/4 node endpoints reachable · SIMULATED in staging (no real node contacted)
DEMOProtocol status: record-level verification. Cryptographic consensus checks (BFT rounds, BLS signature validation, anti-replay) are simulated — awaiting validator engine.

Security Hardening

Security Dashboard

Security-hardened, auditable, double-spend resistant, replay-resistant enterprise finality infrastructure. Not a claim of perfection — an honest assessment.

Security Score

71%

48/68 checks pass

Open Vulnerabilities

6

1 fixed

Needs Review

20

checklist items

Production Ready?

Not yet

Open items remain

Rejected Txs

0

Double-Spend Blocked

0

Replay Blocked

0

Invalid Signatures

0

Vulnerability Report

VLN-001Medium
pages/ApiKeys.jsx

API key hash not enforced at creation

Fix: Hash key before storage using SHA-256; show raw key only once in one-time reveal UI

Risk: Key exposure in database if compromised

VLN-002Medium
entities/LedgerTransaction.json

LedgerTransaction RLS not scoped to customer

Fix: Add RLS policy: sender_wallet_id or receiver_wallet_id matches current user

Risk: Cross-tenant transaction read

VLN-003Low
entities/LedgerTransaction.json

No unique database constraint on tx_hash

Fix: Add unique constraint on tx_hash to prevent duplicate finalization race conditions

Risk: Potential duplicate finalization under concurrent load

VLN-004Low
lib/AuthContext.jsx

MFA not explicitly enforced for admin/validator roles

Fix: Require MFA challenge on sensitive role login; gate admin routes behind MFA session check

Risk: Admin account compromise without MFA

VLN-005LowFIXED
components/home/LiveSettlementTicker.jsx

Fake live settlement ticker removed from homepage

Fix: Removed in this release. Component deprecated.

Risk: Misleading financial data to prospective customers

VLN-006Info
pages/LedgerSecurityCenter.jsx

Auto account suspension threshold not implemented

Fix: Add automatic suspension trigger when double_spend_flags exceeds configurable threshold

Risk: Manual review required for flagged accounts

VLN-007Info
pages/LedgerReceiptViewer.jsx

Redacted receipt verification path not implemented

Fix: Add hash-only proof mode that verifies inclusion without exposing payload

Risk: Privacy-sensitive customers require redacted proofs

Security Acceptance Checklist

Secrets & Environment

No secrets committed to repo
.env files in .gitignore
Service-role keys never sent to frontend
Validator private keys never exposed to browser
Separate keys for dev / staging / production

Requires operator confirmation

Authentication & Sessions

Authenticated session required for protected routes
Admin sessions expire faster than user sessions

Platform-managed; confirm idle timeout

MFA available for admin/validator accounts

Needs explicit MFA enforcement per role

Logout invalidates active session

Authorization & RBAC

Every sensitive route checks role before action
Object-level ownership enforced on wallets/receipts/keys
User cannot read another customer's private receipts
Developer API key cannot perform admin actions
Read-only compliance role cannot create transactions

RLS scoping required per role

Row Level Security (RLS)

RLS enabled on LedgerTransaction

Add sender_wallet_id or customer_id RLS

RLS enabled on HcpFinalityReceipt

Admin-only write enforced

RLS enabled on ApiKey (user_email filter)
RLS enabled on LedgerAccount

Add owner_id filter

No broad "true=true" RLS policies
Service-role key not used from frontend

API Key Security

API keys stored as hashed values only

key_hash field present; hash enforcement in create flow needed

Keys shown only once at creation

Implement one-time reveal UI

Key rotation supported
Key revocation supported
Scoped API keys (receipts:read, txn:submit, etc.)
Per-key rate limits enforced
IP allowlisting for enterprise keys

Frontend field present; server enforcement needed

Rate Limiting & Anti-Spam

Per-API-key rate limits on transaction submission
Invalid signatures rejected before finality (no credit consumed)
Duplicate transactions rejected before finality
Mempool admission rejects junk before validator consensus
Nothing enters finality for free without credit/quota/grant
Account suspension after abuse threshold

Manual suspension; auto-threshold pending

Transaction & Ledger Security

Valid signature required for every ledger transaction
Sequential nonce enforced per wallet
Replay attack prevention (REPLAYED_NONCE)
Double-spend protection (NOT_CURRENT_OWNER, DOUBLE_SPEND_ATTEMPT)
Once-only redemption (ALREADY_REDEEMED)
Duplicate transaction hash rejected

Unique constraint on tx_hash recommended

Failed transactions do not mutate state
Finality receipt matches finalized transaction data

Audit & Logging

Admin actions logged to GovernanceAction entity
Transaction rejections logged with reason
Double-spend and replay events logged
Audit records include actor, role, before/after hash

AuditLog entity present; write triggers needed

Logs do not contain secrets, private keys, or raw credentials
Errors do not leak stack traces or internal paths to users

Public Explorer Privacy

Public receipt verification does not reveal private payloads
Public explorer shows hashes, not raw financial data
Private customer data separated from public proof data
Redacted proof mode supported

Implement hash-only verification path

Validator & Node Security

Each validator has unique identity key
Missed signatures monitored and logged
Validator jailing/removal supported
Bond forfeiture logic defined
Validator key rotation procedure documented

Runbook needed

Validator private keys never leave secure server storage

Infra requirement; operator must confirm

Frontend Security

No secrets in frontend code
No service-role keys in browser
User-generated content sanitized before render

Audit all ReactMarkdown/innerHTML paths

Privileged UI controls hidden by role AND enforced on backend
dangerouslySetInnerHTML not used without review

Backups & Disaster Recovery

Automated database backups configured

Platform managed; confirm backup schedule

Finalized state roots archived
Finality receipts archived
Validator signature bundles archived
Restore process tested

Test restore quarterly

RPO and RTO targets documented

Define targets before mainnet

Production Readiness Status

HCP is currently in security-hardened beta. The system is not marked production-ready until all critical and high-severity items are resolved and the full security acceptance checklist passes. Items marked "Needs Review" require operator confirmation or additional implementation before mainnet deployment.

  • →API key hash enforcement must be implemented in create flow
  • →LedgerTransaction RLS must be scoped to customer/owner
  • →MFA enforcement must be validated for admin and validator roles
  • →Unique database constraint on tx_hash must be confirmed
  • →Disaster recovery restore test must be completed
  • →Incident response runbook must be completed before launch
Staging · simulated settlement · not network finality