What they did
The poster, u/IAMNOTSPAMREDDIT on r/codex, builds a Windows desktop app called SlipUpClipz with OpenAI Codex. In an isolated staging environment they found a PostgreSQL role with more rights than it needed, enough to let someone alter reward balances directly. They asked Codex to tighten the permissions without rewriting the existing migrations, and to prove the fix by running security tests against throwaway local PostgreSQL databases. Nothing was to be deployed to production.
How it went
On GPT-6.2 Sol at medium effort the request was stopped twice by a cybersecurity filter that pointed them to OpenAI's Daybreak access programme, even after they cut the prompt down to plain defensive remediation. Switching to GPT-6.1 Sol at extra high effort with the original prompt worked. The agent found the excess grants, wrote a new versioned migration that blocks direct writes to protected balances, added transaction-scoped authorization permits, and checked that unauthorized operations were now denied. It reported 94 offline reward tests, 21 staging database tests, 13 authorization tests and 43 licensing tests passing, with production untouched.
Worth knowing
Newer models can refuse legitimate defensive security work on your own code. OpenAI support told the poster that false positives happen and suggested narrowing the prompt or applying for Daybreak. Falling back to the previous model version was what got the job done. The test counts are the agent's own report; the poster does not say how they reviewed the migration.