security(evidence): stop reversible actor disclosure and bound export database work #1397
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic#1397
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary and severity
Medium privacy and public resource availability. Public exports need realistic privacy guarantees and bounded query work; stable unsalted hashes with transaction linkage do not provide anonymity.
Internal review references: KIMIK3 LEAK-01, RES-01. Investigated against source revision
748579ab718026efad54afcef4b2a5186fe82662on 2026-10-04. These are engineering findings, not third-party audit certification. Only technical findings and synthetic test cases are included; no conversation, user identity, credentials or real-user activity is published.Current codebase and evidence
actor_hash is the first 16 bytes of unsalted SHA-256 of a Terra address, stable across all days. Published transaction hash/time/order and amount linkage lets an observer resolve actors from public chain data even if the digest is changed. The endpoint should therefore not claim strong anonymity. /evidence/daily is public under broad API limits; output row caps do not bound underlying SQL work, and this query path lacks the transaction-local statement timeout already used for liquidity snapshots.
Why a new implementation is needed
Public exports need realistic privacy guarantees and bounded query work; stable unsalted hashes with transaction linkage do not provide anonymity.
Constraints and guardrails
Relevant files
Recommended direction
Acceptance criteria
Test plan: supported and failure paths
Test plan: attack, hack and abuse vectors
Verification criteria
Record revision, UTC time, exact commands, outcomes and evidence scope. Complete runnable checks first. Unavailable signing, deployment, device or infrastructure checks must be explicitly recorded as unverified; they do not block filing or implementation. An executed failure remains FAIL. Never claim deployment acceptance from unit tests or read-only probes. Public receipts must use synthetic identities and omit secrets.
Related work and duplicate check
Closed #1205 explicitly excluded HMAC salts/access changes; this is a new privacy/resource hardening scope, not a regression of its original redaction criteria. Coordinate with open #1206 aggregate activity work.
Related remediation reports
1396: database-isolation, 1395: parser-integrity. Each report owns its stated acceptance scope.
Merge sweep 2026-10-05: the two existing October 4 audit reports are being preserved on main with the sanity receipt. They document findings; committing them does not implement remediation.
Remaining implementation: Remove reversible actor disclosure and bound activity export database work. No evidence/export implementation changes are included in this merge. This issue stays open for that substantive work, not merely a verification hold.
Merged PR #1424. Integrated evidence schema 2 still omits actor identifiers/digests while documenting public transaction linkage, with bounded admission, cursor scope, SQL work/timeouts and cancellation recovery. Reconciled its deployment instructions with #1396: apply the six indexes through the separate migrator before starting the runtime.
Final make verify-issue-1397: 5 library, 15 API and 7 database-budget/recovery tests pass twice. No focused failures or skips. The six non-concurrent indexes still need production lock/storage planning and deployment through #1421; local synthetic receipts do not establish production latency.
All four source PRs #1424–#1427 are merged; final receipt published through #1430. Local main is reconciled with both remotes, with no stashes. Hosted CI was skipped by explicit operator instruction; no fake PASS status was posted. Original merge protection is restored. Integrated evidence. Source closure does not claim production deployment.