diff --git a/technologies/harbor-detect.yaml b/technologies/harbor-detect.yaml index d20e4657cf..a0afb4f225 100644 --- a/technologies/harbor-detect.yaml +++ b/technologies/harbor-detect.yaml @@ -2,22 +2,37 @@ id: harbor-detect info: name: Harbor Detect - author: pikpikcu + author: pikpikcu,daffainfo severity: info + description: Harbor is an open source trusted cloud native registry project that stores, signs, and scans content. + reference: + - https://github.com/goharbor/harbor + metadata: + verified: true + shodan-query: http.favicon.hash:657337228 tags: tech,harbor requests: - method: GET path: - - '{{BaseURL}}' + - '{{BaseURL}}/api/v2.0/systeminfo' matchers-condition: and matchers: - type: word - words: - - "Harbor" part: body + words: + - '"auth_mode"' + - '"harbor_version"' + - '"harbor_version"' + condition: and - type: status status: - 200 + + extractors: + - type: regex + group: 1 + regex: + - '(?m)"harbor_version":"([0-9.]+)",'