Detection rules › Panther

MongoDB logging toggled

Severity
low
Log types
MongoDB.ProjectEvent
Reference
https://attack.mitre.org/techniques/T1562/008/
Source
github.com/panther-labs/panther-analysis

MongoDB logging toggled

MITRE ATT&CK coverage

Rule body yaml

AnalysisType: rule
Description: "MongoDB logging toggled"
DisplayName: "MongoDB logging toggled"
Enabled: true
Filename: mongodb_logging_toggled.py
Severity: Low
Reference: https://attack.mitre.org/techniques/T1562/008/
Tests:
  - ExpectedResult: false
    Log:
      created: "2023-06-07 16:57:55"
      currentValue: {}
      eventTypeName: CAT_JUMPED
      id: 6480b7139bd8a012345ABCDE
      isGlobalAdmin: false
      links:
        - href: https://cloud.mongodb.com/api/atlas/v1.0/orgs/12345xyzlmnce4f17d6e8e130/events/6480b7139bd8a012345ABCDE
          rel: self
      orgId: 12345xyzlmnce4f17d6e8e130
      p_event_time: "2023-06-07 16:57:55"
      p_log_type: MongoDB.OrganizationEvent
      p_parse_time: "2023-06-07 17:04:42.59"
      p_row_id: ea276b16216684d9e198c0d0188a3d
      p_schema_version: 0
      p_source_id: 7c3cb124-9c30-492c-99e6-46518c232d73
      p_source_label: MongoDB
      remoteAddress: 1.2.3.4
      targetUsername: insider@company.com
      userId: 647f654f93bebc69123abc1
      username: user@company.com
    Name: Random event
  - ExpectedResult: true
    Log:
      created: "2023-06-07 16:57:55"
      currentValue: {}
      eventTypeName: AUDIT_LOG_CONFIGURATION_UPDATED
      id: 6480b7139bd8a012345ABCDE
      isGlobalAdmin: false
      links:
        - href: https://cloud.mongodb.com/api/atlas/v1.0/orgs/12345xyzlmnce4f17d6e8e130/events/6480b7139bd8a012345ABCDE
          rel: self
      orgId: 12345xyzlmnce4f17d6e8e130
      p_event_time: "2023-06-07 16:57:55"
      p_log_type: MongoDB.OrganizationEvent
      p_parse_time: "2023-06-07 17:04:42.59"
      p_row_id: ea276b16216684d9e198c0d0188a3d
      p_schema_version: 0
      p_source_id: 7c3cb124-9c30-492c-99e6-46518c232d73
      p_source_label: MongoDB
      remoteAddress: 1.2.3.4
      targetUsername: insider@company.com
      userId: 647f654f93bebc69123abc1
      username: user@company.com
    Name: Logging toggled
DedupPeriodMinutes: 60
LogTypes:
  - MongoDB.ProjectEvent
RuleID: "MongoDB.Logging.Toggled"
Threshold: 1

Detection logic

Condition

eventTypeName eq "AUDIT_LOG_CONFIGURATION_UPDATED"

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
eventTypeNameeq
  • AUDIT_LOG_CONFIGURATION_UPDATED

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
username
target_usernametargetUsername
org_idorgId
remote_addressremoteAddress