10.5.4 · Skill in Governance and compliance

Security policies

The organization's rules for keeping systems and data secure.

Security policies cover access control, device security, incident handling and vendor review. Certifications such as SOC 2 and ISO 27001 often require them. They matter most when selling to larger customers.

Your status · Security policies

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

A security policy is a set of rules: who gets access to what, how laptops are set up, how secrets are stored, what happens in an incident, and which vendors you trust. Larger customers ask for these rules in security reviews, and certifications such as SOC 2 and ISO 27001 check that you follow them. A rule only helps when a system enforces it. Product engineers write much of that enforcement: access roles, log events, session limits and the alerts that show when a rule is broken.

How to do it

  1. Start with a few rules that match real risks: access, devices, secrets, incidents, vendors.
  2. Enforce each rule in configuration where possible, not only in a document.
  3. Give each account the smallest set of permissions it needs, and review access every quarter.
  4. Log every access to sensitive data, and check that the logs cover every path to it.
  5. After each incident, change a rule or a control, and write down which one.

Common mistakes

  • A policy that exists for an audit, while daily work ignores it.
  • Shared service accounts with wide access and passwords stored by people.
  • Personal accounts and browser profiles on company devices.
  • Logs that record one way of reading data but miss another.

Example

In late 2023, an attacker used a service account to read files in Okta’s customer support system. The files belonged to 134 customers, and some contained session tokens. The account’s password had been saved in an employee’s personal Google profile, which was signed in to Chrome on an Okta-managed laptop. For 14 days, Okta’s investigation also missed the downloads, because opening the Files tab directly created a different log event. Okta then used Chrome Enterprise to block personal profiles on its laptops.

Flow

How one saved password reached Okta's support files

Own profileOn a work laptopPasswordService accountSupport files134 customersLogsGap: Files tabNew controlProfiles blockedOwn profileOn a work laptopPasswordService accountSupport files134 customersLogsGap: Files tabNew controlProfiles blocked

Two rules were missing in practice: no personal profiles on work devices, and logs for every way into the data.

ReportedOkta Security, root cause and remediation, 3 November 2023

Sources: Unauthorized access to Okta's support case management system: root cause and remediation (Okta) ↗ · OWASP Top 10 (OWASP) ↗

Resources

1
  • docsStart here
    OWASP Top 10 ↗
    OWASP · 30 min

    The most common serious web application risks, the shared starting point for secure coding.