chg: [dev] make Reddit attributes (mostly) reflect Reddit API.

pull/260/head
VVX7 2020-06-08 11:16:59 -04:00
parent 53d2a18811
commit 7577cbe59a
4 changed files with 72 additions and 28 deletions

View File

@ -6,6 +6,12 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"account-avatar-url": {
"description": "A user profile picture or avatar.",
"misp-attribute": "url",
"multiple": true,
"ui-priority": 1
},
"account-id": { "account-id": {
"description": "Account id.", "description": "Account id.",
"misp-attribute": "text", "misp-attribute": "text",
@ -56,12 +62,6 @@
"description": "Original URL location of the page (potentially malicious).", "description": "Original URL location of the page (potentially malicious).",
"misp-attribute": "url", "misp-attribute": "url",
"ui-priority": 1 "ui-priority": 1
},
"user-avatar": {
"description": "A user profile picture or avatar.",
"misp-attribute": "attachment",
"multiple": true,
"ui-priority": 1
} }
}, },
"description": "Reddit account.", "description": "Reddit account.",
@ -75,5 +75,5 @@
"link" "link"
], ],
"uuid": "6802f885-2003-494a-b234-61aadce62731", "uuid": "6802f885-2003-494a-b234-61aadce62731",
"version": 1 "version": 2
} }

View File

@ -13,13 +13,13 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"comment": { "author": {
"description": "The raw text of the comment.", "description": "The user account that created the post (do not include u/).",
"misp-attribute": "text", "misp-attribute": "text",
"ui-priority": 1 "ui-priority": 1
}, },
"creator": { "body": {
"description": "The user account that created the post (do not include u/).", "description": "The raw text of the comment.",
"misp-attribute": "text", "misp-attribute": "text",
"ui-priority": 1 "ui-priority": 1
}, },
@ -56,7 +56,6 @@
"description": "The name of the subreddit where it was posted (exclude the r/).", "description": "The name of the subreddit where it was posted (exclude the r/).",
"disable_correlation": true, "disable_correlation": true,
"misp-attribute": "text", "misp-attribute": "text",
"multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"url": { "url": {
@ -75,11 +74,11 @@
"meta-category": "misc", "meta-category": "misc",
"name": "reddit-comment", "name": "reddit-comment",
"requiredOneOf": [ "requiredOneOf": [
"creator", "author",
"comment", "body",
"archive", "archive",
"link" "link"
], ],
"uuid": "0a7e5fc0-fe6a-43c7-a957-de3269c2eb6c", "uuid": "0a7e5fc0-fe6a-43c7-a957-de3269c2eb6c",
"version": 1 "version": 2
} }

View File

@ -13,7 +13,7 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"creator": { "author": {
"description": "The user account that created the post (do not include u/).", "description": "The user account that created the post (do not include u/).",
"misp-attribute": "text", "misp-attribute": "text",
"ui-priority": 1 "ui-priority": 1
@ -24,6 +24,16 @@
"misp-attribute": "text", "misp-attribute": "text",
"ui-priority": 1 "ui-priority": 1
}, },
"edited": {
"description": "Has the post been edited?",
"disable_correlation": true,
"misp-attribute": "text",
"sane_default": [
"True",
"False"
],
"ui-priority": 1
},
"embedded-link": { "embedded-link": {
"description": "Link embedded in the subreddit description (potentially malicious).", "description": "Link embedded in the subreddit description (potentially malicious).",
"misp-attribute": "url", "misp-attribute": "url",
@ -63,6 +73,16 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"thumbnail": {
"description": "Screen capture or exported post thumbnail.",
"misp-attribute": "attachment",
"ui-priority": 1
},
"thumbnail-url": {
"description": "Link to post thumbnail.",
"misp-attribute": "url",
"ui-priority": 1
},
"url": { "url": {
"description": "Original URL location of the Reddit post (potentially malicious).", "description": "Original URL location of the Reddit post (potentially malicious).",
"misp-attribute": "url", "misp-attribute": "url",
@ -85,5 +105,5 @@
"link" "link"
], ],
"uuid": "e5ed7e7f-2e21-44ff-839f-e58d9818f17f", "uuid": "e5ed7e7f-2e21-44ff-839f-e58d9818f17f",
"version": 1 "version": 2
} }

