Skip to content

Commit

Permalink
[OpenCanary] Correct issue with remove processors for source and de…
Browse files Browse the repository at this point in the history
…stination ports (#10288)
  • Loading branch information
MakoWish authored Jul 1, 2024
1 parent 3936e82 commit c2ceb26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/opencanary/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.1.1"
changes:
- description: Fixes and issue where all source and destination details were removed if the source or destination port was an invalid "-1".
type: bugfix
link: https://github.com/elastic/integrations/pull/10288
- version: "0.1.0"
changes:
- description: Update the kibana constraint to ^8.13.0. Modified the field definitions to remove ECS fields made redundant by the ecs@mappings component template.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
"id": "opencanary-1"
},
"redis": {
"command": "\u0000\f\u0000\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
"command": "\u0000\u000c\u0000\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
}
},
"related": {
Expand Down Expand Up @@ -887,6 +887,11 @@
"jdoe"
]
},
"source": {
"address": "192.168.0.10",
"domain": "Client1",
"ip": "192.168.0.10"
},
"tags": [
"preserve_original_event",
"redact_passwords"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ processors:
- redact:
description: Redact any passwords in the log data
tag: redact_event_original
if: 'ctx.tags?.contains("redact_passwords") && ctx.event?.original =~ /\"PASSWORD\": \"/'
if: 'ctx.tags != null && ctx.tags.contains("redact_passwords") && ctx.event?.original =~ /\"PASSWORD\": \"/'
field: event.original
patterns:
- '"PASSWORD": "%{DATA:REDACTED}"'
Expand Down Expand Up @@ -736,14 +736,14 @@ processors:
- remove:
description: Remove malformed source.* fields for LOG_BASE_MSG events
tag: remove_source_port
field: source
field: source.port
if: ctx.source?.port == -1
ignore_missing: true
ignore_failure: true
- remove:
description: Remove malformed destination.* fields for LOG_BASE_MSG events
tag: remove_destination_port
field: destination
field: destination.port
if: ctx.destination?.port == -1
ignore_missing: true
ignore_failure: true
Expand Down
2 changes: 1 addition & 1 deletion packages/opencanary/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.3
name: opencanary
title: "OpenCanary"
version: "0.1.0"
version: "0.1.1"
description: "This integration collects and parses logs from OpenCanary honeypots."
type: integration
categories:
Expand Down

0 comments on commit c2ceb26

Please sign in to comment.