SecurityRiskAdvisors / VECTR

VECTR is a tool that facilitates tracking of your red and blue team testing activities to measure detection and prevention capabilities across different attack scenarios
1.37k stars 162 forks source link

Export Data #244

Open fuckup1337 opened 1 year ago

fuckup1337 commented 1 year ago

Hello I am trying to export campaigns in VECTR, but it does not show my actual campaigns, it only shows SRA and Atomic Red. How can I make my actualy campaigns appear here? I am trying this: https://docs.vectr.io/user/data-import/ Thanks!

SRAPSpencer commented 1 year ago

Can you provide more context?

Are you trying to export templates or completed data?

If you're trying to export completed data, the only method is to use the "Export Active Environment" under the Environment drop down.

image

You could also use the API to pull data from the system https://docs.vectr.io/graphql/

Note that the Data Import section is only for templates. You cannot import completed assessments via this method.

If you are trying to export templates, you need to create them as templates before you can export them.

joebloggs12 commented 8 months ago

If you're trying to export completed data, the only method is to use the "Export Active Environment" under the Environment drop down.

@SRAPSpencer - Can the exported environment then be reimported into another instance of VECTR somehow?

SRAPSpencer commented 8 months ago

@joebloggs12 Completed data in itself is not portable. You have two options

  1. Export Active Environment and it will give you a CSV which you can upload with our example API project here, https://github.com/SecurityRiskAdvisors/vectr-tools Note this is lossy and not a complete transfer of metadata or templates
  2. Follow our backup and restore documentation, https://docs.vectr.io/Maintenance_basics/#backups This is only for moving complete deployments. You must load it into a blank install with no volumes and no data may be merged.
FabFaeb commented 5 days ago

Hi @SRAPSpencer,

I have another question regarding this suggestion of yours:

If you are trying to export templates, you need to create them as templates before you can export them.

Did I understand correctly, that creating a test case as template works via Library -> Test Case Library -> New Test Case (and the same procedure works for campaigns and assessments)?

If so, how do I export those templates after creating them? I don't seem to be able to find the functionality in the GUI so is this only possible via the API? Are there examples for this available? I assume that the import then simply works via the Import Data GUI-functionality?

Context: I have multiple Vectr installations and want to be able to share "empty"/template test cases/campaigns/assessments between them without having to manually re create them over and over...