Skip to content

main: add sinkhole-ip net-conn bug fix and enabled setting to protect agent from getting killed#483

Merged
ashishkurmi merged 2 commits into
mainfrom
fix/net-conn
Jul 3, 2026
Merged

main: add sinkhole-ip net-conn bug fix and enabled setting to protect agent from getting killed#483
ashishkurmi merged 2 commits into
mainfrom
fix/net-conn

Conversation

@h0x0er

@h0x0er h0x0er commented Jul 3, 2026

Copy link
Copy Markdown
Member

don't net-conn event for sinkhole-ip as this was causing issue in generation of dummyNetworkEvent incase a domain was blocked.

enabled setting to protect agent from getting killed

generation of dummyNetworkEvent incase a domain was blocked.

enabled setting to protect agent from getting killed
@h0x0er h0x0er changed the title add sinkhole-ip net-conn bug fixe and enabled setting to protect agent from getting killed add sinkhole-ip net-conn bug fix and enabled setting to protect agent from getting killed Jul 3, 2026
@h0x0er h0x0er changed the title add sinkhole-ip net-conn bug fix and enabled setting to protect agent from getting killed main: add sinkhole-ip net-conn bug fix and enabled setting to protect agent from getting killed Jul 3, 2026
@ashishkurmi ashishkurmi requested a review from Copilot July 3, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts network telemetry reporting to avoid emitting net-connection events for the DNS sinkhole IP (preventing downstream issues when domains are blocked) and adds a global feature-flag-controlled switch to disable kill enforcement in Armour to prevent the agent from being terminated unexpectedly.

Changes:

  • Skip sendNetConnection + related logging/annotation for StepSecuritySinkHoleIPAddress in the network monitor drop path.
  • Add disable_kill_enforcement to global feature flags and wire it into Armour configuration (EnforceKillBlock).
  • Fetch global feature flags once during agent startup for use in kill enforcement configuration.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
netmon.go Avoids net-connection telemetry/logging/annotation for sinkhole IP drops.
global_feature_flags.go Adds a new global feature flag field to control kill enforcement.
agent.go Uses global flag to configure Armour EnforceKillBlock.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread netmon.go Outdated
Comment on lines +115 to +116
netMonitor.ApiClient.sendNetConnection(netMonitor.CorrelationId, netMonitor.Repo,
ipv4Address, port, "", status, matchedPolicy, reason, timestamp, Tool{Name: Unknown, SHA256: Unknown})
Comment thread agent.go Outdated
@ashishkurmi ashishkurmi merged commit 45e1b84 into main Jul 3, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants