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

"hedgehog run profile" doesn't allow for reaching back for PCAP payload or carved file artifacts #563

Closed
mmguero opened this issue Sep 12, 2024 · 1 comment
Labels
arkime Relating to Malcolm's use of Arkime bug Something isn't working docker Relating to docker and docker-compose as used by Malcolm

Comments

@mmguero
Copy link
Collaborator

mmguero commented Sep 12, 2024

See Hedgehog Run Profile for background of what the feature is.

A normal Malcolm instance's Arkime interface can't grab PCAP from a hedgehog run profile instance's Arkime capture. In order to do so, the arkime-live session needs to expose port 8005 (I'm pretty sure it's the arkime-live container that needs to do it, not just the regular arkime container). This should probably be handled around here in install.py.

However, there are some issues to this: namely, a hedgehog run profile doesn't have nginx at all, meaning no authentication. On the hedghog sensor we handle this with an access control list and a shared secret (which is not really a password) but we can't really do that here in Malcolm, since we don't necessarily have control of the user's system to set the firewall up. Maybe we just need to ask them if they want to open the port, and if they do say "you need to handle the access/firewall yourself."

The next part of this is the "extracted files user interface.". We don't even prompt the user to enable this in the hedgehog run profile, but should we? If so, we've got the same access control problem as mentioned above, plus one worse: it's not even https, it's HTTP only. Now, the main malcolm instance should proxy those requests, as per the documentation:

Similarly, files extracted and preserved on a Hedgehog Linux network sensor can be accessed at https://localhost/hh-extracted-files/X.X.X.X/, where X.X.X.X represents the IP address or hostname of the sensor (e.g., https://localhost/hh-extracted-files/192.168.122.57/ if the sensor’s IP address were 192.168.122.57).

which we'd also need to make sure works, but again it would mean exposing through docker the non-https port, which I'm not super excited to do.

Another possibility is that we change the hedgehog run profile to have an nginx-proxy container, which it doesn't right now, but there are quite a few issues with that as well:

  • the depends on section of that service would have to change (we could write this list out depending on profile in install.py)
  • they'd have to configure authentication on a hedgehog profile, which wouldn't be the end of the world
  • I'm not sure how the PCAP reachback would work, that would still probably need to be unauthenticated (?) because I'm not sure how we'd tell the main malcolm instance what the user/password for that would be.

Anyway there are some issues here. This isn't a super super huge priority, as I don't know for sure that anybody is actually using this feature, and even if they are it's only the reachback that's broken (for the most part, it still works with data flowing the other direction).

This also needs to be handled and tested in a Kubernetes deployment to be considered complete.

@mmguero mmguero added bug Something isn't working docker Relating to docker and docker-compose as used by Malcolm arkime Relating to Malcolm's use of Arkime labels Sep 12, 2024
@mmguero mmguero added this to the v24.09.0 milestone Sep 12, 2024
@mmguero mmguero added this to Malcolm Sep 12, 2024
@mmguero mmguero moved this to Todo (design) in Malcolm Sep 12, 2024
@mmguero mmguero modified the milestones: v24.09.0, z.staging Sep 12, 2024
@mmguero mmguero removed this from the z.staging milestone Oct 1, 2024
@mmguero
Copy link
Collaborator Author

mmguero commented Nov 4, 2024

Kamino closed and cloned this issue to cisagov/Malcolm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arkime Relating to Malcolm's use of Arkime bug Something isn't working docker Relating to docker and docker-compose as used by Malcolm
Projects
Status: Migrated
Development

No branches or pull requests

1 participant