Detection rules for AS/400 Data sources. Every rule contains its MITRE ATT&CK mapping, an impact rating, and details on what it identifies.

This category lists 8 detection rules.

RuleCategoryTechniqueImpact (C/I/A)
IBM AS/400 Audit Journal Disabling DetectionDefense EvasionT1562.002 - Impair Defenses: Disable Windows Event LoggingC:2 / I:3 / A:1
IBM AS/400 Exit Point Tampering DetectionPersistenceT1562 - Impair DefensesC:3 / I:3 / A:2
IBM AS/400 Job Queue Manipulation DetectionExecutionT1053 - Scheduled Task/JobC:2 / I:3 / A:2
IBM AS/400 Library List Manipulation DetectionPrivilege EscalationT1574 - Hijack Execution FlowC:3 / I:3 / A:2
IBM AS/400 Program Adopt Authority Abuse DetectionPrivilege EscalationT1548 - Abuse Elevation Control MechanismC:3 / I:3 / A:2
IBM AS/400 Remote Command Execution DetectionLateral MovementT1021 - Remote ServicesC:3 / I:3 / A:2
IBM AS/400 SQL Injection via ODBC/JDBC DetectionInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:2
IBM AS/400 Unauthorized IFS Access DetectionCollectionT1005 - Data from Local SystemC:3 / I:2 / A:1

Rule Example

Below is an example of a rule definition for IBM AS/400 Audit Journal Disabling Detection (view in repository):

# Rule version v1.0.0

dataTypes:
  - ibm-as400
name: IBM AS/400 Audit Journal Disabling Detection
impact:
  confidentiality: 2
  integrity: 3
  availability: 1
category: Defense Evasion
technique: "T1562.002 - Impair Defenses: Disable Windows Event Logging"
adversary: origin
references:
  - https://www.ibm.com/docs/en/i/7.5?topic=auditing-changing-security
  - https://attack.mitre.org/techniques/T1562/002/
description: |
  Detects attempts to disable or modify IBM AS/400 security auditing via CHGAUD, QAUDCTL, or QAUDLVL system value changes. Attackers disable auditing to cover their tracks.

  Next Steps:
  1. Verify the audit configuration change was authorized
  2. Re-enable auditing immediately if unauthorized
  3. Check QAUDJRN journal for recent entries before the change
  4. Review system activity during the audit gap
  5. Restrict CHGAUD and system value change authority
  6. Implement monitoring for audit control system values
where: |
  exists("log.message") &&
  (
    contains("log.message", "CHGAUD") ||
    (contains("log.message", "QAUDCTL") && contains("log.message", "*NONE")) ||
    (contains("log.message", "QAUDLVL") && contains("log.message", "changed")) ||
    (contains("log.message", "QAUDLVL2") && contains("log.message", "changed")) ||
    (contains("log.message", "audit") && contains("log.message", "disabled")) ||
    (contains("log.message", "QAUDJRN") && contains("log.message", "DLTJRN")) ||
    contains("log.message", "CHGSYSVAL SYSVAL(QAUDCTL) VALUE('*NONE')")
  )
groupBy:
  - adversary.host
  - adversary.user

Rule Details

IBM AS/400 Audit Journal Disabling Detection

Identifies attempts to turn off or alter IBM AS/400 security auditing through changes to the CHGAUD, QAUDCTL, or QAUDLVL system values. Adversaries disable auditing to conceal their activity.

IBM AS/400 Exit Point Tampering Detection

Identifies tampering with IBM AS/400 exit points through ADDEXITPGM to register malicious programs. Exit points intercept system operations and may be exploited for credential capture, data interception, or persistent backdoor access.

IBM AS/400 Job Queue Manipulation Detection

Identifies unusual job submissions and job queue manipulations on IBM AS/400 that could point to unauthorized task execution with elevated authority or persistence mechanisms.

IBM AS/400 Library List Manipulation Detection

Identifies manipulation of IBM AS/400 library lists through the CHGLIBL, ADDLIBLE, or CHGSYSLIBL commands. Adversaries change library lists to inject malicious programs that run in place of legitimate system commands (library list hijacking).

IBM AS/400 Program Adopt Authority Abuse Detection

Identifies programs that use adopted authority with *ALLOBJ special authority on IBM AS/400. Adversaries create programs that adopt elevated privileges to circumvent authorization controls and reach sensitive objects.

IBM AS/400 Remote Command Execution Detection

Identifies remote command execution on IBM AS/400 through RCMD, RMTCMD, DDM, or DRDA protocols. These commands enable adversaries to perform operations from remote systems.

IBM AS/400 SQL Injection via ODBC/JDBC Detection

Identifies SQL injection attempts aimed at IBM AS/400 over ODBC/JDBC connections. Watches database server job logs and diagnostic messages for suspicious SQL patterns.

IBM AS/400 Unauthorized IFS Access Detection

Identifies unauthorized access to the IBM AS/400 Integrated File System (IFS). Watches for activity involving sensitive directories, configuration files, and bulk file operations that might indicate data theft.