finding.proto 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Copyright 2019 Google LLC.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. syntax = "proto3";
  16. package google.cloud.websecurityscanner.v1beta;
  17. import "google/api/resource.proto";
  18. import "google/cloud/websecurityscanner/v1beta/finding_addon.proto";
  19. option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "FindingProto";
  23. option java_package = "com.google.cloud.websecurityscanner.v1beta";
  24. option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
  25. option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
  26. // A Finding resource represents a vulnerability instance identified during a
  27. // ScanRun.
  28. message Finding {
  29. option (google.api.resource) = {
  30. type: "websecurityscanner.googleapis.com/Finding"
  31. pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}"
  32. };
  33. // The resource name of the Finding. The name follows the format of
  34. // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
  35. // The finding IDs are generated by the system.
  36. string name = 1;
  37. // The type of the Finding.
  38. // Detailed and up-to-date information on findings can be found here:
  39. // https://cloud.google.com/security-scanner/docs/scan-result-details
  40. string finding_type = 2;
  41. // The http method of the request that triggered the vulnerability, in
  42. // uppercase.
  43. string http_method = 3;
  44. // The URL produced by the server-side fuzzer and used in the request that
  45. // triggered the vulnerability.
  46. string fuzzed_url = 4;
  47. // The body of the request that triggered the vulnerability.
  48. string body = 5;
  49. // The description of the vulnerability.
  50. string description = 6;
  51. // The URL containing human-readable payload that user can leverage to
  52. // reproduce the vulnerability.
  53. string reproduction_url = 7;
  54. // If the vulnerability was originated from nested IFrame, the immediate
  55. // parent IFrame is reported.
  56. string frame_url = 8;
  57. // The URL where the browser lands when the vulnerability is detected.
  58. string final_url = 9;
  59. // The tracking ID uniquely identifies a vulnerability instance across
  60. // multiple ScanRuns.
  61. string tracking_id = 10;
  62. // An addon containing information reported for a vulnerability with an HTML
  63. // form, if any.
  64. Form form = 16;
  65. // An addon containing information about outdated libraries.
  66. OutdatedLibrary outdated_library = 11;
  67. // An addon containing detailed information regarding any resource causing the
  68. // vulnerability such as JavaScript sources, image, audio files, etc.
  69. ViolatingResource violating_resource = 12;
  70. // An addon containing information about vulnerable or missing HTTP headers.
  71. VulnerableHeaders vulnerable_headers = 15;
  72. // An addon containing information about request parameters which were found
  73. // to be vulnerable.
  74. VulnerableParameters vulnerable_parameters = 13;
  75. // An addon containing information reported for an XSS, if any.
  76. Xss xss = 14;
  77. }