03-20-2019 05:07 AM - edited 02-20-2020 09:08 PM
Hi Sir:
Could you provide me any document about download the sample file from TG by API ? I can't find it from TG help.
Solved! Go to Solution.
03-29-2019 06:13 AM
Hello Peter,
Not sure about the Firepower API, however on TG I could only find information from which sensor sample came, for example from 'fmc-sensor-...", 'wsa-device-...', 'esa-device...'
That information can be found under "login" field.
https://panacea.threatgrid.eu/mask/api-doc/api/v2/samples
If you are looking for the hostname of the endpoint, I don't think it is possible to get that on TG.
Regards,
Wojciech
03-24-2019 11:54 PM
Hello Peter,
Please refer to:
https://panacea.threatgrid.com/mask/api-doc/api/v2/samples/:sample-id/:artifact
It is possible to download it as an artifact. Example:
curl --request GET https://panacea.threatgrid.com/api/v2/samples/ec75584d564ac189b90cad37db4dc755/sample.zip?api_key=<API_KEY> -o sample.zip
Hope that helps,
Wojciech
03-27-2019 01:32 AM
Hi Wojciech Cecot :
Thanks a lot .
Another question: If I want to export hostname of client from FMC or TG by API. Can I make it ?
03-29-2019 06:13 AM
Hello Peter,
Not sure about the Firepower API, however on TG I could only find information from which sensor sample came, for example from 'fmc-sensor-...", 'wsa-device-...', 'esa-device...'
That information can be found under "login" field.
https://panacea.threatgrid.eu/mask/api-doc/api/v2/samples
If you are looking for the hostname of the endpoint, I don't think it is possible to get that on TG.
Regards,
Wojciech
04-24-2019 03:42 AM
04-24-2019 05:03 AM
Hello,
As per documentation (https://panacea.threatgrid.com/mask/api-doc/api/v2/samples/:sample-id/:artifact) id of the artifact is Sample ID, that can be either retrieved using API or from Console of TG, after clicking on the sample:
Regarding artifact parameter itself it needs to be something from the table, from documentation like, sample.zip, analysis.json etc.
--Wojciech
04-24-2019 08:02 AM
04-25-2019 02:16 AM
Looks like you are missing API key in that query, please try following (and instead of <API_KEY> place your API key):
curl --request GET https://panacea.threatgrid.com/api/v2/samples/ec75584d564ac189b90cad37db4dc755/analysis.json?api_key=<API_KEY>
If that will fail, please share response output (make sure to remove your API_KEY)
-Wojciech
04-27-2019 08:42 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide