Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Velociraptor ZIP file after collection is finished #2909

Open
Zawadidone opened this issue Aug 24, 2023 · 7 comments
Open

Delete Velociraptor ZIP file after collection is finished #2909

Zawadidone opened this issue Aug 24, 2023 · 7 comments

Comments

@Zawadidone
Copy link
Contributor

As shown in #2542 (comment). It would be nice to have the option when creating a Velociraptor collection to delete the ZIP file after the collection is finished, whether it is successful or not.

image

@Zawadidone
Copy link
Contributor Author

Hi @scudette, will this issue be part of any of the milestones in 2024?

@scudette
Copy link
Contributor

Im not sure thats a good idea - if the upload fails we want to leave the zip around so it can be fetched another way - and if it works then the user can manually inspect the transfer was ok then delete the file afterwards.

Why do you want to delete it if it failed to upload?

It is sometimes difficult for us to determine if the upload worked or not depending on how the uploader works - so we cant automatically figure out if it was successful. This is why it is always left behind now.

It is always possible to wrap the collector in a powershell script to make sure it is deleted if you need to.

@Zawadidone
Copy link
Contributor Author

Like in the previous version of Velociraptor I want to have the option to build a collector that deletes the collection after the upload is successful or failed. This option can be disabled by default for the purpose that you explained.

@Zawadidone
Copy link
Contributor Author

Is it possible that this feature will be implemented?

@scudette
Copy link
Contributor

Is it not easier to just wrap it in a shell script which accepts user input after prompting the user to check the file was correctly received?

@Zawadidone
Copy link
Contributor Author

For us that is not easier because we execute Velociraptor in an automated manner. I prefer an option that is available as part of the artifact Server.Utils.CreateCollector.

@scudette
Copy link
Contributor

This was added in #3974 - please test to see if it makes it works for you - you only need to build the collector using the new server binary no need to update the target binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants