AID-H-004.002
Very High
Service & API Authentication
A database that holds usable agent API keys turns any read flaw into account takeover. Moltbook's verifier should store only a keyed hash of each agent API key and claim token, computed with a key kept in a secret store or key management service outside the database, show the raw value once when it is issued, and give each key an expiry and the narrowest scope it needs. Had the agents table held such hashes, Wiz's anonymous read would have returned 1.5 million values that authenticate nothing, and someone able to write to the table but lacking the hashing key could not plant a working replacement either. The control covers credentials only: emails, private messages and post content are still exposed by a read or write flaw.