From c1d402bf28677b1aa644c40cc98243bfa713c015 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Thu, 5 Nov 2015 11:30:04 +0100 Subject: [PATCH] Automation: Text export section added --- automation/README.md | 99 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/automation/README.md b/automation/README.md index cc533a7..236b536 100644 --- a/automation/README.md +++ b/automation/README.md @@ -414,3 +414,102 @@ Or POST an XML or JSON object with the above listed options: ~~~~json {"request": {"tags": ["OSINT", "!OUTDATED"], "policy": "walled-garden", "walled_garden": "teamliquid.net", "refresh": "5h"} ~~~~ + +## Text export + +An export of all attributes of a specific type to a plain text file. By default only published and IDS flagged attributes are exported. + +You can configure your tools to automatically download the following files: + +~~~~ +https:///attributes/text/download/md5 +https:///attributes/text/download/sha1 +https:///attributes/text/download/sha256 +https:///attributes/text/download/filename +https:///attributes/text/download/filename|md5 +https:///attributes/text/download/filename|sha1 +https:///attributes/text/download/filename|sha256 +https:///attributes/text/download/ip-src +https:///attributes/text/download/ip-dst +https:///attributes/text/download/hostname +https:///attributes/text/download/domain +https:///attributes/text/download/email-src +https:///attributes/text/download/email-dst +https:///attributes/text/download/email-subject +https:///attributes/text/download/email-attachment +https:///attributes/text/download/url +https:///attributes/text/download/http-method +https:///attributes/text/download/user-agent +https:///attributes/text/download/regkey +https:///attributes/text/download/regkey|value +https:///attributes/text/download/AS +https:///attributes/text/download/snort +https:///attributes/text/download/pattern-in-file +https:///attributes/text/download/pattern-in-traffic +https:///attributes/text/download/pattern-in-memory +https:///attributes/text/download/yara +https:///attributes/text/download/vulnerability +https:///attributes/text/download/attachment +https:///attributes/text/download/malware-sample +https:///attributes/text/download/link +https:///attributes/text/download/comment +https:///attributes/text/download/text +https:///attributes/text/download/other +https:///attributes/text/download/named pipe +https:///attributes/text/download/mutex +https:///attributes/text/download/target-user +https:///attributes/text/download/target-email +https:///attributes/text/download/target-machine +https:///attributes/text/download/target-org +https:///attributes/text/download/target-location +https:///attributes/text/download/target-external +~~~~ + +To restrict the results by tags, use the usual syntax. Please be aware the colons (:) cannot be used in the tag search. Use semicolons instead (the search will automatically search for colons instead). To get ip-src values from events tagged tag1 but not tag2 use: + +~~~~ +https:///attributes/text/download/ip-src/tag1&& +~~~~ + +As of version 2.3.38, it is possible to restrict the text exports on two additional flags. The first allows the user to restrict based on event ID, +whilst the second is a boolean switch allowing non IDS flagged attributes to be exported. Additionally, choosing "all" in the type field will return +all eligible attributes. + +~~~~ +https:///attributes/text/download/[type]/[tags]/[event_id]/[allowNonIDS]/[from]/[to]/[last] +~~~~ + +
+
type
+
The attribute type, any valid MISP attribute type is accepted.
+
tags
+
To include a tag in the results just write its names into this parameter. To exclude a tag prepend it with a '!'. You can also chain several tag commands together with the '&&' operator. Please be aware the colons (:) cannot be used in the tag search. Use semicolons instead (the search will automatically search for colons instead).
+
+ +For example, to include tag1 and tag2 but exclude tag3 you would use: + +~~~~ +https:///attributes/text/download/all/tag1&&tag2&&!tag3 +~~~~ + +
+
event_id
+
Restrict the results to the given event IDs.
+
allowNonIDS
+
Allow attributes to be exported that are not marked as "to_ids".
+
from
+
Events with the date set to a date after the one specified in the from field (format: 2015-02-15)
+
to
+
Events with the date set to a date before the one specified in the to field (format: 2015-02-15)
+
last
+
Events published within the last x amount of time, where x can be defined in days, hours, minutes (for example 5d or 12h or 30m)
+
+ +The keywords false or null should be used for optional empty parameters in the URL. + +For example, to retrieve all attributes for event #5, including non IDS marked attributes too, use the following line: + +~~~~ +https:///attributes/text/download/all/null/5/true +~~~~ +