/Ian Tabone

Security in the AI Age for Engineering Teams.

How to secure engineering teams and products in the AI age: secrets, supply chain, least privilege for agents, sandboxing, review and auditability.

Security
AI
Supply Chain
Engineering Leadership
Abstract illustration of a shield-like boundary around connected nodes representing secured AI-enabled engineering.

The perimeter now includes the assistant

When a team adopts AI assistants and coding agents, it adds a new kind of actor to its environment: software that reads your code and documents, calls tools and acts with the permissions you give it. Securing AI-enabled engineering is mostly about applying familiar principles to that actor, carefully, rather than inventing a new discipline.

This article covers the defensive side. The attack side is covered separately in the next piece, on new risks and exploits.

Secrets stay out of reach

The first rule is simple: assistants should not see credentials they do not need. Keep secrets out of repositories, prompts, chat transcripts and project instruction files. Use a secrets manager, short-lived credentials and separate identities for tools, so a leak can be revoked without breaking everything.

Add secret scanning to the pipeline and to pre-commit checks. Agents that read environment files or shell history can surface secrets in places nobody expected, so decide deliberately what an agent can read.

Least privilege for agents

An agent should have the narrowest access that lets the task succeed, for the shortest time. In practice that means read-only by default, scoped tokens, a dedicated service identity rather than a developer's personal credentials, and no standing access to production.

  • •Separate what an agent can read from what it can change
  • •Require explicit approval for destructive commands, new network destinations and out-of-scope edits
  • •Do not combine access to sensitive data, exposure to untrusted content and the ability to send data out in the same agent. That combination is what turns a manipulated agent into a data leak
  • •Review tool and integration permissions the way you would review a new vendor

Sandbox the work

Run agents in isolated environments such as containers, dev containers or disposable virtual machines, with limited filesystem access and restricted network egress. The aim is that if an agent is tricked or simply wrong, the blast radius is a throwaway environment and a branch, not a shared system.

Egress control is underrated. An allow-list of the destinations an agent genuinely needs removes a large class of exfiltration routes.

Supply chain discipline

AI-assisted development increases the pace at which dependencies are added. Treat every new package as a decision. Verify it exists, is maintained and is the one you intended. Pin versions, use lockfiles, scan for known vulnerabilities and review the dependency changes in a pull request as carefully as the code.

The same applies to the AI tooling itself: extensions, plug-ins and tool servers that you connect to an assistant are software with access to your environment. Install only what you have reviewed, from sources you trust.

Review is a security control

Human review of AI-assisted changes is part of the security model. Reviewers should look specifically at authentication and authorisation logic, input handling, new dependencies, changed permissions and anything touching secrets. Static analysis, dependency scanning and other automated checks should be required in CI, and protected from modification by the same agent they are judging.

Auditability and logging

If something goes wrong, you need to reconstruct what happened. Keep records of which tools are in use, what they were permitted to access and what actions they took. Tie agent actions to an identity, log them centrally and retain them under the same policy as other security-relevant logs. Treat prompts and outputs as potentially sensitive data in their own right.

Use the frameworks, but keep it practical

Two useful references are the OWASP Top 10 for LLM Applications, which lists risks such as prompt injection, sensitive information disclosure, supply chain and excessive agency, and the NIST AI Risk Management Framework, a voluntary framework organised around govern, map, measure and manage. They are good checklists and vocabulary. They do not replace the basics above.

Takeaways

  • •Keep secrets away from assistants, and use short-lived, scoped credentials
  • •Give agents least privilege, sandboxed environments and controlled egress
  • •Treat new dependencies and AI tooling as supply chain decisions
  • •Make review and automated checks mandatory, and independent of the agent
  • •Log what agents do so you can investigate and explain it later