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

It is not possible to embed config on MacOS #2898

Closed
scudette opened this issue Aug 18, 2023 · 1 comment
Closed

It is not possible to embed config on MacOS #2898

scudette opened this issue Aug 18, 2023 · 1 comment
Milestone

Comments

@scudette
Copy link
Contributor

Velociraptor can embed config in the binary after the build by modifying a static string within the PE file. We use this technique to create the "offline collector" which has a preconfigured configuration embedded within the binary.

This does not work on MacOS which seems to have a hash that covers the binary after the build. So it seems that MacOS will not allow the binary to be modified after build - even for unsigned binaries.

$ ./Collector_velociraptor-v0.7.0-rc1-darwin-arm64
Killed: 9
$ spctl -a -t exec -vvv ./Collector_velociraptor-v0.7.0-rc1-darwin-arm64
./Collector_velociraptor-v0.7.0-rc1-darwin-arm64: invalid signature (code or signature have been modified)

We need to develop an alternate method for the offline collector on MacOS.

@scudette scudette added this to the 0.7.0 Release milestone Aug 18, 2023
@scudette
Copy link
Contributor Author

Fixed by: #2899

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

1 participant