|
| 1 | +AnalysisType: rule |
| 2 | +RuleID: ZIA.Golden.Restore.Point.Dropped |
| 3 | +Description: This rule detects when ZIA goldenRestorePoint was dropped. |
| 4 | + It means that some piece of information that was impossible to delete before, now is deletable |
| 5 | +DisplayName: ZIA Golden Restore Point Dropped |
| 6 | +Runbook: Verify that this change was planned. If not, revert the change. |
| 7 | +Reference: https://help.zscaler.com/zia/about-backup-and-restore |
| 8 | +Enabled: true |
| 9 | +Filename: zia_golden_restore_point_dropped.py |
| 10 | +Severity: Medium |
| 11 | +Reports: |
| 12 | + MITRE ATT&CK: |
| 13 | + - TA0005:T1562.008 # Disable or Modify Cloud Logs |
| 14 | +LogTypes: |
| 15 | + - Zscaler.ZIA.AdminAuditLog |
| 16 | +DedupPeriodMinutes: 60 |
| 17 | +Threshold: 1 |
| 18 | +Tests: |
| 19 | + - Name: goldenRestorePoint dropped |
| 20 | + ExpectedResult: true |
| 21 | + Log: |
| 22 | + { |
| 23 | + "event": { |
| 24 | + "action": "UPDATE", |
| 25 | + |
| 26 | + "auditlogtype": "ZIA", |
| 27 | + "category": "BACKUP_AND_RESTORE", |
| 28 | + "clientip": "1.2.3.4", |
| 29 | + "errorcode": "None", |
| 30 | + "interface": "UI", |
| 31 | + "postaction": { |
| 32 | + "adminLogin": "[email protected]", |
| 33 | + "goldenRestorePoint": false, |
| 34 | + "id": 163371, |
| 35 | + "name": "test-restore", |
| 36 | + "time": 1730737915000 |
| 37 | + }, |
| 38 | + "preaction": { |
| 39 | + "adminLogin": "[email protected]", |
| 40 | + "goldenRestorePoint": true, |
| 41 | + "id": 163371, |
| 42 | + "name": "test-restore", |
| 43 | + "time": 1730737915000 |
| 44 | + }, |
| 45 | + "recordid": "367", |
| 46 | + "resource": "test-restore", |
| 47 | + "result": "SUCCESS", |
| 48 | + "subcategory": "BACKUP_AND_RESTORE", |
| 49 | + "time": "2024-11-04 16:32:28.000000000" |
| 50 | + }, |
| 51 | + "sourcetype": "zscalernss-audit" |
| 52 | + } |
| 53 | + - Name: Backup created |
| 54 | + ExpectedResult: false |
| 55 | + Log: |
| 56 | + { |
| 57 | + "event": { |
| 58 | + "action": "CREATE", |
| 59 | + |
| 60 | + "auditlogtype": "ZIA", |
| 61 | + "category": "BACKUP_AND_RESTORE", |
| 62 | + "clientip": "1.2.3.4", |
| 63 | + "errorcode": "None", |
| 64 | + "interface": "UI", |
| 65 | + "postaction": { |
| 66 | + "adminLogin": "[email protected]", |
| 67 | + "goldenRestorePoint": false, |
| 68 | + "id": 163372, |
| 69 | + "name": "test-restore-2", |
| 70 | + "time": 1730737925000 |
| 71 | + }, |
| 72 | + "preaction": { |
| 73 | + "goldenRestorePoint": false, |
| 74 | + "id": 0, |
| 75 | + "name": "test-restore-2", |
| 76 | + "time": 0 |
| 77 | + }, |
| 78 | + "recordid": "365", |
| 79 | + "resource": "test-restore-2", |
| 80 | + "result": "SUCCESS", |
| 81 | + "subcategory": "BACKUP_AND_RESTORE", |
| 82 | + "time": "2024-11-04 16:32:05.000000000" |
| 83 | + }, |
| 84 | + "sourcetype": "zscalernss-audit" |
| 85 | + } |
0 commit comments