Most of the habits below would pass code review on most teams. Several of them would pass mine. Nobody would be embarrassed to explain them in a standup. They are the settings a team arrives at when a hard thing needed to be easy and nobody had time to come back to it.

Which is why they are worth a look. A habit that everyone shares is invisible, and the habits that are invisible are the ones that decide how bad a bad day gets. Some of these are vulnerabilities in their own right. Others make an existing vulnerability far more dangerous. What they share is that each one quietly expands what a compromised application, a careless afternoon, or an over-eager coding agent can reach.

Read the ten and ask two questions of each. Does anyone on the team do this? And if the answer is no, can you prove it?

1. Reading production logs with credentials that can change production

An engineer inspecting a log usually holds a role that could also modify the infrastructure. Nobody chose that; the role predates the engineer. A stolen laptop, a phished session or an agent running under those credentials inherits the whole thing.

Read-only is the better default, and still not the end of it. Observing a system (configuration, metrics, scoped logs), reading sensitive data (database rows, object contents, secrets) and modifying anything are three different capabilities. A team can remove standing administrator access and still leave every engineer able to download the customer table. That is not least privilege either.

2. Letting the application run its own migrations

The ORM makes it easy, so the app applies schema changes at startup, as the same database user that serves requests. That user may well own the tables it created. Anything that compromises the app can alter or drop them.

3. Giving the deploy pipeline a standing key to production

A long-lived cloud key in repository secrets, attached to a role that could do anything, because the first deploy failed on a permission error. A compromised dependency or workflow now has a path to production that skips the review every application change gets.

4. Enforcing tenant isolation by remembering the filter

“Always add the tenant_id clause” holds right up to the new background job, the ad hoc report, the support tool, or the endpoint an agent generated last night. One forgotten clause is a cross-tenant read.

5. Restoring production data onto a laptop to reproduce a bug

It is the fastest way to see what the customer saw. It also puts real customer data on a machine, and inside tools, that were never meant to hold it, and on most teams nobody can say afterwards who took what.

6. Treating a secrets manager as the finish line

The secret is out of Git, which is progress. It still appears in CI output, stack traces, debug logging, shell history and environment dumps, and the same shared credential is used by three services, so revoking it is a change-freeze conversation.

7. Running containers as root with a writable filesystem

The image works, so nobody adds a user, and the defaults stay: the process runs as root, the filesystem is writable, and the network reaches everything. Those are three separate controls, each cheap to tighten, and together they decide what an attacker with code running inside the container can do next. Root in a container is not root on the host, but it is far more than the application needs.

8. Mistaking a login for permission

The identity provider says who the user is. Nothing checks whether this user may see this company’s invoices or this customer’s documents, because the check for “logged in” felt like the check for “allowed.”

9. Having backups nobody has restored

The backup job is green. Nobody knows how long a restore takes, whether the recovered system works, or whether the same identity that runs production could delete the backups on its way out.

10. Collecting security logs nobody is paged on

The dashboards exist. Nobody has decided which handful of events should wake someone up, which can wait for the morning, who owns each, and what they do next. Recording an event and noticing it are different capabilities.

Running this as an audit

The useful version of this list is not a show of hands. For each habit, the answer is a piece of evidence: the IAM policy, the database grants, the workflow permissions block, the authorisation test, the restore log, the alert rule with a name on it. If the answer is “we should be fine,” write that habit down as unverified and move on. An honest unverified is more useful than a confident guess.

If you lead the engineering organisation, there is a third question: why did you need to ask? If the application runs with schema ownership, or every engineer holds standing administrative access to production, that should already have been visible to you. The absence of a control is an engineering decision, even when nobody remembers making it. Teams normalise these choices and then read the absence of incidents as evidence that the choices were sound.

Coding agents make this more pressing than it was a year ago. They generate and execute changes at a pace that informal conventions were never built for, and when an agent inherits broad credentials the blast radius is set by those permissions, not by how carefully anyone wrote the prompt. Boundaries have to be enforced by the environment rather than trusted to the judgement of whoever, or whatever, is working inside it.

That is what the rest of this series is for. This piece is recognition. The next three are the core. Part 1 takes the first four habits, which set most of the blast radius, and gives each its better default and a first step that fits in a week. Part 2 is enforcement: turning the defaults into checks a pipeline can run. Part 3 is verification: breaking those checks on purpose to prove they detect anything at all. Further parts work through the remaining six habits with the same three moves.

If you would like a second pair of eyes on your ten answers, jfsi can run the audit with you.

Further reading: OWASP Database Security Cheat Sheet · OWASP Multi-Tenant Security Cheat Sheet · GitHub Docs: About security hardening with OpenID Connect · PostgreSQL: Row Security Policies