Skip to content
Database systems
ASD ISMISM-1537

ASD ISM 1537 Log security-relevant database events centrally

What it says

Security-relevant events for databases are centrally logged, including:

  • access or modification of particularly important content
  • addition of new users, especially privileged users
  • changes to user roles or privileges
  • attempts to elevate user privileges
  • queries containing comments
  • queries containing multiple embedded queries
  • database and query alerts or failures
  • database structure changes
  • database administrator actions
  • use of executable commands
  • database logons and logoffs.

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

In plain English

Send security-relevant events for every database to central logging, covering every listed type, from logons and privilege changes to queries containing comments.

Security-relevant events for databases must be sent to a central logging facility, including at least:

  • Content and accounts: access to or modification of particularly important content (the organisation decides which), new users, especially privileged ones, changes to roles or privileges, and attempts to elevate privileges
  • Queries: queries containing comments or multiple embedded queries, and database and query alerts or failures
  • Administration: database structure changes, database administrator actions, use of executable commands, such as ones that run operating system commands, and logons and logoffs

Why it matters

Misuse of a database often shows in events such as queries carrying comments, new privileged accounts and unexpected executable commands. Central logging keeps copies off the server, where they can be analysed and used in investigations even if the server is later compromised.

How to implement

  1. List the databases and decide which content is particularly important.

    Use the database register (ISM-1243), including managed cloud databases, and choose the tables whose access or modification must be logged, starting with those holding the most sensitive data under ISM-0393.

  2. Turn on the database's audit features for every listed event.

    Map each listed type to an audit setting, covering logons and logoffs, new users, role and privilege changes, elevation attempts, structure changes, administrator actions, executable commands, alerts and failures, and access and changes to the important tables. Make changes to the audit settings themselves produce an event.

  3. Capture queries containing comments or multiple embedded queries.

    Where the database's own auditing cannot single these out, capture statement text through its audit trail or a database activity monitoring tool and forward the matching queries. Include queries from administrators' tools as well as from software, whose queries ISM-1536 already requires centrally logged.

  4. Forward events to the central logging facility (ISM-1405).

    Use an agent, a log forwarder or the cloud provider's log export, and send events as soon as possible (ISM-1983) with the details ISM-0585 requires, such as date and time, user or process and the equipment involved. For a managed database service, turn on the provider's audit logs and export them.

  5. Test each event type end to end.

    On each database, under change control, generate every listed event, such as a test user, a failed privilege elevation and a query containing a comment, and confirm each arrives in the central facility with its details.

Keep it running

Add each new database to central logging before it goes live, and recheck audit settings after upgrades, migrations and restores, which can reset them. Alert when a database stops sending events, and update which content counts as particularly important as contents change.

Evidence and audit

  1. Check 1 of 4What an auditor asks for

    Ask for

    The database register and an independent discovery of databases, such as cloud inventories and a network scan for database ports, compared with the sources sending events to the central logging facility.

    Look at

    Whether every database found sends events centrally.

    Good evidence

    Every database found, including managed cloud databases, is an active source in the central logging facility with recent events.

  2. Check 2 of 4What an auditor asks for

    Ask for

    The audit configuration of a sample of databases, mapped against each listed event type.

    Look at

    Whether every listed type is enabled, which content is defined as particularly important, and whether changing the audit settings creates an event.

    Good evidence

    Every listed event type is enabled, the content defined as particularly important includes the most sensitive data each database holds under ISM-0393, and turning auditing off or changing it creates a centrally logged event.

  3. Check 3 of 4What an auditor asks for

    Ask for

    A live test on a sampled database that generates each listed event type, such as creating a test user, attempting a privilege elevation, and running a query containing a comment and one with multiple embedded queries.

    Look at

    Whether each event reaches the central logging facility, how quickly, and with what details.

    Good evidence

    Each test event appears in the central logging facility soon after it happens, showing the date and time, the account, the database and what was done.

  4. Check 4 of 4What an auditor asks for

    Ask for

    The database's own audit trail for a recent day, compared with the central log for the same day.

    Look at

    Security-relevant events recorded locally that are missing centrally.

    Good evidence

    Every security-relevant event in the local audit trail also appears in the central logging facility.

Mappings

Closest match in ISO/IEC 27001: A.8.15, Logging, which this control partially meets.

ISO 27001

ISO/IEC 27001: 3 mappings

  • A.8.15LoggingPartially meets
  • A.8.16Monitoring activitiesSupports
Essential Eight

ASD Essential Eight: 2 mappings

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