Skip to content
PRO-13 Identity, credential and access management
ASD EssentialsIT.PRO-13.3

ASD Essentials IT.PRO-13.3 Run Regular Secret Scanning and Rotate or Revoke Exposed Credentials

What it says

Identify and remediate unsecured keys, secrets and credentials by regularly scanning codebases, configuration files, file shares and user collaboration platforms.

Quoted as published. Everything else on this page is written by Control Stack.

What it means

In plain English

Scans code, settings files, shared drives and collaboration tools regularly for exposed passwords, keys and other secrets, then changes or cancels them.

Passwords and keys often end up where they should not, such as a database password pasted into a team chat. To meet this, scanners check code, settings files, shared drives and collaboration tools such as chat on a set schedule. Each find is checked, then the secret is changed or cancelled within a set time so the exposed copy stops working. Deleting the text alone is not enough, because copies linger in history and backups.

Where this action applies

What's in each domain?

Visibility and response: a capability domain, which ASD applies across all phases from the start.

Why it matters

An attacker who gets into a code store, file share or chat workspace can collect exposed secrets. They can then sign in as a real user or system, which is hard to spot. Each missed place or uncancelled secret keeps that door open longer.

How to implement

  1. The head of security should approve a scanning procedure that names the tool owner and lists every place to scan.

    It sets the scan schedule and the timeframes for checking finds and changing or cancelling secrets.

  2. Engineering teams should turn on scanning for every code store and build and release process, covering full change history, scripts and build logs.

    Block secrets when code is saved, so the backlog stops growing.

  3. Infrastructure and cloud teams should extend scanning to settings files wherever they are kept.

    Include every office file share and cloud storage location, such as team drives.

  4. Collaboration tool administrators should connect scanning to every chat, wiki, ticketing and shared document tool, covering existing content and attachments.

    Set new workspaces to join scanning automatically.

  5. Security operations should check each find within the set time: does it still work, and was it used?

    Raise an incident if it was used, and have the owner change or cancel it on time, storing its replacement securely.

Keep it running

Security operations runs scanning as one service, with a single list of findings. This action applies organisation-wide, in every priority phase, so set it up early. Widen coverage as new code stores, file shares and workspaces appear. Watch the scanner's own health. A failed scan, expired connection or missed workspace finds nothing and looks just like a clean result.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    Ask for the approved scanning procedure, its schedule and its timeframes for checking and changing secrets.

    Look at

    Whether any process exists, and whether it covers all four kinds of place with set timeframes.

    Good evidence

    An approved procedure covers finding and fixing exposed secrets in every kind of place.

  2. Check 2 of 5What an auditor asks for

    Ask for

    Request the scanner's connected sources and lists of code stores, build processes, file shares and workspaces.

    Look at

    Compare the two for missing places, especially new workspaces, or a kind of place with no scanning.

    Good evidence

    Every listed place, new ones included, is connected to the scanner.

  3. Check 3 of 5What an auditor asks for

    Ask for

    Ask for the scan schedule settings and the scan history for the period.

    Look at

    Whether scans ran as often as set, and whether failed runs were noticed and rerun.

    Good evidence

    Scans run on schedule everywhere, and failed runs raise an alert and are rerun.

  4. Check 4 of 5What an auditor asks for

    Ask for

    Request the findings list showing when each find was raised, checked and decided.

    Look at

    Whether finds sit unchecked past the timeframe, or batches are closed as false alarms without review.

    Good evidence

    Every find is checked on time, with a recorded decision on whether it still worked.

  5. Check 5 of 5What an auditor asks for

    Ask for

    Request change or cancellation records for a sample of confirmed finds.

    Look at

    Whether secrets were only deleted but still work, were changed late, or were left untouched.

    Good evidence

    Each confirmed secret was changed or cancelled on time, and the old one no longer works.

ASD indicators of good practice (9)

The indicators below are quoted as published from ASD's Assessment evidence guide for enterprise IT. These optional indicators help an assessor judge the action in each domain where it applies: if any not effective statement is true, the action is rated not effective; if every applicable fully effective statement is true and no other statement is, it is rated fully effective; otherwise it is rated partially effective. ASD says the indicators "do not replace expert judgement, nor are they intended to serve as a checklist".

Not effective(3)

  • NE-1No secret scanning capability is deployed.
  • NE-2No process exists to identify credentials exposed in codebases, configuration files, file shares or user collaboration platforms.
  • NE-3Unsecured keys, secrets and credentials found exposed in codebases, configuration files, scripts, file shares or user collaboration platforms are left in place with no action taken.

Partially effective(3)

  • PE-1Secret scanning is deployed but does not cover all repositories, pipelines or user collaboration platforms.
  • PE-2Scanning runs but discovered credentials are not assessed in a timely manner.
  • PE-3Unsecured keys, secrets and credentials that are discovered are assessed, but are not rotated or revoked in a timely manner.

Fully effective(3)

  • FE-1Secret scanning tooling is deployed across codebases, configuration files, file shares and user collaboration platforms.
  • FE-2Scans to identify unsecured keys, secrets and credentials run on a regular schedule defined by the organisation.
  • FE-3Unsecured keys, secrets and credentials that are discovered are assessed, then rotated and/or revoked within timeframes defined by the organisation.

Mappings

Closest match in ISO/IEC 27001: A.5.17, Management of Authentication Information, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

ASD ISM

ASD Information Security Manual: 3 mappings

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.