SOX Controls Testing

Published
Length
3 min read

Luis Felipe Dias

All posts

The Sarbanes-Oxley Act requires public companies to protect financial systems from unauthorized changes. Engineering teams pass sox controls testing by enforcing strict rules and logging all commands. Auditors examine your financial apps, databases, and servers every year. They want clear proof that your security rules work every single day. If an engineer can alter financial records without approval, the audit will fail. Good controls keep your financial reports accurate and protect your compa

GCP VPC Service Controls + Sarbanes-Oxley (SOX) IT Controls: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

The Sarbanes-Oxley Act requires public companies to protect financial systems from unauthorized changes. Engineering teams pass sox controls testing by enforcing strict rules and logging all commands.

Auditors examine your financial apps, databases, and servers every year. They want clear proof that your security rules work every single day. If an engineer can alter financial records without approval, the audit will fail. Good controls keep your financial reports accurate and protect your company from fraud.

What auditors check during sox controls testing

Auditors focus on IT General Controls, often called ITGCs, during a review. These rules govern how your team manages system changes, user roles, and daily operations. Every system that stores or moves financial numbers falls into the audit scope.

First, auditors test how you grant and revoke user permissions. When a new engineer joins, a manager must approve their role in writing. When someone leaves the team, you must cut off their login right away. Auditors will check termination dates against your system logs to spot any delays.

Second, they look at segregation of duties across your engineering team. The person who writes code should not push that code to production alone. In the same way, developers should not run write queries on production financial tables. If an emergency fix is needed, a second person must review and approve it.

Third, auditors ask for a complete trail of every change made to data. They pick sample dates and ask to see every database query from that day. You must show who logged in, what command they ran, and who approved it. Missing logs or shared admin accounts will cause major audit findings.

Why identity rules need command logs and data masking

Many teams rely on identity providers and role reviews to manage system permissions. An engineer logs in with single sign-on and gets a role for the day. Quarterly reviews check that the right people still hold the right group roles.

Still, role lists only show who could enter a database or server. They do not show what the engineer actually did during their work session. For financial systems, auditors need to see the exact SQL statements or shell commands. Without command logs, you cannot prove that an admin left financial records alone.

GCP VPC Service Controls + Sarbanes-Oxley (SOX) IT Controls: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad database roles also create risks when engineers debug live issues. A developer might run a select query to fix a billing bug. That query result can return sensitive customer data along with the billing rows. Data masking solves this problem by rewriting matched fields in query results. It replaces emails, phone numbers, card numbers, and national IDs before results reach the screen.

Combining identity checks, per-command approvals, and field masking makes audit prep much faster. Your team spends less time taking screenshots and digging through old ticket threads. Instead, you hand auditors a clean log of approved commands and masked outputs.

How to run quarterly reviews without manual work

Quarterly user reviews often take weeks of work for security and engineering managers. Managers must read spreadsheets of database users and guess who still needs each role. People forget why a temporary permission was granted two months ago.

You can fix this by removing standing permissions from production databases and servers. Keep default permissions at zero and require approvals for single tasks or short windows. When an engineer needs to check a table, they ask for a short session.

The approval ticket links directly to the commands they run during that window. When the timer ends, the system revokes the permission on its own. During the next audit, your user list is clean and easy to check.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

Before a query runs, hoop.dev guardrails check the statement against your rules, an AI Analyzer you configure can score intent or hold risky calls for human approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

What systems are in scope for a SOX IT audit?

Any app, database, or server that processes or stores financial data is in scope. This also includes tools that control permissions or deploy code to those financial systems.

How do auditors test database controls during an audit?

Auditors ask for a list of all users with database permissions during the period. They pick a sample of changes and ask for the matching approval tickets and query logs.

Why are shared admin accounts a problem for compliance?

Shared accounts make it impossible to tie a specific command to one real person. Auditors require every action on a financial system to trace back to a single user identity.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.