From 093850f6c355d1f3048a414c62b272cdecd974ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 26 May 2020 12:00:27 +0200 Subject: [PATCH] new: Preliminary version of git-vuln-finder object template --- objects/git-vuln-finder/definition.json | 133 ++++++++++++++++++++++++ schema_objects.json | 1 + 2 files changed, 134 insertions(+) create mode 100644 objects/git-vuln-finder/definition.json diff --git a/objects/git-vuln-finder/definition.json b/objects/git-vuln-finder/definition.json new file mode 100644 index 0000000..2624f4f --- /dev/null +++ b/objects/git-vuln-finder/definition.json @@ -0,0 +1,133 @@ +{ + "attributes": { + "author": { + "description": "Commit author", + "misp-attribute": "text", + "ui-priority": 1 + }, + "author-email": { + "description": "Commit authors email", + "misp-attribute": "email-src", + "ui-priority": 1 + }, + "authored_date": { + "description": "Date the commit was originally made", + "misp-attribute": "datetime", + "ui-priority": 1 + }, + "branches": { + "description": "Branches the commit is on", + "disable_correlation": true, + "misp-attribute": "text", + "multiple": true, + "ui-priority": 1 + }, + "commit-id": { + "description": "Commit ID where the vulnerability is fixed.", + "misp-attribute": "git-commit-id", + "ui-priority": 1 + }, + "committed_date": { + "description": "Date the commit was modified last", + "misp-attribute": "datetime", + "ui-priority": 1 + }, + "cve": { + "description": "CVE associated to the vulnerability", + "misp-attribute": "vulnerability", + "ui-priority": 1 + }, + "language": { + "description": "Language of the commit (ISO 639-1 codes)", + "disable_correlation": true, + "misp-attribute": "text", + "multiple": true, + "ui-priority": 1 + }, + "message": { + "description": "Commit message", + "disable_correlation": true, + "misp-attribute": "text", + "ui-priority": 0 + }, + "origin": { + "description": "Origin of the repository", + "misp-attribute": "text", + "ui-priority": 1 + }, + "origin-github-api": { + "description": "Full path to the commit on github", + "disable_correlation": true, + "misp-attribute": "url", + "ui-priority": 0 + }, + "pattern-matches": { + "description": "Pattern matching for the vulnerability", + "disable_correlation": true, + "misp-attribute": "text", + "multiple": true, + "ui-priority": 1 + }, + "pattern-selected": { + "description": "Pattern used to find the vulnerability", + "disable_correlation": true, + "misp-attribute": "text", + "ui-priority": 0 + }, + "state": { + "description": "State of the vulnerability", + "disable_correlation": true, + "misp-attribute": "text", + "sane_default": [ + "under-review", + "cve-assigned" + ], + "ui-priority": 1 + }, + "stats.deletions": { + "description": "Number of deletions in the commit", + "disable_correlation": true, + "misp-attribute": "counter", + "ui-priority": 0 + }, + "stats.files": { + "description": "Number of files changed in the commit", + "disable_correlation": true, + "misp-attribute": "counter", + "ui-priority": 0 + }, + "stats.insertions": { + "description": "Number of insertions in the commit", + "disable_correlation": true, + "misp-attribute": "counter", + "ui-priority": 0 + }, + "stats.lines": { + "description": "Number of line changes in the commit", + "disable_correlation": true, + "misp-attribute": "counter", + "ui-priority": 0 + }, + "summary": { + "description": "Commit summary", + "disable_correlation": true, + "misp-attribute": "text", + "ui-priority": 1 + }, + "tags": { + "description": "User defined tags", + "disable_correlation": true, + "misp-attribute": "text", + "multiple": true, + "ui-priority": 1 + } + }, + "description": "Export from git-vuln-finder", + "meta-category": "vulnerability", + "name": "git-vuln-finder", + "required": [ + "commit-id" + ], + "uuid": "caacd757-c324-486d-a429-93b5eb6dff27", + "version": 1 +} \ No newline at end of file diff --git a/schema_objects.json b/schema_objects.json index e046803..2d6300a 100644 --- a/schema_objects.json +++ b/schema_objects.json @@ -101,6 +101,7 @@ "frequent-flyer-number", "gender", "gene", + "git-commit-id", "github-organisation", "github-repository", "github-username",