View File

@ -1,5 +1,11 @@
{ {
"attributes": { "attributes": {
"active-user-count": {
"description": "Number of active accounts in the subreddit.",
"disable_correlation": true,
"misp-attribute": "text",
"ui-priority": 1
},
"archive": { "archive": {
"description": "Archive of the original subreddit (Internet Archive, Archive.is, etc).", "description": "Archive of the original subreddit (Internet Archive, Archive.is, etc).",
"disable_correlation": true, "disable_correlation": true,
@ -13,12 +19,18 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"community-icon": { "banner-background-image": {
"description": "A screen capture or exported subreddit community icon.", "description": "A screen capture or exported subreddit header.",
"misp-attribute": "attachment", "misp-attribute": "attachment",
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"banner-background-url": {
"description": "A link to the subreddit header.",
"misp-attribute": "url",
"multiple": true,
"ui-priority": 1
},
"creator": { "creator": {
"description": "The user account that created the subreddit (do not include u/).", "description": "The user account that created the subreddit (do not include u/).",
"misp-attribute": "text", "misp-attribute": "text",
@ -29,6 +41,11 @@
"misp-attribute": "text", "misp-attribute": "text",
"ui-priority": 1 "ui-priority": 1
}, },
"display-name": {
"description": "The name of the subreddit (exclude the r/).",
"misp-attribute": "text",
"ui-priority": 1
},
"embedded-link": { "embedded-link": {
"description": "Link embedded in the subreddit description (potentially malicious).", "description": "Link embedded in the subreddit description (potentially malicious).",
"misp-attribute": "url", "misp-attribute": "url",
@ -47,12 +64,24 @@
"multiple": true, "multiple": true,
"ui-priority": 0 "ui-priority": 0
}, },
"header-image": { "header-title": {
"description": "A screen capture or exported subreddit header.", "description": "A title of the subreddit.",
"misp-attribute": "text",
"multiple": true,
"ui-priority": 1
},
"icon-img": {
"description": "A screen capture or exported subreddit community icon.",
"misp-attribute": "attachment", "misp-attribute": "attachment",
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"icon-img-url": {
"description": "A link to the subreddit community icon.",
"misp-attribute": "url",
"multiple": true,
"ui-priority": 1
},
"link": { "link": {
"description": "Original link to the subreddit (supposed harmless).", "description": "Original link to the subreddit (supposed harmless).",
"misp-attribute": "link", "misp-attribute": "link",
@ -76,6 +105,7 @@
"rules": { "rules": {
"description": "Raw text of the rules of the subreddit.", "description": "Raw text of the rules of the subreddit.",
"misp-attribute": "text", "misp-attribute": "text",
"multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"submit-text": { "submit-text": {
@ -89,11 +119,6 @@
"multiple": true, "multiple": true,
"ui-priority": 1 "ui-priority": 1
}, },
"subreddit-name": {
"description": "The name of the subreddit (exclude the r/).",
"misp-attribute": "text",
"ui-priority": 1
},
"subreddit-type": { "subreddit-type": {
"description": "Subreddit type, e.g. general, buy and sell etc.", "description": "Subreddit type, e.g. general, buy and sell etc.",
"disable_correlation": true, "disable_correlation": true,
@ -111,11 +136,11 @@
"meta-category": "misc", "meta-category": "misc",
"name": "reddit-subreddit", "name": "reddit-subreddit",
"requiredOneOf": [ "requiredOneOf": [
"subreddit-name", "display-name",
"description", "description",
"archive", "archive",
"link" "link"
], ],
"uuid": "5a00464c-5379-4e66-ab21-d356ba426155", "uuid": "5a00464c-5379-4e66-ab21-d356ba426155",
"version": 1 "version": 2
} }