Production Security Hardening

Security across identity, network, encryption and audit; least privilege for people and services; financial audit controls; and authorized security testing.

  • Advanced
  • About 15 minutes
  • Includes an exercise and a knowledge check

The concept Production security is more than login

Four nested layers around the Apex financial data: identity, network, encryption and audit. Identity: human and service identities kept apart, least-privilege roles, no shared admin accounts. Network: controlled ingress only, application in private subnets, database in isolated subnets. Encryption: TLS in transit, at rest, in backups, buckets and exported logs, keys in KMS. Audit: actor, time, original and new state, reason, approval reference and correlation. Encryption does not replace authorization.
Four layers, one rule: least privilege everywhere.
IdentityMay
Finance operatorInvestigate assigned exceptions
Finance supervisorApprove permitted resolutions
Application service roleUse only its own database, bucket and queue
Deployment identityPublish approved artifacts and update designated infrastructure
Read-only operations roleInspect health and logs; never change financial records

Separate human access from service identity, and never share administrator credentials. A compromised service with broad permissions can reach everything; a narrowly scoped one limits the damage.

Financial controls An explanation is not an approval

An investigation note is not a financial adjustment, and identifying a mismatch does not grant permission to change financial state. For every financial change, preserve the actor, timestamp, original and new state, reason, approval reference and correlation to the transaction.

Prove it Security testing

  • Unauthorized API access, privilege escalation and insecure direct object references (reading case EXC-10022 by changing the ID).
  • Invalid and oversized uploads, SQL injection, cross-site scripting, and CSRF where the authentication model needs it.
  • Secret exposure, excessive log data, container vulnerabilities and infrastructure misconfiguration.

Practice Run a security review

Practical exercise

Exercise 07: security review of the deployed platform

Produce the evidence a security lead will ask for.

  1. Identity and role matrix, network boundary diagram and secrets inventory.
  2. Encryption checklist and API authorization test results.
  3. Audit integrity review, vulnerability findings and a remediation plan.
Show a sample finding
  • Finding: the worker role could read the whole settlement bucket, including other environments’ prefixes.
  • Fix: restrict the policy to the production prefix and the specific actions needed; retest with an access denied check.

2 questions

Check your understanding

1. Why does least privilege matter for service roles?
2. Does encryption at rest stop an over-privileged role from reading data?
Answer every question to submit.

What you can do now

  • Harden identity, network, encryption and audit.
  • Design least-privilege roles.
  • Plan authorized security testing.