forked from google/tsunami-security-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scan_results.proto
89 lines (73 loc) · 2.54 KB
/
scan_results.proto
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Data models for describing scanning results.
syntax = "proto3";
package tsunami.proto;
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
import "detection.proto";
import "network_service.proto";
import "reconnaissance.proto";
import "vulnerability.proto";
option java_multiple_files = true;
option java_outer_classname = "ScanResultsProtos";
option java_package = "com.google.tsunami.proto";
option go_package = "github.com/google/tsunami-security-scanner/proto";
// Execution status of the scan.
// NEXT ID: 5
enum ScanStatus {
// Unspecified status.
SCAN_STATUS_UNSPECIFIED = 0;
// Scan finished successfully.
SUCCEEDED = 1;
// Scan finished with only a small set of selected detectors succeeded.
PARTIALLY_SUCCEEDED = 4;
// Scan failed.
FAILED = 2;
// Scan cancelled.
CANCELLED = 3;
}
// A single vulnerability finding for a specific service.
message ScanFinding {
// Information about the scanned target.
TargetInfo target_info = 1;
// Information about the scanned network service.
NetworkService network_service = 2;
// Details about the detected vulnerability.
Vulnerability vulnerability = 3;
}
// Full scanning results.
// NEXT ID: 8
message ScanResults {
// Status of this scan.
ScanStatus scan_status = 1;
// Detailed message for the scan status.
string status_message = 6;
// All findings from this scan.
repeated ScanFinding scan_findings = 2;
// Time when this scan was started.
google.protobuf.Timestamp scan_start_timestamp = 3;
// Duration of the full scan.
google.protobuf.Duration scan_duration = 4;
// Detection reports from all triggered Tsunami detection plugins.
FullDetectionReports full_detection_reports = 5;
// Reconnaissance reports from the fingerprinting stage.
ReconnaissanceReport reconnaissance_report = 7;
}
// Full detection reports from all triggered Tsunami detection plugins.
message FullDetectionReports {
repeated DetectionReport detection_reports = 1;
}