Skip to content

[Rule: Tuning] Fixing logic issue on the macOS rule for discovery external IP using curl - #6530

Open
litemars wants to merge 5 commits into
elastic:mainfrom
litemars:fixing_rule_logic_discovery_ip_macos
Open

[Rule: Tuning] Fixing logic issue on the macOS rule for discovery external IP using curl#6530
litemars wants to merge 5 commits into
elastic:mainfrom
litemars:fixing_rule_logic_discovery_ip_macos

Conversation

@litemars

Copy link
Copy Markdown
Contributor

Pull Request

Issue:

Since curl is always Apple-signed, process.code_signature.exists is always true → the clause is dead and the OR collapses to the parent check.

Summary - What I changed

Checking if the parent process is signed instead of the process itself

@w0rk3r w0rk3r left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a suggestion, you also need to bump updated_date. Thanks for the contribution!

Comment thread rules/macos/discovery_external_ip_address_discovery_via_curl.toml Outdated
@w0rk3r
w0rk3r requested a review from Aegrah July 30, 2026 10:55

@shashank-elastic shashank-elastic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with Jon's comment, which is a good to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants