Detection rules › Panther

A User's Panther Account was Modified

Severity
high
Entities
actor_ids, ip_addresses, trace_ids, usernames
Log types
Panther.Audit
Tags
DataModel, Persistence:Account Manipulation
Reference
https://docs.panther.com/panther-developer-workflows/api/operations/user-management
Source
github.com/panther-labs/panther-analysis

A Panther user's role has been modified. This could mean password, email, or role has changed for the user.

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1098 Account Manipulation

Rule body yaml

AnalysisType: rule
Filename: panther_user_modified.py
RuleID: "Panther.User.Modified"
DisplayName: "A User's Panther Account was Modified"
Enabled: true
LogTypes:
  - Panther.Audit
Severity: High
Tags:
  - DataModel
  - Persistence:Account Manipulation
Reports:
  MITRE ATT&CK:
    - TA0003:T1098
Description: A Panther user's role has been modified. This could mean password, email, or role has changed for the user.
Runbook: Validate that this user modification was intentional.
Reference: https://docs.panther.com/panther-developer-workflows/api/operations/user-management
SummaryAttributes:
  - p_any_ip_addresses
Tests:
  - Name: Admin Role Created
    ExpectedResult: false
    Log:
      {
        "actionName": "CREATE_USER_ROLE",
        "actionParams":
          {
            "input":
              {
                "logTypeAccessKind": "DENY_ALL",
                "name": "New Admins",
                "permissions":
                  [
                    "GeneralSettingsModify",
                    "GeneralSettingsRead",
                    "SummaryRead",
                  ],
              },
          },
        "actionResult": "SUCCEEDED",
        "actor":
          {
            "attributes":
              {
                "email": "homer@springfield.gov",
                "emailVerified": true,
                "roleId": "1111111",
              },
            "id": "11111111",
            "name": "Homer Simpson",
            "type": "USER",
          },
        "errors": null,
        "p_log_type": "Panther.Audit",
        "pantherVersion": "1.2.3",
        "sourceIP": "1.2.3.4",
        "timestamp": "2022-04-27 20:47:09.425",
      }
  - Name: Users's email was changed
    ExpectedResult: true
    Log:
      {
        "XForwardedFor": ["1.2.3.4", "5.6.7.8"],
        "actionDescription": "Updates the information for a user",
        "actionName": "UPDATE_USER",
        "actionParams":
          {
            "dynamic":
              {
                "input":
                  {
                    "email": "user-email+anyplus@springfield.gov",
                    "familyName": "Email",
                    "givenName": "User",
                    "id": "75757575-7575-7575-7575-757575757575",
                    "role": { "kind": "ID", "value": "(redacted)" },
                  },
              },
            "static": {},
          },
        "actionResult": "SUCCEEDED",
        "actor":
          {
            "attributes":
              {
                "email": "admin.email@springfield.gov",
                "emailVerified": false,
                "roleId": "89898989-8989-8989-8989-898989898989",
                "roleName": "Admin",
              },
            "id": "PantherSSO_admin.email@springfield.gov",
            "name": "admin.email@springfield.gov",
            "type": "USER",
          },
        "p_any_ip_addresses": ["5.6.7.8", "1.2.3.4"],
        "p_any_trace_ids": ["PantherSSO_admin.email@springfield.gov"],
        "p_any_usernames": ["admin.email@springfield.gov"],
        "p_event_time": "2022-11-08 19:23:04.841",
        "p_log_type": "Panther.Audit",
        "p_parse_time": "2022-11-08 19:23:47.278",
        "p_row_id": "12341234123412341234123412341234",
        "p_source_id": "34343434-3434-3434-3434-343434343434",
        "p_source_label": "panther-audit-logs-region-name",
        "pantherVersion": "1.2.3",
        "sourceIP": "1.2.3.4",
        "timestamp": "2022-11-08 19:23:04.841",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
      }

  - Name: Users's role was changed
    ExpectedResult: true
    Log:
      {
        "XForwardedFor": ["5.6.7.8", "1.2.3.4"],
        "actionDescription": "Updates the information for a user",
        "actionName": "UPDATE_USER",
        "actionParams":
          {
            "dynamic":
              {
                "input":
                  {
                    "email": "user.email@springfield.gov",
                    "familyName": "Email",
                    "givenName": "User",
                    "id": "PantherSSO_user.email@springfield.gov",
                    "role": { "kind": "ID", "value": "(redacted)" },
                  },
              },
            "static": {},
          },
        "actionResult": "SUCCEEDED",
        "actor":
          {
            "attributes":
              {
                "email": "admin.email@springfield.gov",
                "emailVerified": false,
                "roleId": "12341234-1234-1234-1234-123412341234",
                "roleName": "Admin",
              },
            "id": "PantherSSO_admin.email@springfield.gov",
            "name": "admin.email@springfield.gov",
            "type": "USER",
          },
        "p_any_ip_addresses": ["5.6.7.8", "1.2.3.4"],
        "p_any_trace_ids": ["PantherSSO_admin.email@springfield.gov"],
        "p_any_usernames": ["admin.email@springfield.gov"],
        "p_event_time": "2022-11-09 23:10:35.504",
        "p_log_type": "Panther.Audit",
        "p_parse_time": "2022-11-09 23:11:47.112",
        "p_row_id": "56785678567856785678567856785678",
        "p_source_id": "34563456-3456-3456-3456-345634563456",
        "p_source_label": "panther-audit-logs-region-name",
        "pantherVersion": "1.2.3",
        "sourceIP": "5.6.7.8",
        "timestamp": "2022-11-09 23:10:35.504",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
      }
  - Name: SCIM based user provision - INFO level
    ExpectedResult: true
    Log:
      {
        "actionDescription": "User updated via SCIM",
        "actionName": "UPDATE_USER",
        "actionParams":
          {
            "input":
              {
                "email": "user.email@springfield.gov",
                "familyName": "",
                "givenName": "",
                "id": "PantherSSO_user.email@springfield.gov",
                "requesterId": "00000000-0000-4000-8000-000000000000",
                "roleId": null,
              },
          },
        "actionResult": "SUCCEEDED",
        "actor": { "id": "scim", "name": "scim", "type": "TOKEN" },
        "p_any_actor_ids": ["scim"],
        "p_any_usernames": ["scim"],
        "p_event_time": "2023-06-23 17:49:37.553847671",
        "p_log_type": "Panther.Audit",
        "p_parse_time": "2023-06-23 17:50:46.933652106",
        "p_source_label": "panther audit logs",
        "sourceIP": "12.12.12.12",
        "timestamp": "2023-06-23 17:49:37.553847671",
      }
  - Name: User modified by System account
    ExpectedResult: true
    Log:
      {
        "actionDescription": "User updated automatically by SAML.",
        "actionName": "UPDATE_USER",
        "actionParams":
          {
            "dynamic":
              {
                "input":
                  {
                    "email": "john.doe@usgs.gov",
                    "familyName": "Doe",
                    "givenName": "John",
                    "role": "AnalystReadOnly",
                  },
              },
          },
        "actionResult": "SUCCEEDED",
        "actor":
          {
            "id": "00000000-0000-4000-8000-000000000000",
            "name": "System",
            "type": "USER",
          },
        "p_log_type": "Panther.Audit",
        "pantherVersion": "1.86.15",
        "sourceIP": "",
        "timestamp": "2023-10-25 05:30:15.618835297",
      }

Detection logic

Condition

actionResult eq "SUCCEEDED"

This rule also runs imperative logic the parser cannot express as a filter; the conditions above are the structured part it could extract.

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
actionResulteq
  • SUCCEEDED

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
useractor_user
change_targetactionParams.dynamic.input.email
ipsource_ip
emailactionParams.email