CategoriesAI & Security

AI Security Starts with the Boring Stuff

AI Security Starts with the Boring Stuff | Anuj Varma

The exciting work depends on the fundamentals everyone wants to skip.

People want to avoid doing boring stuff. Everyone wants to work on the next new thing.

I saw this repeatedly when I worked as a cloud architect. Customers wanted to move applications to the cloud with the expectation that the move would magically fix their performance problems.

But an inefficient database query remained an inefficient database query. An application making unnecessary network calls continued making them. Moving the application changed where it ran. Improving it required examining how it worked.

In my experience, that expectation of magic was one of the most persistent problems in cloud migrations. The appeal of a new platform often overshadowed the less exciting work needed to make it deliver.

I see the same temptation in AI security.

Yes, AI introduces new attack surfaces. Prompt injection, manipulation of retrieved content, and misuse of agent tools deserve serious attention. We need to understand how these systems can fail—and how attackers can exploit those failures.

But the boring stuff still needs to be in place.

1. Secure your secrets

Use a proper secrets manager. Keep credentials out of source code, configuration files, prompts, and conversation histories. Where possible, use workload identities and short-lived credentials.

An AI agent may need to call an API. That does not mean the model needs to see the API key. A trusted application component can supply the credential when it executes the authorized request.

A sophisticated AI security discussion loses much of its value if a production credential is sitting in a script.

2. Scope your access tokens

Look closely at what each token permits, which service should accept it, and how long it remains valid.

A token for reading a specific dataset should not also permit changing infrastructure. A temporary task should not depend on credentials that remain usable indefinitely.

Before asking whether an agent can be manipulated, ask what its credentials would allow it to do if it were. Narrow permissions and short lifetimes help contain the consequences.

3. Enforce least privilege

Give each application, service, and agent only the access required for its task.

If an agent summarizes documents, examine why it would need permission to delete them. If it retrieves customer information, examine why it would need access to every customer record.

Enforce those boundaries in the systems granting access. An instruction telling an agent to “only access authorized data” cannot replace an authorization policy.

That work takes time. Someone has to examine roles, resources, operations, and business requirements. It is precisely the kind of work teams are tempted to postpone.

4. Logs, logs, and more logs

Authentication events. Authorization failures. Credential changes. Administrative actions. Agent tool calls. Access to sensitive resources.

Turn on the logs that let you reconstruct what happened. For an AI workflow, you should be able to connect the initiating user, the agent identity, the requested action, and the outcome.

Be thorough about events and selective about content: passwords, tokens, and unnecessary sensitive prompt or response data should stay out of logs. Protect the logs themselves, and make sure someone can investigate and act on them.

The foundations are part of AI security

These controls may sound familiar because they are. Their familiarity does not make them less relevant.

Consider an agent redirected into calling a tool it should never have been allowed to use. The manipulation may be specific to AI. The excessive permission is a familiar security failure.

Both need attention. Addressing the new threat does not excuse leaving the old weakness in place.

The same questions I asked as a cloud architect still apply: What are we trying to accomplish? What does this system actually need? Which assumptions have we failed to examine?

The answers rarely come from buying the newest platform or adding another impressive diagram to a presentation. They come from doing the detailed work.

There is no substitute for doing the boring stuff. The exciting stuff needs to build on it.