|
| 1 | +rules: |
| 2 | + - path: /v2/apis/auth/oauth/token |
| 3 | + methods: ['POST'] |
| 4 | + request_headers: |
| 5 | + Content-Type: |
| 6 | + - 'application/x-www-form-urlencoded' |
| 7 | + responses: |
| 8 | + - status_code: 200 |
| 9 | + headers: |
| 10 | + Content-Type: |
| 11 | + - 'application/json' |
| 12 | + body: | |
| 13 | + {"access_token":"xxxx","expires_in":3600,"token_type":"Bearer"} |
| 14 | + - path: /v2/apis/report;realm=observeit/reports |
| 15 | + methods: ['GET'] |
| 16 | + query_params: |
| 17 | + since: "{since:20.*}" |
| 18 | + request_headers: |
| 19 | + Authorization: |
| 20 | + - 'Bearer xxxx' |
| 21 | + responses: |
| 22 | + - status_code: 200 |
| 23 | + body: |- |
| 24 | + {{ minify_json ` |
| 25 | + { |
| 26 | + "data": [ |
| 27 | + { |
| 28 | + "_time": "2025-02-25T16:08:11Z", |
| 29 | + "accessedSiteName": "c-awfi.top", |
| 30 | + "accessedUrl": "http://c-awfi.top/", |
| 31 | + "applicationName": "Windows Shell Experience Host", |
| 32 | + "collectorId": "C2C1C429-C002-4FB8-99F4-7F1005ED9889", |
| 33 | + "collectorUrl": "https://code1.preview.observeit.net/", |
| 34 | + "command": "example_command", |
| 35 | + "commandParams": "--example --params", |
| 36 | + "createdAt": "2025-02-25T16:08:11Z", |
| 37 | + "domainName": "code1.observeit.net", |
| 38 | + "endpointId": "E035BBC2-1D72-4F25-9408-2BD807FB7B13", |
| 39 | + "endpointName": "Example Endpoint", |
| 40 | + "host": "host.example.com", |
| 41 | + "id": "7340EB6D-A8BB-4F25-9408-2BD807FB7B13", |
| 42 | + "loginName": "Administrator", |
| 43 | + "observedAt": "2025-02-25T16:08:11Z", |
| 44 | + "os": "Windows", |
| 45 | + "playbackUrl": "https://code1.preview.observeit.net/ObserveIT/SlideViewer.aspx?SessionID=1A8B5249-EDAC-A8BB-4F25-9408-2BD807FB7B13", |
| 46 | + "processExecutable": "shellexexperiencehost", |
| 47 | + "remoteAddress": "175.16.199.0", |
| 48 | + "remoteHostName": "Dake-WinX", |
| 49 | + "risingValue": "2025-03-01T12:00:00Z", |
| 50 | + "secondaryDomainName": "n/a", |
| 51 | + "secondaryLoginName": "n/a", |
| 52 | + "sessionUrl": "https://session.example.com/abc123", |
| 53 | + "timezoneOffset": "0", |
| 54 | + "windowTitle": "Start", |
| 55 | + "sessionId": "1A8B52A9-EDAC-448E-9871-79DB21D53C28", |
| 56 | + "databaseName": "example_database", |
| 57 | + "details": "Detailed description of the event.", |
| 58 | + "detailsUrl": "https://details.example.com/event/abcde", |
| 59 | + "eventPlaybackUrl": "https://playback.example.com/event/abcde", |
| 60 | + "ruleCategoryName": "Security", |
| 61 | + "ruleDesc": "Description of the security rule.", |
| 62 | + "ruleName": "Invalid User Asstempt", |
| 63 | + "severity": "High", |
| 64 | + "sqlCommand": "SELECT * FROM users;", |
| 65 | + "sqlUserName": "db_user", |
| 66 | + "userActivityEventId": 9876543210, |
| 67 | + "userActivityObservedAt": "2025-02-25T16:08:11Z", |
| 68 | + "operationKind": "Read", |
| 69 | + "originFileName": "confidential.docx", |
| 70 | + "originSiteName": "Internal SharePoint", |
| 71 | + "targetFileName": "confidential_copy.docx", |
| 72 | + "targetSiteName": "External Drive" |
| 73 | + }, |
| 74 | + { |
| 75 | + "_time": "2125-02-25T16:09:11Z", |
| 76 | + "accessedSiteName": "c-awfi.top", |
| 77 | + "accessedUrl": "http://c-awfi.top/", |
| 78 | + "applicationName": "Windows Shell Experience Host", |
| 79 | + "collectorId": "C2C1C429-C002-4FB8-99F4-7F1005ED9889", |
| 80 | + "collectorUrl": "https://code1.preview.observeit.net/", |
| 81 | + "command": "example_command", |
| 82 | + "commandParams": "--example --params", |
| 83 | + "createdAt": "2125-02-25T16:08:11Z", |
| 84 | + "domainName": "code1.observeit.net", |
| 85 | + "endpointId": "E035BBC2-1D72-4F25-9408-2BD807FB7B13", |
| 86 | + "endpointName": "Example Endpoint", |
| 87 | + "host": "host.example.com", |
| 88 | + "id": "7340EB6D-A8BB-4F25-9408-2BD807FB7B13", |
| 89 | + "loginName": "Administrator", |
| 90 | + "observedAt": "2125-02-25T16:08:11Z", |
| 91 | + "os": "Windows", |
| 92 | + "playbackUrl": "https://code1.preview.observeit.net/ObserveIT/SlideViewer.aspx?SessionID=1A8B5249-EDAC-A8BB-4F25-9408-2BD807FB7B13", |
| 93 | + "processExecutable": "shellexexperiencehost", |
| 94 | + "remoteAddress": "175.16.199.0", |
| 95 | + "remoteHostName": "Dake-WinX", |
| 96 | + "risingValue": "2125-03-01T12:00:00Z", |
| 97 | + "secondaryDomainName": "n/a", |
| 98 | + "secondaryLoginName": "n/a", |
| 99 | + "sessionUrl": "https://session.example.com/abc123", |
| 100 | + "timezoneOffset": "0", |
| 101 | + "windowTitle": "Start", |
| 102 | + "sessionId": "1A8B52A9-EDAC-448E-9871-79DB21D53C28", |
| 103 | + "databaseName": "example_database", |
| 104 | + "details": "Detailed description of the event.", |
| 105 | + "detailsUrl": "https://details.example.com/event/abcde", |
| 106 | + "eventPlaybackUrl": "https://playback.example.com/event/abcde", |
| 107 | + "ruleCategoryName": "Security", |
| 108 | + "ruleDesc": "Description of the security rule.", |
| 109 | + "ruleName": "Invalid User Asstempt", |
| 110 | + "severity": "High", |
| 111 | + "sqlCommand": "SELECT * FROM users;", |
| 112 | + "sqlUserName": "db_user", |
| 113 | + "userActivityEventId": 9876543210, |
| 114 | + "userActivityObservedAt": "2125-02-25T16:08:11Z", |
| 115 | + "operationKind": "Read", |
| 116 | + "originFileName": "confidential.docx", |
| 117 | + "originSiteName": "Internal SharePoint", |
| 118 | + "targetFileName": "confidential_copy.docx", |
| 119 | + "targetSiteName": "External Drive" |
| 120 | + } |
| 121 | + ] |
| 122 | + } |
| 123 | + `}} |
| 124 | + - path: /v2/apis/report;realm=observeit/reports |
| 125 | + methods: ['GET'] |
| 126 | + query_params: |
| 127 | + since: "{since:21.*}" |
| 128 | + request_headers: |
| 129 | + Authorization: |
| 130 | + - 'Bearer xxxx' |
| 131 | + responses: |
| 132 | + - status_code: 200 |
| 133 | + body: |- |
| 134 | + {{ minify_json ` |
| 135 | + { |
| 136 | + "data": [ |
| 137 | + { |
| 138 | + "_time": "2125-02-25T16:08:11Z", |
| 139 | + "accessedSiteName": "c-awfi.top", |
| 140 | + "accessedUrl": "http://c-awfi.top/", |
| 141 | + "applicationName": "Windows Shell Experience Host", |
| 142 | + "collectorId": "C2C1C429-C002-4FB8-99F4-7F1005ED9889", |
| 143 | + "collectorUrl": "https://code1.preview.observeit.net/", |
| 144 | + "command": "example_command", |
| 145 | + "commandParams": "--example --params", |
| 146 | + "createdAt": "2125-02-25T16:08:11Z", |
| 147 | + "domainName": "code1.observeit.net", |
| 148 | + "endpointId": "E035BBC2-1D72-4F25-9408-2BD807FB7B13", |
| 149 | + "endpointName": "Example Endpoint", |
| 150 | + "host": "host.example.com", |
| 151 | + "id": "7340EB6D-A8BB-4F25-9408-2BD807FB7B13", |
| 152 | + "loginName": "Administrator", |
| 153 | + "observedAt": "2125-02-25T16:08:11Z", |
| 154 | + "os": "Windows", |
| 155 | + "playbackUrl": "https://code1.preview.observeit.net/ObserveIT/SlideViewer.aspx?SessionID=1A8B5249-EDAC-A8BB-4F25-9408-2BD807FB7B13", |
| 156 | + "processExecutable": "shellexexperiencehost", |
| 157 | + "remoteAddress": "175.16.199.0", |
| 158 | + "remoteHostName": "Dake-WinX", |
| 159 | + "risingValue": "2225-03-01T12:00:00Z", |
| 160 | + "secondaryDomainName": "n/a", |
| 161 | + "secondaryLoginName": "n/a", |
| 162 | + "sessionUrl": "https://session.example.com/abc123", |
| 163 | + "timezoneOffset": "0", |
| 164 | + "windowTitle": "Start", |
| 165 | + "sessionId": "1A8B52A9-EDAC-448E-9871-79DB21D53C28", |
| 166 | + "databaseName": "example_database", |
| 167 | + "details": "Detailed description of the event.", |
| 168 | + "detailsUrl": "https://details.example.com/event/abcde", |
| 169 | + "eventPlaybackUrl": "https://playback.example.com/event/abcde", |
| 170 | + "ruleCategoryName": "Security", |
| 171 | + "ruleDesc": "Description of the security rule.", |
| 172 | + "ruleName": "Invalid User Asstempt", |
| 173 | + "severity": "High", |
| 174 | + "sqlCommand": "SELECT * FROM users;", |
| 175 | + "sqlUserName": "db_user", |
| 176 | + "userActivityEventId": 9876543210, |
| 177 | + "userActivityObservedAt": "2125-02-25T16:08:11Z", |
| 178 | + "operationKind": "Read", |
| 179 | + "originFileName": "confidential.docx", |
| 180 | + "originSiteName": "Internal SharePoint", |
| 181 | + "targetFileName": "confidential_copy.docx", |
| 182 | + "targetSiteName": "External Drive" |
| 183 | + } |
| 184 | + ] |
| 185 | + } |
| 186 | + `}} |
0 commit comments