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

OTE-01-002 WP1: Possible DYLIB Injection on MacOS Client #586

Open
mx-psi opened this issue Jun 26, 2024 · 0 comments
Open

OTE-01-002 WP1: Possible DYLIB Injection on MacOS Client #586

mx-psi opened this issue Jun 26, 2024 · 0 comments
Assignees
Labels
os:macos macOS related issues

Comments

@mx-psi
Copy link
Member

mx-psi commented Jun 26, 2024

macOS has a similar mechanism to LD_PRELOAD in Linux called DYLD_INSERT_LIBRARIES. Our current macOS binaries honor this environment variable, while the Linux ones do not. It is a good security practice to prevent usage of said environment variable to avoid preloading of arbitrary dynamic libraries.

To harden our binaries we can follow this StackOverflow answer advice.


Note

2024 OpenTelemetry security audit finding reference:
OTE-01-002 WP1: Possible DYLIB Injection on MacOS Client

@mx-psi mx-psi added the os:macos macOS related issues label Jun 26, 2024
@codeboten codeboten self-assigned this Jul 2, 2024
@mx-psi mx-psi changed the title Prevent DYLB from being loaded in darwin binaries OTE-01-002 WP1: Prevent DYLB from being loaded in darwin binaries Jul 31, 2024
@mx-psi mx-psi changed the title OTE-01-002 WP1: Prevent DYLB from being loaded in darwin binaries OTE-01-002 WP1: Possible DYLIB Injection on MacOS Client Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:macos macOS related issues
Projects
None yet
Development

No branches or pull requests

2 participants