Code

Secrets Detection

Secrets Detection finds API keys, passwords and tokens sitting in your code, and checks whether they are still active.

An API key or password committed to code stays in the history and can be read by anyone with access to the repository. Leaks like this are a common way in for attackers. Aikido’s Secrets Detection finds the secrets in your code and helps you stop new ones before they are committed.

What it is

Secrets Detection is part of the Aikido platform. It searches code for secrets: API keys, tokens, passwords, private keys and database credentials.

It covers all text files, including configuration such as YAML, JSON, .env and Terraform, as well as commit messages.

How it works

Aikido recognises secrets by the pattern of known key types and by entropy, meaning how random a string looks.

The findings are then sorted so that you do not have to wade through false hits:

  • Live secret verification. Aikido checks whether a secret still works and adjusts the severity accordingly.
  • AutoTriage. Aikido reads the code around a finding to tell real secrets from placeholders and test values. In unclear cases an AI agent works out what the key is used for and how much access it gives.

The module can sit at several points in the workflow. Developers get a warning in the IDE before code is committed, and pre-commit hooks can stop a commit that contains a secret. In CI, Aikido can block a pull request or a build.

By default the code is scanned as it stands now. You can switch on scanning of the full Git history to find secrets in old commits.

A finding shows the file, the line and the type of key. Aikido does not revoke the key for you. You have to rotate it yourself with the service it belongs to.

Who it is for

The module suits any team with code in Git, whatever its size. It is especially useful where many developers, contractors or AI tools write code, and where repositories are shared more widely than before.

How FM CyberSecurity helps

FM CyberSecurity is an Aikido partner and resells the licences. Our consultants help you set up the scan, go through the first findings and build the check into the IDE and CI so that new secrets are stopped early.

Last updated 26 Nov 2026

Contact

Portrait of Christian Vik

Christian Vik

Aikido lead

Email christian.vik@fmcybersecurity.com

For the complete documentation index, see /llms.txt. Markdown version of this page: /en/products/aikido/secrets-detection.md.