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

discuss the possibility to run arbitrary custom binary via agent #33049

Closed
zez3 opened this issue Sep 11, 2022 · 4 comments
Closed

discuss the possibility to run arbitrary custom binary via agent #33049

zez3 opened this issue Sep 11, 2022 · 4 comments
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@zez3
Copy link

zez3 commented Sep 11, 2022

At the moment only a few vetted binaries(osquery,beats) are allowed to be run by the agent.

There is a need to run other custom arbitrary binaries or executables.

Eg. Reading a log file after it was decrypted
use case described here:
https://discuss.elastic.co/t/filebeat-harvest-logs-from-encyrpted-file/306025/2

Read the windows USN journal
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-usn
+
Others(Some use the EDR to run arbitrary comands)

I've already requested this with internal reference number is 16281. Please mention this if you want to upvote. Of course some sort of hash, whitelist or security mechanism should be implemented to prevent miscarriage.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 11, 2022
@zez3
Copy link
Author

zez3 commented Sep 11, 2022

Would be as well tje case of running community beats

https://github.com/christiangalsterer/execbeat

But preferably via fleet policy

@endorama endorama added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Sep 19, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 19, 2022
@cmacknz
Copy link
Member

cmacknz commented Sep 19, 2022

We are already tracking this here: elastic/elastic-agent#1237

We are making some changes to the internals of the agent to make this use case easier to support, this is difficult to implement with the current architecture. Once that is complete we will come back to this use case.

@cmacknz
Copy link
Member

cmacknz commented Sep 21, 2022

Closing this as a duplicate of elastic/elastic-agent#1237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants