[opencanary]: Sets all log message event.kind == alert leading to unwanted alert noise in Elastic Security #12911
Labels
Integration:opencanary
OpenCanary
mapping/pipeline issue
needs:triage
Team:Security-Service Integrations
Security Service Integrations Team [elastic/security-service-integrations]
Team:Sit-Crest
Integration Name
OpenCanary [opencanary]
Dataset Name
opencanary.events
Integration Version
0.3.0
Agent Version
8.17.2
Agent Output Type
elasticsearch
Elasticsearch Version
9.0.0
OS Version and Architecture
Not Applicable
Software/API Version
All
Error Message
opencanary.events
ingest pipeline contains this code,This sets ALL logs generated by OpenCanary with
event.kind == alert
.This leads to the default External Alerts rule in Elastic Security generating unwanted noise alerts when OpenCanary honeypots restart.
The ingest pipeline should selectively set event.kind to "alert" ONLY when it's clear the log message is an actual canary interaction from a network client.
From the look of it we can do this using the
log.logger
field, as the boot time message are ID 1000-10006, e.g. translated as "LOG_BASE_MSG"While Elastic Security exceptions can be made, it would be better if the integration just worked and didn't generate noise immediately.
Example noise,
Event Original
and
What did you do?
Deployed integration, received noise.
What did you see?
Noise.
What did you expect to see?
Not noise.
Anything else?
Setting "message" at the same time so that the default Elastic Security "Rule name override" will set a more useful alert description would be great. e.g. "OpenCanary triggered by 127.0.0.1 to port 21" etc.
The text was updated successfully, but these errors were encountered: