Extract data from AWS Guard Duty
Configuration config.json was created using AutoFlow version 0.2.5# Storing data:
Is you have questions about this example, feel free to post your question on the community "Ask Questions" website.
- Create an HTTP Server
- Create an endpoint
- NOTE: under properties the method must be GET
- From the right panel, press Action tab -> Service -> Aws, Drag and drop action REST to the end of the flow
- From the right panel, press Action tab -> Service -> Aws, drag and drop another action REST to the end of the flow
- From the right panel, press Action tab -> json, Drag and drop decode to the end of the flow
This action extracts just the issues list from AWS Guard Duty by using the API /detector/detector_id/findings
- service: guardduty
- method: POST
- path: /detector/your-detectorId/findings
- action:
- parameters:
- body:
- string
- region: us-west-2
- access-key-id: your-aws-secret-access-key
- secret-access-key: your-aws-access-key-id
- se-mock-result:
- mock-result:
- output-location: result
How to get access-key-id and secret-access-key https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/
Guard Duity Actions https://docs.aws.amazon.com/guardduty/latest/APIReference/API_GetFindings.html
Using the Guard Duty issues list from the previous step, this action retrieves the details of each issue by using the API /detector/detector_id/findings/GET. Note that this API takes in the issues list in the request body (which was obtain from previous action). The output is stored back into the variable result.
- service: guardduty
- method: POST
- path: /detector/your-detectorId/findings/get
- action:
- parameters:
- body: [R][S] result
- string
- region: us-west-2
- access-key-id: your-aws-secret-access-key
- secret-access-key: your-aws-access-key-id
- se-mock-result:
- mock-result:
- output-location: result
- json: drag drop the result body from right data panel
- At-location: drag and drop the response body from the right panel
https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListFindings.html