forked from NginxProxyManager/nginx-proxy-manager
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenappsec-log.js
executable file
·41 lines (38 loc) · 1.02 KB
/
openappsec-log.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
name: '',
eventSeverity: '',
assetName: '',
securityAction: '',
waapIncidentType: '',
httpSourceId: '',
sourceIP: '',
// 'Proxy-IP': '',
proxyIP: '',
httpHostName: '',
httpMethod: '',
// 'HTTP-Response-Code': '',
httpResponseCode: '',
httpUriPath: '',
// 'Protection-Name': '',
protectionName: '',
matchedLocation: '',
matchedParameter: '',
matchedSample: '',
eventPriority: '',
eventTopic: '',
eventName: '',
// Suggested Remediation if Applicable
suggestedRemediation: ''
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};